react-crop-upload-pictures
Version:
upload pictures with crop and drag
17 lines (16 loc) • 578 B
TypeScript
export function getRadianAngle(degreeValue: any): number;
/**
* Returns the new bounding area of a rotated rectangle.
*/
export function rotateSize(width: any, height: any, rotation: any): {
width: number;
height: number;
};
/**
* This function was adapted from the one in the ReadMe of https://github.com/DominicTobias/react-image-crop
*/
export default function getCroppedImg(imageSrc: any, pixelCrop: any, rotation?: number, flip?: {
horizontal: boolean;
vertical: boolean;
}): Promise<string | null>;
export function createImage(url: any): Promise<any>;