@@ -577,22 +577,21 @@ annotations.draw = function(gd, index, opt, value) {
577
577
if ( edges . reduce ( function ( a , x ) {
578
578
return a ^
579
579
! ! 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 ] ) ;
581
581
} , false ) ) {
582
582
// no line or arrow - so quit drawArrow now
583
583
return ;
584
584
}
585
585
586
586
edges . forEach ( function ( x ) {
587
587
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 ] ) ;
589
589
if ( p ) {
590
590
arrowX0 = p . x ;
591
591
arrowY0 = p . y ;
592
592
}
593
593
} ) ;
594
594
595
-
596
595
var strokewidth = options . arrowwidth ,
597
596
arrowColor = options . arrowcolor ;
598
597
@@ -667,7 +666,7 @@ annotations.draw = function(gd, index, opt, value) {
667
666
668
667
anng . attr ( {
669
668
transform : 'rotate(' + textangle + ',' +
670
- xcenter + ',' + ycenter + ')'
669
+ xcenter + ',' + ycenter + ')'
671
670
} ) ;
672
671
} ,
673
672
doneFn : function ( dragged ) {
@@ -698,6 +697,7 @@ annotations.draw = function(gd, index, opt, value) {
698
697
element : ann . node ( ) ,
699
698
prepFn : function ( ) {
700
699
var pos = Lib . getTranslate ( ann ) ;
700
+
701
701
x0 = pos . x ;
702
702
y0 = pos . y ;
703
703
update = { } ;
0 commit comments