carveTextLineSlots()
Subtract obstacle intervals from a horizontal text band.
Import
Section titled “Import”import { carveTextLineSlots } from "@graphrefly/ts/solutions/reactive-layout";Signature
Section titled “Signature”function carveTextLineSlots( base: Interval, blocked: readonly Interval[], minSlotWidth = 0,): Interval[]Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
base | Interval | base value used by the helper. |
blocked | readonly Interval[] | blocked value used by the helper. |
minSlotWidth | unknown | min slot width value used by the helper. |
Returns
Section titled “Returns”A Interval[] value.
Example
Section titled “Example”import { carveTextLineSlots } from "@graphrefly/ts/solutions/reactive-layout";Source
Section titled “Source”packages/ts/src/solutions/reactive-layout/line.ts