Skip to content

Releases: dominictobias/react-image-crop

3.0.11

27 Mar 08:26
Compare
Choose a tag to compare
  • Fixed pixelCrop sometimes exceeding the bounds of the image due to number rounding. getPixelCrop(image, percentCrop) is also now exposed for some edge use cases. #167

3.0.10

25 Jan 20:23
Compare
Choose a tag to compare

Fixes

  • Set { passive: false } to prevent some modern mobile browsers from defaulting it to true and breaking the use of event.preventDefault #157

3.0.9

10 Jan 17:57
Compare
Choose a tag to compare
  • Add !default to SASS variables to make them overridable #151 #153
  • Fix hard-coded 2px offset on drag handle position calc, so that changing drag-bar size using variables keeps them centred #152

3.0.8

12 Dec 20:19
Compare
Choose a tag to compare

Fixes

  • Ensure wide images work with makeAspectCrop #144

Features

  • Allowed custom styles on image and wrapper elements #141
  • Expose method to contain crop to image boundaries #145

3.0.7

02 Nov 19:22
Compare
Choose a tag to compare
  • Another non-functional fix to /dist bundles. The minified prod build was in the wrong file so it's now swapped and correct #138

3.0.6

01 Nov 17:30
Compare
Choose a tag to compare
  • Fix exception when not passing a crop object into the component (existing since v3.0.0) #132

3.0.5

31 Oct 13:44
Compare
Choose a tag to compare
  • Another non-functional release relating to #136, which should satisfy all the ways of consuming the module as UMD (from /dist).

3.0.4

31 Oct 09:38
Compare
Choose a tag to compare
  • Fixes #136 issue in 3.0.3 which was causing a webpack React vs react casing warning.

Update: This version shouldn't be used when consuming the /dist module (e.g. via a CDN)

3.0.3

30 Oct 18:53
Compare
Choose a tag to compare
  • Add back the /dist folder to the repo for CDNs #134

(No functional changes to code)

3.0.2

10 Oct 10:26
Compare
Choose a tag to compare
  • Pixel crop should be calculated using naturalWidth and naturalHeight #122