17 lines
956 B
TypeScript
17 lines
956 B
TypeScript
import { CropperPosition, Dimensions, ImageCroppedEvent, LoadedImage } from '../interfaces';
|
|
import { CropperSettings } from '../interfaces/cropper.settings';
|
|
import * as i0 from "@angular/core";
|
|
export declare class CropService {
|
|
crop(loadedImage: LoadedImage, cropper: CropperPosition, settings: CropperSettings, output: 'blob', maxSize: Dimensions): Promise<ImageCroppedEvent> | null;
|
|
crop(loadedImage: LoadedImage, cropper: CropperPosition, settings: CropperSettings, output: 'base64', maxSize: Dimensions): ImageCroppedEvent | null;
|
|
private cropToBlob;
|
|
private getCanvasTranslate;
|
|
private getRatio;
|
|
private getImagePosition;
|
|
private getOffsetImagePosition;
|
|
getResizeRatio(width: number, height: number, settings: CropperSettings): number;
|
|
getQuality(settings: CropperSettings): number;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<CropService, never>;
|
|
static ɵprov: i0.ɵɵInjectableDeclaration<CropService>;
|
|
}
|