Diagram and container layout modes

A diagram (or a container) places its shapes with one of several layout modes, set by layout = :<mode>. The default is free placement from explicit coordinates; the auto-layout modes derive positions from the connection graph instead.

ModeBehaviour
:freeDefault — shapes sit at the explicit x/y coordinates you give them
:gridShapes flow into rows and columns of a regular grid
:layeredShapes are topologically ranked from the edges and stacked top-to-bottom, elbow-routed (flowcharts)
:forceA force-directed solver spreads connected shapes apart and pulls neighbours together
:radialOne hub sits at the centre with every other shape on a ring around it (hub-and-spoke)

Related

- diagram

- flowchart shapes

- Connections