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
1 changed files with 8 additions and 9 deletions

View File

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