bpmn-js
Version:
A bpmn 2.0 toolkit and web modeler
20 lines (18 loc) • 475 B
TypeScript
/**
* Calculate the new point after the connection waypoints got updated.
*
* @param position
* @param newWaypoints
* @param oldWaypoints
* @param hints
*
* @return
*/
export function getConnectionAdjustment(
position: Point,
newWaypoints: Point[],
oldWaypoints: Point[],
hints: FindNewLineStartIndexHints
): Point;
type Point = import("diagram-js/lib/util/Types").Point;
type FindNewLineStartIndexHints = import("./LayoutUtil").FindNewLineStartIndexHints;