react-digraph icon indicating copy to clipboard operation
react-digraph copied to clipboard

Node and edges position not updating on edge creation

Open Djazouli opened this issue 5 years ago • 1 comments

Describe the bug When creating a new edge, the position of previous nodes and edges is not updated instantly. See here. You need to hover over a node to update its position, and drag it to update the position of connected edges.

To Reproduce Steps to reproduce the behavior:

  1. Clone the repo
  2. Run npm install
  3. Run npm run serve
  4. Select Vertical Tree as layout (may be unnecessary)
  5. Add an edge from Node E (6) to Node D (4)

You can also do 6. Add a node 7. Link Node E (6) to this newly created node

Expected behavior Position of edges and nodes should be updated instantly

Screenshots https://gfycat.com/pleasingcavernousleafwing

Desktop (please complete the following information):

  • OS: macOS Catalina v10.15.5
  • Browser: Brave
  • Version 1.10.97 Chromium: 83.0.4103.116 (Official Build) (64-bit)

Additional context Add any other context about the problem here.

Djazouli avatar Jul 09 '20 13:07 Djazouli

I can confirm this with same setup (Vertical Tree layout)

eezstreet avatar Nov 19 '20 20:11 eezstreet