-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Bug fix: applying camera up.z vector at scene init #3256
Changes from 17 commits
f82007b
d8ef9eb
556268b
eb72856
789cfd9
4014c35
1ae12b3
cb6dab7
67ea429
5c3742c
3ab1b1d
5b24f51
d338058
b8da9ba
899b568
724416b
c9eed54
b65fa61
d25c335
f8bf472
6af04f2
9ef8a70
f43f944
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -140,7 +140,7 @@ module.exports = { | |||
valType: 'enumerated', | ||||
role: 'info', | ||||
values: ['orbit', 'turntable', 'zoom', 'pan', false], | ||||
dflt: 'turntable', | ||||
dflt: 'orbit', | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm. I would prefer removing the Could you also add some info in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I updated the description. Thanks @etpinard for the note. I will give There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Once I tried to remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You need to pass the dynamic default to plotly.js/src/plots/gl3d/layout/defaults.js Line 141 in c9eed54
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @alexcjohnson, I will modify it to be this way. |
||||
editType: 'plot', | ||||
description: [ | ||||
'Determines the mode of drag interactions for this scene.' | ||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -394,7 +394,7 @@ describe('Test gl3d plots', function() { | |
|
||
it('@gl should be able to reversibly change trace type', function(done) { | ||
var _mock = Lib.extendDeep({}, mock2); | ||
var sceneLayout = { aspectratio: { x: 1, y: 1, z: 1 } }; | ||
var sceneLayout = { aspectratio: { x: 1, y: 1, z: 1 }, dragmode: 'turntable' }; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you need to change this? I'm fearing a breaking change here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In order to set There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So without setting What are the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @etpinard notice this isn't a setting, it's an expectation. But I agree, we shouldn't be mutating the input |
||
|
||
Plotly.plot(gd, _mock) | ||
.then(delay(20)) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is getting better by the minute. Thanks for your efforts @archmoj
Now, would there be a way to tweak this condition such that
gl3d_ibm-plot
andgl3d_surface-lighting
still default todragmode: 'turntable'
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point @etpinard. Let me check.