OptionalautoLoads the saved board after onReady (a saved board wins over initialData), then saves on change.
OptionalchangeDebounce window for onChange in milliseconds (default 250).
OptionaldefaultUncontrolled initial tool; ignored when tool is set.
OptionalinitialRead once at mount: a saved state (object or JSON string) loaded before onReady.
OptionalonTrailing-debounced with the exported state after any change; flushed by destroy().
OptionalonCalled once the viewport exists; a throw destroys the viewport and is rethrown.
OptionalonFires on active-tool changes after mount, not for activation during mount.
OptionaloptionsRead once at mount.
OptionaltoolActive tool at mount; wins over defaultTool.
OptionaltoolsRead once at mount. 'default': createDefaultTools() before onReady, select active.
Omitted (and no options.tools): the same bundle after onReady, only if none is registered by then.
Mount options;
onChange,changeDebounceMs,onToolChange,toolanddefaultToolare read at use time, so getters stay live.