Skip to content

Releases: musama619/react-photo-editor

v2.1.4

16 Aug 20:08
49f713e
Compare
Choose a tag to compare

New Features:

New Props for ReactPhotoEditor Component:

modalWidth: Customize the width of the photo editor modal. You can specify this as a number (pixels) or string (CSS value). Default is '40rem'.
canvasWidth: Set the width of the canvas element used for editing the image. Accepts either a number (pixels) or string (CSS value). Default is 'auto'.
canvasHeight: Set the height of the canvas element used for editing the image. Accepts either a number or string (CSS value). Default is 'auto'.
maxCanvasHeight: Specify the maximum height of the canvas element. Accepts either a number or string (CSS value). Default is '22rem'.
maxCanvasWidth: Specify the maximum width of the canvas element. Accepts either a number or string (CSS value). Default is '36rem'.
labels: Customize labels or text options for various elements in the photo editor. This allows you to override default text for buttons, tooltips, etc. (thanks to @JosefSchovanec #188 (comment))

Added usePhotoEditor Hook:

A new hook for integrating image editing functionality into your custom components. This hook provides full control over image editing features like brightness, contrast, rotation, and more.

Fixes:

v2.1.3

28 Jun 05:56
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.1.2...v2.1.3

v2.1.2

13 May 17:41
Compare
Choose a tag to compare

What's Changed

5330567: Fixed panning issue when the image is flipped and improved reset canvas behavior

  • Resolved an issue where panning behaved incorrectly when the image was flipped. Updated handlePointerDown and handlePointerMove functions to ensure proper panning behavior regardless of image flipping.
  • Moved the resetImage() function call inside the blob callback.

v2.1.0

12 May 10:44
Compare
Choose a tag to compare

What's Changed

  • feat: add photo panning feature, tooltip enhancement, and typescript type export by @musama619 in #171

Full Details: https://github.com/musama619/react-photo-editor/releases/tag/v2.1.0-Release-Candidate

v2.1.0-Release-Candidate

08 May 19:25
Compare
Choose a tag to compare
Pre-release

react-photo-editor@2.1.0-rc.0

🚀 Photo Panning Feature:

Thanks to Roko C. Buljan's answer on Stackoverflow

🚀 Tooltip Enhancement:

  • Implemented tooltips for button icons to provide users with contextual information when hovering over buttons.
  • This release addresses Feature Request #77

npm i react-photo-editor@2.1.0-rc.0

Stackblitz - Demo