Skip to content
PACKAGES

circleIntervalForBand()

Intersect a circle obstacle with a horizontal line band.

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

A Interval | null value.

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

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