chore(draw): slightly adjust message flow thickness

This commit is contained in:
Nico Rehwaldt 2015-05-06 13:13:56 +02:00
parent f0f475dad5
commit 2ef5342571
1 changed files with 11 additions and 7 deletions

View File

@ -82,7 +82,7 @@ function BpmnRenderer(events, styles, pathMap) {
}); });
createMarker('messageflow-start', { createMarker('messageflow-start', {
element: svg.circle(6, 6, 5), element: svg.circle(6, 6, 4),
attrs: { attrs: {
fill: 'white', fill: 'white',
stroke: 'black' stroke: 'black'
@ -91,12 +91,13 @@ function BpmnRenderer(events, styles, pathMap) {
}); });
createMarker('messageflow-end', { createMarker('messageflow-end', {
element: svg.path('M 1 5 L 11 10 L 1 15 Z'), element: svg.path('m 1 5 l 0 -3 l 7 3 l -7 3 z'),
attrs: { attrs: {
fill: 'white', fill: 'white',
stroke: 'black' stroke: 'black',
strokeLinecap: 'butt'
}, },
ref: { x: 11, y: 10 } ref: { x: 8.5, y: 5 }
}); });
createMarker('data-association-end', { createMarker('data-association-end', {
@ -1057,6 +1058,7 @@ function BpmnRenderer(events, styles, pathMap) {
'bpmn:SequenceFlow': function(p, element) { 'bpmn:SequenceFlow': function(p, element) {
var pathData = createPathFromConnection(element); var pathData = createPathFromConnection(element);
var path = drawPath(p, pathData, { var path = drawPath(p, pathData, {
strokeLinejoin: 'round',
markerEnd: marker('sequenceflow-end') markerEnd: marker('sequenceflow-end')
}); });
@ -1083,7 +1085,8 @@ function BpmnRenderer(events, styles, pathMap) {
attrs = assign({ attrs = assign({
strokeDasharray: '1,6', strokeDasharray: '1,6',
strokeLinecap: 'round' strokeLinecap: 'round',
strokeLinejoin: 'round'
}, attrs || {}); }, attrs || {});
// TODO(nre): style according to directed state // TODO(nre): style according to directed state
@ -1108,9 +1111,10 @@ function BpmnRenderer(events, styles, pathMap) {
var path = drawPath(p, pathData, { var path = drawPath(p, pathData, {
markerEnd: marker('messageflow-end'), markerEnd: marker('messageflow-end'),
markerStart: marker('messageflow-start'), markerStart: marker('messageflow-start'),
strokeDasharray: '10', strokeDasharray: '10, 12',
strokeLinecap: 'round', strokeLinecap: 'round',
strokeWidth: 1 strokeLinejoin: 'round',
strokeWidth: '1.5px'
}); });
if (semantic.messageRef) { if (semantic.messageRef) {