Skip to content

Commit 3a827a6

Browse files
MFedMFed
MFed
authored and
MFed
committed
Merge remote-tracking branch 'origin/absolutetail' into absolutetail
# Conflicts: # src/components/annotations/attributes.js # src/components/annotations/index.js # test/image/mocks/annotations.json # test/jasmine/tests/annotations_test.js
2 parents 925360f + 4aa569d commit 3a827a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/annotations/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,22 +577,21 @@ annotations.draw = function(gd, index, opt, value) {
577577
if(edges.reduce(function(a, x) {
578578
return a ^
579579
!!lineIntersect(arrowX, arrowY, arrowX + 1e6, arrowY + 1e6,
580-
x[0], x[1], x[2], x[3]);
580+
x[0], x[1], x[2], x[3]);
581581
}, false)) {
582582
// no line or arrow - so quit drawArrow now
583583
return;
584584
}
585585

586586
edges.forEach(function(x) {
587587
var p = lineIntersect(arrowX0, arrowY0, arrowX, arrowY,
588-
x[0], x[1], x[2], x[3]);
588+
x[0], x[1], x[2], x[3]);
589589
if(p) {
590590
arrowX0 = p.x;
591591
arrowY0 = p.y;
592592
}
593593
});
594594

595-
596595
var strokewidth = options.arrowwidth,
597596
arrowColor = options.arrowcolor;
598597

@@ -667,7 +666,7 @@ annotations.draw = function(gd, index, opt, value) {
667666

668667
anng.attr({
669668
transform: 'rotate(' + textangle + ',' +
670-
xcenter + ',' + ycenter + ')'
669+
xcenter + ',' + ycenter + ')'
671670
});
672671
},
673672
doneFn: function(dragged) {
@@ -698,6 +697,7 @@ annotations.draw = function(gd, index, opt, value) {
698697
element: ann.node(),
699698
prepFn: function() {
700699
var pos = Lib.getTranslate(ann);
700+
701701
x0 = pos.x;
702702
y0 = pos.y;
703703
update = {};

0 commit comments

Comments
 (0)