Skip to content

Examples ​

Explore the core canvas first, then add extensions for specialized capabilities. Each page includes an interactive example and its source. Example metadata is available immediately; each implementation loads only when its route opens.

For a complete editing surface, open the playground. For coding-agent reference files, see Agents.

Core ​

Getting started ​

ExampleTry it / observable resultAPI
Your first drawingCreate, select, move and delete a few shapes using one controller and canvas.Controller, Canvas
Transform modifiersResize from edges/corners, rotate, preserve ratio with Shift and resize from the center with Alt.Controller
Multi-selection and arrangementSelect, align, distribute, change stacking order and undo separate edits.Controller
Locks and capabilitiesCompare instance locking with a definition that disables resizing and rotation.Shapes, Hooks

Elements and structure ​

ExampleTry it / observable resultAPI
ImagesAdd/replace image content, transform it, and inspect its default undecorated appearance.Shapes
Drawing and erasingPick stroke defaults before drawing, edit the finished stroke and erase with undo.Shapes
Frames and ownershipGroup and ungroup siblings, move nested contents, clip overflow, remove a frame while keeping children, or delete the complete tree.Shapes
Departmental swimlanesArrange department frames in rows or columns without scaling tasks; collapse a lane to show its summary.Controller

Text ​

ExampleTry it / observable resultAPI
Plain TextEdit text without optional formatting.Plain Text

Canvas and navigation ​

ExampleTry it / observable resultAPI
Custom toolsRegister a tool beside built-ins, with cursor/shortcut and shared verb/preview behavior.Extensions and options
Grid snappingSwitch dot/line/custom patterns, spacing and increments; vary visibility independently of snapping.Grids
Fitted and infinite canvasSwitch between an infinite canvas and one that fits the content plus padding.Canvas
View-only diagramsSelect, pan, scroll and zoom without moving or editing diagram elements.Canvas

Animation & effects ​

ExampleTry it / observable resultAPI
Navigation and animationJump or animate to cards/bounds, set normal scale and interrupt animation without editing content.Navigation and motion
Connector effectsPlay dots, dashes, arrows and gradient flows, a pulse or a three-time blink along the selected connectors, in a brand color.Animation & effects
Shape effectsPulse, blink, ripple or glow, breathe or pop, and fade the selected shape; stop each effect or all of them.Animation & effects
Element motionMove, resize and lay out elements with motion; each edit commits at once as one undo step.Navigation and motion
Custom effectPlay an extension's own effect kind, a turning dashed ring, and edit it in the inspector.Animation & effects
Live energy flowWatch generation, storage, demand and grid exchange update across animated power paths.Animation & effects, Live data

Embedded controls ​

ExampleTry it / observable resultAPI
Controls inside a nodeUse a slider, compact dropdown and button; drag non-interactive space and resize/rotate the node.Widgets
Portable widget fallbackCompare live controls with their declared portable appearance in output.Widgets, Output
Widget clipping and layeringOverlap nodes, clip a widget within a frame, and verify input follows visible content after pan/zoom.Widgets
Custom propertiesEdit registered values through the inspector and the widget; observe one canonical value and undo history.Widgets

Documents and editing ​

ExampleTry it / observable resultAPI
Events and permissionsInspect semantic changes, deny an edit, and confirm no partial mutation or extra history entry.Hooks
Save and loadRound-trip JSON with Rich Text and custom values; reject an invalid or stale replacement.Persistence
SVG and PNGExport the same fixture with text, labels, images, clips and widget fallbacks.Output
Transactions and undoPreview/commit/cancel a multi-element operation; undo and redo one logical edit.Undo and redo
Copy, paste and duplicateDuplicate owned contents with fresh identities and retained text/connection relationships.Controller
Controller lifetimeUnmount, dispose a controller that joined a diagram, remount the retained document, and undo an earlier edit.Ownership

Use cases ​

ExampleTry it / observable resultAPI
Connected building topologyExplore live gateways, building controls, HVAC and EV charging; rearrange or expand the site hierarchy.Graph layout, Shapes
Regional transport networkMove nodes, mark a connection and undo the change.Connectors
Construction site coordinationMove nodes, mark a connection and undo the change.Connectors
Warehouse execution flowTrack receiving, putaway, storage, picking, packing and dispatch with changing operational queues.Shapes, Connectors
Workplace floor planningEdit rooms, walls, doors, windows and dimensions while occupancy changes across the plan.Shapes, Grids
MES production routingFollow a batch through mixing, quality, rework and release while production telemetry changes.Shapes, Connectors

Starter kits ​

ExampleTry it / observable resultAPI

Extensions ​

Connectors ​

ExampleTry it / observable resultAPI
Crowded networkArrange overlapping labels, move equipment into a connection, then explicitly reroute the elbow around it.Connectors
Connected cardsSwitch four routers on bound cards, select a label, and start/stop a path animation.Connectors
Connector labelsEnter/double-click to edit, add a second label, move it along the path and style/delete each label.Connectors
Explicit portsConnect fixed and instance-defined ports; observe hover/snap feedback and owner transforms.Shapes, Connectors
Connection admissionAllow/reject source/target combinations through one endpoint rule for interaction, verbs and imported documents.Hooks
Anchors and contour routingCompare straight, quadratic, cubic and elbow routes at center/edge anchors; inspect contour termination.Connectors
Connected creationCreate a target and incoming connector atomically, including standalone text; undo both together.Shapes

Rich text ​

ExampleTry it / observable resultAPI
Rich TextInstall formatting explicitly and edit styled content.Rich Text
Paragraphs, lists and checklistsEdit wrapping paragraphs, numbered/bulleted/checklist items and nesting; save and restore their structure.Text
Fonts and inheritanceConfigure the shared font catalog/default and compare explicit versus inherited font choices.Extensions and options
Single-line and multiline regionsEdit a card title/body and compare admitted body lists with rejected title lists.Text, Shapes
Range and whole-story formattingFormat a range versus whole text; preserve mixed marks through save/load.Text

Tables ​

ExampleTry it / observable resultAPI
Basic tablesEdit cells and add rows in a standalone table.Tables
Embedded tablesEdit a member table inside a class shape.Tables
Table stylingResize tracks and configure borders.Tables

Canvas assistance ​

ExampleTry it / observable resultAPI
Editor compositionToggle panels, toolbar, canvas, minimap and shape overlays; reposition the toolbar.Canvas
Snap guidesAlign neighboring sides and centers with a toggleable guide overlay.Grids
Snap guide policyChoose sides, centers and nearby candidate limits.Grids
Minimap policiesCompare outlines/fills, optional connections and custom thumbnails, including filled text boxes.Canvas
LayoutCompare layout strategies and their options on the same document.Extensions
Mermaid importPaste Mermaid source on the canvas, edit the native shapes, and copy Diagram JSON.Extensions

See application compositions for service-map and storyboard recipes.