measureBlocks()
Measure a block list while sharing a measurement cache across text blocks.
Import
Section titled “Import”import { measureBlocks } from "@graphrefly/ts/solutions/reactive-layout";Signature
Section titled “Signature”function measureBlocks( blocks: readonly ContentBlock[], opts: MeasureBlockOptions,): readonly MeasuredBlock[]Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
blocks | readonly ContentBlock[] | blocks value used by the helper. |
opts | MeasureBlockOptions | Options that configure the helper. |
Returns
Section titled “Returns”A readonly MeasuredBlock[] value.
Example
Section titled “Example”import { measureBlocks } from "@graphrefly/ts/solutions/reactive-layout";Source
Section titled “Source”packages/ts/src/solutions/reactive-layout/block.ts