ReadonlychangeDebounce window for stateChange in milliseconds (default 250).
ReadonlydefaultUncontrolled initial tool. Ignored when tool is set.
ReadonlyinitialMount-only: a saved state (object or JSON string) loaded before ready.
ReadonlyoptionsConstructor-only: changes after mount are ignored (the canvas is stateful).
ReadonlyreadyEmits once the viewport exists; a throwing listener does not destroy it.
ReadonlystateTrailing-debounced with the exported state after any change; flushed on destroy.
ReadonlythemeReactive. undefined leaves the viewport's theme alone. Hoist a theme object.
ReadonlytoolControlled active tool; pair with [(tool)]. Keyboard and API changes write it back.
Readonlytools'default' (mount-only): createDefaultTools() registered before ready, select active.
Omitted: the same bundle after ready, only if no tools are registered by then.
An array is append-only: a new array reference registers its unregistered tools; in-place mutation is not seen.
ReadonlyviewportThe mounted viewport; null before mount, on the server, and after destroy.
Mounts a Field Notes Viewport; projected content renders above it and can inject the viewport.