fix(BpmnRenderer): correctly render message flows

Related to #1
This commit is contained in:
Nico Rehwaldt 2014-03-21 16:54:34 +01:00
parent 8055914d41
commit bcdac47882

View File

@ -46,14 +46,14 @@ function BpmnRenderer(events) {
.attr({ .attr({
fill: 'white', fill: 'white',
stroke: 'black', stroke: 'black',
'stroke-width': 1.5, 'stroke-width': 1,
'stroke-dasharray': '1,0' 'stroke-dasharray': '1,0'
}) })
.marker(0, 0, 10, 10, 4, 4) .marker(0, 0, 10, 10, 4, 4)
.attr({ .attr({
markerUnits: 'strokeWidth', markerUnits: 'strokeWidth',
markerWidth: 8, markerWidth: 7,
markerHeight: 8, markerHeight: 7,
orient: 'auto', orient: 'auto',
overflow: 'visible' overflow: 'visible'
})); }));
@ -63,16 +63,16 @@ function BpmnRenderer(events) {
.path('M 0 0 L 10 5 L 0 10') .path('M 0 0 L 10 5 L 0 10')
.attr({ .attr({
stroke: 'black', stroke: 'black',
fill: 'none', fill: 'white',
'stroke-width': 1.5, 'stroke-width': 1,
'stroke-linecap': 'round', 'stroke-linecap': 'round',
'stroke-dasharray': '1,0' 'stroke-dasharray': '1,0'
}) })
.marker(0, 0, 10, 10, 12, 5) .marker(0, 0, 10, 10, 10, 5)
.attr({ .attr({
markerUnits: 'strokeWidth', markerUnits: 'strokeWidth',
markerWidth: 10, markerWidth: 4,
markerHeight: 5, markerHeight: 4,
orient: 'auto', orient: 'auto',
overflow: 'visible' overflow: 'visible'
})); }));
@ -226,7 +226,6 @@ function BpmnRenderer(events) {
return diamond; return diamond;
}, },
'bpmn:SequenceFlow': function(p, data) { 'bpmn:SequenceFlow': function(p, data) {
var polyline = drawLine(p, data.waypoints); var polyline = drawLine(p, data.waypoints);