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

Fixing graph reset #377

Merged
merged 1 commit into from
Oct 10, 2020
Merged

Conversation

antoninklopp
Copy link
Collaborator

This should fix #372 .

However, when the graph is reset, it now replays the force animation from the graph beginning (when you open it for the first time).
We could maybe avoid this by checking some properties leading to a graph with forces or without (for example static graphs). We could also consider that it is normal that during a reset, the graph replays this shrinking animation.

What do you think @danielcaldas ?

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.

Hey, Anthony thanks for the change. I think we can have the graph to replay the forces once resetNodesPositions is called. Just have a small code change that I would like you to make (just for code style consistency). Thanks 👍

src/components/graph/graph.helper.js Outdated Show resolved Hide resolved
@danielcaldas danielcaldas added the hacktoberfest-accepted Label for accepted PRs for Hacktoberfest 2020 label Oct 10, 2020
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.

Looking good @antoninklopp 👍 Thanks for the changes

@danielcaldas danielcaldas merged commit ca84242 into danielcaldas:master Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Label for accepted PRs for Hacktoberfest 2020
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some properties make the graph becomes unresetable
2 participants