BpmnSnappingUtil.js 293 B

123456789101112
  1. import { getOrientation } from 'diagram-js/lib/layout/LayoutUtil';
  2. export function getBoundaryAttachment(position, targetBounds) {
  3. var orientation = getOrientation(position, targetBounds, -15);
  4. if (orientation !== 'intersect') {
  5. return orientation;
  6. } else {
  7. return null;
  8. }
  9. }