@@ -370,7 +370,7 @@ function drawOne(gd, index, opt, value) {
370
370
371
371
if ( annotationIsOffscreen ) return ;
372
372
}
373
- annPosPx [ axLetter ] = ax . _offset + ax . l2p ( ax . r2l ( options [ axLetter ] ) ) ;
373
+ annPosPx [ axLetter ] = ax . _offset + ax . r2p ( options [ axLetter ] ) ;
374
374
alignPosition = 0.5 ;
375
375
}
376
376
else {
@@ -383,7 +383,7 @@ function drawOne(gd, index, opt, value) {
383
383
384
384
var alignShift = 0 ;
385
385
if ( options [ 'a' + axLetter + 'ref' ] === axRef ) {
386
- annPosPx [ 'aa' + axLetter ] = ax . _offset + ax . l2p ( ax . r2l ( options [ 'a' + axLetter ] ) ) ;
386
+ annPosPx [ 'aa' + axLetter ] = ax . _offset + ax . r2p ( options [ 'a' + axLetter ] ) ;
387
387
} else {
388
388
if ( options . showarrow ) {
389
389
alignShift = options [ 'a' + axLetter ] ;
@@ -583,22 +583,22 @@ function drawOne(gd, index, opt, value) {
583
583
ann . call ( Lib . setTranslate , xcenter , ycenter ) ;
584
584
585
585
update [ annbase + '.x' ] = xa ?
586
- xa . l2r ( xa . p2l ( xa . l2p ( xa . r2l ( options . x ) ) + dx ) ) :
586
+ xa . p2r ( xa . r2p ( options . x ) + dx ) :
587
587
( ( arrowX + dx - gs . l ) / gs . w ) ;
588
588
update [ annbase + '.y' ] = ya ?
589
- ya . l2r ( ya . p2l ( ya . l2p ( ya . r2l ( options . y ) ) + dy ) ) :
589
+ ya . p2r ( ya . r2p ( options . y ) + dy ) :
590
590
( 1 - ( ( arrowY + dy - gs . t ) / gs . h ) ) ;
591
591
592
592
if ( options . axref === options . xref ) {
593
593
update [ annbase + '.ax' ] = xa ?
594
- xa . l2r ( xa . p2l ( xa . l2p ( xa . r2l ( options . ax ) ) + dx ) ) :
595
- ( ( arrowX + dx - gs . l ) / gs . w ) ;
594
+ xa . p2r ( xa . r2p ( options . ax ) + dx ) :
595
+ ( ( arrowX + dx - gs . l ) / gs . w ) ;
596
596
}
597
597
598
598
if ( options . ayref === options . yref ) {
599
599
update [ annbase + '.ay' ] = ya ?
600
- ya . l2r ( ya . p2l ( ya . l2p ( ya . r2l ( options . ay ) ) + dy ) ) :
601
- ( 1 - ( ( arrowY + dy - gs . t ) / gs . h ) ) ;
600
+ ya . p2r ( ya . r2p ( options . ay ) + dy ) :
601
+ ( 1 - ( ( arrowY + dy - gs . t ) / gs . h ) ) ;
602
602
}
603
603
604
604
anng . attr ( {
@@ -644,13 +644,13 @@ function drawOne(gd, index, opt, value) {
644
644
var csr = 'pointer' ;
645
645
if ( options . showarrow ) {
646
646
if ( options . axref === options . xref ) {
647
- update [ annbase + '.ax' ] = xa . l2r ( xa . p2l ( xa . l2p ( xa . r2l ( options . ax ) ) + dx ) ) ;
647
+ update [ annbase + '.ax' ] = xa . p2r ( xa . r2p ( options . ax ) + dx ) ;
648
648
} else {
649
649
update [ annbase + '.ax' ] = options . ax + dx ;
650
650
}
651
651
652
652
if ( options . ayref === options . yref ) {
653
- update [ annbase + '.ay' ] = ya . l2r ( ya . p2l ( ya . l2p ( ya . r2l ( options . ay ) ) + dy ) ) ;
653
+ update [ annbase + '.ay' ] = ya . p2r ( ya . r2p ( options . ay ) + dy ) ;
654
654
} else {
655
655
update [ annbase + '.ay' ] = options . ay + dy ;
656
656
}
0 commit comments