UNPKG

bpmn-js

Version:

A bpmn 2.0 toolkit and web modeler

12 lines (9 loc) 304 B
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; } }