ConnectionLayoutUtil.d.ts 475 B

12345678910111213141516171819
  1. /**
  2. * Calculate the new point after the connection waypoints got updated.
  3. *
  4. * @param position
  5. * @param newWaypoints
  6. * @param oldWaypoints
  7. * @param hints
  8. *
  9. * @return
  10. */
  11. export function getConnectionAdjustment(
  12. position: Point,
  13. newWaypoints: Point[],
  14. oldWaypoints: Point[],
  15. hints: FindNewLineStartIndexHints
  16. ): Point;
  17. type Point = import('diagram-js/lib/util/Types').Point;
  18. type FindNewLineStartIndexHints = import('./LayoutUtil').FindNewLineStartIndexHints;