@@ -1851,7 +1851,7 @@ describe('Test select box and lasso per trace:', function() {
1851
1851
dblClickPos = dblClickPos || [ 250 , 200 ] ;
1852
1852
1853
1853
var scale = 1 ;
1854
- if ( hasCssTransform ) {
1854
+ if ( hasCssTransform ) {
1855
1855
scale = 0.5 ;
1856
1856
}
1857
1857
dblClickPos [ 0 ] *= scale ;
@@ -1896,8 +1896,7 @@ describe('Test select box and lasso per trace:', function() {
1896
1896
1897
1897
Plotly . plot ( gd , fig )
1898
1898
. then ( function ( ) {
1899
- if ( hasCssTransform )
1900
- transformPlot ( gd , cssTransform ) ;
1899
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
1901
1900
} )
1902
1901
. then ( function ( ) {
1903
1902
return _run ( hasCssTransform ,
@@ -1956,8 +1955,7 @@ describe('Test select box and lasso per trace:', function() {
1956
1955
1957
1956
Plotly . plot ( gd , fig )
1958
1957
. then ( function ( ) {
1959
- if ( hasCssTransform )
1960
- transformPlot ( gd , cssTransform ) ;
1958
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
1961
1959
} )
1962
1960
. then ( function ( ) {
1963
1961
return _run ( hasCssTransform ,
@@ -2005,8 +2003,11 @@ describe('Test select box and lasso per trace:', function() {
2005
2003
} ;
2006
2004
addInvisible ( fig ) ;
2007
2005
2008
- if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2009
- Plotly . plot ( gd , fig ) . then ( function ( ) {
2006
+ Plotly . plot ( gd , fig )
2007
+ . then ( function ( ) {
2008
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2009
+ } )
2010
+ . then ( function ( ) {
2010
2011
return _run ( hasCssTransform ,
2011
2012
[ [ 370 , 120 ] , [ 500 , 200 ] ] ,
2012
2013
function ( ) {
@@ -2066,8 +2067,7 @@ describe('Test select box and lasso per trace:', function() {
2066
2067
2067
2068
Plotly . plot ( gd , fig )
2068
2069
. then ( function ( ) {
2069
- if ( hasCssTransform )
2070
- transformPlot ( gd , cssTransform ) ;
2070
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2071
2071
} )
2072
2072
. then ( function ( ) {
2073
2073
return _run ( hasCssTransform ,
@@ -2142,8 +2142,7 @@ describe('Test select box and lasso per trace:', function() {
2142
2142
2143
2143
Plotly . plot ( gd , fig )
2144
2144
. then ( function ( ) {
2145
- if ( hasCssTransform )
2146
- transformPlot ( gd , cssTransform ) ;
2145
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2147
2146
} )
2148
2147
. then ( function ( ) {
2149
2148
return _run ( hasCssTransform ,
@@ -2219,8 +2218,7 @@ describe('Test select box and lasso per trace:', function() {
2219
2218
2220
2219
Plotly . plot ( gd , fig )
2221
2220
. then ( function ( ) {
2222
- if ( hasCssTransform )
2223
- transformPlot ( gd , cssTransform ) ;
2221
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2224
2222
} )
2225
2223
. then ( function ( ) {
2226
2224
return _run ( hasCssTransform ,
@@ -2266,8 +2264,7 @@ describe('Test select box and lasso per trace:', function() {
2266
2264
2267
2265
Plotly . plot ( gd , fig )
2268
2266
. then ( function ( ) {
2269
- if ( hasCssTransform )
2270
- transformPlot ( gd , cssTransform ) ;
2267
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2271
2268
} )
2272
2269
. then ( function ( ) {
2273
2270
return _run ( hasCssTransform ,
@@ -2338,8 +2335,7 @@ describe('Test select box and lasso per trace:', function() {
2338
2335
2339
2336
Plotly . plot ( gd , fig )
2340
2337
. then ( function ( ) {
2341
- if ( hasCssTransform )
2342
- transformPlot ( gd , cssTransform ) ;
2338
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2343
2339
} )
2344
2340
. then ( function ( ) {
2345
2341
return _run ( hasCssTransform ,
@@ -2397,8 +2393,7 @@ describe('Test select box and lasso per trace:', function() {
2397
2393
2398
2394
Plotly . plot ( gd , fig )
2399
2395
. then ( function ( ) {
2400
- if ( hasCssTransform )
2401
- transformPlot ( gd , cssTransform ) ;
2396
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2402
2397
} )
2403
2398
. then ( function ( ) {
2404
2399
return _run ( hasCssTransform ,
@@ -2461,8 +2456,7 @@ describe('Test select box and lasso per trace:', function() {
2461
2456
2462
2457
Plotly . plot ( gd , fig )
2463
2458
. then ( function ( ) {
2464
- if ( hasCssTransform )
2465
- transformPlot ( gd , cssTransform ) ;
2459
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2466
2460
} )
2467
2461
. then ( function ( ) {
2468
2462
return _run ( hasCssTransform ,
@@ -2527,8 +2521,7 @@ describe('Test select box and lasso per trace:', function() {
2527
2521
2528
2522
Plotly . plot ( gd , fig )
2529
2523
. then ( function ( ) {
2530
- if ( hasCssTransform )
2531
- transformPlot ( gd , cssTransform ) ;
2524
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2532
2525
} )
2533
2526
. then ( function ( ) {
2534
2527
return _run ( hasCssTransform ,
@@ -2637,8 +2630,7 @@ describe('Test select box and lasso per trace:', function() {
2637
2630
2638
2631
Plotly . plot ( gd , fig )
2639
2632
. then ( function ( ) {
2640
- if ( hasCssTransform )
2641
- transformPlot ( gd , cssTransform ) ;
2633
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2642
2634
} )
2643
2635
. then ( function ( ) {
2644
2636
return _run ( hasCssTransform ,
@@ -2689,8 +2681,7 @@ describe('Test select box and lasso per trace:', function() {
2689
2681
2690
2682
Plotly . plot ( gd , fig )
2691
2683
. then ( function ( ) {
2692
- if ( hasCssTransform )
2693
- transformPlot ( gd , cssTransform ) ;
2684
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2694
2685
} )
2695
2686
. then ( function ( ) {
2696
2687
return _run ( hasCssTransform ,
@@ -2748,8 +2739,7 @@ describe('Test select box and lasso per trace:', function() {
2748
2739
2749
2740
Plotly . plot ( gd , fig )
2750
2741
. then ( function ( ) {
2751
- if ( hasCssTransform )
2752
- transformPlot ( gd , cssTransform ) ;
2742
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2753
2743
} )
2754
2744
. then ( function ( ) {
2755
2745
return _run ( hasCssTransform ,
@@ -2824,8 +2814,7 @@ describe('Test select box and lasso per trace:', function() {
2824
2814
2825
2815
Plotly . plot ( gd , fig )
2826
2816
. then ( function ( ) {
2827
- if ( hasCssTransform )
2828
- transformPlot ( gd , cssTransform ) ;
2817
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2829
2818
} )
2830
2819
. then ( function ( ) {
2831
2820
return _run ( hasCssTransform ,
@@ -2870,8 +2859,7 @@ describe('Test select box and lasso per trace:', function() {
2870
2859
2871
2860
Plotly . plot ( gd , fig )
2872
2861
. then ( function ( ) {
2873
- if ( hasCssTransform )
2874
- transformPlot ( gd , cssTransform ) ;
2862
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2875
2863
} )
2876
2864
. then ( function ( ) {
2877
2865
return _run ( hasCssTransform ,
@@ -2968,8 +2956,7 @@ describe('Test select box and lasso per trace:', function() {
2968
2956
dragmode : 'lasso'
2969
2957
} )
2970
2958
. then ( function ( ) {
2971
- if ( hasCssTransform )
2972
- transformPlot ( gd , cssTransform ) ;
2959
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
2973
2960
} )
2974
2961
. then ( function ( ) {
2975
2962
return _run ( hasCssTransform ,
@@ -3038,8 +3025,7 @@ describe('Test select box and lasso per trace:', function() {
3038
3025
margin : { l : 0 , t : 0 , r : 0 , b : 0 }
3039
3026
} )
3040
3027
. then ( function ( ) {
3041
- if ( hasCssTransform )
3042
- transformPlot ( gd , cssTransform ) ;
3028
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
3043
3029
} )
3044
3030
. then ( function ( ) {
3045
3031
return _run ( hasCssTransform ,
@@ -3091,8 +3077,7 @@ describe('Test select box and lasso per trace:', function() {
3091
3077
margin : { l : 0 , t : 0 , r : 0 , b : 0 }
3092
3078
} )
3093
3079
. then ( function ( ) {
3094
- if ( hasCssTransform )
3095
- transformPlot ( gd , cssTransform ) ;
3080
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
3096
3081
} )
3097
3082
. then ( function ( ) {
3098
3083
return _run ( hasCssTransform ,
@@ -3123,8 +3108,7 @@ describe('Test select box and lasso per trace:', function() {
3123
3108
3124
3109
Plotly . plot ( gd , fig )
3125
3110
. then ( function ( ) {
3126
- if ( hasCssTransform )
3127
- transformPlot ( gd , cssTransform ) ;
3111
+ if ( hasCssTransform ) transformPlot ( gd , cssTransform ) ;
3128
3112
} )
3129
3113
. then ( function ( ) {
3130
3114
// No groups initially
0 commit comments