Reference for group in Html component
ierehon1905 opened this issue · 3 comments
Hi, thank you for your awesome library. I was wondering if it is possible to pass the ref to the component.
My use case is manually passing through some of the events from html to konva. Right now I stick to konva._eventhandlername
.
react-konva-utils/src/html.tsx
Line 36 in 190fbf4
Can you explain why do you need it?
Can you explain why do you need it?
For example one of the use cases included dragging html elements containing text rendered through this library. I was wondering if I could directly pass the mouse/pointer down event from html to konva group. Because right now if im not mistaken when I pass the event to bare konva with konva._eventhandlername
it recalculated the position or stuff. I just thought it would be easier to pass the events manually and directly to the node I intend.
Sorry, I still don't understand it. Please create a demo.