-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Array edits #1403
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
Array edits #1403
Changes from 1 commit
cc45189
13a87ce
61f250c
a9526bf
649a831
d55568c
2e6c030
f7e60fb
d7cdc0a
7ed9eb9
9f89dd6
46962af
1af058a
c6378b1
70c882b
5fb462f
d29cbae
3ef1c9b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -594,7 +594,8 @@ describe('attaching component bindings', function() { | |
expect(gd.layout.sliders[0].active).toBe(0); | ||
|
||
// Check that it still has one attached listener: | ||
expect(typeof gd._internalEv._events.plotly_animatingframe).toBe('function'); | ||
expect(typeof gd._internalEv._events.plotly_animatingframe).toBe('function', | ||
gd._internalEv._events.plotly_animatingframe); | ||
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. The second argument to 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 - that's true for most of the jasmine matchers, and can be really useful in debugging failures. |
||
|
||
// Change this to a non-simple binding: | ||
return Plotly.relayout(gd, {'sliders[0].steps[0].args[0]': 'line.color'}); | ||
|
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.
why does
'updatemenus'
need special treatment here?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.
proximate reason: because this test fails after recalc because
gd.calcdata
is a new object. But what that shows is that we don't actually need a recalc in this case. We probably could exclude from recalc everything that doesn't contribute to autorange (so, I suspect only annotations, shapes, and eventually images need recalc) but without taking the time to investigate all the other cases in detail I erred on the side of caution.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.
Ok. That's fine. Maybe we should open (another)
Registry
list for components that have acalcAutorange
method (like annotations and shapes) for this purpose here. But that's not necessary in this PR.