API Reference
computeFlowLines()
Flow prepared text through columns and carved obstacle slots.
Import
import { computeFlowLines } from "@graphrefly/ts/solutions/reactive-layout";
Signature
function computeFlowLines(
segments: readonly PreparedSegment[],
opts: ComputeFlowLinesOptions,
): FlowLinesResult
Parameters
| Parameter | Type | Description |
|---|---|---|
segments | readonly PreparedSegment[] | segments value used by the helper. |
opts | ComputeFlowLinesOptions | Options that configure the helper. |
Returns
A FlowLinesResult value.
Example
import { computeFlowLines } from "@graphrefly/ts/solutions/reactive-layout";
Source
packages/ts/src/solutions/reactive-layout/flow.ts