react-advanced-cropper
react-advanced-cropper copied to clipboard
Is there a way to get absolute coordinates of the crop when the image is rotated
I'm currently trying to get the coordinates of a crop area of a rotated image. Is there a way to accomplish this with react-advanced-cropper?
Reopening this, because I still haven't found a solution. Here is a code sandbox. The problem I'm facing is when I rotate the image. I want to get the coordinates of the stencil of the original image, but not of the rotated one.
If I'm not mistaken, the coordinates of the stencil are actually coordinates inside the canvas, but I need the coordinates of the stencil in the perspective of the original image. And I'm wondering if this can be accomplished