We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a376569 commit 26ca8bbCopy full SHA for 26ca8bb
src/lib/picker.ts
@@ -752,6 +752,10 @@ export interface PickerCropOptions {
752
* Force all images to be cropped before uploading.
753
*/
754
force?: boolean;
755
+ /**
756
+ * Auto crop area value between 0 and 1.
757
+ */
758
+ autoCropArea?: number;
759
}
760
761
export interface PickerTransformationOptions {
src/schema/picker.schema.ts
@@ -333,6 +333,11 @@ export const PickerParamsSchema = {
333
aspectRatio: {
334
type: 'number',
335
},
336
+ autoCropArea: {
337
+ type: 'number',
338
+ minimum: 0,
339
+ maximum: 1,
340
+ },
341
342
343
],
0 commit comments