-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
606 additions
and
515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Cherry, { MenuHookBase, SyntaxHookBase } from "./types/index.core"; | ||
export { MenuHookBase, SyntaxHookBase }; | ||
export default Cherry; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Cherry, { MenuHookBase, SyntaxHookBase } from "./types/index.core"; | ||
export { MenuHookBase, SyntaxHookBase }; | ||
export default Cherry; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Cherry, { MenuHookBase, SyntaxHookBase } from "./types/index"; | ||
export { MenuHookBase, SyntaxHookBase }; | ||
export default Cherry; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import CherryEngine, { MenuHookBase, SyntaxHookBase } from "./types/index.engine.core"; | ||
export { MenuHookBase, SyntaxHookBase }; | ||
export default CherryEngine; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import CherryEngine, { MenuHookBase, SyntaxHookBase } from "./types/index.engine.core"; | ||
export { MenuHookBase, SyntaxHookBase }; | ||
export default CherryEngine; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Cherry, { MenuHookBase, SyntaxHookBase } from "./types/index"; | ||
export { MenuHookBase, SyntaxHookBase }; | ||
export default Cherry; |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.