Skip to content

Commit 3ab1b1d

Browse files
committed
changed defaults and baseline
1 parent 5c3742c commit 3ab1b1d

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/plots/gl3d/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ exports.plot = function plotGl3d(gd) {
6969
if(!scene.cameraInitial) {
7070
scene.cameraInitial = Lib.extendDeep({}, sceneLayout.camera);
7171
}
72+
7273
scene.plot(fullSceneData, fullLayout, gd.layout);
7374
}
7475
};
215 Bytes
Loading

test/jasmine/tests/gl3dlayout_test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,33 +168,33 @@ describe('Test Gl3d layout defaults', function() {
168168
layoutIn = { scene: {} };
169169
supplyLayoutDefaults(layoutIn, layoutOut, fullData);
170170
expect(layoutOut.scene.dragmode)
171-
.toBe('turntable', 'to turntable by default');
171+
.toBe('orbit', 'to orbit by default');
172172

173-
layoutIn = { scene: { dragmode: 'orbit' } };
173+
layoutIn = { scene: { dragmode: 'turntable' } };
174174
supplyLayoutDefaults(layoutIn, layoutOut, fullData);
175175
expect(layoutOut.scene.dragmode)
176-
.toBe('orbit', 'to user val if valid');
176+
.toBe('turntable', 'to user val if valid');
177177

178-
layoutIn = { scene: {}, dragmode: 'orbit' };
178+
layoutIn = { scene: {}, dragmode: 'turntable' };
179179
supplyLayoutDefaults(layoutIn, layoutOut, fullData);
180180
expect(layoutOut.scene.dragmode)
181-
.toBe('orbit', 'to user layout val if valid and 3d only');
181+
.toBe('turntable', 'to user layout val if valid and 3d only');
182182

183183
layoutIn = { scene: {}, dragmode: 'invalid' };
184184
supplyLayoutDefaults(layoutIn, layoutOut, fullData);
185185
expect(layoutOut.scene.dragmode)
186-
.toBe('turntable', 'to turntable if invalid and 3d only');
186+
.toBe('orbit', 'to orbit if invalid and 3d only');
187187

188188
layoutIn = { scene: {}, dragmode: 'orbit' };
189189
layoutOut._basePlotModules.push({ name: 'cartesian' });
190190
supplyLayoutDefaults(layoutIn, layoutOut, fullData);
191191
expect(layoutOut.scene.dragmode)
192-
.toBe('turntable', 'to default if not 3d only');
192+
.toBe('orbit', 'to default if not 3d only');
193193

194194
layoutIn = { scene: {}, dragmode: 'not gonna work' };
195195
supplyLayoutDefaults(layoutIn, layoutOut, fullData);
196196
expect(layoutOut.scene.dragmode)
197-
.toBe('turntable', 'to default if not valid');
197+
.toBe('orbit', 'to default if not valid');
198198
});
199199

200200
it('should coerce hovermode', function() {

0 commit comments

Comments
 (0)