Icard/angular-clarity-master(work.../node_modules/ngx-image-cropper/lib/interfaces/cropper-options.interface.d.ts

29 lines
919 B
TypeScript
Raw Normal View History

2024-07-16 14:55:36 +00:00
import { ImageTransform } from './image-transform.interface';
export interface CropperOptions {
format: OutputFormat;
maintainAspectRatio: boolean;
resetCropOnAspectRatioChange: boolean;
transform: ImageTransform;
aspectRatio: number;
resizeToWidth: number;
resizeToHeight: number;
cropperMinWidth: number;
cropperMinHeight: number;
cropperMaxHeight: number;
cropperMaxWidth: number;
cropperStaticWidth: number;
cropperStaticHeight: number;
canvasRotation: number;
initialStepSize: number;
roundCropper: boolean;
onlyScaleDown: boolean;
imageQuality: number;
autoCrop: boolean;
backgroundColor: string;
containWithinAspectRatio: boolean;
hideResizeSquares: boolean;
alignImage: 'left' | 'center';
}
export declare type OutputFormat = 'png' | 'jpeg' | 'bmp' | 'webp' | 'ico';
export declare type OutputType = 'base64' | 'blob';