swimlane/ngx-graph

Get coordinate in the graph on click

Opened this issue · 1 comments

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 !

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