value / valueChange | model<WhiteboardDocument>. Version 1 document with an elements array. Defaults to an empty board. Assigning a new document resets undo/redo. |
tool / toolChange | model<WhiteboardTool>. select, hand, pencil, rectangle, diamond, ellipse, arrow, line, text, note or eraser. Default: pencil. |
title | string. Board title and accessible canvas label. Default: Whiteboard. |
subtitle | string. Optional board name below the Whiteboard title. |
locale | 'en' | 'ru'. Language for the built-in controls, menus and dialogs. Default: en. |
drawingStyle / drawingStyleChange | model<WhiteboardStyle>. Stroke, fill, strokeWidth, opacity and lineStyle used for new objects. Text and notes use fontSize, optional fontFamily and optional textAlign. The style also updates on selection. |
toolLocked / toolLockedChange | model<boolean>. Keep the active tool after creating a shape, line, arrow, text or note. Default: true. New objects are always selected. When unlocked, the board switches to Select. Pencil stays active for continuous drawing. |
pressureSensitive / pressureSensitiveChange | model<boolean>. Record pen pressure for variable-width pencil strokes. Mouse and touch keep a uniform width. Default: false. |
readonly | boolean. Disables edits, history changes and import; keeps pan, zoom and export available. Default: false. |
showToolbar | boolean. Shows built-in controls. Default: true. |
showGrid / showGridChange | model<boolean>. Shows the decorative dot grid. Default: true. |
showProperties / showPropertiesChange | model<boolean>. Shows the floating style panel. Default: true. |
colors | string[]. Stroke color presets for ColorSwitcher. |
selectionChange | readonly WhiteboardElement[]. Emitted when selected objects change. |
viewportChange | WhiteboardViewport { x, y, zoom }. Emitted on pan or zoom. |
exported | string. PNG data URL emitted by exportPng() or the Export button. |
importError | Error. Emitted when the file picker cannot read a valid document. importJson() throws validation errors to its caller. |