-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add <element.copyProperties> and <element.propertyCopied> event * copy category value if group is copied * add camunda-bpmn-moddle for integration tests BREAKING CHANGES * BpmnRules: removed <elements.paste> rule in favor of <elements.create> rule * BpmnRules: removed <element.paste> rule * removed CopyPasteBehavior in favor of CreateBehavior * use attrs.di property for fill and stroke when creating element through ElementFactory#createBpmnElement * CopyModelElementUtil: rename <property.clone> event to <element.copyProperty>
- Loading branch information
1 parent
4233bd0
commit 6c14110
Showing
34 changed files
with
3,930 additions
and
3,600 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import inherits from 'inherits'; | ||
|
||
import { is } from '../../../util/ModelUtil'; | ||
|
||
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor'; | ||
|
||
import { getParent } from '../util/ModelingUtil'; | ||
|
||
|
||
export default function CreateBehavior(injector) { | ||
injector.invoke(CommandInterceptor, this); | ||
|
||
this.preExecute('shape.create', 1500, function(event) { | ||
var context = event.context, | ||
parent = context.parent; | ||
|
||
if (is(parent, 'bpmn:Lane')) { | ||
context.parent = getParent(parent, 'bpmn:Participant'); | ||
} | ||
}); | ||
|
||
} | ||
|
||
|
||
CreateBehavior.$inject = [ 'injector' ]; | ||
|
||
inherits(CreateBehavior, CommandInterceptor); |
Oops, something went wrong.