mafs icon indicating copy to clipboard operation
mafs copied to clipboard

Intractable Elements

Open xjustleoo opened this issue 1 year ago • 1 comments

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.

xjustleoo avatar Mar 07 '23 13:03 xjustleoo

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

zsrobinson avatar May 13 '23 00:05 zsrobinson