Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d88abf8 commit f276f84Copy full SHA for f276f84
src/plots/gl3d/index.js
@@ -37,21 +37,13 @@ exports.plot = function plotGl3d(gd) {
37
fullData = gd._fullData,
38
sceneIds = Plots.getSubplotIds(fullLayout, 'gl3d');
39
40
- fullLayout._paperdiv.style({
41
- width: fullLayout.width + 'px',
42
- height: fullLayout.height + 'px'
43
- });
44
-
45
- gd._context.setBackground(gd, fullLayout.paper_bgcolor);
46
47
for(var i = 0; i < sceneIds.length; i++) {
48
var sceneId = sceneIds[i],
49
fullSceneData = Plots.getSubplotData(fullData, 'gl3d', sceneId),
50
sceneLayout = fullLayout[sceneId],
51
scene = sceneLayout._scene;
52
53
- // If Scene is not instantiated, create one!
54
- if(scene === undefined) {
+ if(!scene) {
55
initAxes(gd, sceneLayout);
56
57
scene = new Scene({
0 commit comments