uber / react-digraph

A library for creating directed graph editors
MIT License
2.63k stars 268 forks source link

fix layout engine adjustmentNode mutates position during nodeUpdate #325

Closed chiayenhung closed 3 years ago

chiayenhung commented 3 years ago

Issue: when using layoutEngine, updating nodes location (dragging nodes) will call layoutEngineAdjustNodes before returning onUpdateNode, which will mutate updating node location so the x and y for the updating node always returning the same values