mafs
mafs copied to clipboard
Intractable Elements
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.
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") }}
/>