From aa3c0023f43c4b998b70b41fe99a44172f2d67eb Mon Sep 17 00:00:00 2001 From: legonigel Date: Sun, 9 Apr 2023 20:56:00 -0700 Subject: [PATCH] Fix #4195 start and end arrow have different sizes In #3938, it appears that the marker sizes for pointEnd was unintentionally changed. This reverts the change in marker size. It is also possible that the intention was to change the viewBox size for both start and end, but I doubt this since it makes the arrows significantly smaller than other markers. --- packages/mermaid/src/dagre-wrapper/markers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/dagre-wrapper/markers.js b/packages/mermaid/src/dagre-wrapper/markers.js index 1a3f74bee..c231eb3e5 100644 --- a/packages/mermaid/src/dagre-wrapper/markers.js +++ b/packages/mermaid/src/dagre-wrapper/markers.js @@ -142,7 +142,7 @@ const point = (elem, type) => { .append('marker') .attr('id', type + '-pointEnd') .attr('class', 'marker ' + type) - .attr('viewBox', '0 0 12 20') + .attr('viewBox', '0 0 10 10') .attr('refX', 10) .attr('refY', 5) .attr('markerUnits', 'userSpaceOnUse')