projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.64k stars 1.17k forks source link

Auto Distribute (Dagre) disconnect links when zoom of offset is changed #252

Open neotec22 opened 6 years ago

neotec22 commented 6 years ago

Steps to reproduce:

1 - Open the "Auto Distribute (Dagre)" demo on http://www.projectstorm.io/react-diagrams/ 2 - Move a few nodes (changing node positions) 3 - Scroll to zoom-in or zoom-out 4 - Click on Re-distribute button 5 - Try to move one of the nodes

Issue:

chadacious commented 5 years ago

It seems a call to diagramEngine.clearRepaintEntities(); just before calling setDiagramModel resolves this problem.