Skip to content

Add x,y to onClickGraph callback #408

@Taresin

Description

@Taresin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions