UNPKG

611 BTypeScriptView Raw
1import { CropperOptions, ImageCroppedEvent } from '../interfaces';
2import { CropperState } from '../component/cropper.state';
3export declare class CropService {
4 crop(cropperState: CropperState, output: 'blob'): Promise<ImageCroppedEvent> | null;
5 crop(cropperState: CropperState, output: 'base64'): ImageCroppedEvent | null;
6 private cropToBlob;
7 private getCanvasTranslate;
8 private getRatio;
9 private getImagePosition;
10 private getOffsetImagePosition;
11 getResizeRatio(width: number, height: number, options: CropperOptions): number;
12 getQuality(options: CropperOptions): number;
13}