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) {
|
||||
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,
|
||||
fill: 'none'
|
||||
});
|
||||
|
|
|
@ -61,14 +61,18 @@ ElementFactory.prototype.create = function(elementType, attrs) {
|
|||
businessObject.di.isExpanded = attrs.isExpanded;
|
||||
}
|
||||
|
||||
if (businessObject.$instanceOf('bpmn:ExclusiveGateway')) {
|
||||
businessObject.di.isMarkerVisible = true;
|
||||
}
|
||||
|
||||
size = this._getDefaultSize(businessObject);
|
||||
|
||||
attrs = assign({
|
||||
businessObject: businessObject,
|
||||
id: businessObject.id
|
||||
}, size, attrs);
|
||||
attrs = assign({
|
||||
businessObject: businessObject,
|
||||
id: businessObject.id
|
||||
}, size, attrs);
|
||||
|
||||
return this.baseCreate(elementType, attrs);
|
||||
return this.baseCreate(elementType, attrs);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue