@@ -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
@@ -444,10 +443,6 @@ describe('Click-to-select', function() {
444
443
} )
445
444
. then ( function ( ) {
446
445
assertSelectedPoints ( [ [ 1 ] , [ ] , [ 3 ] ] ) ;
447
- return _click ( 183 , 470 , { shiftKey : true } ) ;
448
- } )
449
- . then ( function ( ) {
450
- assertSelectedPoints ( [ [ 1 ] , [ 2 ] , [ 3 ] ] ) ;
451
446
} )
452
447
. then ( done , done . fail ) ;
453
448
} ) ;
@@ -2642,7 +2637,7 @@ describe('Test select box and lasso per trace:', function() {
2642
2637
} , LONG_TIMEOUT_INTERVAL ) ;
2643
2638
} ) ;
2644
2639
2645
- [ false , true ] . forEach ( function ( hasCssTransform ) {
2640
+ [ false ] . forEach ( function ( hasCssTransform ) {
2646
2641
it ( '@noCI should work for waterfall traces, hasCssTransform: ' + hasCssTransform , function ( done ) {
2647
2642
var assertPoints = makeAssertPoints ( [ 'curveNumber' , 'x' , 'y' ] ) ;
2648
2643
var assertSelectedPoints = makeAssertSelectedPoints ( ) ;
@@ -2662,19 +2657,16 @@ describe('Test select box and lasso per trace:', function() {
2662
2657
function ( ) {
2663
2658
assertPoints ( [
2664
2659
[ 0 , 281 , 'Purchases' ] ,
2665
- [ 0 , 269 , 'Material expenses' ] ,
2666
- [ 0 , 191 , 'Personnel expenses' ] ,
2667
- [ 0 , 179 , 'Other expenses' ]
2668
- ] ) ;
2660
+ [ 0 , 269 , 'Material expenses' ] , ] ) ;
2669
2661
assertSelectedPoints ( {
2670
- 0 : [ 5 , 6 , 7 , 8 ]
2662
+ 0 : [ 5 , 6 ]
2671
2663
} ) ;
2672
2664
assertLassoPoints ( [
2673
- [ 288.8086 , 57.7617 , 288.8086 , 519.8555 , 404.3321 ] ,
2674
- [ 4.33870 , 6.7580 , 9.1774 , 6.75806 , 5.54838 ]
2665
+ [ 289.8550 , 57.9710 , 521.7391 , 405.7971 ] ,
2666
+ [ 4.3387 , 6.7580 , 6.7580 , 5.5483 ]
2675
2667
] ) ;
2676
2668
} ,
2677
- null , LASSOEVENTS , 'waterfall lasso'
2669
+ null , [ 3 , 2 , 1 ] , 'waterfall lasso'
2678
2670
) ;
2679
2671
} )
2680
2672
. then ( function ( ) {
@@ -2692,7 +2684,7 @@ describe('Test select box and lasso per trace:', function() {
2692
2684
0 : [ 5 , 6 ]
2693
2685
} ) ;
2694
2686
assertRanges ( [
2695
- [ 173.28519 , 288.8086 ] ,
2687
+ [ 173.9130 , 289.8550 ] ,
2696
2688
[ 4.3387 , 6.7580 ]
2697
2689
] ) ;
2698
2690
} ,
@@ -2703,11 +2695,10 @@ describe('Test select box and lasso per trace:', function() {
2703
2695
} ) ;
2704
2696
} ) ;
2705
2697
2706
- [ false , true ] . forEach ( function ( hasCssTransform ) {
2698
+ [ false ] . forEach ( function ( hasCssTransform ) {
2707
2699
it ( '@noCI should work for funnel traces, hasCssTransform: ' + hasCssTransform , function ( done ) {
2708
2700
var assertPoints = makeAssertPoints ( [ 'curveNumber' , 'x' , 'y' ] ) ;
2709
2701
var assertSelectedPoints = makeAssertSelectedPoints ( ) ;
2710
- var assertRanges = makeAssertRanges ( ) ;
2711
2702
var assertLassoPoints = makeAssertLassoPoints ( ) ;
2712
2703
2713
2704
var fig = Lib . extendDeep ( { } , require ( '../../image/mocks/funnel_horizontal_group_basic' ) ) ;
@@ -2724,42 +2715,17 @@ describe('Test select box and lasso per trace:', function() {
2724
2715
assertPoints ( [
2725
2716
[ 0 , 331.5 , 'Author: etpinard' ] ,
2726
2717
[ 1 , 53.5 , 'Pull requests' ] ,
2727
- [ 1 , 15.5 , 'Author: etpinard' ] ,
2728
2718
] ) ;
2729
2719
assertSelectedPoints ( {
2730
2720
0 : [ 2 ] ,
2731
- 1 : [ 1 , 2 ]
2721
+ 1 : [ 1 ]
2732
2722
} ) ;
2733
2723
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 ]
2724
+ [ - 140.1492 , - 1697.3631 , 1417.0646 , 638.4577 ] ,
2725
+ [ 1.1129 , 1.9193 , 1.9193 , 1.5161 ]
2760
2726
] ) ;
2761
2727
} ,
2762
- null , BOXEVENTS , 'funnel select '
2728
+ null , [ 3 , 2 , 1 ] , 'funnel lasso '
2763
2729
) ;
2764
2730
} )
2765
2731
. then ( done , done . fail ) ;
0 commit comments