Releases: dominictobias/react-image-crop
9.0.4
9.0.3
- Add
spin
prop. A non-visual prop to keep pointer coords accurate when a parent element is rotated. Not to be confused with therotate
prop which rotates the image itself. Defaults to0
, range is from-180
to180
. This behaviour is typically found in an image editing app when rotating both the image and the crop. #436
9.0.2
This is a technical bug fix release to changes related to converting to Typescript. Versions 9.0.0 + 9.0.1 are deprecated.
9.0.1
This fixes the default export. Note there were more fixes to make so use 9.0.2.
9.0.0
Note that you should use 9.0.2 (9.0.0 + 9.0.1 are deprecated due to some issues)
The library is now written in Typescript and comes with two breaking changes:
- You should remove
@types/react-image-crop
as the library is now self-documenting. - If you were importing the
.scss
file, the path is nowsrc/ReactCrop.scss
instead oflib/ReactCrop.scss
.
There are also two new props:
scale
: For zooming the image in and out. Defaults to 1. Combine with react-zoom-pan-pinch if you want pinch and scroll zooming.rotate
: For rotating the image between -180 to 180. Defaults to 0.
8.6.12
8.6.10
Apologies this should have been a breaking change. ReactCrop.scss
is now compatible with https://www.npmjs.com/package/sass only, not with the deprecated packages node-sass
or dart-sass
which was done in the process of fixing deprecation warnings for #426
Alternatively if you aren't changing any SCSS variables you can import ReactCrop.css
instead.
- Fixed "Minimum height/width not respected on mobile if user "taps" the image" #425
- Fixed deprecation warning when using new
sass
library #426 - Fixed scrolling window when dragging to move/resize crop on touch.
- Some internal changes to simplify/reduce some code.
- Removed support for proprietary IE
.setActive
function instead of.focus
(IE support was dropped and not working properly for a while anyway). - Switch to using pointer events instead of touch + mouse.