From 464ca2a248fc2fd3ddda6209d0a6a1780fd19b18 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Tue, 19 Jun 2012 15:51:54 +0400 Subject: [PATCH] network graph: change lines to be more github-like (removes some ambiguousness in graph presentation) --- vendor/assets/javascripts/branch-graph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/assets/javascripts/branch-graph.js b/vendor/assets/javascripts/branch-graph.js index 063a1677..9063d45c 100644 --- a/vendor/assets/javascripts/branch-graph.js +++ b/vendor/assets/javascripts/branch-graph.js @@ -79,10 +79,10 @@ function branchGraph(holder) { .attr({stroke: colors[c.space], "stroke-width": 2}); } else if (c.space < commits[i].space) { - r.path(["M", x - 5, y + .0001, "l-5-2,0,4,5,-2C", x - 5, y, x - 17, y + 2, x - 20, y - 10, "L", cx, y - 10, cx, cy]) + r.path(["M", x - 5, y + .0001, "l-5-2,0,4,5,-2C", x - 5, y, x - 17, y + 2, x - 20, y - 5, "L", cx, y - 5, cx, cy]) .attr({stroke: colors[commits[i].space], "stroke-width": 2}); } else { - r.path(["M", x - 5, y, "l-5-2,0,4,5,-2C", x - 5, y, x - 17, y - 2, x - 20, y + 10, "L", cx, y + 10, cx, cy]) + r.path(["M", x - 3, y + 4, "l-4,3,3,2,1,-4L", x - 10, y + 14, "L", x - 10, cy, cx, cy]) .attr({stroke: colors[commits[i].space], "stroke-width": 2}); } }