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.
18 lines
380 B
18 lines
380 B
import { getNewShapePosition } from './BpmnAutoPlaceUtil'; |
|
|
|
|
|
/** |
|
* BPMN auto-place behavior. |
|
* |
|
* @param {EventBus} eventBus |
|
*/ |
|
export default function AutoPlace(eventBus) { |
|
eventBus.on('autoPlace', function(context) { |
|
var shape = context.shape, |
|
source = context.source; |
|
|
|
return getNewShapePosition(source, shape); |
|
}); |
|
} |
|
|
|
AutoPlace.$inject = [ 'eventBus' ]; |