react-cropper

Cropperjs as React component

MIT License

Downloads
776.8K
Stars
2K
Committers
33

Bot releases are hidden (Show)

react-cropper - 2.0.0-0

Published by shekhar-shubhendu over 4 years ago

Changelog:

  • Typescript Rewrite
  • cropperjs bumped to v1.5.7

Breaking Change (version >= 2.0.0)

  1. Support for ref has been removed. Use the onInitialized method to get the cropper instance.
  2. To set initial aspect ratio, instead of using aspectRatio use initialAspectRatio.
  3. Props data, canvasData and cropBoxData are directly passed on to cropperjs and their respective setters are not called as earlier.
  4. React Cropper now does not try to use/execute moveTo as earlier. Directly use the moveTo method from the cropper instance.
Package Rankings
Top 1.02% on Npmjs.org
Top 40.42% on Repo1.maven.org
Badges
Extracted from project README
NPM NPM NPM downloads Bundle Size minZip Bundle Size min License codecov
Related Projects