ngx-image-cropper 7.1.0 → 7.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/component/image-cropper.component.mjs +26 -19
- package/fesm2015/ngx-image-cropper.mjs +25 -18
- package/fesm2015/ngx-image-cropper.mjs.map +1 -1
- package/fesm2020/ngx-image-cropper.mjs +25 -18
- package/fesm2020/ngx-image-cropper.mjs.map +1 -1
- package/lib/component/image-cropper.component.d.ts +4 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { DomSanitizer, HammerLoader, SafeStyle, SafeUrl } from '@angular/platform-browser';
|
|
3
3
|
import { CropperPosition, Dimensions, ImageCroppedEvent, ImageTransform, LoadedImage } from '../interfaces';
|
|
4
4
|
import { OutputFormat } from '../interfaces/cropper-options.interface';
|
|
@@ -13,6 +13,7 @@ export declare class ImageCropperComponent implements OnChanges, OnInit {
|
|
|
13
13
|
private loadImageService;
|
|
14
14
|
private sanitizer;
|
|
15
15
|
private cd;
|
|
16
|
+
private zone;
|
|
16
17
|
private readonly hammerLoader;
|
|
17
18
|
private settings;
|
|
18
19
|
private setImageMaxSizeRetries;
|
|
@@ -67,7 +68,7 @@ export declare class ImageCropperComponent implements OnChanges, OnInit {
|
|
|
67
68
|
cropperReady: EventEmitter<Dimensions>;
|
|
68
69
|
loadImageFailed: EventEmitter<void>;
|
|
69
70
|
transformChange: EventEmitter<ImageTransform>;
|
|
70
|
-
constructor(cropService: CropService, cropperPositionService: CropperPositionService, loadImageService: LoadImageService, sanitizer: DomSanitizer, cd: ChangeDetectorRef, hammerLoader: HammerLoader | null);
|
|
71
|
+
constructor(cropService: CropService, cropperPositionService: CropperPositionService, loadImageService: LoadImageService, sanitizer: DomSanitizer, cd: ChangeDetectorRef, zone: NgZone, hammerLoader: HammerLoader | null);
|
|
71
72
|
ngOnChanges(changes: SimpleChanges): void;
|
|
72
73
|
private onChangesUpdateSettings;
|
|
73
74
|
private onChangesInputImage;
|
|
@@ -110,6 +111,6 @@ export declare class ImageCropperComponent implements OnChanges, OnInit {
|
|
|
110
111
|
private cropToBlob;
|
|
111
112
|
private cropToBase64;
|
|
112
113
|
private aspectRatioIsCorrect;
|
|
113
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ImageCropperComponent, [null, null, null, null, null, { optional: true; }]>;
|
|
114
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageCropperComponent, [null, null, null, null, null, null, { optional: true; }]>;
|
|
114
115
|
static ɵcmp: i0.ɵɵComponentDeclaration<ImageCropperComponent, "image-cropper", never, { "imageChangedEvent": "imageChangedEvent"; "imageURL": "imageURL"; "imageBase64": "imageBase64"; "imageFile": "imageFile"; "imageAltText": "imageAltText"; "cropperFrameAriaLabel": "cropperFrameAriaLabel"; "output": "output"; "format": "format"; "transform": "transform"; "maintainAspectRatio": "maintainAspectRatio"; "aspectRatio": "aspectRatio"; "resetCropOnAspectRatioChange": "resetCropOnAspectRatioChange"; "resizeToWidth": "resizeToWidth"; "resizeToHeight": "resizeToHeight"; "cropperMinWidth": "cropperMinWidth"; "cropperMinHeight": "cropperMinHeight"; "cropperMaxHeight": "cropperMaxHeight"; "cropperMaxWidth": "cropperMaxWidth"; "cropperStaticWidth": "cropperStaticWidth"; "cropperStaticHeight": "cropperStaticHeight"; "canvasRotation": "canvasRotation"; "initialStepSize": "initialStepSize"; "roundCropper": "roundCropper"; "onlyScaleDown": "onlyScaleDown"; "imageQuality": "imageQuality"; "autoCrop": "autoCrop"; "backgroundColor": "backgroundColor"; "containWithinAspectRatio": "containWithinAspectRatio"; "hideResizeSquares": "hideResizeSquares"; "allowMoveImage": "allowMoveImage"; "cropper": "cropper"; "alignImage": "alignImage"; "disabled": "disabled"; "hidden": "hidden"; }, { "imageCropped": "imageCropped"; "startCropImage": "startCropImage"; "imageLoaded": "imageLoaded"; "cropperReady": "cropperReady"; "loadImageFailed": "loadImageFailed"; "transformChange": "transformChange"; }, never, never>;
|
|
115
116
|
}
|