swimlane / ngx-graph

Graph visualization library for angular
https://swimlane.github.io/ngx-graph
MIT License
922 stars 285 forks source link

Get coordinate in the graph on click #521

Open MaxTotal opened 11 months ago

MaxTotal commented 11 months ago

Hello,

I'm using a function trigger by (dblclick) on the ngx-graph. If I double click on the graph, a modal appears just like the way I want. This modal display information the user need to fill to create a future node. My problem is that when I save, I want to add the node on the graph at the position where the user double clicked on it.

Is there a way to get the position where the double click was performed ? I tried to deduce it from the graph or from the event but that was unsuccessful....

Thanks !

MaxTotal commented 10 months ago

Can't find the solution, am I the only to need this ?