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
The code I get this error is: const crop = imageSrc.crop({ x: value.x / ratio_w, y: value.y / ratio_h, width: value.width / ratio_w, height: value.height / ratio_h });
I got this error when I was trying to get a subimage with the x,y, width and height coordinates of the image area to get. In there I declare const [imageSrc, setImageSrc] = useState(null), and I update the value of imageSrc here:
The code I get this error is:
const crop = imageSrc.crop({ x: value.x / ratio_w, y: value.y / ratio_h, width: value.width / ratio_w, height: value.height / ratio_h });
I got this error when I was trying to get a subimage with the x,y, width and height coordinates of the image area to get. In there I declare
const [imageSrc, setImageSrc] = useState(null)
, and I update the value of imageSrc here:According to Konva's documentation, there are instructions:
The text was updated successfully, but these errors were encountered: