@@ -59,7 +59,7 @@ function handleAnnotationDefaults(annIn, fullLayout) {
59
59
coerce ( 'arrowwidth' , ( ( borderOpacity && borderWidth ) || 1 ) * 2 ) ;
60
60
coerce ( 'ax' ) ;
61
61
coerce ( 'ay' ) ;
62
- coerce ( 'absoluteArrowTail ' ) ;
62
+ coerce ( 'absolutetail ' ) ;
63
63
64
64
// if you have one part of arrow length you should have both
65
65
Lib . noneOrAll ( annIn , annOut , [ 'ax' , 'ay' ] ) ;
@@ -91,7 +91,7 @@ function handleAnnotationDefaults(annIn, fullLayout) {
91
91
newval = Lib . dateTime2ms ( annIn [ axLetter ] ) ;
92
92
if ( newval !== false ) annIn [ axLetter ] = newval ;
93
93
94
- if ( annIn . absoluteArrowTail ) {
94
+ if ( annIn . absolutetail ) {
95
95
var newvalB = Lib . dateTime2ms ( annIn [ 'a' + axLetter ] ) ;
96
96
if ( newvalB !== false ) annIn [ 'a' + axLetter ] = newvalB ;
97
97
}
@@ -456,7 +456,7 @@ annotations.draw = function(gd, index, opt, value) {
456
456
}
457
457
458
458
var alignShift = 0 ;
459
- if ( options . absoluteArrowTail ) {
459
+ if ( options . absolutetail ) {
460
460
annPosPx [ 'aa' + axLetter ] = ax . _offset + ax . l2p ( options [ 'a' + axLetter ] ) ;
461
461
} else {
462
462
if ( options . showarrow ) {
@@ -486,7 +486,7 @@ annotations.draw = function(gd, index, opt, value) {
486
486
// make sure the arrowhead (if there is one)
487
487
// and the annotation center are visible
488
488
if ( options . showarrow ) {
489
- if ( options . absoluteArrowTail ) {
489
+ if ( options . absolutetail ) {
490
490
arrowX = Lib . constrain ( annPosPx . x , 1 , fullLayout . width - 1 ) ;
491
491
arrowY = Lib . constrain ( annPosPx . y , 1 , fullLayout . height - 1 ) ;
492
492
} else {
@@ -512,7 +512,7 @@ annotations.draw = function(gd, index, opt, value) {
512
512
outerwidth - borderwidth , outerheight - borderwidth ) ;
513
513
514
514
var annX = 0 , annY = 0 ;
515
- if ( options . absoluteArrowTail ) {
515
+ if ( options . absolutetail ) {
516
516
annX = Math . round ( annPosPx . aax - outerwidth / 2 ) ;
517
517
annY = Math . round ( annPosPx . aay - outerheight / 2 ) ;
518
518
} else {
@@ -539,7 +539,7 @@ annotations.draw = function(gd, index, opt, value) {
539
539
// how-to-get-the-width-of-an-svg-tspan-element
540
540
var arrowX0 , arrowY0 ;
541
541
542
- if ( options . absoluteArrowTail ) {
542
+ if ( options . absolutetail ) {
543
543
arrowX0 = annPosPx . aax + dx ;
544
544
arrowY0 = annPosPx . aay + dy ;
545
545
} else {
@@ -648,7 +648,7 @@ annotations.draw = function(gd, index, opt, value) {
648
648
( options . y + dy / ya . _m ) :
649
649
( 1 - ( ( arrowY + dy - gs . t ) / gs . h ) ) ;
650
650
651
- if ( options . absoluteArrowTail ) {
651
+ if ( options . absolutetail ) {
652
652
update [ annbase + '.ax' ] = xa ?
653
653
( options . ax + dx / xa . _m ) :
654
654
( ( arrowX + dx - gs . l ) / gs . w ) ;
@@ -698,7 +698,7 @@ annotations.draw = function(gd, index, opt, value) {
698
698
ann . call ( Lib . setTranslate , x0 + dx , y0 + dy ) ;
699
699
var csr = 'pointer' ;
700
700
if ( options . showarrow ) {
701
- if ( options . absoluteArrowTail ) {
701
+ if ( options . absolutetail ) {
702
702
update [ annbase + '.ax' ] = xa . p2l ( xa . l2p ( options . ax ) + dx ) ;
703
703
update [ annbase + '.ay' ] = ya . p2l ( ya . l2p ( options . ay ) + dy ) ;
704
704
} else {
0 commit comments