OptionalchangeOptionaldefaultUncontrolled initial tool. Ignored when tool is set.
OptionalinitialMount-only: a saved state (object or JSON string) loaded before onReady.
OptionalonTrailing-debounced with the exported state after any change; flushed on unmount.
OptionalonCalled once the viewport exists; a throw destroys the viewport and is rethrown.
OptionalonFires whenever the active tool changes (keyboard, API, or tool prop).
OptionaloptionsConstructor-only: changes after mount are ignored (the canvas is stateful).
OptionalsnapReactive compatibility toggle for the core snap flag.
OptionalthemeReactive. undefined leaves the viewport's theme alone. Hoist a theme object.
OptionaltoolControlled active tool. Pair with v-model:tool or onToolChange.
Optionaltools'default' (mount-only): createDefaultTools() registered before onReady, select active.
Omitted: the same bundle after onReady, only if no tools are registered by then.
An array is reactive (append-only): tools present here are registered, including ones pushed
into a reactive array; removal is not supported, and [] registers nothing.
Debounce window for
onChangein milliseconds (default 250).