Files
swiftadmin/public/static/js/markdown/addons/cherry-code-block-mermaid-plugin.d.ts
2022-08-19 19:48:37 +08:00

32 lines
871 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export default class MermaidCodeEngine {
static TYPE: string;
static install(cherryOptions: any, ...args: any[]): void;
constructor(mermaidOptions?: {});
mermaidAPIRefs: any;
options: {
theme: string;
altFontFamily: string;
fontFamily: string;
themeCSS: string;
flowchart: {
useMaxWidth: boolean;
};
sequence: {
useMaxWidth: boolean;
};
startOnLoad: boolean;
logLevel: number;
};
dom: any;
mermaidCanvas: any;
mountMermaidCanvas($engine: any): void;
/**
* 转换svg为img如果出错则直出svg
* @param {string} svgCode
* @param {string} graphId
* @returns {string}
*/
convertMermaidSvgToImg(svgCode: string, graphId: string): string;
render(src: any, sign: any, $engine: any): boolean;
}