fix(bpmnrenderer): correct rendering of intermediate link throw event

close #216
This commit is contained in:
jdotzki 2015-03-04 13:29:46 +01:00
parent 1c45d98f9a
commit 88eb0cb442
1 changed files with 6 additions and 3 deletions

View File

@ -448,7 +448,7 @@ function BpmnRenderer(events, styles, pathMap) {
strokeWidth: 1 strokeWidth: 1
}); });
}, },
'bpmn:LinkEventDefinition': function(p, event) { 'bpmn:LinkEventDefinition': function(p, event, isThrowing) {
var pathData = pathMap.getScaledPath('EVENT_LINK', { var pathData = pathMap.getScaledPath('EVENT_LINK', {
xScaleFactor: 1, xScaleFactor: 1,
yScaleFactor: 1, yScaleFactor: 1,
@ -460,8 +460,11 @@ function BpmnRenderer(events, styles, pathMap) {
} }
}); });
var fill = isThrowing ? 'black' : 'none';
return drawPath(p, pathData, { return drawPath(p, pathData, {
strokeWidth: 1 strokeWidth: 1,
fill: fill
}); });
}, },
'bpmn:ErrorEventDefinition': function(p, event, isThrowing) { 'bpmn:ErrorEventDefinition': function(p, event, isThrowing) {
@ -1511,4 +1514,4 @@ BpmnRenderer.prototype = Object.create(DefaultRenderer.prototype);
BpmnRenderer.$inject = [ 'eventBus', 'styles', 'pathMap' ]; BpmnRenderer.$inject = [ 'eventBus', 'styles', 'pathMap' ];
module.exports = BpmnRenderer; module.exports = BpmnRenderer;