Uh oh!
There was an error while loading. Please reload this page.
Add config options in plot schema - #3376
Conversation
- which match the current "default", but will make scrollZoom:false disable zoom for all subplots!
etpinard
commented
Jan 14, 2019
... @archmoj would you mind taking a look at this one at some point this week? |
archmoj
commented
Jan 14, 2019
This one is also interesting to review. Thanks @etpinard. |
Uh oh!
There was an error while loading. Please reload this page.
| queueLength: { | ||
| valType: 'integer', | ||
| min: 0, |
There was a problem hiding this comment.
It may be useful to have a max for this.
There was a problem hiding this comment.
Currently the Queue logic has no limit to the number of items.
You're right though, there should probably be a max, but as this is deprecated code, I'll pass.
| ].join(' ') | ||
| }, | ||
| scrollZoom: { |
There was a problem hiding this comment.
We may apply the changes to this attribute from other PR #3422:
plotly.js/src/plot_api/plot_config.js
Lines 147 to 159 in 16a01e7
There was a problem hiding this comment.
Yes, I'm planning on merging #3422 into this PR.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Make scrollZoom config option a flaglist
etpinard
commented
Jan 16, 2019
got a in-person 💃 from @archmoj - merging! |
resolves#2703
Unlike #1188, this PR doesn't try to make the config options (or attributes?) compatible with
Lib.coerce. Instead, this PR just listsvalTypeanddescriptionfields for all the config options and formats them into the schema. Here, the default config "object" stays the same, hence there's no breakage in the behaviour.Go to https://22282-45646037-gh.circle-artifacts.com/0/plot-schema.json and
<ctrl-f>for"config":to see the results.cc @plotly/plotly_js