react-d3-graph icon indicating copy to clipboard operation
react-d3-graph copied to clipboard

Changing state causes graph to separate if d3 is set in config

Open jadenmazzone opened this issue 3 years ago • 1 comments

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:

  1. set d3 in the config (can just be empty) ie d3:{}
  2. staticGraphWithDragAndDrop: false

Expected behavior The nodes should not move when changing state.

Screenshots Before changing state. Screen Shot 2021-06-09 at 1 32 27 PM

After changing state. Screen Shot 2021-06-09 at 1 32 40 PM

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.

jadenmazzone avatar Jun 09 '21 20:06 jadenmazzone

I believe this is the same issue as: https://github.com/danielcaldas/react-d3-graph/issues/281

jadenmazzone avatar Jun 09 '21 20:06 jadenmazzone