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

added onHover for CellPlot and Rectangle components #3

Merged
merged 3 commits into from
Jan 9, 2018
Merged

Conversation

cainlevy
Copy link
Contributor

@cainlevy cainlevy commented Jan 9, 2018

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