ngx-image-cropper
Version:
An image cropper for Angular
17 lines (16 loc) • 490 B
TypeScript
import { CropperPosition, ImageTransform } from './';
export type Position = 'left' | 'topleft' | 'top' | 'topright' | 'right' | 'bottomright' | 'bottom' | 'bottomleft' | 'center';
export interface MoveStart {
type: MoveTypes | null;
position: Position | null;
transform?: ImageTransform;
cropper: CropperPosition;
clientX: number;
clientY: number;
}
export declare enum MoveTypes {
Drag = "drag",
Move = "move",
Resize = "resize",
Pinch = "pinch"
}