A responsive image cropping tool for React
ISC License
Published by DominicTobias about 8 years ago
Add option to specify crossorigin
attribute #66
Published by DominicTobias about 8 years ago
this.props
in constructor (fixes IE11 exception) #60outputPixelUnits
(callbacks receive pixel crop as last arg now)Published by DominicTobias about 8 years ago
Add outputPixelUnits
option to output units in pixels #53
Published by DominicTobias about 8 years ago
PR #51 @Deepblue129
Published by DominicTobias about 8 years ago
Add option to draw crop as an ellipse #50
Published by DominicTobias over 8 years ago
Fixes issue #48 with non-es6 imports being an object with default
(regression)
Published by DominicTobias over 8 years ago
disabled
propPublished by DominicTobias over 8 years ago
Set whether the crop is valid or not on component updates. Fixes #36
Published by DominicTobias over 8 years ago
npm start
Update to React v15, which has full support for SVG meaning we can get rid of dangerouslySetInnerHtml
and thus improve performance for non-webkit browsers.
Change to ES6 classes.
Add max-width: 100%
to container or else the image can still extend beyond the container bounds in Firefox.
Published by DominicTobias over 8 years ago
The fix in 0.1.8 caused an issue due to the use of import
with babel <5 (#29). Using babel-plugin-add-module-exports
plugin to export the default
for CommonJS fixes this issue.
Published by DominicTobias over 8 years ago
#28
Published by DominicTobias over 8 years ago
Published by DominicTobias over 8 years ago
Published by DominicTobias over 8 years ago
Fixes #24
Published by DominicTobias over 8 years ago
Build was missed in the last 2 patch versions, I've added a pre-commit hook to stop this happening until a CI is in place (someday..)
Published by DominicTobias over 8 years ago
It was non-obvious that .ReactCrop--image-copy
also needed max-width
set as seen in #21. Also by providing the image DOM element to onImageLoaded the user could use the image dimensions to decide on an optimum crop (e.g. depending on landscape vs portrait)
Published by DominicTobias over 8 years ago
object-assign
package and declare it as a peerDependency