measureBlock()
Measure one text/image/SVG block using only explicit or injected synchronous adapters.
Import
Section titled “Import”import { measureBlock } from "@graphrefly/ts/solutions/reactive-layout";Signature
Section titled “Signature”function measureBlock( block: ContentBlock, opts: MeasureBlockOptions,): MeasuredBlockParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
block | ContentBlock | block value used by the helper. |
opts | MeasureBlockOptions | Options that configure the helper. |
Returns
Section titled “Returns”A MeasuredBlock value.
Example
Section titled “Example”import { measureBlock } from "@graphrefly/ts/solutions/reactive-layout";Source
Section titled “Source”packages/ts/src/solutions/reactive-layout/block.ts