-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add support for poly hit testing to Patches
and greedy mode
#13277
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
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-3.3 #13277 +/- ##
===========================================
Coverage 92.43% 92.43%
===========================================
Files 316 316
Lines 20218 20221 +3
===========================================
+ Hits 18688 18691 +3
Misses 1530 1530 |
I inverted the meaning of greedy selection, to match the proposal in issue #2325 (the screencast is not updated). |
Patches
and non-greedy modePatches
and greedy mode
6d4345e
to
ad98e6c
Compare
ad98e6c
to
1adaa99
Compare
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.
The example is really nice!
…13277) * Add poly hit testing to Patches glyph * Add support for non-greedy region selection * Implement Patches._hit_rect in terms of _hit_poly * Invert the meaning of greedy selection * Use spatial index in MarkerView._hit_poly() * Use minmax2(xs, ys) instead of minmax(xs) and minmax(ys) * Add support for MultiPolygons._hit_poly and greedy selections * Increase timeout in devtools' server * Add release notes * Use ndarrays for lats and lons in us_{counties,states}.py * Add unit tests
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This PR adds support for poly hit testing to
Patches
andMultiPolygons
. It also makes hit testing procedures to use spatial index where they previously didn't and generally refactors/modernizes hit testing code.Screencast_00001.mp4
fixes #2325