Skip to content

Commit

Permalink
feat(scatterplot): add ability to use a mesh to capture interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Benitte authored and Raphaël Benitte committed Oct 26, 2018
1 parent 647a496 commit ff9399f
Show file tree
Hide file tree
Showing 36 changed files with 1,213 additions and 591 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/components/axes/GridLines.js
Expand Up @@ -24,7 +24,7 @@ export default class GridLines extends Component {
})
).isRequired,
theme: PropTypes.object.isRequired,
// motion

animate: PropTypes.bool.isRequired,
motionStiffness: PropTypes.number.isRequired,
motionDamping: PropTypes.number.isRequired,
Expand Down
5 changes: 4 additions & 1 deletion packages/scatterplot/index.d.ts
Expand Up @@ -50,9 +50,12 @@ declare module '@nivo/scatterplot' {
symbolShape?: 'circle' | 'square'

isInteractive?: boolean
onClick?: ScatterPlotMouseHandler
useMesh?: boolean
debugMesh?: boolean
onMouseEnter?: ScatterPlotMouseHandler
onMouseMove?: ScatterPlotMouseHandler
onMouseLeave?: ScatterPlotMouseHandler
onClick?: ScatterPlotMouseHandler

tooltipFormat?: TooltipFormatter
tooltip?: (data: ScatterPlotDatum) => React.ReactNode
Expand Down
1 change: 1 addition & 0 deletions packages/scatterplot/package.json
Expand Up @@ -27,6 +27,7 @@
"@nivo/core": "0.50.0",
"@nivo/legends": "0.50.0",
"@nivo/scales": "0.50.0",
"@nivo/voronoi": "0.50.0",
"d3-scale": "^2.1.2",
"d3-shape": "^1.2.2",
"lodash": "^4.17.4",
Expand Down

0 comments on commit ff9399f

Please sign in to comment.