Skip to content

Commit

Permalink
Allow setting of hover point to null in public API (#105)
Browse files Browse the repository at this point in the history
The public setHoverPointIndex would only accept a number even though internally it can also be null when clearing the hover state.
  • Loading branch information
jameswex committed Aug 2, 2022
1 parent ab3e214 commit 759d3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scatter_gl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class ScatterGL {
return pointColorer(index, this.selectedPointIndices, this.hoverPointIndex);
}

setHoverPointIndex(index: number) {
setHoverPointIndex(index: number | null) {
this.hoverPointIndex = index;
this.updateScatterPlotAttributes();
/* Skip render if currently animating */
Expand Down

0 comments on commit 759d3a0

Please sign in to comment.