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

Add onZoomChange prop to Graph #354

Conversation

TranquilMarmot
Copy link
Contributor

Use case for me is that I want to render nodes differently at different zoom levels. I need to know the current zoom level of the graph to do this.

Copy link
Owner

@danielcaldas danielcaldas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! This looks very useful, looking forward to it! Just have a few comments that I would like to see addressed first. Cheers!

src/components/graph/Graph.jsx Show resolved Hide resolved
src/components/graph/Graph.jsx Outdated Show resolved Hide resolved
@danielcaldas danielcaldas self-requested a review August 8, 2020 08:16
Copy link
Owner

@danielcaldas danielcaldas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat 👏 👏 ! Thanks for the changes @TranquilMarmot

@danielcaldas danielcaldas merged commit 5e5d76e into danielcaldas:master Aug 8, 2020
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.

None yet

2 participants