@@ -85,19 +85,19 @@ describe('Test streamtube autorange', function() {
85
85
86
86
Plotly . plot ( gd , fig ) . then ( function ( ) {
87
87
_assertAxisRanges ( 'base' ,
88
- [ - 5.36 , 5.525 ] , [ - 3.73 , 5.44 ] , [ - 3.55 , 3.78 ]
88
+ [ - 5.36 , 5.55 ] , [ - 6.36 , 3.90 ] , [ - 3.58 , 3.95 ]
89
89
) ;
90
90
return Plotly . restyle ( gd , 'sizeref' , 10 ) ;
91
91
} )
92
92
. then ( function ( ) {
93
93
_assertAxisRanges ( 'with large sizeref' ,
94
- [ - 9.86 , 10.02 ] , [ - 8.23 , 9.935 ] , [ - 8.045 , 8.28 ]
94
+ [ - 9.86 , 10.05 ] , [ - 10.86 , 8.39 ] , [ - 8.08 , 8.45 ]
95
95
) ;
96
96
return Plotly . restyle ( gd , 'sizeref' , 0.1 ) ;
97
97
} )
98
98
. then ( function ( ) {
99
99
_assertAxisRanges ( 'with small sizeref' ,
100
- [ - 5.32 , 5.48 ] , [ - 3.69 , 5.39 ] , [ - 3.50 , 3.73 ]
100
+ [ - 5.32 , 5.51 ] , [ - 6.32 , 3.85 ] , [ - 3.54 , 3.91 ]
101
101
) ;
102
102
} )
103
103
. catch ( failTest )
@@ -157,8 +157,8 @@ describe('Test streamtube starting positions defaults:', function() {
157
157
158
158
Plotly . plot ( gd , mock ) . then ( function ( ) {
159
159
_assert ( {
160
- positionsLength : 6144 ,
161
- cellsLength : 2048
160
+ positionsLength : 6288 ,
161
+ cellsLength : 2096
162
162
} ) ;
163
163
} )
164
164
. catch ( failTest )
@@ -179,8 +179,8 @@ describe('Test streamtube starting positions defaults:', function() {
179
179
it ( '@gl should take middle pt if mesh vector has length 2' , function ( done ) {
180
180
Plotly . plot ( gd , makeFigure ( 3 , 3 , 2 ) ) . then ( function ( ) {
181
181
_assert ( {
182
- positionsLength : 1200 ,
183
- cellsLength : 400
182
+ positionsLength : 1296 ,
183
+ cellsLength : 432
184
184
} ) ;
185
185
} )
186
186
. catch ( failTest )
@@ -343,10 +343,10 @@ describe('Test streamtube hover', function() {
343
343
. then ( function ( ) {
344
344
assertHoverLabelContent ( {
345
345
nums : [
346
- 'x: 2.250878 ' ,
347
- 'y: 0.5866609 ' ,
348
- 'z: 1.091627 ' ,
349
- 'norm: 2.06 '
346
+ 'x: 2.191782 ' ,
347
+ 'y: 0.5538867 ' ,
348
+ 'z: 1.057623 ' ,
349
+ 'norm: 2.11 '
350
350
] . join ( '\n' )
351
351
} ) ;
352
352
@@ -358,9 +358,9 @@ describe('Test streamtube hover', function() {
358
358
. then ( function ( ) {
359
359
assertHoverLabelContent ( {
360
360
nums : [
361
- 'u: 1.847686 ' ,
362
- 'v: 0.7303133 ' ,
363
- 'w: 0.1693927 '
361
+ 'u: 1.909297 ' ,
362
+ 'v: 0.7453796 ' ,
363
+ 'w: 0.09330833 '
364
364
] . join ( '\n' )
365
365
} ) ;
366
366
return Plotly . restyle ( gd , 'hoverinfo' , 'divergence' ) ;
@@ -369,7 +369,7 @@ describe('Test streamtube hover', function() {
369
369
. then ( _hover )
370
370
. then ( delay ( 20 ) )
371
371
. then ( function ( ) {
372
- assertHoverLabelContent ( { nums : 'divergence: 0.465 ' } ) ;
372
+ assertHoverLabelContent ( { nums : 'divergence: 0.467 ' } ) ;
373
373
return Plotly . restyle ( gd , {
374
374
hoverinfo : 'text' ,
375
375
text : '!SCALAR TX!'
@@ -416,10 +416,10 @@ describe('Test streamtube hover', function() {
416
416
. then ( function ( ) {
417
417
assertHoverLabelContent ( {
418
418
nums : [
419
- 'x: 2.059149 ' ,
420
- 'y: 0.5083682 ' ,
421
- 'z: 1.074042 ' ,
422
- 'norm: 2.07 '
419
+ 'x: 2.063244 ' ,
420
+ 'y: 0.502517 ' ,
421
+ 'z: 1.051367 ' ,
422
+ 'norm: 2.12 '
423
423
] . join ( '\n' ) ,
424
424
name : 'TUBE!'
425
425
} ) ;
@@ -428,7 +428,7 @@ describe('Test streamtube hover', function() {
428
428
} )
429
429
. then ( function ( ) {
430
430
assertHoverLabelContent ( {
431
- nums : '∇·F = 0.465 ' ,
431
+ nums : '∇·F = 0.467 ' ,
432
432
name : 'TUBE'
433
433
} ) ;
434
434
} )
@@ -461,15 +461,15 @@ describe('Test streamtube hover', function() {
461
461
if ( ptData ) {
462
462
expect ( Object . keys ( ptData ) . length ) . toBe ( 12 , 'key cnt' ) ;
463
463
464
- expect ( ptData . tubex ) . toBeCloseTo ( 2.25 , TOL , 'tubex' ) ;
465
- expect ( ptData . tubey ) . toBeCloseTo ( 0.59 , TOL , 'tubey' ) ;
466
- expect ( ptData . tubez ) . toBeCloseTo ( 1.09 , TOL , 'tubez' ) ;
464
+ expect ( ptData . tubex ) . toBeCloseTo ( 2.19 , TOL , 'tubex' ) ;
465
+ expect ( ptData . tubey ) . toBeCloseTo ( 0.55 , TOL , 'tubey' ) ;
466
+ expect ( ptData . tubez ) . toBeCloseTo ( 1.06 , TOL , 'tubez' ) ;
467
467
468
- expect ( ptData . tubeu ) . toBeCloseTo ( 1.85 , TOL , 'tubeu' ) ;
469
- expect ( ptData . tubev ) . toBeCloseTo ( 0.73 , TOL , 'tubev' ) ;
470
- expect ( ptData . tubew ) . toBeCloseTo ( 0.17 , TOL , 'tubew' ) ;
468
+ expect ( ptData . tubeu ) . toBeCloseTo ( 1.91 , TOL , 'tubeu' ) ;
469
+ expect ( ptData . tubev ) . toBeCloseTo ( 0.74 , TOL , 'tubev' ) ;
470
+ expect ( ptData . tubew ) . toBeCloseTo ( 0.09 , TOL , 'tubew' ) ;
471
471
472
- expect ( ptData . norm ) . toBeCloseTo ( 2.06 , TOL , 'norm' ) ;
472
+ expect ( ptData . norm ) . toBeCloseTo ( 2.11 , TOL , 'norm' ) ;
473
473
expect ( ptData . divergence ) . toBeCloseTo ( 0.47 , TOL , 'divergence' ) ;
474
474
475
475
expect ( ptData . curveNumber ) . toBe ( 0 , 'curve number' ) ;
0 commit comments