react-d3-graph
react-d3-graph copied to clipboard
Changing state causes graph to separate if d3 is set in config
Describe the bug If d3 is set in the config, when changing the state of data (links and nodes), the graph separates. If in the config staticGraphWithDragAndDrop is set to true, then the problem doesn't occur.
To Reproduce Steps to reproduce the behavior:
- set d3 in the config (can just be empty) ie d3:{}
- staticGraphWithDragAndDrop: false
Expected behavior The nodes should not move when changing state.
Screenshots
Before changing state.
After changing state.
Environment:
OS: macOS Browser: chrome Version: 90 Node version: 14.15.4 react-d3-graph version: 2.6.0 d3 version: 5.16.0 react version: 16.13.1
Additional context Add any other context about the problem here.
I believe this is the same issue as: https://github.com/danielcaldas/react-d3-graph/issues/281