ngx-image-cropper 7.0.1 → 7.0.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 +18 -9
- package/fesm2015/ngx-image-cropper.mjs +30 -16
- package/fesm2015/ngx-image-cropper.mjs.map +1 -1
- package/fesm2020/ngx-image-cropper.mjs +17 -8
- package/fesm2020/ngx-image-cropper.mjs.map +1 -1
- package/lib/component/image-cropper.component.d.ts +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { DomSanitizer, SafeStyle, SafeUrl } from '@angular/platform-browser';
|
|
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';
|
|
5
5
|
import { MoveTypes } from '../interfaces/move-start.interface';
|
|
@@ -13,7 +13,7 @@ export declare class ImageCropperComponent implements OnChanges, OnInit {
|
|
|
13
13
|
private loadImageService;
|
|
14
14
|
private sanitizer;
|
|
15
15
|
private cd;
|
|
16
|
-
private
|
|
16
|
+
private readonly hammerLoader;
|
|
17
17
|
private settings;
|
|
18
18
|
private setImageMaxSizeRetries;
|
|
19
19
|
private moveStart?;
|
|
@@ -66,7 +66,7 @@ export declare class ImageCropperComponent implements OnChanges, OnInit {
|
|
|
66
66
|
cropperReady: EventEmitter<Dimensions>;
|
|
67
67
|
loadImageFailed: EventEmitter<void>;
|
|
68
68
|
transformChange: EventEmitter<ImageTransform>;
|
|
69
|
-
constructor(cropService: CropService, cropperPositionService: CropperPositionService, loadImageService: LoadImageService, sanitizer: DomSanitizer, cd: ChangeDetectorRef);
|
|
69
|
+
constructor(cropService: CropService, cropperPositionService: CropperPositionService, loadImageService: LoadImageService, sanitizer: DomSanitizer, cd: ChangeDetectorRef, hammerLoader: HammerLoader | null);
|
|
70
70
|
ngOnChanges(changes: SimpleChanges): void;
|
|
71
71
|
private onChangesUpdateSettings;
|
|
72
72
|
private onChangesInputImage;
|
|
@@ -108,6 +108,6 @@ export declare class ImageCropperComponent implements OnChanges, OnInit {
|
|
|
108
108
|
private cropToBlob;
|
|
109
109
|
private cropToBase64;
|
|
110
110
|
private aspectRatioIsCorrect;
|
|
111
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ImageCropperComponent,
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageCropperComponent, [null, null, null, null, null, { optional: true; }]>;
|
|
112
112
|
static ɵcmp: i0.ɵɵComponentDeclaration<ImageCropperComponent, "image-cropper", never, { "imageChangedEvent": "imageChangedEvent"; "imageURL": "imageURL"; "imageBase64": "imageBase64"; "imageFile": "imageFile"; "imageAltText": "imageAltText"; "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>;
|
|
113
113
|
}
|