mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-19 20:28:06 +00:00
chore(import): decouple DI from businessObject
This commit is contained in:
parent
a94795f957
commit
edcd67f3d9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user