fabri-pix
Version:
A React image editor using Fabric.js
50 lines (49 loc) • 1.39 kB
TypeScript
import { Canvas } from 'fabric';
import { default as React } from 'react';
import { SubMenu } from '../../utils/utils';
interface IProps {
canvas: React.MutableRefObject<Canvas>;
aIAnnotation: any;
handleTrackChange: (e?: any) => void;
activeAnnotation: SubMenu | '';
setActiveAnnotation: React.Dispatch<React.SetStateAction<SubMenu | ''>>;
freeDrawingBrushRef: React.RefObject<{
color: string;
width: number;
}>;
advancedArrowRef: React.RefObject<{
stroke: string;
width: number;
}>;
linePathRef: React.RefObject<{
stroke: string;
width: number;
}>;
stepCreatorRef: React.RefObject<{
borderColor: string;
backgroundColor: string;
fontColor: string;
fontSize: number;
stepNumber: number;
strokeWidth: number;
}>;
commentBoxRef: React.RefObject<{
backgroundColor: string;
fontColor: string;
fontSize: number;
fontStyle: string;
fontWeight: string;
strokeWidth: number;
borderColor: string;
text: string;
}>;
textBoxRef: React.RefObject<{
backgroundColor: string;
fontColor: string;
fontSize: number;
fontStyle: string;
fontWeight: string;
}>;
}
declare const ImageAnnotation: React.FC<IProps>;
export default ImageAnnotation;