react-advanced-cropper
Version:
The react cropper library that gives the possibility to create croppers exactly suited for your website design
20 lines (19 loc) • 698 B
TypeScript
/// <reference types="react" />
import { CropperImage } from 'advanced-cropper';
export interface CropperImageHookSettings {
src?: string | null;
onLoadingStart?: () => void;
onLoadingEnd?: () => void;
onError?: () => void;
onLoad?: (image?: CropperImage) => void;
crossOrigin?: 'anonymous' | 'use-credentials' | boolean;
checkOrientation?: boolean;
canvas?: string | boolean;
unloadTime?: number;
}
export declare function useCropperImage(options: CropperImageHookSettings): {
isLoading(): boolean;
isLoaded(): boolean;
getImage(): CropperImage | null;
setImage: import("react").Dispatch<import("react").SetStateAction<CropperImage | null>>;
};