| 12345678910111213141516171819202122 |
- import { getAnchorPointAdjustment } from './LayoutUtil';
- /**
- * @typedef {import('diagram-js/lib/util/Types').Point} Point
- *
- * @typedef {import('./LayoutUtil').FindNewLineStartIndexHints} FindNewLineStartIndexHints
- */
- /**
- * Calculate the new point after the connection waypoints got updated.
- *
- * @param {Point} position
- * @param {Point[]} newWaypoints
- * @param {Point[]} oldWaypoints
- * @param {FindNewLineStartIndexHints} hints
- *
- * @return {Point}
- */
- export function getConnectionAdjustment(position, newWaypoints, oldWaypoints, hints) {
- return getAnchorPointAdjustment(position, newWaypoints, oldWaypoints, hints).point;
- }
|