resolveTextAdapter()
Resolve the text measurement adapter from block measurement options.
Import
Section titled “Import”import { resolveTextAdapter } from "@graphrefly/ts/solutions/reactive-layout";Signature
Section titled “Signature”function resolveTextAdapter(opts: MeasureBlockOptions): MeasurementAdapterParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
opts | MeasureBlockOptions | Block measurement options. |
Returns
Section titled “Returns”The selected text measurement adapter.
Example
Section titled “Example”resolveTextAdapter({ adapter });Source
Section titled “Source”packages/ts/src/solutions/reactive-layout/utils.ts