skiaTextMeasurements()
Skia provider helper for caller-injected synchronous text measurement.
This subpath does not import a Skia package; hosts expose the capability as graph data.
Import
Section titled “Import”import { skiaTextMeasurements } from "@graphrefly/ts/solutions/reactive-layout/skia";Signature
Section titled “Signature”function skiaTextMeasurements(opts: SkiaTextMeasurementsOptions): Node<Measurements>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
opts | SkiaTextMeasurementsOptions | Options that configure the helper. |
Returns
Section titled “Returns”A Node<Measurements> value.
Example
Section titled “Example”import { skiaTextMeasurements } from "@graphrefly/ts/solutions/reactive-layout/skia";Source
Section titled “Source”packages/ts/src/solutions/reactive-layout/skia/index.ts