API Reference
cellTextMeasurements()
Provider helper for fixed-cell terminal/snapshot text measurement.
Import
import { cellTextMeasurements } from "@graphrefly/ts/solutions/reactive-layout";
Signature
function cellTextMeasurements(opts: CellTextMeasurementsOptions): Node<Measurements>
Parameters
| Parameter | Type | Description |
|---|---|---|
opts | CellTextMeasurementsOptions | Options that configure the helper. |
Returns
A Node<Measurements> value.
Example
import { cellTextMeasurements } from "@graphrefly/ts/solutions/reactive-layout";
Source
packages/ts/src/solutions/reactive-layout/measurements.ts