File tree Expand file tree Collapse file tree
cropper/src/main/kotlin/com/canhub/cropper Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ import kotlinx.parcelize.Parcelize
4040 @JvmField var multiTouchEnabled : Boolean = false ,
4141 /* * If the crop window can be moved by dragging the crop window in the center. */
4242 @JvmField var centerMoveEnabled : Boolean = true ,
43+ /* * If you are allowed to change the crop window by resizing it. */
44+ @JvmField var canChangeCropWindow : Boolean = true ,
4345 @JvmField var maxZoom : Int = 4 ,
4446 /* * In percentage. 0.1 means 10% on both sides. */
4547 @JvmField var initialCropWindowPaddingRatio : Float = 0.0f ,
Original file line number Diff line number Diff line change @@ -485,6 +485,7 @@ internal class CropOverlayView @JvmOverloads constructor(
485485 cornerShape = options.cornerShape
486486 cropShape = options.cropShape
487487 mSnapRadius = options.snapRadius
488+ isEnabled = options.canChangeCropWindow
488489 guidelines = options.guidelines
489490 isFixAspectRatio = options.fixAspectRatio
490491 aspectRatioX = options.aspectRatioX
You can’t perform that action at this time.
0 commit comments