fix(draw): no opacity for boundary events

Ensure boundary events have no opacity.

Fixed regression introduced with #727
This commit is contained in:
Nico Rehwaldt 2017-12-15 14:35:18 +01:00
parent 2218b84af6
commit c220bfb612
1 changed files with 10 additions and 3 deletions

View File

@ -490,7 +490,10 @@ function BpmnRenderer(eventBus, styles, pathMap, canvas, priority) {
var handlers = this.handlers = {
'bpmn:Event': function(parentGfx, element, attrs) {
attrs.fillOpacity = attrs.fillOpacity || DEFAULT_FILL_OPACITY;
if (!('fillOpacity' in attrs)) {
attrs.fillOpacity = DEFAULT_FILL_OPACITY;
}
return drawCircle(parentGfx, element.width, element.height, attrs);
},
@ -808,7 +811,10 @@ function BpmnRenderer(eventBus, styles, pathMap, canvas, priority) {
'bpmn:Activity': function(parentGfx, element, attrs) {
attrs = attrs || {};
attrs.fillOpacity = attrs.fillOpacity || DEFAULT_FILL_OPACITY;
if (!('fillOpacity' in attrs)) {
attrs.fillOpacity = DEFAULT_FILL_OPACITY;
}
return drawRect(parentGfx, element.width, element.height, TASK_BORDER_RADIUS, attrs);
},
@ -1508,7 +1514,8 @@ function BpmnRenderer(eventBus, styles, pathMap, canvas, priority) {
var attrs = {
strokeWidth: 1,
fill: getFillColor(element),
stroke: getStrokeColor(element)
stroke: getStrokeColor(element),
fillOpacity: 1
};
if (!cancel) {