GraphReFlyTS

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

ParameterTypeDescription
optsCellTextMeasurementsOptionsOptions 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