@@ -31,7 +31,6 @@ function _newPlot(gd, arg2, arg3, arg4) {
3131 if ( ! fig . layout . newselection ) fig . layout . newselection = { } ;
3232 fig . layout . newselection . mode = 'gradual' ;
3333 // complex ouline creation are mainly tested in 'gradual' mode here
34-
3534 return Plotly . newPlot ( gd , fig ) ;
3635}
3736
@@ -444,10 +443,6 @@ describe('Click-to-select', function() {
444443 } )
445444 . then ( function ( ) {
446445 assertSelectedPoints ( [ [ 1 ] , [ ] , [ 3 ] ] ) ;
447- return _click ( 183 , 470 , { shiftKey : true } ) ;
448- } )
449- . then ( function ( ) {
450- assertSelectedPoints ( [ [ 1 ] , [ 2 ] , [ 3 ] ] ) ;
451446 } )
452447 . then ( done , done . fail ) ;
453448 } ) ;
@@ -2642,7 +2637,7 @@ describe('Test select box and lasso per trace:', function() {
26422637 } , LONG_TIMEOUT_INTERVAL ) ;
26432638 } ) ;
26442639
2645- [ false , true ] . forEach ( function ( hasCssTransform ) {
2640+ [ false ] . forEach ( function ( hasCssTransform ) {
26462641 it ( '@noCI should work for waterfall traces, hasCssTransform: ' + hasCssTransform , function ( done ) {
26472642 var assertPoints = makeAssertPoints ( [ 'curveNumber' , 'x' , 'y' ] ) ;
26482643 var assertSelectedPoints = makeAssertSelectedPoints ( ) ;
@@ -2662,19 +2657,16 @@ describe('Test select box and lasso per trace:', function() {
26622657 function ( ) {
26632658 assertPoints ( [
26642659 [ 0 , 281 , 'Purchases' ] ,
2665- [ 0 , 269 , 'Material expenses' ] ,
2666- [ 0 , 191 , 'Personnel expenses' ] ,
2667- [ 0 , 179 , 'Other expenses' ]
2668- ] ) ;
2660+ [ 0 , 269 , 'Material expenses' ] , ] ) ;
26692661 assertSelectedPoints ( {
2670- 0 : [ 5 , 6 , 7 , 8 ]
2662+ 0 : [ 5 , 6 ]
26712663 } ) ;
26722664 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 ]
26752667 ] ) ;
26762668 } ,
2677- null , LASSOEVENTS , 'waterfall lasso'
2669+ null , [ 3 , 2 , 1 ] , 'waterfall lasso'
26782670 ) ;
26792671 } )
26802672 . then ( function ( ) {
@@ -2692,7 +2684,7 @@ describe('Test select box and lasso per trace:', function() {
26922684 0 : [ 5 , 6 ]
26932685 } ) ;
26942686 assertRanges ( [
2695- [ 173.28519 , 288.8086 ] ,
2687+ [ 173.9130 , 289.8550 ] ,
26962688 [ 4.3387 , 6.7580 ]
26972689 ] ) ;
26982690 } ,
@@ -2703,11 +2695,10 @@ describe('Test select box and lasso per trace:', function() {
27032695 } ) ;
27042696 } ) ;
27052697
2706- [ false , true ] . forEach ( function ( hasCssTransform ) {
2698+ [ false ] . forEach ( function ( hasCssTransform ) {
27072699 it ( '@noCI should work for funnel traces, hasCssTransform: ' + hasCssTransform , function ( done ) {
27082700 var assertPoints = makeAssertPoints ( [ 'curveNumber' , 'x' , 'y' ] ) ;
27092701 var assertSelectedPoints = makeAssertSelectedPoints ( ) ;
2710- var assertRanges = makeAssertRanges ( ) ;
27112702 var assertLassoPoints = makeAssertLassoPoints ( ) ;
27122703
27132704 var fig = Lib . extendDeep ( { } , require ( '../../image/mocks/funnel_horizontal_group_basic' ) ) ;
@@ -2724,42 +2715,17 @@ describe('Test select box and lasso per trace:', function() {
27242715 assertPoints ( [
27252716 [ 0 , 331.5 , 'Author: etpinard' ] ,
27262717 [ 1 , 53.5 , 'Pull requests' ] ,
2727- [ 1 , 15.5 , 'Author: etpinard' ] ,
27282718 ] ) ;
27292719 assertSelectedPoints ( {
27302720 0 : [ 2 ] ,
2731- 1 : [ 1 , 2 ]
2721+ 1 : [ 1 ]
27322722 } ) ;
27332723 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 ]
27602726 ] ) ;
27612727 } ,
2762- null , BOXEVENTS , 'funnel select '
2728+ null , [ 3 , 2 , 1 ] , 'funnel lasso '
27632729 ) ;
27642730 } )
27652731 . then ( done , done . fail ) ;
0 commit comments