-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Lasso & rectangular selections #154
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
35 commits
Select commit
Hold shift + click to select a range
d6f983e
agignore dist
alexcjohnson e536a91
point in polygon routine, with tests
alexcjohnson 5cad4ff
lasso and selectbox skeleton
alexcjohnson ca60e63
propagate dragbox cursor to coverSlip while dragging
alexcjohnson 76926d7
fix modebar logic and tests for select dragmodes
alexcjohnson 78d2867
change polygon and its tests to multi-exports form
alexcjohnson f0e6cfb
polygon filtering algorithm
alexcjohnson c0a94f7
polygon filtering test
alexcjohnson 12b43c6
special case of polygon for rectangles
alexcjohnson 07e5cef
selection on scatter points
alexcjohnson b1a1c24
clear hover when drag starts
alexcjohnson 1958475
didn't end up using a separate lasso handler
alexcjohnson 3c40c41
crosshair it is
alexcjohnson 188a0db
inline rectFirstEdgeTest
alexcjohnson 8d0afb5
Merge branch 'master' into lasso
alexcjohnson 1c5f325
lasso like it's 2016 baby!
alexcjohnson d0203c8
scatter.selectPoints uses scatter.hasMarkers
alexcjohnson 5be72de
:cow2:
alexcjohnson 057e4ac
prep for adding selection bounds to event data
alexcjohnson 556cb83
split out scatter.selectPoints to a new file
alexcjohnson 7b07a25
support selecting scatter text
alexcjohnson 2a970fc
fx constants file
alexcjohnson d7abd18
more fx constants
alexcjohnson 7addcec
BENDPX into constants
alexcjohnson d02d612
horizontal and vertical select boxes
alexcjohnson 698376e
off-by-one error in select outline
alexcjohnson 89c1655
clear selection on zoom/pan
alexcjohnson d8ed7a7
selection range event data
alexcjohnson 7d897a4
show select icons only when they apply
alexcjohnson 96e01b6
update modebar tests for new select icon logic
alexcjohnson bc04a15
desciption attribute value delimiters
alexcjohnson 710791d
fix nonlinear axes in select
alexcjohnson 342f991
:cow2:
alexcjohnson b5c090f
MINSELECT bigger than MINDRAG
alexcjohnson 1d7745f
add lasso and selectbox icon
etpinard 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
MINSELECT bigger than MINDRAG
- Loading branch information
commit b5c090f2146a90f764cea1b607993b04c6148992
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
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.
Minor point:
I'd vote for making MINDRAG for select box bigger. I find it kind of hard 1d-selecting over large ranges.
Maybe @chriddyp, @cldougl @mdtusz could try it out.
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.
Would be a bit more code, but making the
MINDRAG
a function of the main drag distance would be useful I think. Something with a log scale would be useful. If I 1D drag the width of my screen, it's likely going to fluctuate a whole lot more than if I drag 100px.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.
+1 for a larger
MINDRAG
from me tooThere 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, I've made a MINSELECT that's a little bigger than MINDRAG (12 instead of 8). b5c090f
I don't want to make it as big as MINZOOM (or make it an increasing function of distance) because this limits how thin a rectangle you can select. Which is not a problem with MINZOOM because you can always zoom a second time.