Commit 14c2a37d authored by Sato Hiroyuki's avatar Sato Hiroyuki

A tip is made slanting.

parent 38fce3de
...@@ -132,17 +132,31 @@ ...@@ -132,17 +132,31 @@
}); });
} else if (c.space < this.commits[i].space) { } else if (c.space < this.commits[i].space) {
r.path([ if (y == psy) {
"M", x - 5, y, r.path([
"l-5-2,0,4,5,-2", "M", x - 5, y,
"L", x - 10, y, "l-5,-2,0,4,5,-2",
"L", x - 15, psy, "L", x - 10, y,
"L", cx + 5, psy, "L", x - 15, psy,
"L", cx, cy]) "L", cx + 5, psy,
.attr({ "L", cx, cy])
stroke: this.colors[this.commits[i].space], .attr({
"stroke-width": 2 stroke: this.colors[this.commits[i].space],
}); "stroke-width": 2
});
} else {
r.path([
"M", x - 3, y - 6,
"l-4,-3,4,-2,0,5",
"L", x - 5, y - 10,
"L", x - 10, psy,
"L", cx + 5, psy,
"L", cx, cy])
.attr({
stroke: this.colors[this.commits[i].space],
"stroke-width": 2
});
}
} else { } else {
r.path([ r.path([
"M", x - 3, y + 6, "M", x - 3, y + 6,
......
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