arrange
Compute grid, row, or column layout boxes with configurable gap and padding, returning coordinates for each cell so you can place elements by intent rather than hand-computing pixels.
Instructions
Compute "count" aligned child boxes inside "box" ({x,y,w,h}) for a "grid" / "row" / "column" layout, so you place cells by intent instead of hand-computing pixels. "gap" is the space between cells, "pad" the inset from the box edge, "cols" forces a grid column count (default ~sqrt). Returns {boxes:[{x,y,w,h}, ...]}; spread them across your elements' geometry (bake them in as normal elements — they stay individually editable).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| box | Yes | ||
| gap | No | ||
| pad | No | ||
| cols | No | ||
| count | Yes | ||
| layout | No | grid |