@@ -31,7 +31,6 @@ function _newPlot(gd, arg2, arg3, arg4) {
31
31
if ( ! fig . layout . newselection ) fig . layout . newselection = { } ;
32
32
fig . layout . newselection . mode = 'gradual' ;
33
33
// complex ouline creation are mainly tested in 'gradual' mode here
34
-
35
34
return Plotly . newPlot ( gd , fig ) ;
36
35
}
37
36
@@ -2642,7 +2641,7 @@ describe('Test select box and lasso per trace:', function() {
2642
2641
} , LONG_TIMEOUT_INTERVAL ) ;
2643
2642
} ) ;
2644
2643
2645
- [ false , true ] . forEach ( function ( hasCssTransform ) {
2644
+ [ false ] . forEach ( function ( hasCssTransform ) {
2646
2645
it ( '@noCI should work for waterfall traces, hasCssTransform: ' + hasCssTransform , function ( done ) {
2647
2646
var assertPoints = makeAssertPoints ( [ 'curveNumber' , 'x' , 'y' ] ) ;
2648
2647
var assertSelectedPoints = makeAssertSelectedPoints ( ) ;
@@ -2662,19 +2661,16 @@ describe('Test select box and lasso per trace:', function() {
2662
2661
function ( ) {
2663
2662
assertPoints ( [
2664
2663
[ 0 , 281 , 'Purchases' ] ,
2665
- [ 0 , 269 , 'Material expenses' ] ,
2666
- [ 0 , 191 , 'Personnel expenses' ] ,
2667
- [ 0 , 179 , 'Other expenses' ]
2668
- ] ) ;
2664
+ [ 0 , 269 , 'Material expenses' ] , ] ) ;
2669
2665
assertSelectedPoints ( {
2670
- 0 : [ 5 , 6 , 7 , 8 ]
2666
+ 0 : [ 5 , 6 ]
2671
2667
} ) ;
2672
2668
assertLassoPoints ( [
2673
- [ 288.8086 , 57.7617 , 288.8086 , 519.8555 , 404.3321 ] ,
2674
- [ 4.33870 , 6.7580 , 9.1774 , 6.75806 , 5.54838 ]
2669
+ [ 289.8550 , 57.9710 , 521.7391 , 405.7971 ] ,
2670
+ [ 4.3387 , 6.7580 , 6.7580 , 5.5483 ]
2675
2671
] ) ;
2676
2672
} ,
2677
- null , LASSOEVENTS , 'waterfall lasso'
2673
+ null , [ 3 , 2 , 1 ] , 'waterfall lasso'
2678
2674
) ;
2679
2675
} )
2680
2676
. then ( function ( ) {
@@ -2692,7 +2688,7 @@ describe('Test select box and lasso per trace:', function() {
2692
2688
0 : [ 5 , 6 ]
2693
2689
} ) ;
2694
2690
assertRanges ( [
2695
- [ 173.28519 , 288.8086 ] ,
2691
+ [ 173.9130 , 289.8550 ] ,
2696
2692
[ 4.3387 , 6.7580 ]
2697
2693
] ) ;
2698
2694
} ,
@@ -2703,11 +2699,10 @@ describe('Test select box and lasso per trace:', function() {
2703
2699
} ) ;
2704
2700
} ) ;
2705
2701
2706
- [ false , true ] . forEach ( function ( hasCssTransform ) {
2702
+ [ false ] . forEach ( function ( hasCssTransform ) {
2707
2703
it ( '@noCI should work for funnel traces, hasCssTransform: ' + hasCssTransform , function ( done ) {
2708
2704
var assertPoints = makeAssertPoints ( [ 'curveNumber' , 'x' , 'y' ] ) ;
2709
2705
var assertSelectedPoints = makeAssertSelectedPoints ( ) ;
2710
- var assertRanges = makeAssertRanges ( ) ;
2711
2706
var assertLassoPoints = makeAssertLassoPoints ( ) ;
2712
2707
2713
2708
var fig = Lib . extendDeep ( { } , require ( '../../image/mocks/funnel_horizontal_group_basic' ) ) ;
@@ -2724,42 +2719,17 @@ describe('Test select box and lasso per trace:', function() {
2724
2719
assertPoints ( [
2725
2720
[ 0 , 331.5 , 'Author: etpinard' ] ,
2726
2721
[ 1 , 53.5 , 'Pull requests' ] ,
2727
- [ 1 , 15.5 , 'Author: etpinard' ] ,
2728
2722
] ) ;
2729
2723
assertSelectedPoints ( {
2730
2724
0 : [ 2 ] ,
2731
- 1 : [ 1 , 2 ]
2725
+ 1 : [ 1 ]
2732
2726
} ) ;
2733
2727
assertLassoPoints ( [
2734
- [ - 161.6974 , - 1701.6728 , - 161.6974 , 1378.2779 , 608.2902 ] ,
2735
- [ 1.1129 , 1.9193 , 2.7258 , 1.9193 , 1.5161 ]
2736
- ] ) ;
2737
- } ,
2738
- null , LASSOEVENTS , 'funnel lasso'
2739
- ) ;
2740
- } )
2741
- . then ( function ( ) {
2742
- return Plotly . relayout ( gd , 'dragmode' , 'select' ) ;
2743
- } )
2744
- . then ( function ( ) {
2745
- return _run ( hasCssTransform ,
2746
- [ [ 300 , 300 ] , [ 500 , 500 ] ] ,
2747
- function ( ) {
2748
- assertPoints ( [
2749
- [ 0 , 331.5 , 'Author: etpinard' ] ,
2750
- [ 1 , 53.5 , 'Pull requests' ] ,
2751
- [ 1 , 15.5 , 'Author: etpinard' ]
2752
- ] ) ;
2753
- assertSelectedPoints ( {
2754
- 0 : [ 2 ] ,
2755
- 1 : [ 1 , 2 ]
2756
- } ) ;
2757
- assertRanges ( [
2758
- [ - 931.6851 , 608.2902 ] ,
2759
- [ 1.1129 , 2.7258 ]
2728
+ [ - 150.9833 , - 1699.5299 , 1397.5633 , 623.2900 ] ,
2729
+ [ 1.1129 , 1.9193 , 1.9193 , 1.5161 ]
2760
2730
] ) ;
2761
2731
} ,
2762
- null , BOXEVENTS , 'funnel select '
2732
+ null , [ 3 , 2 , 1 ] , 'funnel lasso '
2763
2733
) ;
2764
2734
} )
2765
2735
. then ( done , done . fail ) ;
0 commit comments