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

Initial Positioning issue & Animation Stops working after few moves #553

Open
shahriarhossain opened this issue Jan 17, 2023 · 1 comment

Comments

@shahriarhossain
Copy link

shahriarhossain commented Jan 17, 2023

Describe the bug
Issue 1: Whenever we start the project, nodes and links are not in the middle, I have to explicitly call the reset node to bring things in the middle. One possible solution is to call the reset functionality within a useEffect which will solve this issue. But I am just wondering if there is any other solution.

Issue 2: After disabling the nodeHighlightBehavior, I can see the animation. If you move one node, other nodes move expectedly. However, whenever you drag a node, it seems it gets a static position and after that, it does not move from that position.

Check the following gif to see the issues I mentioned above.
Screenshots
Recording 2023-01-16 at 19 59 37

Environment:

  • OS: Windows
  • Browser: Chrome
  • Node version: 16.7.0
  • react-d3-graph version: ^2.6.0
  • d3 version : 5.5.0
  • react version: 18.2.0
@shahriarhossain
Copy link
Author

shahriarhossain commented Jan 17, 2023

Issue 2 visualization: As you can see in the following gif, once the SpiderMan node gets a position, after that it does not participate in any animation.
Recording 2023-01-16 at 20 50 08

Expected: SpiderMan node will keep moving when other nodes come closer.

can you please guide me @danielcaldas @LonelyPrincess

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

No branches or pull requests

1 participant