Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get coordinate in the graph on click #521

Open
MaxTotal opened this issue Aug 16, 2023 · 1 comment
Open

Get coordinate in the graph on click #521

MaxTotal opened this issue Aug 16, 2023 · 1 comment

Comments

@MaxTotal
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant