bpmn-js
Version:
A bpmn 2.0 toolkit and web modeler
15 lines (10 loc) • 334 B
JavaScript
;
var getOrientation = require('diagram-js/lib/layout/LayoutUtil').getOrientation;
module.exports.getBoundaryAttachment = function(position, targetBounds) {
var orientation = getOrientation(position, targetBounds, -15);
if (orientation !== 'intersect') {
return orientation;
} else {
return null;
}
};