sekoyo/react-image-crop

when we have circularCrop as prop, how to set the points on circle?

Ramin-Khodaie opened this issue · 3 comments

I need to have the 4 points on border of circle when I pass circularCrop as props to ReactCrop component and could resize the circle by them, is it possible or indeed is there someone with the same experience?

sekoyo commented

Hi, the circle is just some simple CSS, the logic is still all based on a rectangle. I think that it's quite normal to have the points still on the rectangle and it's not trivial to change so going to leave it as it is

Screenshot 2023-11-30 at 21 45 59 Screenshot 2023-11-30 at 21 46 27 Screenshot 2023-11-30 at 21 49 42

I target the four points in CSS and transfom them on circle.
All I wanted was this and I appricate you for such amazing package.