Skip to content
PACKAGES

computeFlowLines()

Flow prepared text through columns and carved obstacle slots.

import { computeFlowLines } from "@graphrefly/ts/solutions/reactive-layout";
function computeFlowLines(
segments: readonly PreparedSegment[],
opts: ComputeFlowLinesOptions,
): FlowLinesResult
ParameterTypeDescription
segmentsreadonly PreparedSegment[]segments value used by the helper.
optsComputeFlowLinesOptionsOptions that configure the helper.

A FlowLinesResult value.

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

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