Skip to content
This repository was archived by the owner on Jul 31, 2019. It is now read-only.

added onHover for CellPlot and Rectangle components - #3

Merged
cainlevy merged 3 commits into
masterfrom
onHover
Jan 9, 2018
Merged

added onHover for CellPlot and Rectangle components#3
cainlevy merged 3 commits into
masterfrom
onHover

Conversation

@cainlevy

@cainlevy cainlevy commented Jan 9, 2018

Copy link
Copy Markdown
Contributor

CellPlot now supports an onHover event handler. The handler will get a coordinate of the cell currently hovered, or null if the cursor is no longer hovering over the plot. The handler will also get null if the cursor is over a Rectangle placed on the plot. This behavior can be changed with CSS pointer-events: 'none'.

The Rectangle component also supports an onHover event handler, but this handler only receives a boolean describing whether the rectangle is hovered or not.

@cainlevy
cainlevy merged commit f7fb9d0 into master Jan 9, 2018
@cainlevy
cainlevy deleted the onHover branch January 9, 2018 23:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant