GraphReFlyTS

API Reference

circleIntervalForBand()

Intersect a circle obstacle with a horizontal line band.

Import

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

Signature

function circleIntervalForBand(
	obstacle: CircleObstacle,
	bandTop: number,
	bandBottom: number,
): Interval | null

Parameters

ParameterTypeDescription
obstacleCircleObstacleobstacle value used by the helper.
bandTopnumberband top value used by the helper.
bandBottomnumberband bottom value used by the helper.

Returns

A Interval | null value.

Example

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

Source

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