fabri-pix
Version:
A React image editor using Fabric.js
51 lines (50 loc) • 1.41 kB
TypeScript
import { Canvas } from 'fabric';
import { default as React } from 'react';
import { Menu, SubMenu } from '../utils/utils';
interface IProps {
canvas: React.MutableRefObject<Canvas>;
menu: Menu | '';
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 EditorSubMenu: React.FC<IProps>;
export default EditorSubMenu;