mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-02 12:13:42 +00:00
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,14 +61,18 @@ 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({
|
||||||
businessObject: businessObject,
|
businessObject: businessObject,
|
||||||
id: businessObject.id
|
id: businessObject.id
|
||||||
}, size, attrs);
|
}, size, attrs);
|
||||||
|
|
||||||
return this.baseCreate(elementType, attrs);
|
return this.baseCreate(elementType, attrs);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user