@jalez/react-flow-smart-edge
Version:
Smart edge routing for @xyflow/react v12+ (maintained fork of @tisoap/react-flow-smart-edge)
14 lines (13 loc) • 502 B
TypeScript
import { Grid } from 'pathfinding';
import type { NodeBoundingBox, GraphBoundingBox } from './getBoundingBoxes';
import type { Position } from '@xyflow/react';
export type PointInfo = {
x: number;
y: number;
position: Position;
};
export declare const createGrid: (graph: GraphBoundingBox, nodes: NodeBoundingBox[], source: PointInfo, target: PointInfo, gridRatio?: number) => {
grid: Grid;
start: import("@xyflow/react").XYPosition;
end: import("@xyflow/react").XYPosition;
};