computeBlockFlow()
Stack measured blocks vertically with margins and a fixed gap.
Import
Section titled “Import”import { computeBlockFlow } from "@graphrefly/ts/solutions/reactive-layout";Signature
Section titled “Signature”function computeBlockFlow( blocks: readonly MeasuredBlock[], gap = 0,): readonly PositionedBlock[]Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
blocks | readonly MeasuredBlock[] | blocks value used by the helper. |
gap | unknown | gap value used by the helper. |
Returns
Section titled “Returns”A readonly PositionedBlock[] value.
Example
Section titled “Example”import { computeBlockFlow } from "@graphrefly/ts/solutions/reactive-layout";Source
Section titled “Source”packages/ts/src/solutions/reactive-layout/block.ts