UNPKG

1.07 kBTypeScriptView Raw
1import { LoadedImage } from '../interfaces';
2import { CropperSettings } from '../interfaces/cropper.settings';
3import * as i0 from "@angular/core";
4export declare class LoadImageService {
5 private autoRotateSupported;
6 loadImageFile(file: File, cropperSettings: CropperSettings): Promise<LoadedImage>;
7 private checkImageTypeAndLoadImageFromArrayBuffer;
8 private isValidImageType;
9 loadImageFromURL(url: string, cropperSettings: CropperSettings): Promise<LoadedImage>;
10 loadBase64Image(imageBase64: string, cropperSettings: CropperSettings): Promise<LoadedImage>;
11 private base64ToArrayBuffer;
12 private loadImageFromArrayBuffer;
13 private getSvgImageSize;
14 private transformImageFromArrayBuffer;
15 transformLoadedImage(loadedImage: Partial<LoadedImage>, cropperSettings: CropperSettings, forceTransform?: boolean): Promise<LoadedImage>;
16 private loadImageFromObjectUrl;
17 private getTransformedSize;
18 static ɵfac: i0.ɵɵFactoryDeclaration<LoadImageService, never>;
19 static ɵprov: i0.ɵɵInjectableDeclaration<LoadImageService>;
20}