@@ -93,7 +93,7 @@ describe('Test gl3d before/after plot', function() {
93
93
} )
94
94
. then ( delay ( 20 ) )
95
95
. then ( function ( ) {
96
- var cameraBefore = gd . _fullLayout . scene . _scene . glplot . camera ;
96
+ var cameraBefore = gd . _fullLayout . scene . _scene . camera ;
97
97
expect ( cameraBefore . up [ 0 ] ) . toBeCloseTo ( 0 , 2 , 'cameraBefore.up[0]' ) ;
98
98
expect ( cameraBefore . up [ 1 ] ) . toBeCloseTo ( 0 , 2 , 'cameraBefore.up[1]' ) ;
99
99
expect ( cameraBefore . up [ 2 ] ) . toBeCloseTo ( 1 , 2 , 'cameraBefore.up[2]' ) ;
@@ -108,7 +108,7 @@ describe('Test gl3d before/after plot', function() {
108
108
. then ( _clickThere )
109
109
. then ( delay ( 20 ) )
110
110
. then ( function ( ) {
111
- var cameraAfter = gd . _fullLayout . scene . _scene . glplot . camera ;
111
+ var cameraAfter = gd . _fullLayout . scene . _scene . camera ;
112
112
expect ( cameraAfter . up [ 0 ] ) . toBeCloseTo ( 0 , 2 , 'cameraAfter.up[0]' ) ;
113
113
expect ( cameraAfter . up [ 1 ] ) . toBeCloseTo ( 0 , 2 , 'cameraAfter.up[1]' ) ;
114
114
expect ( cameraAfter . up [ 2 ] ) . toBeCloseTo ( 1 , 2 , 'cameraAfter.up[2]' ) ;
@@ -123,7 +123,7 @@ describe('Test gl3d before/after plot', function() {
123
123
. then ( _clickOtherplace )
124
124
. then ( delay ( 20 ) )
125
125
. then ( function ( ) {
126
- var cameraFinal = gd . _fullLayout . scene . _scene . glplot . camera ;
126
+ var cameraFinal = gd . _fullLayout . scene . _scene . camera ;
127
127
expect ( cameraFinal . up [ 0 ] ) . toBeCloseTo ( 0 , 2 , 'cameraFinal.up[0]' ) ;
128
128
expect ( cameraFinal . up [ 1 ] ) . toBeCloseTo ( 0 , 2 , 'cameraFinal.up[1]' ) ;
129
129
expect ( cameraFinal . up [ 2 ] ) . toBeCloseTo ( 1 , 2 , 'cameraFinal.up[2]' ) ;
@@ -300,7 +300,7 @@ describe('Test gl3d plots', function() {
300
300
. then ( delay ( 20 ) )
301
301
. then ( function ( ) {
302
302
expect ( gd . _fullLayout . scene . camera . projection . type === 'perspective' ) . toBe ( true ) ;
303
- expect ( gd . _fullLayout . scene . _scene . glplot . camera . _ortho === false ) . toBe ( true ) ;
303
+ expect ( gd . _fullLayout . scene . _scene . camera . _ortho === false ) . toBe ( true ) ;
304
304
} )
305
305
. then ( done ) ;
306
306
} ) ;
@@ -326,7 +326,7 @@ describe('Test gl3d plots', function() {
326
326
. then ( delay ( 20 ) )
327
327
. then ( function ( ) {
328
328
expect ( gd . _fullLayout . scene . camera . projection . type === 'orthographic' ) . toBe ( true ) ;
329
- expect ( gd . _fullLayout . scene . _scene . glplot . camera . _ortho === true ) . toBe ( true ) ;
329
+ expect ( gd . _fullLayout . scene . _scene . camera . _ortho === true ) . toBe ( true ) ;
330
330
} )
331
331
. then ( done ) ;
332
332
} ) ;
@@ -355,28 +355,28 @@ describe('Test gl3d plots', function() {
355
355
} )
356
356
. then ( function ( ) {
357
357
expect ( gd . _fullLayout . scene . camera . projection . type === 'orthographic' ) . toBe ( true ) ;
358
- expect ( gd . _fullLayout . scene . _scene . glplot . camera . _ortho === true ) . toBe ( true ) ;
358
+ expect ( gd . _fullLayout . scene . _scene . camera . _ortho === true ) . toBe ( true ) ;
359
359
} )
360
360
. then ( function ( ) {
361
361
return Plotly . relayout ( gd , 'scene.camera.eye.z' , 2 ) ;
362
362
} )
363
363
. then ( function ( ) {
364
364
expect ( gd . _fullLayout . scene . camera . projection . type === 'orthographic' ) . toBe ( true ) ;
365
- expect ( gd . _fullLayout . scene . _scene . glplot . camera . _ortho === true ) . toBe ( true ) ;
365
+ expect ( gd . _fullLayout . scene . _scene . camera . _ortho === true ) . toBe ( true ) ;
366
366
} )
367
367
. then ( function ( ) {
368
368
return Plotly . relayout ( gd , 'scene.camera.projection.type' , 'perspective' ) ;
369
369
} )
370
370
. then ( function ( ) {
371
371
expect ( gd . _fullLayout . scene . camera . projection . type === 'perspective' ) . toBe ( true ) ;
372
- expect ( gd . _fullLayout . scene . _scene . glplot . camera . _ortho === false ) . toBe ( true ) ;
372
+ expect ( gd . _fullLayout . scene . _scene . camera . _ortho === false ) . toBe ( true ) ;
373
373
} )
374
374
. then ( function ( ) {
375
375
return Plotly . relayout ( gd , 'scene.camera.eye.z' , 3 ) ;
376
376
} )
377
377
. then ( function ( ) {
378
378
expect ( gd . _fullLayout . scene . camera . projection . type === 'perspective' ) . toBe ( true ) ;
379
- expect ( gd . _fullLayout . scene . _scene . glplot . camera . _ortho === false ) . toBe ( true ) ;
379
+ expect ( gd . _fullLayout . scene . _scene . camera . _ortho === false ) . toBe ( true ) ;
380
380
} )
381
381
. then ( done ) ;
382
382
} ) ;
0 commit comments