circleIntervalForBand()
Intersect a circle obstacle with a horizontal line band.
Import
Section titled “Import”import { circleIntervalForBand } from "@graphrefly/ts/solutions/reactive-layout";Signature
Section titled “Signature”function circleIntervalForBand( obstacle: CircleObstacle, bandTop: number, bandBottom: number,): Interval | nullParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
obstacle | CircleObstacle | 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
Section titled “Returns”A Interval | null value.
Example
Section titled “Example”import { circleIntervalForBand } from "@graphrefly/ts/solutions/reactive-layout";Source
Section titled “Source”packages/ts/src/solutions/reactive-layout/flow.ts