bpmn-js/lib/features/snapping/BpmnSnappingUtil.js
Philipp Fromme d42d5e3448 chore(resize-behavior): move resize behavior to seperate behavior
* setting minimum bounds and resize constraints moved to ResizeBehavior

Related to #1290
2019-06-05 14:36:39 +02:00

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