mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-08-18 06:31:33 +08:00
21 lines
527 B
JavaScript
21 lines
527 B
JavaScript
import { getAnchorPointAdjustment } from './LayoutUtil';
|
|
|
|
/**
|
|
* @typedef {import('diagram-js/lib/util/Types').Point} Point
|
|
*/
|
|
|
|
/**
|
|
* Calculate the new point after the connection waypoints got updated.
|
|
*
|
|
* @param {Point} position
|
|
* @param {Point[]} newWaypoints
|
|
* @param {Point[]} oldWaypoints
|
|
* @param {Object} hints
|
|
*
|
|
* @return {Point}
|
|
*/
|
|
export function getConnectionAdjustment(position, newWaypoints, oldWaypoints, hints) {
|
|
return getAnchorPointAdjustment(position, newWaypoints, oldWaypoints, hints).point;
|
|
}
|
|
|