@@ -42,20 +42,20 @@ module.exports = function handleAnnotationDefaults(annIn, fullLayout) {
42
42
// positioning
43
43
var axLetters = [ 'x' , 'y' ] ,
44
44
arrowPosDflt = [ - 10 , - 30 ] ,
45
- tdMock = { _fullLayout : fullLayout } ;
45
+ gdMock = { _fullLayout : fullLayout } ;
46
46
for ( var i = 0 ; i < 2 ; i ++ ) {
47
47
var axLetter = axLetters [ i ] ;
48
48
49
49
// xref, yref
50
- var axRef = Axes . coerceRef ( annIn , annOut , tdMock , axLetter , '' , 'paper' ) ;
50
+ var axRef = Axes . coerceRef ( annIn , annOut , gdMock , axLetter , '' , 'paper' ) ;
51
51
52
52
// x, y
53
- Axes . coercePosition ( annOut , tdMock , coerce , axRef , axLetter , 0.5 ) ;
53
+ Axes . coercePosition ( annOut , gdMock , coerce , axRef , axLetter , 0.5 ) ;
54
54
55
55
if ( showArrow ) {
56
56
var arrowPosAttr = 'a' + axLetter ,
57
57
// axref, ayref
58
- aaxRef = Axes . coerceRef ( annIn , annOut , tdMock , arrowPosAttr , 'pixel' ) ;
58
+ aaxRef = Axes . coerceRef ( annIn , annOut , gdMock , arrowPosAttr , 'pixel' ) ;
59
59
60
60
// for now the arrow can only be on the same axis or specified as pixels
61
61
// TODO: sometime it might be interesting to allow it to be on *any* axis
@@ -66,7 +66,7 @@ module.exports = function handleAnnotationDefaults(annIn, fullLayout) {
66
66
67
67
// ax, ay
68
68
var aDflt = ( aaxRef === 'pixel' ) ? arrowPosDflt [ i ] : 0.4 ;
69
- Axes . coercePosition ( annOut , tdMock , coerce , aaxRef , arrowPosAttr , aDflt ) ;
69
+ Axes . coercePosition ( annOut , gdMock , coerce , aaxRef , arrowPosAttr , aDflt ) ;
70
70
}
71
71
72
72
// xanchor, yanchor
0 commit comments