You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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; |
|
} |
|
} |