@rxflow/manhattan
Version:
Manhattan routing algorithm for ReactFlow - generates orthogonal paths with obstacle avoidance
11 lines • 551 B
TypeScript
import { Point } from '../geometry';
import type { NodeLookup } from '../options';
/**
* Check if a path intersects with any obstacles (nodes)
* A path is considered to intersect if it has >= 2 unique intersection points with a node
*
* Note: pathPoints should be pre-processed by parseSVGPath which samples bezier curves
* into line segments, so this function works correctly with curved paths
*/
export declare function pathIntersectsObstacles(pathPoints: Point[], nodeLookup: NodeLookup): boolean;
//# sourceMappingURL=pathValidation.d.ts.map