Skip to content

Generalize pointer selection #1797

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

Open
Fil opened this issue Aug 9, 2023 · 0 comments
Open

Generalize pointer selection #1797

Fil opened this issue Aug 9, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Fil
Copy link
Contributor

Fil commented Aug 9, 2023

A “best candidate” function receives as input the channels and max radius, and returns a function that receives the pointer position and returns the best candidate, if any.

This allows a user to build:

  • a pointer that knows about rects, or links
    • we might want to build Plot.pointerRect as a standard method
  • a pointer that is optimized with a quadtree or a spatial tree
  • a pointer that returns several data points at the same time (maybe?)
  • a pointer that knows about geojson (Plot.geo with tip: true should use Plot.centroid #1743)
  • more custom behaviors?
@Fil Fil added the enhancement New feature or request label Aug 9, 2023
@Fil Fil self-assigned this Aug 9, 2023
@mbostock mbostock changed the title generalize pointer selection Generalize pointer selection Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant