fix(bpmnrenderer): correct rendering of intermediate link throw event
close #216
This commit is contained in:
parent
1c45d98f9a
commit
88eb0cb442
|
@ -448,7 +448,7 @@ function BpmnRenderer(events, styles, pathMap) {
|
|||
strokeWidth: 1
|
||||
});
|
||||
},
|
||||
'bpmn:LinkEventDefinition': function(p, event) {
|
||||
'bpmn:LinkEventDefinition': function(p, event, isThrowing) {
|
||||
var pathData = pathMap.getScaledPath('EVENT_LINK', {
|
||||
xScaleFactor: 1,
|
||||
yScaleFactor: 1,
|
||||
|
@ -460,8 +460,11 @@ function BpmnRenderer(events, styles, pathMap) {
|
|||
}
|
||||
});
|
||||
|
||||
var fill = isThrowing ? 'black' : 'none';
|
||||
|
||||
return drawPath(p, pathData, {
|
||||
strokeWidth: 1
|
||||
strokeWidth: 1,
|
||||
fill: fill
|
||||
});
|
||||
},
|
||||
'bpmn:ErrorEventDefinition': function(p, event, isThrowing) {
|
||||
|
@ -1511,4 +1514,4 @@ BpmnRenderer.prototype = Object.create(DefaultRenderer.prototype);
|
|||
|
||||
BpmnRenderer.$inject = [ 'eventBus', 'styles', 'pathMap' ];
|
||||
|
||||
module.exports = BpmnRenderer;
|
||||
module.exports = BpmnRenderer;
|
||||
|
|
Loading…
Reference in New Issue