Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: CropImageOptions#canChangeCropWindow option. #636

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading