Layouts
Same components, three layout directions. Pass the diagram and Wire takes care of routing, spacing, and edges.
Three shapes
The diagram object is the single source of truth. Switching layout from LR to TB reflows nodes and edges; nothing else changes. Use the toolbar on each card to switch between the live canvas, the static SVG render, the JSON source, and the Mermaid export.
layout: 'LR'One source, three sinks
layout: 'TB'Top-to-bottom flow
layout: 'LR'Left-to-right flow