@@ -627,9 +627,12 @@ describe('hover with (x|y)period positioning', function() {
627
627
628
628
it ( '@gl shows hover info for scattergl' , function ( done ) {
629
629
Plotly . newPlot ( gd , require ( '@mocks/gl2d_period_positioning.json' ) )
630
- . then ( function ( ) { return Plotly . restyle ( gd , 'xperiodalignment' , 'start' ) ; } )
631
- . then ( function ( ) { return Plotly . restyle ( gd , 'yperiodalignment' , 'start' ) ; } )
632
-
630
+ . then ( function ( ) {
631
+ return Plotly . restyle ( gd , {
632
+ xperiodalignment : 'start' ,
633
+ yperiodalignment : 'start'
634
+ } ) ;
635
+ } )
633
636
. then ( function ( ) { _hover ( 100 , 255 ) ; } )
634
637
. then ( function ( ) {
635
638
assertHoverLabelContent ( {
@@ -645,8 +648,12 @@ describe('hover with (x|y)period positioning', function() {
645
648
} ) ;
646
649
} )
647
650
648
- . then ( function ( ) { return Plotly . restyle ( gd , 'xperiodalignment' , 'middle' ) ; } )
649
- . then ( function ( ) { return Plotly . restyle ( gd , 'yperiodalignment' , 'middle' ) ; } )
651
+ . then ( function ( ) {
652
+ return Plotly . restyle ( gd , {
653
+ xperiodalignment : 'middle' ,
654
+ yperiodalignment : 'middle'
655
+ } ) ;
656
+ } )
650
657
. then ( function ( ) { _hover ( 100 , 255 ) ; } )
651
658
. then ( function ( ) { _hover ( 100 , 255 ) ; } )
652
659
. then ( function ( ) {
@@ -663,9 +670,12 @@ describe('hover with (x|y)period positioning', function() {
663
670
} ) ;
664
671
} )
665
672
666
- . then ( function ( ) { return Plotly . restyle ( gd , 'xperiodalignment' , 'end' ) ; } )
667
- . then ( function ( ) { return Plotly . restyle ( gd , 'yperiodalignment' , 'end' ) ; } )
668
-
673
+ . then ( function ( ) {
674
+ return Plotly . restyle ( gd , {
675
+ xperiodalignment : 'end' ,
676
+ yperiodalignment : 'end'
677
+ } ) ;
678
+ } )
669
679
. then ( function ( ) { _hover ( 100 , 255 ) ; } )
670
680
. then ( function ( ) {
671
681
assertHoverLabelContent ( {
0 commit comments