API Reference
rectIntervalForBand()
Intersect a rectangle obstacle with a horizontal line band.
Import
import { rectIntervalForBand } from "@graphrefly/ts/solutions/reactive-layout";
Signature
function rectIntervalForBand(
obstacle: RectObstacle,
bandTop: number,
bandBottom: number,
): Interval | null
Parameters
| Parameter | Type | Description |
|---|---|---|
obstacle | RectObstacle | obstacle value used by the helper. |
bandTop | number | band top value used by the helper. |
bandBottom | number | band bottom value used by the helper. |
Returns
A Interval | null value.
Example
import { rectIntervalForBand } from "@graphrefly/ts/solutions/reactive-layout";
Source
packages/ts/src/solutions/reactive-layout/flow.ts