UNPKG

react-advanced-cropper

Version:

The react cropper library that gives the possibility to create croppers exactly suited for your website design

18 lines (17 loc) 655 B
import React, { ReactNode, CSSProperties } from 'react'; import { BoundarySizeAlgorithm, Size, BoundaryStretchAlgorithm } from 'advanced-cropper'; interface Props { className?: string; style?: CSSProperties; stretcherClassName?: string; contentClassName?: string; stretchAlgorithm?: BoundaryStretchAlgorithm; sizeAlgorithm?: BoundarySizeAlgorithm; children?: ReactNode; } export interface StretchableBoundaryMethods { stretchTo: (size: Size | null) => Promise<Size | null>; reset: () => void; } export declare const StretchableBoundary: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>; export {};