ngx-image-cropper
Advanced tools
Comparing version 8.1.1 to 9.0.0
@@ -5,7 +5,7 @@ import { CropperOptions } from '../interfaces/cropper-options.interface'; | ||
export declare class CropperState { | ||
options: CropperOptions; | ||
readonly cropper: import("@angular/core").WritableSignal<CropperPosition>; | ||
loadedImage?: LoadedImage; | ||
maxSize?: Dimensions; | ||
cropper: CropperPosition; | ||
transform: ImageTransform; | ||
options: CropperOptions; | ||
cropperScaledMinWidth: number; | ||
@@ -12,0 +12,0 @@ cropperScaledMinHeight: number; |
@@ -1,2 +0,2 @@ | ||
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; | ||
import { ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; | ||
import { DomSanitizer, SafeStyle, SafeUrl } from '@angular/platform-browser'; | ||
@@ -11,4 +11,2 @@ import { CropperOptions, CropperPosition, Dimensions, ImageCroppedEvent, ImageTransform, LoadedImage } from '../interfaces'; | ||
private sanitizer; | ||
private cd; | ||
private zone; | ||
private readonly pinchStart$; | ||
@@ -23,3 +21,3 @@ private readonly cropService; | ||
readonly safeImgDataUrl: import("@angular/core").WritableSignal<string | SafeUrl | undefined>; | ||
safeTransformStyle?: SafeStyle | string; | ||
readonly safeTransformStyle: import("@angular/core").WritableSignal<string | SafeStyle | undefined>; | ||
marginLeft: SafeStyle | string; | ||
@@ -65,11 +63,11 @@ imageVisible: boolean; | ||
hidden: boolean; | ||
imageCropped: EventEmitter<ImageCroppedEvent>; | ||
startCropImage: EventEmitter<void>; | ||
imageLoaded: EventEmitter<LoadedImage>; | ||
cropperReady: EventEmitter<Dimensions>; | ||
loadImageFailed: EventEmitter<void>; | ||
transformChange: EventEmitter<ImageTransform>; | ||
cropperChange: EventEmitter<CropperPosition>; | ||
readonly imageCropped: import("@angular/core").OutputEmitterRef<ImageCroppedEvent>; | ||
readonly startCropImage: import("@angular/core").OutputEmitterRef<void>; | ||
readonly imageLoaded: import("@angular/core").OutputEmitterRef<LoadedImage>; | ||
readonly cropperReady: import("@angular/core").OutputEmitterRef<Dimensions>; | ||
readonly loadImageFailed: import("@angular/core").OutputEmitterRef<void>; | ||
readonly transformChange: import("@angular/core").OutputEmitterRef<ImageTransform>; | ||
readonly cropperChange: import("@angular/core").OutputEmitterRef<CropperPosition>; | ||
get alignImageStyle(): "left" | "center"; | ||
constructor(sanitizer: DomSanitizer, cd: ChangeDetectorRef, zone: NgZone); | ||
constructor(sanitizer: DomSanitizer); | ||
ngOnInit(): void; | ||
@@ -99,4 +97,4 @@ ngOnChanges(changes: SimpleChanges): void; | ||
private initPinch; | ||
handlePinchMove(event: TouchEvent): void; | ||
handlePinchStop(): void; | ||
private handlePinchMove; | ||
private handlePinchStop; | ||
private setMaxSize; | ||
@@ -103,0 +101,0 @@ private emitCropperPositionChange; |
import { CropperPosition, ImageTransform } from './'; | ||
export type Position = 'left' | 'topleft' | 'top' | 'topright' | 'right' | 'bottomright' | 'bottom' | 'bottomleft' | 'center'; | ||
export interface MoveStart { | ||
active: boolean; | ||
type: MoveTypes | null; | ||
@@ -6,0 +5,0 @@ position: Position | null; |
{ | ||
"name": "ngx-image-cropper", | ||
"version": "8.1.1", | ||
"version": "9.0.0", | ||
"description": "An image cropper for Angular", | ||
@@ -16,5 +16,5 @@ "author": "Martijn Willekens", | ||
"angular", | ||
"angular 16", | ||
"angular 17", | ||
"angular 18", | ||
"angular 19", | ||
"ionic", | ||
@@ -27,4 +27,4 @@ "ionic-angular", | ||
"peerDependencies": { | ||
"@angular/common": ">=16.0.0", | ||
"@angular/core": ">=16.0.0" | ||
"@angular/common": ">=17.3.0", | ||
"@angular/core": ">=17.3.0" | ||
}, | ||
@@ -31,0 +31,0 @@ "module": "fesm2022/ngx-image-cropper.mjs", |
@@ -11,3 +11,3 @@ # Image cropper for Angular | ||
For a list of breaking changes and update instructions, go to [releases](https://github.com/Mawi137/ngx-image-cropper/releases). | ||
Only Angular 16+ is supported since version 8.0.0. | ||
Only Angular 17.3+ is supported since version 9.0.0. | ||
@@ -14,0 +14,0 @@ ### Example usage |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
523587
3388