konvajs / konva

Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.

Home Page:http://konvajs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Broken shadow after crop in safari

danarosca opened this issue · comments

Screenshot 2024-04-16 at 13 09 01 Screenshot 2024-04-16 at 13 08 30 If there are some crop properties, shadow effect is unable to go outside of image size. I am using only konva library. Any ideea what can cause this issue? it work on chrome and FireFox, but not in safari :( I've attached an example from Chrome ( expected result) and one from Safari.
Screenshot 2024-04-16 at 19 35 31 Screenshot 2024-04-16 at 19 35 46 Also, here are image props in for both browsers. @lavrton can you help me please?

Can you make online demo?

unfortunately it's very hard for me since this is only a small part. But the idea is that after having the crop props, I make sure they are relative to original image size and than I set them as props for Image node ( basically this is the only change I made and after this change, shadow is gone). And it's strange that it works in other browsers :(