projectstorm / react-diagrams

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

Cannot read property 'x' of undefined with smart routing in demo #743

Open ZChenzy opened 4 years ago

ZChenzy commented 4 years ago

This is reproducible in the demo. http://projectstorm.cloud/react-diagrams/?path=/story/advanced-techniques--smart-routing

If you drag a node to of far out of the view port. It crashes with "Cannot read property 'x' of undefined". Is there a way to limit the node within an area of X?