mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-09 08:41:59 +00:00
d42d5e3448
* setting minimum bounds and resize constraints moved to ResizeBehavior Related to #1290
12 lines
304 B
JavaScript
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;
|
|
}
|
|
} |