react-advanced-cropper
Version:
The react cropper library that gives the possibility to create croppers exactly suited for your website design
7 lines (6 loc) • 334 B
TypeScript
import React from 'react';
import { CropperState, DrawOptions } from 'advanced-cropper';
export interface CropperCanvasMethods {
draw: (state: CropperState, image: HTMLElement, options?: DrawOptions) => HTMLCanvasElement | null;
}
export declare const CropperCanvas: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;