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 describing its position and size on the canvas.

Common element fields

FieldTypeDescription
idstringElement id, unique within the page.
typeBoardElementTypeElement kind, such as text, shape, image, connector, container, table, or group.
transformIBoardElementTransformPosition, size, rotation, scale, skew, and flip values.
parentId?stringParent container or group id.
laneId?stringSwimlane lane id when the element is inside a swimlane.
name?stringHuman-readable element name.
description?stringAccessibility or application metadata.
visible?booleanWhether the element should render.
selectable?booleanWhether the editor can select the element.
locked?booleanWhether editing is locked.
custom?`Record<string, unknown>null`

Element types

TypeExtra dataTypical use
texttext, textStyle, textDataSticky notes, labels, and rich text blocks.
shapeshapeDataRectangles, arrows, callouts, and custom shapes.
imagesource, imageSourceType, cropEmbedded images.
connectorconnectorDataLines and arrows attached to free points or shapes.
containercontainerDataFrames, areas, swimlanes, UML packages, and system boundaries.
tabletableIdBoard table elements provided by the table plugin.
chartchartIdChart elements.
mediamediaType, sourceAudio and video placeholders.
groupchildrenGrouped element collections.

Containers

Containers define membership behavior with containerData.behavior and capture rules with containerData.capturePolicy. Use the facade container methods to move elements in and out so ordering and parent relationships stay consistent.

TypeScript
board.wrapElementsInContainer(['task-1', 'task-2'], {  title: 'Sprint 1',})

Swimlanes

A swimlane is a container with containerData.swimlane. Lanes have stable ids, titles, order values, sizes, and optional collapsed state.

TypeScript
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 use endpoints and routing data. Endpoints can be free points, shape boundaries, connection sites, or lifelines. Prefer facade operations or UI actions for connector editing because routing data often depends on geometry.

How is this guide?

© 2026 DreamNum Co., Ltd.