'row' — all panels in a single row (side by side).
'column' — all panels in a single column (stacked).
{ rows?, columns? } — chunk panels into a grid with the given number of
columns (or ceil(count / rows) columns when only rows is set). The
last row may be shorter (ragged grids are supported).
When omitted, the binders infer the grid from panel geometry: panel
bounding-box centers are clustered by y (rows) and sorted by x within each
row, falling back to parsing transform="translate(x,y)" when bounding
boxes are unavailable (e.g. jsdom), and finally to a single row in DOM
order. An explicit layout always wins over geometry.
Grid layout hint for multi-panel binds.
'row'— all panels in a single row (side by side).'column'— all panels in a single column (stacked).{ rows?, columns? }— chunk panels into a grid with the given number of columns (orceil(count / rows)columns when onlyrowsis set). The last row may be shorter (ragged grids are supported).When omitted, the binders infer the grid from panel geometry: panel bounding-box centers are clustered by y (rows) and sorted by x within each row, falling back to parsing
transform="translate(x,y)"when bounding boxes are unavailable (e.g. jsdom), and finally to a single row in DOM order. An explicitlayoutalways wins over geometry.