-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into chore/convert-svgDrawCommon-to-ts
- Loading branch information
Showing
12 changed files
with
207 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,6 @@ stats/ | |
**/contributor-names.json | ||
.pnpm-store | ||
.nyc_output | ||
|
||
demos/dev/** | ||
!/demos/dev/example.html |
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
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,34 @@ | ||
<!--Do not edit this file--> | ||
<!--Duplicate this file to any name you like, run `pnpm dev`, open http://localhost:9000/dev/name.html to view--> | ||
<html> | ||
<head> | ||
<title>Mermaid development page</title> | ||
</head> | ||
<body> | ||
<pre id="diagram" class="mermaid"> | ||
graph TB | ||
a --> b | ||
a --> c | ||
b --> d | ||
c --> d | ||
</pre> | ||
|
||
<div id="dynamicDiagram"></div> | ||
|
||
<script type="module"> | ||
import mermaid from '/mermaid.esm.mjs'; | ||
mermaid.parseError = function (err, hash) { | ||
console.error('Mermaid error: ', err); | ||
}; | ||
mermaid.initialize({ | ||
startOnLoad: true, | ||
logLevel: 0, | ||
}); | ||
const value = `graph TD\nHello --> World`; | ||
const el = document.getElementById('dynamicDiagram'); | ||
const { svg } = await mermaid.render('dd', value); | ||
console.log(svg); | ||
el.innerHTML = svg; | ||
</script> | ||
</body> | ||
</html> |
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
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
Oops, something went wrong.