Skip to content

Commit

Permalink
API: CropImageOptions#canChangeCropWindow option. (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanniktech authored Aug 5, 2024
1 parent a25c2c8 commit e5424e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ import kotlinx.parcelize.Parcelize
@JvmField var multiTouchEnabled: Boolean = false,
/** If the crop window can be moved by dragging the crop window in the center. */
@JvmField var centerMoveEnabled: Boolean = true,
/** If you are allowed to change the crop window by resizing it. */
@JvmField var canChangeCropWindow: Boolean = true,
@JvmField var maxZoom: Int = 4,
/** In percentage. 0.1 means 10% on both sides. */
@JvmField var initialCropWindowPaddingRatio: Float = 0.0f,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ internal class CropOverlayView @JvmOverloads constructor(
cornerShape = options.cornerShape
cropShape = options.cropShape
mSnapRadius = options.snapRadius
isEnabled = options.canChangeCropWindow
guidelines = options.guidelines
isFixAspectRatio = options.fixAspectRatio
aspectRatioX = options.aspectRatioX
Expand Down

0 comments on commit e5424e9

Please sign in to comment.