-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Changes from all commits
63ddd94
512679e
b335b05
77971f4
b6c5610
4c14251
5fb7cd1
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 |
---|---|---|
|
@@ -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.', | ||
|
||
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. 🐄 ? Not sure if intentional. 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. Yes, this wording could be improved. The most important points I wanted to make in the description were that:
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 was meaning just the blank line. I think the description itself is clear enough. 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. T'was intentional 😄 but if it looks like a 🐮, it must be one. |
||
'Note that, regardless of this attribute,', | ||
'an undefined layout width or height', | ||
'is always initialized on the first call to plot.' | ||
].join(' ') | ||
}, | ||
width: { | ||
|
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?
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
gd
isn't aHTMLElement
,el3.classed('js-plotly-plot')
throws an exception.