@@ -1722,13 +1722,13 @@ describe('Test axes', function() {
1722
1722
width : 600 ,
1723
1723
height : 600
1724
1724
} ) . then ( function ( ) {
1725
- expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ - 0.13 , 2 ] ) ;
1725
+ expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ - 0.110 , 2 ] ) ;
1726
1726
1727
1727
return Plotly . relayout ( gd , {
1728
1728
'xaxis.insiderange' : [ 1 , 3 ]
1729
1729
} ) ;
1730
1730
} ) . then ( function ( ) {
1731
- expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ 0.866 , 3 ] ) ;
1731
+ expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ 0.889 , 3 ] ) ;
1732
1732
} ) . then ( done , done . fail ) ;
1733
1733
} ) ;
1734
1734
} ) ;
@@ -4908,32 +4908,32 @@ describe('Test axes', function() {
4908
4908
} )
4909
4909
. then ( function ( ) {
4910
4910
_assert ( 'on labels (defaults)' , {
4911
- ticks : [ 108 .75, 348 , 587 .25] ,
4912
- gridLines : [ 108 .75, 348 , 587 .25] ,
4911
+ ticks : [ 110 .75, 350 , 589 .25] ,
4912
+ gridLines : [ 110 .75, 350 , 589 .25] ,
4913
4913
tickLabels : [ 106.421 , 345.671 , 585.25 ]
4914
4914
} ) ;
4915
4915
return Plotly . relayout ( gd , 'xaxis.tickson' , 'boundaries' ) ;
4916
4916
} )
4917
4917
. then ( function ( ) {
4918
4918
_assert ( 'inside on boundaries' , {
4919
- ticks : [ 228.367 , 467.617 ] , // N.B. first and last tick are clipped
4920
- gridLines : [ 228.367 , 467.617 ] ,
4919
+ ticks : [ 230.369 , 469.619 ] , // N.B. first and last tick are clipped
4920
+ gridLines : [ 230.369 , 469.619 ] ,
4921
4921
tickLabels : [ 106.421875 , 345.671875 , 585.25 ]
4922
4922
} ) ;
4923
4923
return Plotly . relayout ( gd , 'xaxis.ticks' , 'outside' ) ;
4924
4924
} )
4925
4925
. then ( function ( ) {
4926
4926
_assert ( 'outside on boundaries' , {
4927
- ticks : [ 228.367 , 467.617 ] ,
4928
- gridLines : [ 228.367 , 467.617 ] ,
4927
+ ticks : [ 230.369 , 469.619 ] ,
4928
+ gridLines : [ 230.369 , 469.619 ] ,
4929
4929
tickLabels : [ 106.421875 , 345.671875 , 585.25 ]
4930
4930
} ) ;
4931
4931
return Plotly . restyle ( gd , 'x' , [ [ 1 , 2 , 1 ] ] ) ;
4932
4932
} )
4933
4933
. then ( function ( ) {
4934
4934
_assert ( 'fallback to *labels* on non-category axes' , {
4935
- ticks : [ 108 .75, 204.433 , 300.133 , 395 .85, 491.533 , 587 .25] ,
4936
- gridLines : [ 108 .75, 204.433 , 300.133 , 395 .85, 491.533 , 587 .25] ,
4935
+ ticks : [ 110 .75, 206.449 , 302.149 , 397 .85, 493.549 , 589 .25] ,
4936
+ gridLines : [ 110 .75, 206.449 , 302.149 , 397 .85, 493.549 , 589 .25] ,
4937
4937
tickLabels : [ 106.421 , 197.121 , 292.821 , 388.521 , 484.221 , 584.921 ]
4938
4938
} ) ;
4939
4939
} )
@@ -8152,11 +8152,11 @@ describe('more react tests', function() {
8152
8152
8153
8153
Plotly . newPlot ( gd , fig1 )
8154
8154
. then ( function ( ) {
8155
- expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ - 0.134 , 2 ] ) ;
8155
+ expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ - 0.110 , 2 ] ) ;
8156
8156
8157
8157
return Plotly . react ( gd , fig2 ) ;
8158
8158
} ) . then ( function ( ) {
8159
- expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ - 0.192 , 2 ] ) ;
8159
+ expect ( gd . _fullLayout . xaxis . range ) . toBeCloseToArray ( [ - 0.164 , 2 ] ) ;
8160
8160
} ) . then ( done , done . fail ) ;
8161
8161
} ) ;
8162
8162
} ) ;
0 commit comments