You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
479 B
17 lines
479 B
3 years ago
|
import { getAnchorPointAdjustment } from './LayoutUtil';
|
||
|
|
||
|
/**
|
||
|
* Calculate the new point after the connection waypoints got updated.
|
||
|
*
|
||
|
* @param {djs.model.Label} label
|
||
|
* @param {Array<Point>} newWaypoints
|
||
|
* @param {Array<Point>} oldWaypoints
|
||
|
* @param {Object} hints
|
||
|
*
|
||
|
* @return {Point} point
|
||
|
*/
|
||
|
export function getConnectionAdjustment(position, newWaypoints, oldWaypoints, hints) {
|
||
|
return getAnchorPointAdjustment(position, newWaypoints, oldWaypoints, hints).point;
|
||
|
}
|
||
|
|