bpmn-js/lib/features/snapping/BpmnSnappingUtil.js

12 lines
304 B
JavaScript

import { getOrientation } from 'diagram-js/lib/layout/LayoutUtil';
export function getBoundaryAttachment(position, targetBounds) {
var orientation = getOrientation(position, targetBounds, -15);
if (orientation !== 'intersect') {
return orientation;
} else {
return null;
}
}