/** * @Author: yanxinaliang (rainyxlxl@163.com) * @Date: 2019/3/30 16:04 * @Last Modified by: yanxinaliang (rainyxlxl@163.com) * @Last Modified time: 2019/3/30 16:04 * @disc:Config; */ export declare enum TOOL_TYPE { Select = "select", Pencil = "pencil", Text = "text", Eraser = "Eraser", Clear = "Clear", Undo = "Undo", Redo = "Redo", Ferule = "feruleaq", None = "none", Shape = "Shape" } export declare enum SHAPE_TYPE { Line = "line", Circle = "circle", Star = "star", Triangle = "Triangle", Rect = "rect", Arrow = "arrow", HollowCircle = "hollowCircle", HollowStar = "hollowStar", HollowTriangle = "hollowTriangle", HollowRect = "hollowRect", Square = "Square", HollowSquare = "hollowSquare", Ellipse = "ellipse", HollowEllipse = "hollowEllipse" } export declare interface IConfig { plugins: string[]; showTab: boolean; showToolbar: boolean; ratio: { w: number; h: number; }; dimensions: { width: number; }; borderColor: string; cornerColor: string; "cornerStrokeColor": string; "cornerStyle": string; "strokeLineCap": string; "transparentCorners": boolean; "cornerSize": number; "cursorSize": number; "borderWidth": number; "strokeWidth": number; "stroke": string; "fill": string; "fontSize": number; "compress": boolean; "arrowShape": string; "escKey": boolean; "ctrlKey": boolean; "defaultName": string; "toolType": TOOL_TYPE; "pencilWidth": number; "shapeType": SHAPE_TYPE; "pickedColor": string; } declare const config: IConfig; declare function updateConfig(config: any): void; export { config, updateConfig };