Skip to content
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

add @vx/voronoi #78

Merged
merged 5 commits into from
Jun 28, 2017
Merged

add @vx/voronoi #78

merged 5 commits into from
Jun 28, 2017

Conversation

williaster
Copy link
Collaborator

Voronoi diagrams are commonly used to improve the interaction experience of visualizations by enabling a wider mouse interaction area, and can be useful for the implementation of tooltips so this will hopefully be useful for #44.

This PR:

  • adds the @vx/voronoi package
  • adds a static voronoi tile example in /gallery
  • adds an interactive voronoi page example linked from the tile at /voronoi that shows a proof-of-concept for how the package can be used for mouse interactions
  • adds voronoi jest tests
  • adds a voronoi readme with an overview of the package

The readme.md has an overview of what the package exports, basically a wrapper around d3-voronoi to expose the layout itself + a VoronoiPolygon that knows how to render the polygon.

/gallery tile
pasted image at 2017_06_27 11_03 am

/voronoi page
vx-voronoi

Tested by:
tests run with npm run tests within packages/vx-voronoi/
/gallery and /voronoi tested locally in the packages/demo repo

@hshoff
Copy link
Member

hshoff commented Jun 28, 2017

😍 🏆

This is going to be great for use with tooltips

@hshoff hshoff added this to the v0.0.122 milestone Jun 28, 2017
@hshoff hshoff merged commit aa877e1 into airbnb:master Jun 28, 2017
@hshoff hshoff modified the milestones: v0.0.123, v0.0.122 Jun 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants