Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
... by changing
visible
from a 'calc' to a 'plot' edit type and using a "visible batch" in the scattergl code, similar to how selections are currently handled.Graphs will slow calc steps will benefit the most. For example, on a 1e6 scattergl graph,
clocks in at about 30ms which is about 50x faster than on master 🐎
Eventually, we could augment this PR by adding a new edit type that would bypass
drawFramework
andinitInteractions
(which are very 🐢 for sploms), but I'll leave that for later if ok.Note that commits 3790734 and b816a8e might be a bit controversial and may have some side-effects during subplot/trace removal the spli through our tests, so I wouldn't mind a second opinion there.
I would appreciate if @dy could take a look at e85725a and cf65abd
To be merged in #2823
cc @alexcjohnson and @dy