Skip to content

Commit 078d800

Browse files
committed
do not use sceneLayout variable name for fullSceneLayout
1 parent e29aceb commit 078d800

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/plots/gl3d/scene.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -471,12 +471,12 @@ proto.recoverContext = function() {
471471
var axisProperties = [ 'xaxis', 'yaxis', 'zaxis' ];
472472

473473
function computeTraceBounds(scene, trace, bounds) {
474-
var sceneLayout = scene.fullSceneLayout;
474+
var fullSceneLayout = scene.fullSceneLayout;
475475

476476
for(var d = 0; d < 3; d++) {
477477
var axisName = axisProperties[d];
478478
var axLetter = axisName.charAt(0);
479-
var ax = sceneLayout[axisName];
479+
var ax = fullSceneLayout[axisName];
480480
var coords = trace[axLetter];
481481
var calendar = trace[axLetter + 'calendar'];
482482
var len = trace['_' + axLetter + 'length'];
@@ -509,13 +509,13 @@ function computeTraceBounds(scene, trace, bounds) {
509509
}
510510

511511
function computeAnnotationBounds(scene, bounds) {
512-
var sceneLayout = scene.fullSceneLayout;
513-
var annotations = sceneLayout.annotations || [];
512+
var fullSceneLayout = scene.fullSceneLayout;
513+
var annotations = fullSceneLayout.annotations || [];
514514

515515
for(var d = 0; d < 3; d++) {
516516
var axisName = axisProperties[d];
517517
var axLetter = axisName.charAt(0);
518-
var ax = sceneLayout[axisName];
518+
var ax = fullSceneLayout[axisName];
519519

520520
for(var j = 0; j < annotations.length; j++) {
521521
var ann = annotations[j];

0 commit comments

Comments
 (0)