fabri-pix
Version:
A React image editor using Fabric.js
48 lines (47 loc) • 1.3 kB
TypeScript
import { Canvas, FabricObject } from 'fabric';
import { default as React } from 'react';
import { SubMenu } from '../../utils/utils';
interface IProps {
canvas: React.RefObject<Canvas>;
selectedObject: FabricObject | null;
activeAnnotation: 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 EditorContextMenu: React.FC<IProps>;
export default EditorContextMenu;