UNPKG

888 BTypeScriptView Raw
1export interface CropperOptions {
2 format: OutputFormat;
3 output: OutputType;
4 autoCrop: boolean;
5 maintainAspectRatio: boolean;
6 resetCropOnAspectRatioChange: boolean;
7 aspectRatio: number;
8 resizeToWidth: number;
9 resizeToHeight: number;
10 cropperMinWidth: number;
11 cropperMinHeight: number;
12 cropperMaxHeight: number;
13 cropperMaxWidth: number;
14 cropperStaticWidth: number;
15 cropperStaticHeight: number;
16 canvasRotation: number;
17 roundCropper: boolean;
18 onlyScaleDown: boolean;
19 imageQuality: number;
20 backgroundColor: string | null;
21 containWithinAspectRatio: boolean;
22 hideResizeSquares: boolean;
23 alignImage: 'left' | 'center';
24 cropperFrameAriaLabel: string | undefined;
25 checkImageType: boolean;
26}
27export type OutputFormat = 'png' | 'jpeg' | 'bmp' | 'webp' | 'ico';
28export type OutputType = 'base64' | 'blob';