projectstorm / react-diagrams

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

NodeModel.positionChanged recognizes state updates as a position update #946

Open amonrperes opened 2 years ago

amonrperes commented 2 years ago

Our company uses react-diagrams as a major feature of our system. Recently we noticed that when one of our nodes updates it's state without being moved from it's current position, the 'positionChanged' method is triggered. We had to create an algorithm to detect whether the node changed it's position using the NodeModel.getPosition.

Is this behaviour correct?