Commit efc86f97 authored by Dmitry Kalinkin's avatar Dmitry Kalinkin

small refactoring for branch-graph.js

parent f33a80a5
...@@ -79,10 +79,10 @@ function branchGraph(holder) { ...@@ -79,10 +79,10 @@ function branchGraph(holder) {
.attr({stroke: colors[c.space], "stroke-width": 2}); .attr({stroke: colors[c.space], "stroke-width": 2});
} else if (c.space < commits[i].space) { } 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 - 10, "L", cx, y - 10, cx, cy])
.attr({stroke: colors[commits[i].space], "stroke-width": 2}); .attr({stroke: colors[commits[i].space], "stroke-width": 2});
} else { } 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 - 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])
.attr({stroke: colors[commits[i].space], "stroke-width": 2}); .attr({stroke: colors[commits[i].space], "stroke-width": 2});
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment