1 | import { ImageTransform } from './image-transform.interface';
|
2 | export interface CropperOptions {
|
3 | format: OutputFormat;
|
4 | maintainAspectRatio: boolean;
|
5 | resetCropOnAspectRatioChange: boolean;
|
6 | transform: ImageTransform;
|
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 | initialStepSize: number;
|
18 | roundCropper: boolean;
|
19 | onlyScaleDown: boolean;
|
20 | imageQuality: number;
|
21 | autoCrop: boolean;
|
22 | backgroundColor: string;
|
23 | containWithinAspectRatio: boolean;
|
24 | hideResizeSquares: boolean;
|
25 | alignImage: 'left' | 'center';
|
26 | }
|
27 | export type OutputFormat = 'png' | 'jpeg' | 'bmp' | 'webp' | 'ico';
|
28 | export type OutputType = 'base64' | 'blob';
|