/** * 提取document.styleSheets中的csstyle的属性 * @returns */ export declare function getFontFamil(): Promise; /** * 转换image到base64 * @param src * @param cb */ export declare function startTrans(src: string, cb: any): void; export declare function drawNodeSvg(shape: string, x: any, y: any, r: any): string; export declare function drawQuardBezier(sX: any, sY: any, cp: { x: any; y: any; }, tX: any, tY: any): string; export declare function drawSelfBezier(sX: any, sY: any, cp: { x: any; y: any; }, cp2: { x: any; y: any; }, tX: any, tY: any): string; /** * 上传附件转base64 * @param {File} file 文件流 */ export declare const fileByBase64: (file: any, callback: any) => void; /** * base64转Blob * @param {*} data */ export declare const base64ByBlob: (base64: any, callback: any) => void; /** * DataUrl转为File * @param {String} dataUrl - dataUrl地址 * @param {String} fileName - file文件名 */ export declare const dataURLtoFile: (dataUrl: any, fileName: any) => File; export declare const fetchBinaryAsBase64: (t: any) => Promise; export declare const imageSvgSetAttribute: (x: string | number, y: string | number, width: string | number, height: string | number) => Element; export declare const iconSvgSetAttribute: (icon: any, size: number, x: number, y: number) => Element; export declare const textBaseSvgSetAttribute: (fontFamily: string, textFontSize: string, style: string, textColor: string, background: string) => Element; export declare const clipPathSvg: (key: string, pathSvg: string, color: string) => Element; export declare const nodeStrokePathSvg: (nodePath: string, storkeWidth: string, unSelectedColor: string) => Element; export declare const svgLinePath: (p: string, width: string | number, color: string) => Element; export declare const svgInnerHTML: (node: Element, html: string) => void;