mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-08-26 04:32:44 +08:00
feat: handle adding vertical lanes
Related to #2086 --------- Co-authored-by: Maciej Barelkowski <maciej.barelkowski@camunda.com>
This commit is contained in:

committed by
Maciej Barelkowski

parent
12d8cb4f31
commit
6e92713cb9
@ -207,6 +207,10 @@ ElementFactory.prototype.createElement = function(elementType, attrs) {
|
||||
attrs = applyAttribute(di, attrs, 'isExpanded');
|
||||
}
|
||||
|
||||
if (isAny(businessObject, [ 'bpmn:Lane', 'bpmn:Participant' ])) {
|
||||
attrs = applyAttribute(di, attrs, 'isHorizontal');
|
||||
}
|
||||
|
||||
if (is(businessObject, 'bpmn:SubProcess')) {
|
||||
attrs.collapsed = !isExpanded(businessObject, di);
|
||||
}
|
||||
|
Reference in New Issue
Block a user