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
Refactor plot autosize#635
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
63ddd94512679eb335b0577971f4b6c56104c142515fb7cd1File 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 |
|---|---|---|
| @@ -43,13 +43,17 @@ module.exports = { | ||
| description: 'Sets the title font.' | ||
| }), | ||
| autosize: { | ||
| valType: 'enumerated', | ||
| valType: 'boolean', | ||
| role: 'info', | ||
| // TODO: better handling of 'initial' | ||
| values: [true, false, 'initial'], | ||
| dflt: false, | ||
| description: [ | ||
| 'Determines whether or not the dimensions of the figure are', | ||
| 'computed as a function of the display size.' | ||
| 'Determines whether or not a layout width or height', | ||
| 'that has been left undefined by the user', | ||
| 'is initialized on each relayout.', | ||
| ||
| 'Note that, regardless of this attribute,', | ||
| 'an undefined layout width or height', | ||
| 'is always initialized on the first call to plot.' | ||
| ].join(' ') | ||
| }, | ||
| width: { | ||
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.
Just for my own understanding: when would this not be an HTMLElement?
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.
if someone calls
Plotly.Plots.supplyDefaults({ data: [], layout: {}});- which should be allowed.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.
If
gdisn't aHTMLElement,el3.classed('js-plotly-plot')throws an exception.