Skip to content
Extensions

Editor composition ​

An EditorExtension composes the canvas with optional UI. Toggle the left tool palette, right inspector, toolbar, canvas, minimap, and shape-attached badges. The minimap comes from vyuh_diagram_extension_minimap, installed beside the editor. Move the toolbar between the bottom and left edge without replacing the controller. Canvas visibility preserves the mounted canvas, document, selection, and history.

Loading interactive example…Open in new tab ↗
Opening the live canvas…

Composition ​

EditorExtension(container: ...) receives the existing canvas and controller. Use ordinary Flutter layout widgets to position DiagramToolPalette, DiagramToolbar, and DiagramInspector. Both tool controls support an Axis direction. There is no separate editor-extension contract: it extends DiagramFlutterExtension.

The shape badges are another concrete Flutter extension. They observe the public scene and camera without changing document geometry or intercepting pointer input.