1 | import { CropperOptions, ImageCroppedEvent } from '../interfaces';
|
2 | import { CropperState } from '../component/cropper.state';
|
3 | export 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 | }
|