cropperjs icon indicating copy to clipboard operation
cropperjs copied to clipboard

Add an API to easily get access to the selection relative to the image (v2)

Open DavidRouyer opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. Today, it's very difficult to get access to the selection relative to the image (x,y,width,height).

Describe the solution you'd like We could have something like $relativeSelection() which returns an object like {x, y, width, height} with values transformed from the x, y, width and height from the selection applied to the transform from the image.

Describe alternatives you've considered n/a

Additional context n/a

DavidRouyer avatar Jun 22 '22 17:06 DavidRouyer

The selected x, y, width and height values are entirely based on the image.

fengyuanchen avatar Jul 02 '22 05:07 fengyuanchen