Minor Changes
-
#3364
9f232a2Thanks
@segunadebayo! - Addedapi.setCrop(rect)to place the crop area programmatically,
in viewport coordinates.- The rect is constrained like
initialCrop: min/max size,aspectRatioorcropShape: "circle", and the viewport
bounds. - Unlike
api.reset(), it keeps the current zoom, rotation, flip, and pan.
- The rect is constrained like
Patch Changes
- #3362
fca543eThanks
@lukasedw! - Fixed issue where resizing the selection withAlt+Arrowignored
aspectRatioandcropShape: "circle". Keyboard resizing now keeps the ratio, matching handle resizing. - Updated dependencies [
cfb5874,
a125167,
647e225]:- @zag-js/dom-query@1.45.0
- @zag-js/utils@1.45.0
- @zag-js/core@1.45.0
- @zag-js/anatomy@1.45.0
- @zag-js/types@1.45.0