@@ -406,7 +406,7 @@ describe('hover info', function() {
406406
407407 it ( 'should display the correct format when ticklabels true' , function ( ) {
408408 Plotly . plot ( this . gd , data , layout ) ;
409- mouseEvent ( 'mousemove' , 310 , 220 ) ;
409+ mouseEvent ( 'mousemove' , 303 , 213 ) ;
410410
411411 var hovers = d3 . selectAll ( 'g.hovertext' ) ;
412412
@@ -417,7 +417,7 @@ describe('hover info', function() {
417417 it ( 'should display the correct format when ticklabels false' , function ( ) {
418418 layout . yaxis . showticklabels = false ;
419419 Plotly . plot ( this . gd , data , layout ) ;
420- mouseEvent ( 'mousemove' , 310 , 220 ) ;
420+ mouseEvent ( 'mousemove' , 303 , 213 ) ;
421421
422422 var hovers = d3 . selectAll ( 'g.hovertext' ) ;
423423
@@ -445,27 +445,27 @@ describe('hover info', function() {
445445 } ) ;
446446
447447 it ( 'should show text labels' , function ( ) {
448- mouseEvent ( 'mousemove' , 115 , 310 ) ;
448+ mouseEvent ( 'mousemove' , 108 , 303 ) ;
449449 var hovers = d3 . selectAll ( 'g.hovertext' ) ;
450450 expect ( hovers . size ( ) ) . toEqual ( 1 ) ;
451451 expect ( hovers . select ( 'text' ) [ 0 ] [ 0 ] . textContent ) . toEqual ( 'test' ) ;
452452 } ) ;
453453
454454 it ( 'should show number labels' , function ( ) {
455- mouseEvent ( 'mousemove' , 370 , 180 ) ;
455+ mouseEvent ( 'mousemove' , 363 , 173 ) ;
456456 var hovers = d3 . selectAll ( 'g.hovertext' ) ;
457457 expect ( hovers . size ( ) ) . toEqual ( 1 ) ;
458458 expect ( hovers . select ( 'text' ) [ 0 ] [ 0 ] . textContent ) . toEqual ( '42' ) ;
459459 } ) ;
460460
461461 it ( 'should not show null text labels' , function ( ) {
462- mouseEvent ( 'mousemove' , 236 , 246 ) ;
462+ mouseEvent ( 'mousemove' , 229 , 239 ) ;
463463 var hovers = d3 . selectAll ( 'g.hovertext' ) ;
464464 expect ( hovers . size ( ) ) . toEqual ( 0 ) ;
465465 } ) ;
466466
467467 it ( 'should not show undefined text labels' , function ( ) {
468- mouseEvent ( 'mousemove' , 500 , 115 ) ;
468+ mouseEvent ( 'mousemove' , 493 , 108 ) ;
469469 var hovers = d3 . selectAll ( 'g.hovertext' ) ;
470470 expect ( hovers . size ( ) ) . toEqual ( 0 ) ;
471471 } ) ;
@@ -586,7 +586,7 @@ describe('hover info on overlaid subplots', function() {
586586 var mock = require ( '@mocks/autorange-tozero-rangemode.json' ) ;
587587
588588 Plotly . plot ( createGraphDiv ( ) , mock . data , mock . layout ) . then ( function ( ) {
589- mouseEvent ( 'mousemove' , 775 , 352 ) ;
589+ mouseEvent ( 'mousemove' , 768 , 345 ) ;
590590
591591 var axisText = d3 . selectAll ( 'g.axistext' ) ,
592592 hoverText = d3 . selectAll ( 'g.hovertext' ) ;
@@ -630,8 +630,8 @@ describe('hover after resizing', function() {
630630 layout = { width : 600 , height : 500 } ,
631631 gd = createGraphDiv ( ) ;
632632
633- var pos0 = [ 311 , 409 ] ,
634- pos1 = [ 407 , 128 ] ;
633+ var pos0 = [ 305 , 403 ] ,
634+ pos1 = [ 401 , 122 ] ;
635635
636636 Plotly . plot ( gd , data , layout ) . then ( function ( ) {
637637 return assertLabelCount ( pos0 , 1 , 'before resize, showing pt label' ) ;
@@ -683,11 +683,11 @@ describe('hover on fill', function() {
683683 mock . data . forEach ( function ( trace ) { trace . hoveron = 'fills' ; } ) ;
684684
685685 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' ) ;
687687 } ) . then ( function ( ) {
688- return assertLabelsCorrect ( [ 250 , 300 ] , [ 234 .125, 210 ] , 'trace 1' ) ;
688+ return assertLabelsCorrect ( [ 242 , 292 ] , [ 231 .125, 210 ] , 'trace 1' ) ;
689689 } ) . then ( function ( ) {
690- return assertLabelsCorrect ( [ 155 , 260 ] , [ 160.325 , 248.1 ] , 'trace 0' ) ;
690+ return assertLabelsCorrect ( [ 147 , 252 ] , [ 158.925 , 248.1 ] , 'trace 0' ) ;
691691 } ) . then ( done ) ;
692692 } ) ;
693693
@@ -696,11 +696,11 @@ describe('hover on fill', function() {
696696 mock . data . forEach ( function ( trace ) { trace . hoveron = 'fills' ; } ) ;
697697
698698 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' ) ;
700700 } ) . then ( function ( ) {
701- return assertLabelsCorrect ( [ 245 , 226 ] , [ 268 .75, 265 ] , 'trace 1' ) ;
701+ return assertLabelsCorrect ( [ 237 , 218 ] , [ 266 .75, 265 ] , 'trace 1' ) ;
702702 } ) . then ( function ( ) {
703- return assertLabelsCorrect ( [ 245 , 259 ] , [ 249 .7, 254 ] , 'trace 0' ) ;
703+ return assertLabelsCorrect ( [ 237 , 251 ] , [ 247 .7, 254 ] , 'trace 0' ) ;
704704 } ) . then ( done ) ;
705705 } ) ;
706- } ) ;
706+ } ) ;
0 commit comments