|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## [1.1.1] - 2026-04-30 |
| 4 | +### Added |
| 5 | +- `enableResize` option: when set to `true`, resize handles are shown on the viewport edges allowing the user to adjust its size ([#9](https://github.com/devtheorem/cropt/issues/9)). |
| 6 | +- `CroptState` interface with fields `x`, `y`, `zoom`, `width`, and `height` representing a saved crop state. |
| 7 | +- `getState()` method to retrieve the current crop state. |
| 8 | +- `bind()` now accepts a `CroptState` object as its second argument to restore zoom, position, and viewport dimensions ([#3](https://github.com/devtheorem/cropt/issues/3), [#10](https://github.com/devtheorem/cropt/issues/10)). Passing a number is still supported for backwards compatibility. |
| 9 | + |
| 10 | +### Changed |
| 11 | +- Refreshed demo site to demonstrate the `enableResize` option and saving/restoring crop state. |
| 12 | + |
| 13 | +> [!NOTE] |
| 14 | +> Version 1.1.0 was skipped due to a bug with resize handle touchscreen behavior. |
| 15 | +
|
| 16 | + |
3 | 17 | ## [1.0.2] - 2026-01-16 |
4 | 18 | ### Fixed |
5 | 19 | - Incorrect step value for range input. |
@@ -27,12 +41,12 @@ To upgrade code that used the `"circle"` viewport type, instead set the border r |
27 | 41 |
|
28 | 42 | ## [0.9.0] - 2024-10-23 |
29 | 43 | ### Fixed |
30 | | -- Cropt now clamps image drags to the viewport boundary, rather than ignoring the delta if it would go past the boundary. This fixes unexpected gaps between the image and viewport edges. ([#5]). |
| 44 | +- Cropt now clamps image drags to the viewport boundary, rather than ignoring the delta if it would go past the boundary. This fixes unexpected gaps between the image and viewport edges. ([#5](https://github.com/devtheorem/cropt/pull/5)). |
31 | 45 |
|
32 | 46 |
|
33 | 47 | ## [0.8.9] - 2024-06-26 |
34 | 48 | ### Fixed |
35 | | -- Image content is no longer doubled when resizing a large image with transparency ([#1]). |
| 49 | +- Image content is no longer doubled when resizing a large image with transparency ([#1](https://github.com/devtheorem/cropt/pull/1)). |
36 | 50 |
|
37 | 51 |
|
38 | 52 | ## [0.8.8] - 2023-11-21 |
@@ -85,9 +99,8 @@ This is the initial pre-release after forking from [Foliotek/Croppie](https://gi |
85 | 99 | - `enableResize` option. |
86 | 100 | - `showZoomer` option (hide via CSS instead if desired). |
87 | 101 |
|
88 | | -[#1]: https://github.com/devtheorem/cropt/pull/1 |
89 | | -[#5]: https://github.com/devtheorem/cropt/pull/5 |
90 | 102 | [#6]: https://github.com/devtheorem/cropt/issues/6 |
| 103 | +[1.1.1]: https://github.com/devtheorem/cropt/compare/v1.0.2...v1.1.1 |
91 | 104 | [1.0.2]: https://github.com/devtheorem/cropt/compare/v1.0.1...v1.0.2 |
92 | 105 | [1.0.1]: https://github.com/devtheorem/cropt/compare/v1.0.0...v1.0.1 |
93 | 106 | [1.0.0]: https://github.com/devtheorem/cropt/compare/v0.9.1...v1.0.0 |
|
0 commit comments