You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to make my annotation label with control buttons that can listen to onClick events. Is it possible to expose onClick events inside the HTMLlabels?
The text was updated successfully, but these errors were encountered:
Hey @lanzhenw 👋 yes this should totally be possible. does the code you pasted not work? I'd guess this is due to pointer-events: none being set by default on the label <g> wrapper (this is the default because often you don't want a annotation or text to interfere with e.g., tooltip events)
I would also like to do something like this, would like a prop added to Annotation to be able to disable the built-in pointer-events: none. It could be a pointerEvents prop with a default of 'none' that would just forward the value along to the <g> wrapper or a boolean prop like allowPointerEvents.
I want to make my annotation label with control buttons that can listen to onClick events. Is it possible to expose onClick events inside the HTMLlabels?
The text was updated successfully, but these errors were encountered: