@@ -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