feat: handle adding vertical lanes

Related to #2086

---------

Co-authored-by: Maciej Barelkowski <maciej.barelkowski@camunda.com>
This commit is contained in:
Daniel
2024-01-30 18:06:38 +01:00
committed by Maciej Barelkowski
parent 12d8cb4f31
commit 6e92713cb9
11 changed files with 1340 additions and 300 deletions

View File

@ -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);
}