boris-react-image-crop
Version:
react image crop
11 lines (10 loc) • 423 B
TypeScript
/// <reference types="react" />
import { Size, Point } from './data';
interface DimmedBoxProps {
imgRef: React.RefObject<HTMLImageElement>;
imgSize: Size;
setOffset: (offset: ((prev: Point) => Point) | Point) => void;
setCropBoxSize: (cropBoxSize: Size) => void;
}
declare const DimmedBox: ({ imgRef, imgSize, setOffset, setCropBoxSize }: DimmedBoxProps) => JSX.Element;
export default DimmedBox;