projectstorm / react-diagrams

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

Fire event when a new point is created on link #845

Open drnguyenn opened 3 years ago

drnguyenn commented 3 years ago

Hi. I'm wondering is there any way to know when a new point is created on the link. I have tried to track the DiagramModel by registering linksUpdated and also eventDidFire listeners, but none of them seems to work. I think I have to create a custom state myself and fire some custom events to achieve this but I don't know how to implement it actually. Can you please give me some suggestions ?