distribute_nodes
Space or align nodes along an axis with modes for fixed gap, even spacing, centering, and cross-axis alignment, defaulting to parent bounds.
Instructions
Space or align a set of nodes along an axis. axis: horizontal|vertical. mode: gap (fixed gap), spaceBetween/evenly (fill bounds), center (center the cluster). crossAlign: none|start|center|end. Bounds default to the common parent; pass bounds {x1,y1,x2,y2} to override (horizontal coordinates) or {y1,x1,y2,x2} semantics for vertical.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap | No | ||
| axis | No | ||
| mode | No | ||
| bounds | No | ||
| nodeIds | Yes | ||
| crossAlign | No |