Skip to content
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