You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lineDef=`M ${p1.x}${p1.y} L ${lineX+radius}${p1.y}${arc}${lineX}${p1.y+offset} L ${lineX}${p2.y-radius}${arc2}${lineX-offset}${p2.y} L ${p2.x}${p2.y}`;
659
+
lineDef=`M ${p1.x}${p1.y} L ${lineX+radius}${p1.y}${arc}${lineX}${
660
+
p1.y+offset
661
+
} L ${lineX}${p2.y-radius}${arc2}${lineX-offset}${p2.y} L ${p2.x}${p2.y}`;
656
662
}
657
663
}elseif(dir==='BT'){
658
664
if(p1.x<p2.x){
659
665
// Source commit is on branch position left of destination commit
660
666
// so render arrow rightward with colour of destination branch
661
667
662
-
lineDef=`M ${p1.x}${p1.y} L ${lineX-radius}${p1.y}${arc}${lineX}${p1.y-offset} L ${lineX}${p2.y+radius}${arc2}${lineX+offset}${p2.y} L ${p2.x}${p2.y}`;
668
+
lineDef=`M ${p1.x}${p1.y} L ${lineX-radius}${p1.y}${arc}${lineX}${
669
+
p1.y-offset
670
+
} L ${lineX}${p2.y+radius}${arc2}${lineX+offset}${p2.y} L ${p2.x}${p2.y}`;
663
671
}else{
664
672
// Source commit is on branch position right of destination commit
665
673
// so render arrow leftward with colour of source branch
lineDef=`M ${p1.x}${p1.y} L ${lineX+radius}${p1.y}${arc2}${lineX}${p1.y-offset} L ${lineX}${p2.y+radius}${arc}${lineX-offset}${p2.y} L ${p2.x}${p2.y}`;
677
+
lineDef=`M ${p1.x}${p1.y} L ${lineX+radius}${p1.y}${arc2}${lineX}${
678
+
p1.y-offset
679
+
} L ${lineX}${p2.y+radius}${arc}${lineX-offset}${p2.y} L ${p2.x}${p2.y}`;
0 commit comments