first commit
This commit is contained in:
31
public/static/js/markdown/addons/cherry-code-block-mermaid-plugin.d.ts
vendored
Normal file
31
public/static/js/markdown/addons/cherry-code-block-mermaid-plugin.d.ts
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
6
public/static/js/markdown/addons/cherry-code-block-plantuml-plugin.d.ts
vendored
Normal file
6
public/static/js/markdown/addons/cherry-code-block-plantuml-plugin.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export default class PlantUMLCodeEngine {
|
||||
static install(cherryOptions: any, args: any): void;
|
||||
constructor(plantUMLOptions?: {});
|
||||
baseUrl: any;
|
||||
render(src: any, sign: any): string;
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user