bpmn-js/lib/features/auto-place/AutoPlaceSelectionBehavior.js

18 lines
348 B
JavaScript
Raw Normal View History

2017-12-08 20:06:08 +00:00
/**
* Select element after auto placement.
*
* @param {EventBus} eventBus
* @param {Selection} selection
*/
export default function AutoPlaceSelectionBehavior(eventBus, selection) {
2017-12-08 20:06:08 +00:00
eventBus.on('autoPlace.end', 500, function(e) {
selection.select(e.shape);
});
}
AutoPlaceSelectionBehavior.$inject = [
'eventBus',
'selection'
];