diagram-js
Version:
A toolbox for displaying and modifying diagrams on the web
18 lines (15 loc) • 383 B
TypeScript
/**
* Returns the closest point on the connection towards a given reference point.
*
* @param waypoints
* @param reference
*
* @return
*/
export function getApproxIntersection(waypoints: Point[], reference: Point): Intersection | null;
type Point = import("../util/Types").Point;
export type Intersection = {
bendpoint?: boolean;
index: number;
point: Point;
};