forked from almende/vis
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Network: Add pointer data to hover events (almende#3128)
Fix for almende#1222. This makes the passed data of events `hoverNode`, `hoverEdge`, `blurNode` and `blurEdge` more conformant to the passed data of the click events. In particular, the following fields are added to the event data: ``` event: [Object] original hover event, pointer: { DOM: {x:pointer_x, y:pointer_y}, canvas: {x:canvas_x, y:canvas_y} } ``` The changes can be tested with example `network/events/InteractionEvents`.
- Loading branch information
1 parent
1b891da
commit 8ed51d3
Showing
2 changed files
with
94 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters