columnGeometry()
Derive the sanitized geometry for a flow container and column layout.
Import
Section titled “Import”import { columnGeometry } from "@graphrefly/ts/solutions/reactive-layout";Signature
Section titled “Signature”function columnGeometry( container: FlowContainer, columns: FlowColumns | undefined,): { readonly paddingX: number; readonly paddingY: number; readonly count: number; readonly gap: number; readonly width: number; readonly height: number; readonly columnWidth: number;}Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
container | FlowContainer | Container dimensions and padding. |
columns | FlowColumns | undefined | Optional column configuration. |
Returns
Section titled “Returns”The resolved padding, width, height, and per-column width.
Example
Section titled “Example”columnGeometry({ width: 800, height: 600 }, { count: 2, gap: 24 });Source
Section titled “Source”packages/ts/src/solutions/reactive-layout/flow.ts