github chakra-ui/zag @zag-js/image-cropper@1.45.0

Minor Changes

  • #3364
    9f232a2 Thanks
    @segunadebayo! - Added api.setCrop(rect) to place the crop area programmatically,
    in viewport coordinates.

    • The rect is constrained like initialCrop: min/max size, aspectRatio or cropShape: "circle", and the viewport
      bounds.
    • Unlike api.reset(), it keeps the current zoom, rotation, flip, and pan.

Patch Changes

  • #3362
    fca543e Thanks
    @lukasedw! - Fixed issue where resizing the selection with Alt+Arrow ignored
    aspectRatio and cropShape: "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

Don't miss a new zag release

NewReleases is sending notifications on new releases.