Skip to content
PACKAGES

measureBlock()

Measure one text/image/SVG block using only explicit or injected synchronous adapters.

import { measureBlock } from "@graphrefly/ts/solutions/reactive-layout";
function measureBlock(
block: ContentBlock,
opts: MeasureBlockOptions,
): MeasuredBlock
ParameterTypeDescription
blockContentBlockblock value used by the helper.
optsMeasureBlockOptionsOptions that configure the helper.

A MeasuredBlock value.

import { measureBlock } from "@graphrefly/ts/solutions/reactive-layout";

packages/ts/src/solutions/reactive-layout/block.ts