fix(draw): no opacity for boundary events
Ensure boundary events have no opacity. Fixed regression introduced with #727
This commit is contained in:
parent
2218b84af6
commit
c220bfb612
|
@ -490,7 +490,10 @@ function BpmnRenderer(eventBus, styles, pathMap, canvas, priority) {
|
||||||
|
|
||||||
var handlers = this.handlers = {
|
var handlers = this.handlers = {
|
||||||
'bpmn:Event': function(parentGfx, element, attrs) {
|
'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);
|
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) {
|
'bpmn:Activity': function(parentGfx, element, attrs) {
|
||||||
|
|
||||||
attrs = 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);
|
return drawRect(parentGfx, element.width, element.height, TASK_BORDER_RADIUS, attrs);
|
||||||
},
|
},
|
||||||
|
@ -1508,7 +1514,8 @@ function BpmnRenderer(eventBus, styles, pathMap, canvas, priority) {
|
||||||
var attrs = {
|
var attrs = {
|
||||||
strokeWidth: 1,
|
strokeWidth: 1,
|
||||||
fill: getFillColor(element),
|
fill: getFillColor(element),
|
||||||
stroke: getStrokeColor(element)
|
stroke: getStrokeColor(element),
|
||||||
|
fillOpacity: 1
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!cancel) {
|
if (!cancel) {
|
||||||
|
|
Loading…
Reference in New Issue