chore(import): decouple DI from businessObject

This commit is contained in:
Martin Stamm 2021-08-06 10:35:41 +02:00
parent a94795f957
commit edcd67f3d9
No known key found for this signature in database
GPG Key ID: B3A641060A8CBCF4

View File

@ -10,11 +10,6 @@ import {
export function isExpanded(element, di) {
if (di && is(di, 'bpmndi:BPMNPlane')) {
return true;
}
if (is(element, 'bpmn:CallActivity')) {
return false;
}
@ -22,6 +17,10 @@ export function isExpanded(element, di) {
if (is(element, 'bpmn:SubProcess')) {
di = di || getDi(element);
if (di && is(di, 'bpmndi:BPMNPlane')) {
return true;
}
return di && !!di.isExpanded;
}