Skip to content

Interface: WandOptions<Sections> ​

Defined in: core/types.ts:173

The options of createWand.

Type Parameters ​

Type ParameterDefault type
Sections extends readonly AnySection[]readonly AnySection[]

Properties ​

PropertyModifierTypeDescriptionDefined in
autosaveDebounceMs?readonlynumberThe time between the last change and the autosave, in milliseconds. The default is 500.core/types.ts:197
config?readonlyConfigPatch<ComposeConfig<Sections>>The configuration layer above the schema defaults.core/types.ts:181
effects?readonlyreadonly Effect<string, Schema>[]The effects. The default is the cloud, chalk and glitter effects.core/types.ts:177
ignoreSelector?readonlystringA press on an element that matches this selector does not start a stroke.core/types.ts:189
locked?readonlyreadonly string[]The paths that the providers and setConfig cannot change, for example glitter.maxParticles.core/types.ts:185
plugins?readonlyreadonly Plugin<string, Schema>[]The plugins.core/types.ts:179
providers?readonlyreadonly ConfigProvider[]The configuration providers, from low to high precedence.core/types.ts:183
random?readonly() => numberReplaces Math.random, for example with a seeded function in tests.core/types.ts:201
scheduler?readonlySchedulerReplaces requestAnimationFrame and performance.now, for example in tests.core/types.ts:203
shouldDraw?readonlyDrawPredicateDecides if a press starts a chalk stroke. The default is drawOnPress.core/types.ts:187
silent?readonlybooleanSet to true to stop the console warnings.core/types.ts:199
startAfter?readonlynumber | "ready"Delays the first frame until ready, or for the given time in milliseconds.core/types.ts:195
target?readonlyHTMLElementThe element for container mode. Without it, the mode is overlay.core/types.ts:175
touchAction?readonlystringThe touch-action value of the target in container mode. The default is none.core/types.ts:193
zIndex?readonlynumberThe stack order of the canvas. The default is 2147483647.core/types.ts:191