Skip to content
PACKAGES

carveTextLineSlots()

Subtract obstacle intervals from a horizontal text band.

import { carveTextLineSlots } from "@graphrefly/ts/solutions/reactive-layout";
function carveTextLineSlots(
base: Interval,
blocked: readonly Interval[],
minSlotWidth = 0,
): Interval[]
ParameterTypeDescription
baseIntervalbase value used by the helper.
blockedreadonly Interval[]blocked value used by the helper.
minSlotWidthunknownmin slot width value used by the helper.

A Interval[] value.

import { carveTextLineSlots } from "@graphrefly/ts/solutions/reactive-layout";

packages/ts/src/solutions/reactive-layout/line.ts