Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2k
Replace _has<PlotType> variables with '_has()' fullLayout method #491
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
88f552a525e3c7876ce4bf45ffec4e0c6da93493a6e63ba4ab655cb0f476e051c41c2e313150e392619c3787d4768b12c4a41427ca48d071a78521caa2ec8b77fb7e2a141d78dc297cae3f72f0c59a9609f944949837d8b0c7b2f85e6759bFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -71,7 +71,7 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) { | ||
| // if gl3d or geo is present on graph. This is retain backward compatible. | ||
| // | ||
| // TODO drop this in version 2.0 | ||
| var ignoreOrphan = (layoutOut._hasGL3D || layoutOut._hasGeo); | ||
| var ignoreOrphan = (layoutOut._has('gl3d') || layoutOut._has('geo')); | ||
| if(!ignoreOrphan) { | ||
| for(i = 0; i < layoutKeys.length; i++) { | ||
| @@ -95,7 +95,7 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) { | ||
| // make sure that plots with orphan cartesian axes | ||
| // are considered 'cartesian' | ||
| if(xaListCartesian.length && yaListCartesian.length) { | ||
| layoutOut._hasCartesian = true; | ||
| Lib.pushUnique(layoutOut._basePlotModules, Plots.subplotsRegistry.cartesian); | ||
ContributorAuthor 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. Important ⏫ | ||
| } | ||
| function axSort(a, b) { | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
In
restyle, which is more general thanin an effort to support custom
basePlotModules