Skip to content

Refactor gl3d scene #4360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jan 29, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unused parameter glplotLayout and glplot.update call
  • Loading branch information
archmoj committed Nov 9, 2019
commit 94ebb09a55f0e088b6095430b6e922e32d42eb2c
7 changes: 2 additions & 5 deletions src/plots/gl3d/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,13 +514,10 @@ proto.plot = function(sceneData, fullLayout, layout) {
var fullSceneLayout = fullLayout[scene.id];
var sceneLayout = layout[scene.id];

scene.glplot.setClearColor(str2RGBAarray(fullSceneLayout.bgcolor));

// Update layout
scene.fullLayout = fullLayout;
scene.fullSceneLayout = fullSceneLayout;

scene.glplotLayout = fullSceneLayout;
scene.axesOptions.merge(fullLayout, fullSceneLayout);
scene.spikeOptions.merge(fullSceneLayout);

Expand All @@ -529,8 +526,8 @@ proto.plot = function(sceneData, fullLayout, layout) {
scene.updateFx(fullSceneLayout.dragmode, fullSceneLayout.hovermode);
scene.camera.enableWheel = scene.graphDiv._context._scrollZoom.gl3d;

// Update scene
scene.glplot.update({});
// Update scene background
scene.glplot.setClearColor(str2RGBAarray(fullSceneLayout.bgcolor));

// Update axes functions BEFORE updating traces
scene.setConvert(axis);
Expand Down