mindoc/static/cherry/addons/cherry-code-block-mermaid-p...

32 lines
871 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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;
}