konvajs/react-konva-utils

unable to use clip functionality for HTML component

Rushi-Kumar opened this issue · 1 comments

If the HTML component is placed outside the clip, it will remain visible when using the clip function.

Screenshot 2024-01-31 at 8 31 06 AM

Clip is function is used to make only 3 lines visible, all other react konva components are hidden expect for HTML components,

Please help me how to handle this situation.
Thank you in advance

HTML is not part of the canvas rendering, so clip doesn't affect it. I recommend not to use for and icon. It is better to use for "temporary" components, such as tooltips or some inputs.