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

Question: Custom event when the canvas is clicked #963

Open thmsbkkr opened 1 year ago

thmsbkkr commented 1 year ago

Hi everyone.

I'm looking for an event I can hook into that fires whenever the canvas is clicked but I can't find one. I've tried to listen to the following events without success. They do not respond when clicking the canvas.

First question: Is something available for this? If not how would I go about it implementing a custom event?

Thanks in advance!

Thomas.