-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Splom zoom perf #2527
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
Splom zoom perf #2527
Changes from 4 commits
02ed2eb
3ad1eaa
bb02281
d07ae70
468119e
0979272
ebb35ce
f9090b7
b2ee736
a0b2574
d3fe40d
cc1b3de
980855c
f7d637d
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 |
---|---|---|
|
@@ -2188,7 +2188,7 @@ axes.doTicks = function(gd, axid, skipTitle) { | |
} | ||
drawTicks(mainPlotinfo[axLetter + 'axislayer'], tickpath); | ||
|
||
tickSubplots = Object.keys(ax._linepositions); | ||
tickSubplots = Object.keys(ax._linepositions || {}); | ||
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. Unfortunate, but important as 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. ... does not relink 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. does not relink empty objects. |
||
} | ||
|
||
tickSubplots.map(function(subplot) { | ||
|
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.
Huh, I'd have thought so... perhaps worth spending a little time looking for something that does fail if this is removed, so it can be 🔒 down.
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.
@alexcjohnson Tests are currently passing even when
subroutines.doAutoRangeAndConstraints
is commented out, because of this block:plotly.js/src/plot_api/plot_api.js
Lines 2088 to 2107 in 2a25820
which makes axis range relayout calls altering constrained axes go though the
calc: true
edit pathway which (of course) callsdoAutoRangeAndConstraints
itself.Interestingly, commenting out that block which sets
flags.calc = true
does not make any test fails whensubroutines.doAutoRangeAndConstraints
is called duringaxrange
edits. Perhaps we don't need?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.
It doesn't look to me as though I wrote all that great test coverage for this section... the two key points of it are:
relayout
a constrained axis, particularly to a smaller range, and have the other axes in the group update (expanding or shrinking) to continue to meet the constraints (note that this won't work withreact
, there you'd have to manually update all axes in the constraint group)relayout
(orreact
) two or more axes in a group in such a way as to explicitly violate the constraints, one or more of those axes will expand (never shrink) its range to fit the constraints.So if you want to clean this up we should first add a few tests explicitly for ^^. I see some gui tests and one restyle test that uses constraints, but unfortunately no
relayout
orreact
tests of these edge cases.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 if I open up an issue about this and defer this to a later PR?
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.
Yep for sure - that was the "if you want to clean this up" clause
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.
Moved to -> #2540