Optionalconfiguration: {OptionalcssVars?: { [key: string]: string | undefined }OptionalfontStyle?: { size?: number | "auto"; weight?: "bold" | "normal" | "auto" }Optionalgesture?: {Optionalgrabber?: {Optionallogger?: {Optionalmath?: {Math manager configuration (computation behavior and visual interactions)
Optionalcomputation?: { autoCompute?: boolean; resultColor?: string; resultMode?: TMathResultMode }Override defaults for the computation sub-manager (resultMode, autoCompute)
OptionalautoCompute?: booleanAutomatically compute results when blocks end with = or ?
OptionalresultColor?: stringColor applied to result strokes (both draw and ghost modes)
OptionalresultMode?: TMathResultModeHow solver output is displayed
Optionalinteraction?: {Override defaults for the variable/interaction sub-manager (showDependencyOnHover, highlightOnSelect, dimOpacity)
Optionalmenu?: {Optionalaction?: {Optionalclear?: booleanEnable/disable Clear menu
Optionalconvert?: booleanEnable/disable Convert menu
Optionalenable?: booleanOptionalexport?: boolean | { json?: boolean; png?: boolean; svg?: boolean; text?: boolean }Enable/disable Export submenu. Pass an object to configure individual export formats.
Optionalgesture?: Enable/disable Gesture submenu. Pass an object to configure individual gesture items.
Optionalguide?: boolean | { enable?: boolean; size?: boolean; type?: boolean }Enable/disable Guide submenu. Pass an object to configure individual guide items.
Optionalimport?: booleanEnable/disable Import submenu
Optionallanguage?: booleanEnable/disable Language menu
Optionalmath?: Enable/disable Math submenu. Pass an object to configure individual math items.
Optionalminimap?: booleanEnable/disable Minimap toggle button
Optionaloverlay?: Enable/disable Overlay submenu. Pass an object to configure individual overlay items.
Optionalselection?: boolean | { math?: boolean; shape?: boolean; text?: boolean }Enable/disable Selection submenu. Pass an object to configure individual selection items.
Optionalsnap?: boolean | { angle?: boolean; element?: boolean; guide?: boolean }Enable/disable Snap submenu. Pass an object to configure individual snap items.
Optionaltheme?: booleanEnable/disable Theme picker
Optionalthemes?: (Override predefined themes shown in the theme picker
OptionalundoRedo?: booleanEnable/disable Undo/Redo menus
Optionalzoom?: booleanEnable/disable Zoom menus
Optionalcontext?: {Optionalconvert?: booleanEnable/disable Convert menu
Optionaldecorator?: Enable/disable Decorator menu. Pass an object to configure individual decorator types.
Optionalduplicate?: booleanEnable/disable Duplicate menu
Optionaledit?: booleanEnable/disable Edit menu
Optionalenable?: booleanOptionalexport?: boolean | { json?: boolean; png?: boolean; svg?: boolean; text?: boolean }Enable/disable Export menu. Pass an object to configure individual export formats.
Optionalgroup?: booleanEnable/disable Group menu
Optionalmath?: Enable/disable Math menu. Pass an object to configure individual math operations.
Optionalremove?: booleanEnable/disable Remove menu
Optionalreorder?: Enable/disable Reorder menu. Pass an object to configure individual reorder actions.
OptionalselectAll?: booleanEnable/disable Select All menu
Optionalenable?: booleanOptionalstyle?: {Optionalcolors?: (string | undefined)[]Custom color palette
Optionalenable?: booleanOptionalfillColor?: booleanEnable/disable fill color picker
OptionalfontSize?: booleanEnable/disable font size picker
OptionalfontSizeList?: ({ label?: (...) | (...); value?: (...) | (...) | (...) } | undefined)[]Custom font size list
OptionalfontWeight?: booleanEnable/disable font weight picker
OptionalfontWeightList?: ({ label?: (...) | (...); value?: (...) | (...) | (...) | (...) } | undefined)[]Custom font weight list
Optionalopacity?: booleanEnable/disable opacity picker
OptionalstrokeColor?: booleanEnable/disable stroke color picker
Optionalthickness?: booleanEnable/disable stroke thickness picker
OptionalthicknessList?: ({ label?: (...) | (...); value?: (...) | (...) } | undefined)[]Custom thickness list
Optionaltool?: {Optionaledge?: booleanEnable/disable Edge submenu (Line, Arrow, etc.)
Optionalenable?: booleanOptionalerase?: booleanEnable/disable Erase tool
Optionalmove?: booleanEnable/disable Move tool (Hand)
Optionalselect?: booleanEnable/disable Select tool (Cursor)
Optionalshape?: booleanEnable/disable Shape submenu (Rectangle, Circle, etc.)
Optionalwrite?: booleanEnable/disable Write tool (Pencil)
Optionaloverlays?: {OptionalpenStyle?: {Optionalrecognition?: {Optionalrendering?: {Optionalselection?: {Optionalserver?: {OptionalapplicationKey?: stringOptionalhmacKey?: string | {}Optionalhost?: stringOptionalscheme?: TSchemeOptionalversion?: stringOptionalwebsocket?: {OptionalautoReconnect?: booleanOptionalfileChunkSize?: numberOptionalmaxPingLostCount?: numberOptionalmaxReconnectAttempts?: numberGive up reconnecting (and reject the queue) after this many failed attempts.
OptionalmaxRetryCount?: numberOptionalofflineQueueEnabled?: booleanQueue addStrokes() calls locally while disconnected and replay them in order on reconnect.
OptionalofflineQueueMaxSize?: numberMax number of queued addStrokes batches; further calls reject once reached.
OptionalpingDelay?: numberOptionalpingEnabled?: booleanOptionalreconnectDelay?: numberDelay in ms between reconnection attempts while offline.
Optionalsnap?: { angle?: number; guide?: boolean; symbol?: boolean }Optionalui?: { showConnectionState?: boolean }OptionalshowConnectionState?: booleanWhether to show the connection-state badge (bottom-left icon). Defaults to true.
Optionalundo-redo?: { maxStackSize?: number }OptionalcssCSS custom property overrides applied to the canvas root element (e.g. { "--ms-ink-primary": "#ff0" })
Math manager configuration (computation behavior and visual interactions)
CSS custom property overrides applied to the canvas root element (e.g.
{ "--ms-ink-primary": "#ff0" })