Skip to content
PACKAGES

rectIntervalForBand()

Intersect a rectangle obstacle with a horizontal line band.

import { rectIntervalForBand } from "@graphrefly/ts/solutions/reactive-layout";
function rectIntervalForBand(
obstacle: RectObstacle,
bandTop: number,
bandBottom: number,
): Interval | null
ParameterTypeDescription
obstacleRectObstacleobstacle value used by the helper.
bandTopnumberband top value used by the helper.
bandBottomnumberband bottom value used by the helper.

A Interval | null value.

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

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