feature(modeling): set di.isMarkerVisible for exclusive gateway as default
close #221
This commit is contained in:
parent
c5af54c1e3
commit
89a3a6bcd8
|
@ -908,7 +908,8 @@ function BpmnRenderer(events, styles, pathMap) {
|
||||||
'bpmn:InclusiveGateway': function(p, element) {
|
'bpmn:InclusiveGateway': function(p, element) {
|
||||||
var diamond = drawDiamond(p, element.width, element.height);
|
var diamond = drawDiamond(p, element.width, element.height);
|
||||||
|
|
||||||
/* circle path */ drawCircle(p, element.width, element.height, element.height * 0.24, {
|
/* circle path */
|
||||||
|
drawCircle(p, element.width, element.height, element.height * 0.24, {
|
||||||
strokeWidth: 2.5,
|
strokeWidth: 2.5,
|
||||||
fill: 'none'
|
fill: 'none'
|
||||||
});
|
});
|
||||||
|
|
|
@ -61,6 +61,10 @@ ElementFactory.prototype.create = function(elementType, attrs) {
|
||||||
businessObject.di.isExpanded = attrs.isExpanded;
|
businessObject.di.isExpanded = attrs.isExpanded;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (businessObject.$instanceOf('bpmn:ExclusiveGateway')) {
|
||||||
|
businessObject.di.isMarkerVisible = true;
|
||||||
|
}
|
||||||
|
|
||||||
size = this._getDefaultSize(businessObject);
|
size = this._getDefaultSize(businessObject);
|
||||||
|
|
||||||
attrs = assign({
|
attrs = assign({
|
||||||
|
|
Loading…
Reference in New Issue