Binding & Ports
StableConnect an arrow to a shape and it stays connected.
How arrows bind to shapes through ports and follow them as they move.
The idea
An arrow can either float freely or bind to a shape. A bound arrow remembers what it connects to, not just where that thing happens to sit right now. Move the box, and the arrow follows. This is what makes a diagram feel alive instead of falling apart the moment you rearrange it.
How it works
Arrows attach at ports, anchor spots on a shape's edge. Every shape exposes the four cardinal midpoints (top, bottom, left, right), and richer shapes add more: a table, for instance, offers a port per column row so arrows can target a specific field.
A binding gap (0–40, default 20) keeps a little breathing room between the arrowhead and the shape, so the head points at the box rather than jamming into its border.
Binding is dynamic. Drag an arrow endpoint onto a shape and it binds; drag it off and it unbinds; drag it onto a different shape and it rebinds. The arrow keeps re-choosing the nearest sensible port as you go.
Why binding beats free-floating
Free-floating arrows are just lines that happen to sit near two boxes. Reorganize the layout and they're suddenly pointing at nothing. Bound arrows preserve meaning: the connection is part of the data, so the diagram stays correct as it changes. Bindings pair especially well with elbow routing, which re-routes around shapes as they move.