Skip to content

Commit

Permalink
do not use sceneLayout variable name for fullSceneLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Feb 12, 2020
1 parent e29aceb commit 078d800
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plots/gl3d/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,12 +471,12 @@ proto.recoverContext = function() {
var axisProperties = [ 'xaxis', 'yaxis', 'zaxis' ];

function computeTraceBounds(scene, trace, bounds) {
var sceneLayout = scene.fullSceneLayout;
var fullSceneLayout = scene.fullSceneLayout;

for(var d = 0; d < 3; d++) {
var axisName = axisProperties[d];
var axLetter = axisName.charAt(0);
var ax = sceneLayout[axisName];
var ax = fullSceneLayout[axisName];
var coords = trace[axLetter];
var calendar = trace[axLetter + 'calendar'];
var len = trace['_' + axLetter + 'length'];
Expand Down Expand Up @@ -509,13 +509,13 @@ function computeTraceBounds(scene, trace, bounds) {
}

function computeAnnotationBounds(scene, bounds) {
var sceneLayout = scene.fullSceneLayout;
var annotations = sceneLayout.annotations || [];
var fullSceneLayout = scene.fullSceneLayout;
var annotations = fullSceneLayout.annotations || [];

for(var d = 0; d < 3; d++) {
var axisName = axisProperties[d];
var axLetter = axisName.charAt(0);
var ax = sceneLayout[axisName];
var ax = fullSceneLayout[axisName];

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

0 comments on commit 078d800

Please sign in to comment.