@cdmx/wappler_ac_cropperjs
v0.0.6
Published
App Connect module for CropperJS
Downloads
9
Maintainers
Readme
Maintained by: Muskan Sinha
CropperJS Module Documentation
CropperJS is a custom app connect module that simplifies the process of adding image cropping functionality to web applications. It is mainly used for compression and resizing images, offering a user-friendly interface that allows users to select and adjust the cropping area of an image before obtaining the cropped data.
CropperJS Properties
- ID: Unique ID for the CropperJS. (Required)
- Src: Src of the image to be cropped. (Required)
- Field ID: Set the id of the image uploader. (Required)
CropperJS Component Options
This describes the options available for the Cropper component and their default values.
- View Mode: Define the view mode of the CropperJS. (Default: 0)
- Drag Mode: Define the drag mode of the CropperJS. (Default: "crop")
- Initial Aspect Ratio: Define the initial aspect ratio of the CropperJS. (Default: 0)
- Aspect Ratio: Define the aspect ratio of the CropperJS. (Default: 0)
- No Responsive: Disable responsiveness of the CropperJS. (Default: false)
- Restore: Enable restoring of the CropperJS. (Default: false)
- No Check Cross Origin: Disable checking cross origin of the CropperJS. (Default: false)
- No Check Orientation: Disable checking orientation of the CropperJS. (Default: false)
- No Modal: Disable modal of the CropperJS. (Default: false)
- No Guides: Disable guides of the CropperJS. (Default: false)
- No Center: Disable centering of the CropperJS. (Default: false)
- No Highlight: Disable highlighting of the CropperJS. (Default: false)
- No Background: Disable background of the CropperJS. (Default: false)
- No Auto Crop: Disable auto cropping of the CropperJS. (Default: false)
- Auto Crop Area: Define the auto crop area of the CropperJS. (Default: 0.8)
- No Movable: Disable moving of the CropperJS. (Default: false)
- No Rotable: Disable rotating of the CropperJS. (Default: false)
- No Scalable: Disable scaling of the CropperJS. (Default: false)
- No Zoomable: Disable zooming of the CropperJS. (Default: false)
- No Zoom On Touch: Disable zooming on touch of the CropperJS. (Default: false)
- No Zoom On Wheel: Disable zooming on wheel of the CropperJS. (Default: false)
- Wheel Zoom Ratio: Define the wheel zoom ratio of the CropperJS. (Default: 0.1)
- No Crop Box Movable: Disable moving the crop box of the CropperJS. (Default: false)
- No Crop Box Resizable: Disable resizing the crop box of the CropperJS. (Default: false)
- No Toggle Drag Mode On Dblclick: Disable toggling drag mode on double click of the CropperJS. (Default: false)
- Min Container Width: Define the minimum container width of the CropperJS. (Default: 200)
- Min Container Height: Define the minimum container height of the CropperJS. (Default: 100)
- Min Canvas Width: Define the minimum canvas width of the CropperJS. (Default: 0)
- Min Canvas Height: Define the minimum canvas height of the CropperJS. (Default: 0)
- Min Crop Box Width: Define the minimum crop box width of the CropperJS. (Default: 0)
- Min Crop Box Height: Define the minimum crop box height of the CropperJS. (Default: 0)
Action Attributes
File
- Used to fetch the file attributes of the uploaded image file.
License
The Cropper JS module is licensed under the MIT License. Please refer to the license file for more details.
For any issues or further assistance, please contact our support team.