distributeRects()
function distributeRects(rects, axis): Rect[];Spreads rectangles so the gaps between them are equal. Order follows position.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
rects |
Rect[] |
axis |
"horizontal" | "vertical" |
Returns
Section titled “Returns”Rect[]