-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Persistent selections for cartesian subplots #6243
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
105 commits
Select commit
Hold shift + click to select a range
e008c0b
move selection code into components/selections
archmoj c09a693
add selections, newselection & activeselection
archmoj 49c2d28
adjustments in shapes for selections
archmoj e71617d
drag css no londer needed
archmoj c7e49e7
selections in core and plot_api
archmoj c6d954d
selections in plots
archmoj b952125
selections in plot schema
archmoj b8c1b6f
TODO comment for x0, x1 dflt
archmoj 11d5a71
one outline
archmoj 9976a76
add optional eraseselection button to modebar
archmoj 1107600
test selections in axes_breaks-gridlines
archmoj b183c95
test selections in 2dhistogram_contour_subplots
archmoj 152f19c
test selections in 12
archmoj fe4b29b
test selections in multicategory-mirror
archmoj 952262f
test selections in bar-offsetgroups
archmoj c477571
potential fix for splom
archmoj 66c2b75
skip one splom test for now
archmoj c7d0444
adjust scattergl_select tests
archmoj 6ff3801
adjust select tests
archmoj a56ef0f
improve activating selections by adding a sensory element
archmoj addd602
add selections tests
archmoj adf7163
handle null selections e.g. non-sufficient x y coords
archmoj 8986bc5
fix test - no visible attr for selections yet
archmoj 683b89e
refactor selections draw
archmoj 732b585
refactor - replace keys with vars
archmoj ca17b3e
refactor var i
archmoj bd99eb9
handle selections in multiple subplots for splom
archmoj e6c0693
refactor - use separate variable for pts loop
archmoj 7573d73
refactor - make it easier to follow variables
archmoj 4b341c7
refator - put regl update code inside a function
archmoj 14ea4c8
fix multiple selections
archmoj efa4766
additional fixes in determineSearchTraces for splom
archmoj 54f7450
revert parts of changes in determineSearchTraces
archmoj ebca656
avoid naming conflict with newSelections fn
archmoj df859b2
use evenodd fill-rule for selections
archmoj c4c806f
no open path selection at least for now
archmoj c1379c5
drop inverted keys in mergePolygons
archmoj 761ef5b
fix getting polygons when having multiple polygons in one selection
archmoj c7ff1ce
fix selections with multiple polygons and more
archmoj a5d0e60
use reversed outlines in tests
archmoj 7cfc09f
no need to determineSearchTraces without selectionTesters
archmoj 5ca52a0
add early return for empty lists in multiTester
archmoj 0434489
fix for scattergl relayout selections
archmoj 8366640
revise outline vertex modifiers to match rangeslider & zoom box
archmoj 9ce4079
rename Region > Group controllers in respect to multi-region shapes
archmoj f3a9538
edge controllers for rects
archmoj 5bdec43
test selections multi polygons scattergl
archmoj 45d9962
provide new path for eraseselection button
archmoj b3025e6
display interactive selections for second outlines
archmoj 6618912
centralize get subtract logic
archmoj 897ec0c
fix conversion for draft selection polygons
archmoj 0e76709
for now drop test case of combination of click and drag selections
archmoj d28cb4f
no activeselection.fillcolor by default
archmoj 4138cf0
make it easier to activate selections using all pointer-events
archmoj d5e53d9
revise selections.path description
archmoj d83ca89
newselection immediate and gradual modes
archmoj 44801d5
different names for lists not to be confused with fn requires
archmoj c0c70be
handle immediate selections for cartesian subplots
archmoj fed9db9
activate immediate selection right after creation
archmoj 095cef0
keep gradual newselection.mode in tests
archmoj 07e09cb
adjust the size of active outline controllers
archmoj 34d639d
remove active selection on double click and persist selections
archmoj faa1217
move display_outlines from shapes/draw_newshape to shapes
archmoj 2e8d2d9
drop eraseselection button
archmoj 20724d7
eraseActiveSelection now internal
archmoj 8c7ead6
clear outline controllers at the start of selection draw
archmoj 5507076
adjust controllers for tiny rect selections
archmoj cb2c710
restrict active selection removal to select modes
archmoj 914cfe8
clear outline controllers before making new ones
archmoj 693d1d0
persistent selection across splom subplots - keep selecting
archmoj 6eba38d
test selections in splom_iris-matching
archmoj 14a0e22
avoid missing splom scenes
archmoj 60c8464
avoid undefined length to pass plot_api tests
archmoj 0db958c
emit plotly_selected at the end of reselect
archmoj 6cdff0f
use mergedPolygons in eventData - potential fix for issue 4095
archmoj 1126808
Revert "emit plotly_selected at the end of reselect"
archmoj c75a902
fix to pass plot_api test
archmoj 5322550
return eventData from reselect
archmoj d9f6f50
Revert "use mergedPolygons in eventData - potential fix for issue 4095"
archmoj 703299e
draft log for PR 6243
archmoj f6d9d94
move clearSelectionsCache into doneFn throttle
archmoj 33d0085
emit selected after selection edits
archmoj 420cefc
rewrite fillRangeItems in select.js so that in does not depend on sel…
archmoj 5060946
move makeFillRangeItems outside preSelect
archmoj 6c1f418
update comment
archmoj 9c9a8c8
move override fillRangeItems outside prepSelect
archmoj 5ea9055
reorder reselect args
archmoj 190efea
revise reselect args
archmoj 211548b
correct allSearchTraces var name
archmoj ad2e740
provide range and lassoPoints for modified selections
archmoj 37a664a
include range and lassoPoints depending on rect and lasso
archmoj b9d2db8
use mergedPolygons in plotly_selecting event
archmoj 4623196
provide ranges for rect selection edits in plotly_selected
archmoj 3632827
add comment regarding new selection plotly_selected points
archmoj 8b959ea
emit plotly_deselect on selection removal and update subplot state
archmoj ab9da47
move handle_outlines into shapes beside display_outlines
archmoj 23b812a
clearSelect > clearOutline
archmoj 8776d49
add all the points to new selection points in event data
archmoj d2832df
emit selected not deselect when selections remain from deselect
archmoj 293abfb
use fullLayout references in _deselect
archmoj 0f03f1f
fix subplot state on deselect single selections
archmoj b927b88
do not regenerate scattergl when computed
archmoj 78f3700
adjust splom test
archmoj feb4657
clear subplot selections before adding new selection in immediate mod…
archmoj 46709ab
provide layout.selections in plotly_selected events
archmoj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
Yes, I think so 😄 (this is basically #4095, right?)
As it stands when you edit one of the selections later, the points from all selections are included; we should do that when you create a new selection as well.
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.
No, this
plotly_selected
one returns points similar to theplotly_selecting
but it fires after a new selection not during the process of selecting. The shift/alt missing part is actually addressed in b9d2db8.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.
Addressed in 8776d49.