mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-11 01:25:48 +00:00
9be61259bd
We use ES modules, so 'use strict' is not necessary anymore.
18 lines
348 B
JavaScript
18 lines
348 B
JavaScript
/**
|
|
* Select element after auto placement.
|
|
*
|
|
* @param {EventBus} eventBus
|
|
* @param {Selection} selection
|
|
*/
|
|
export default function AutoPlaceSelectionBehavior(eventBus, selection) {
|
|
|
|
eventBus.on('autoPlace.end', 500, function(e) {
|
|
selection.select(e.shape);
|
|
});
|
|
|
|
}
|
|
|
|
AutoPlaceSelectionBehavior.$inject = [
|
|
'eventBus',
|
|
'selection'
|
|
]; |