feature(modeling): set di.isMarkerVisible for exclusive gateway as default

close #221
This commit is contained in:
jdotzki 2015-03-05 14:18:53 +01:00
parent c5af54c1e3
commit 89a3a6bcd8
2 changed files with 11 additions and 6 deletions

View File

@ -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'
}); });

View File

@ -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({