fix(draw): remove inner boundary event fill

This commit is contained in:
Nico Rehwaldt 2015-07-14 16:20:32 +02:00
parent 75dc681d46
commit 7eb6d7af46

View File

@ -912,8 +912,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 */ /* circle path */
drawCircle(p, element.width, element.height, element.height * 0.24, { drawCircle(p, element.width, element.height, element.height * 0.24, {
strokeWidth: 2.5, strokeWidth: 2.5,
fill: 'none' fill: 'none'
}); });
@ -1214,16 +1214,16 @@ function BpmnRenderer(events, styles, pathMap) {
cancel = semantic.cancelActivity; cancel = semantic.cancelActivity;
var attrs = { var attrs = {
strokeLinecap: 'round',
strokeWidth: 1 strokeWidth: 1
}; };
if (!cancel) { if (!cancel) {
attrs.strokeDasharray = '6'; attrs.strokeDasharray = '6';
attrs.strokeLinecap = 'round';
} }
var outer = renderer('bpmn:Event')(p, element, attrs); var outer = renderer('bpmn:Event')(p, element, attrs);
/* inner path */ drawCircle(p, element.width, element.height, INNER_OUTER_DIST, attrs); /* inner path */ drawCircle(p, element.width, element.height, INNER_OUTER_DIST, assign(attrs, { fill: 'none' }));
renderEventContent(element, p); renderEventContent(element, p);