Board Elements
Board pages store drawable objects in elements and their visual order in elementOrder. Every element has a stable id, a type, and a transform that records its position and size on the canvas.
Common element fields
| Field | Type | Description |
|---|---|---|
| id | string | Element id, unique within the page. |
| type | BoardElementType | Element kind, such as text, shape, image, connector, container, table, or group. |
| transform | IBoardElementTransform | Position, size, rotation, scale, skew, and flip values. |
| parentId? | string | Id of the parent container or group. |
| laneId? | string | Swimlane id when the element is inside a swimlane. |
| name? | string | Human-readable element name. |
| description? | string | Accessibility or application metadata. |
| visible? | boolean | Whether the element should render. |
| selectable? | boolean | Whether the editor can select the element. |
| locked? | boolean | Whether editing is locked. |
| custom? | `Record<string, unknown> | null` |
Element types
| Type | Extra data | Typical use |
|---|---|---|
text | text, textStyle, textData | Sticky notes, labels, and rich text blocks. |
shape | shapeData | Rectangles, arrows, callouts, and custom shapes. |
image | source, imageSourceType, crop | Embedded images. |
connector | connectorData | Lines and arrows attached to free points or shapes. |
container | containerData | Frames, areas, swimlanes, UML packages, and system boundaries. |
table | tableId | Board table elements provided by the table plugin. |
chart | chartId | Chart elements. |
media | mediaType, source | Audio and video placeholders. |
group | children | Grouped element collections. |
Containers
A container determines which elements belong to it through containerData.behavior, and which elements it captures through containerData.capturePolicy. Use the Facade container methods to move elements in and out, so that ordering and parent relationships remain consistent.
board.wrapElementsInContainer(['task-1', 'task-2'], { title: 'Sprint 1',})Swimlanes
A swimlane is a container that carries containerData.swimlane. Each lane has a stable id, a title, an order value, a size, and an optional collapsed state.
board.setSwimlaneLanes('lane-board', { orientation: 'horizontal', lanes: [ { id: 'todo', title: 'Todo', order: 0, size: 240 }, { id: 'doing', title: 'Doing', order: 1, size: 240 }, ],})Connectors
Connectors consist of endpoints and routing data. An endpoint can be a free point, a shape boundary, a connection site, or a lifeline. Routing data usually depends on geometry, so use Facade operations or UI actions when you edit a connector.
How is this guide?