UNPKG

@rxflow/manhattan

Version:

Manhattan routing algorithm for ReactFlow - generates orthogonal paths with obstacle avoidance

15 lines 770 B
import { Point } from '../geometry'; import type { ObstacleMap } from '../obstacle'; import type { Direction } from '../options'; /** * Get accessible anchor points using binary search optimization * * @param anchor - The anchor point (on node edge) * @param position - The position/direction (right, left, top, bottom) * @param extensionDistance - The preferred extension distance * @param step - The step size for binary search * @param obstacleMap - The obstacle map for accessibility checking * @returns Array of accessible points, prioritized by distance */ export declare function getAnchorPoints(anchor: Point, position: Direction, extensionDistance: number, step: number, obstacleMap: ObstacleMap): Point[]; //# sourceMappingURL=getAnchorPoints.d.ts.map