uber / react-digraph

A library for creating directed graph editors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node and edges position not updating on edge creation

Djazouli opened this issue · 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.

commented

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