@@ -406,7 +406,7 @@ describe('hover info', function() {
406
406
407
407
it ( 'should display the correct format when ticklabels true' , function ( ) {
408
408
Plotly . plot ( this . gd , data , layout ) ;
409
- mouseEvent ( 'mousemove' , 310 , 220 ) ;
409
+ mouseEvent ( 'mousemove' , 303 , 213 ) ;
410
410
411
411
var hovers = d3 . selectAll ( 'g.hovertext' ) ;
412
412
@@ -417,7 +417,7 @@ describe('hover info', function() {
417
417
it ( 'should display the correct format when ticklabels false' , function ( ) {
418
418
layout . yaxis . showticklabels = false ;
419
419
Plotly . plot ( this . gd , data , layout ) ;
420
- mouseEvent ( 'mousemove' , 310 , 220 ) ;
420
+ mouseEvent ( 'mousemove' , 303 , 213 ) ;
421
421
422
422
var hovers = d3 . selectAll ( 'g.hovertext' ) ;
423
423
@@ -445,27 +445,27 @@ describe('hover info', function() {
445
445
} ) ;
446
446
447
447
it ( 'should show text labels' , function ( ) {
448
- mouseEvent ( 'mousemove' , 115 , 310 ) ;
448
+ mouseEvent ( 'mousemove' , 108 , 303 ) ;
449
449
var hovers = d3 . selectAll ( 'g.hovertext' ) ;
450
450
expect ( hovers . size ( ) ) . toEqual ( 1 ) ;
451
451
expect ( hovers . select ( 'text' ) [ 0 ] [ 0 ] . textContent ) . toEqual ( 'test' ) ;
452
452
} ) ;
453
453
454
454
it ( 'should show number labels' , function ( ) {
455
- mouseEvent ( 'mousemove' , 370 , 180 ) ;
455
+ mouseEvent ( 'mousemove' , 363 , 173 ) ;
456
456
var hovers = d3 . selectAll ( 'g.hovertext' ) ;
457
457
expect ( hovers . size ( ) ) . toEqual ( 1 ) ;
458
458
expect ( hovers . select ( 'text' ) [ 0 ] [ 0 ] . textContent ) . toEqual ( '42' ) ;
459
459
} ) ;
460
460
461
461
it ( 'should not show null text labels' , function ( ) {
462
- mouseEvent ( 'mousemove' , 236 , 246 ) ;
462
+ mouseEvent ( 'mousemove' , 229 , 239 ) ;
463
463
var hovers = d3 . selectAll ( 'g.hovertext' ) ;
464
464
expect ( hovers . size ( ) ) . toEqual ( 0 ) ;
465
465
} ) ;
466
466
467
467
it ( 'should not show undefined text labels' , function ( ) {
468
- mouseEvent ( 'mousemove' , 500 , 115 ) ;
468
+ mouseEvent ( 'mousemove' , 493 , 108 ) ;
469
469
var hovers = d3 . selectAll ( 'g.hovertext' ) ;
470
470
expect ( hovers . size ( ) ) . toEqual ( 0 ) ;
471
471
} ) ;
@@ -586,7 +586,7 @@ describe('hover info on overlaid subplots', function() {
586
586
var mock = require ( '@mocks/autorange-tozero-rangemode.json' ) ;
587
587
588
588
Plotly . plot ( createGraphDiv ( ) , mock . data , mock . layout ) . then ( function ( ) {
589
- mouseEvent ( 'mousemove' , 775 , 352 ) ;
589
+ mouseEvent ( 'mousemove' , 768 , 345 ) ;
590
590
591
591
var axisText = d3 . selectAll ( 'g.axistext' ) ,
592
592
hoverText = d3 . selectAll ( 'g.hovertext' ) ;
@@ -630,8 +630,8 @@ describe('hover after resizing', function() {
630
630
layout = { width : 600 , height : 500 } ,
631
631
gd = createGraphDiv ( ) ;
632
632
633
- var pos0 = [ 311 , 409 ] ,
634
- pos1 = [ 407 , 128 ] ;
633
+ var pos0 = [ 305 , 403 ] ,
634
+ pos1 = [ 401 , 122 ] ;
635
635
636
636
Plotly . plot ( gd , data , layout ) . then ( function ( ) {
637
637
return assertLabelCount ( pos0 , 1 , 'before resize, showing pt label' ) ;
@@ -683,11 +683,11 @@ describe('hover on fill', function() {
683
683
mock . data . forEach ( function ( trace ) { trace . hoveron = 'fills' ; } ) ;
684
684
685
685
Plotly . plot ( createGraphDiv ( ) , mock . data , mock . layout ) . then ( function ( ) {
686
- return assertLabelsCorrect ( [ 250 , 150 ] , [ 252.575 , 133.8 ] , 'trace 2' ) ;
686
+ return assertLabelsCorrect ( [ 242 , 142 ] , [ 249.175 , 133.8 ] , 'trace 2' ) ;
687
687
} ) . then ( function ( ) {
688
- return assertLabelsCorrect ( [ 250 , 300 ] , [ 234 .125, 210 ] , 'trace 1' ) ;
688
+ return assertLabelsCorrect ( [ 242 , 292 ] , [ 231 .125, 210 ] , 'trace 1' ) ;
689
689
} ) . then ( function ( ) {
690
- return assertLabelsCorrect ( [ 155 , 260 ] , [ 160.325 , 248.1 ] , 'trace 0' ) ;
690
+ return assertLabelsCorrect ( [ 147 , 252 ] , [ 158.925 , 248.1 ] , 'trace 0' ) ;
691
691
} ) . then ( done ) ;
692
692
} ) ;
693
693
@@ -696,11 +696,11 @@ describe('hover on fill', function() {
696
696
mock . data . forEach ( function ( trace ) { trace . hoveron = 'fills' ; } ) ;
697
697
698
698
Plotly . plot ( createGraphDiv ( ) , mock . data , mock . layout ) . then ( function ( ) {
699
- return assertLabelsCorrect ( [ 245 , 171 ] , [ 249 .7, 166 ] , 'trace 2' ) ;
699
+ return assertLabelsCorrect ( [ 237 , 163 ] , [ 247 .7, 166 ] , 'trace 2' ) ;
700
700
} ) . then ( function ( ) {
701
- return assertLabelsCorrect ( [ 245 , 226 ] , [ 268 .75, 265 ] , 'trace 1' ) ;
701
+ return assertLabelsCorrect ( [ 237 , 218 ] , [ 266 .75, 265 ] , 'trace 1' ) ;
702
702
} ) . then ( function ( ) {
703
- return assertLabelsCorrect ( [ 245 , 259 ] , [ 249 .7, 254 ] , 'trace 0' ) ;
703
+ return assertLabelsCorrect ( [ 237 , 251 ] , [ 247 .7, 254 ] , 'trace 0' ) ;
704
704
} ) . then ( done ) ;
705
705
} ) ;
706
- } ) ;
706
+ } ) ;
0 commit comments