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

Intractable Elements #117

Open
xjustleoo opened this issue Mar 7, 2023 · 1 comment
Open

Intractable Elements #117

xjustleoo opened this issue Mar 7, 2023 · 1 comment

Comments

@xjustleoo
Copy link

Hi I want to open a prompt for the users to change the points of a line or polygon manually. Currently there is no onClick functions for your elements.

@zsrobinson
Copy link

zsrobinson commented May 13, 2023

Hey there! It looks like you are already able to access the props of the base svg elements of most components in this library, which seem to be exposed with a prop named something like svgLineProps or svgEllipseProps depending on the component.

For example, I'm able to attach a console.log statement to the following circle, and you can see that it appears in my browser's console:

<Circle
  center={circle}
  radius={R}
  color="SkyBlue"
  svgEllipseProps={{ onClick: () => console.log("asdf") }}
/>
image

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

2 participants