Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse events and visual highlight of a node when hovering and clicking #28

Merged
merged 9 commits into from
Feb 3, 2023

Conversation

Stukova
Copy link
Contributor

@Stukova Stukova commented Feb 1, 2023

New configuration

  • renderHighlightedNodeRing
  • highlightedNodeRingColor
  • events.onMouseMove
  • events.onNodeMouseOver
  • events.onNodeMouseOut

New API

  • graph.getNodeRadiusByIndex(index)
  • graph.getNodeRadiusById(id)
  • graph.spaceToScreenPosition(coordinates)
  • graph.spaceToScreenRadius(radius)

New feature

Highlight a node when hovering and clicking

Screenshot 2023-01-11 at 13 41 13

Related issue - #24

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/config.ts Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/variables.ts Show resolved Hide resolved
@rokotyan rokotyan merged commit 1af423d into main Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants