# all files / bpmn-js/lib/features/snapping/ BpmnSnappingUtil.js

100% Statements 4/4
100% Branches 2/2
100% Functions 1/1
100% Lines 4/4

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12

    26×

    26×
    18×

    8×

     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;
      }
    }