mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-17 00:26:07 +10:00
A tip is made slanting.
This commit is contained in:
@@ -132,17 +132,31 @@
|
||||
});
|
||||
|
||||
} else if (c.space < this.commits[i].space) {
|
||||
r.path([
|
||||
"M", x - 5, y,
|
||||
"l-5-2,0,4,5,-2",
|
||||
"L", x - 10, y,
|
||||
"L", x - 15, psy,
|
||||
"L", cx + 5, psy,
|
||||
"L", cx, cy])
|
||||
.attr({
|
||||
stroke: this.colors[this.commits[i].space],
|
||||
"stroke-width": 2
|
||||
});
|
||||
if (y == psy) {
|
||||
r.path([
|
||||
"M", x - 5, y,
|
||||
"l-5,-2,0,4,5,-2",
|
||||
"L", x - 10, y,
|
||||
"L", x - 15, psy,
|
||||
"L", cx + 5, psy,
|
||||
"L", cx, cy])
|
||||
.attr({
|
||||
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 {
|
||||
r.path([
|
||||
"M", x - 3, y + 6,
|
||||
|
||||
Reference in New Issue
Block a user