-
Notifications
You must be signed in to change notification settings - Fork 228
Open
Labels
Description
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
I would like x and y coordinates to be passed in to the callback
Describe your use case
I would like to create a new node at a specific user-defined point on the canvas.
It is much easier to do this graphically by clicking instead of adding a node, adding it randomly on the page and dragging it to my desired position.
Describe alternatives you've considered
I've been adding nodes with the interaction as above.
Additional context
I'm not super familiar with the codebase but I've checked the SyntheticBaseEvent that is returned by the onClickGraph function and couldn't find numbers that resembled the coords that I need.