Skip to content

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

Open
@shahriarhossain

Description

@shahriarhossain

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions