UNPKG

ngx-croppie

Version:

Simple angular wrapper around croppie (WIP)

20 lines (19 loc) 721 B
import { OnInit, EventEmitter, ElementRef } from '@angular/core'; import { CroppieOptions, ResultOptions, CropData } from 'croppie'; export declare type Type = 'canvas' | 'base64' | 'html' | 'blob' | 'rawcanvas'; export declare class NgxCroppieComponent implements OnInit { imageEdit: ElementRef; croppieOptions: CroppieOptions; points: number[]; outputFormatOptions: ResultOptions; defaultZoom: number; result: EventEmitter<string | HTMLElement | Blob | HTMLCanvasElement>; private _croppie; private imgUrl; imageUrl: string; ngOnInit(): void; private bindToCroppie; newResult(): void; rotate(degrees: 90 | 180 | 270 | -90 | -180 | -270): void; get(): CropData; }