mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-27 09:15:01 +00:00
2f64d1f4c5
CallActivities aren't expanded by default the behavior can be set by 'di.isExpanded' close #131
17 lines
459 B
JavaScript
17 lines
459 B
JavaScript
'use strict';
|
|
|
|
module.exports.isExpandedPool = function(semantic) {
|
|
return !!semantic.processRef;
|
|
};
|
|
|
|
module.exports.isExpanded = function(semantic) {
|
|
|
|
// Is type expanded by default?
|
|
var isDefaultExpanded = !(semantic.$instanceOf('bpmn:SubProcess') || semantic.$instanceOf('bpmn:CallActivity'));
|
|
|
|
// For non default expanded types -> evaluate the expanded flag
|
|
var isExpanded = isDefaultExpanded || semantic.di.isExpanded;
|
|
|
|
return isExpanded;
|
|
};
|