-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3598 from mermaid-js/lazy-load-import
Lazy load import
- Loading branch information
Showing
20 changed files
with
77 additions
and
106 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,5 @@ | ||
# A collection of updates that change the behaviour | ||
|
||
## Lazy loading and asynchronisity | ||
|
||
- Invalid dates are rendered as syntax error instead of returning best guess or the current date |
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 |
---|---|---|
|
@@ -55,11 +55,24 @@ | |
</head> | ||
<body> | ||
<div>Security check</div> | ||
<pre id="diagram" class="mermaid2"> | ||
example-diagram | ||
</pre | ||
> | ||
<pre id="diagram" class="mermaid"> | ||
classDiagram | ||
direction LR | ||
class Student { | ||
-idCard : IdCard | ||
} | ||
class IdCard{ | ||
-id : int | ||
-name : string | ||
} | ||
class Bike{ | ||
-id : int | ||
-name : string | ||
} | ||
Student "1" --o "1" IdCard : carries | ||
Student "1" --o "1" Bike : rides | ||
</pre> | ||
<pre id="diagram" class="mermaid2"> | ||
mindmap | ||
root | ||
A | ||
|
@@ -85,9 +98,14 @@ | |
::icon(mdi mdi-fire) | ||
gc7((grand<br/>grand<br/>child 8)) | ||
</pre> | ||
<pre id="diagram" class="mermaid2"> | ||
example-diagram | ||
</pre> | ||
|
||
<!-- <div id="cy"></div> --> | ||
<!-- <script src="http://localhost:9000/packages/mermaid-mindmap/dist/mermaid-mindmap-detector.js"></script> --> | ||
<!-- <script src="./mermaid-example-diagram-detector.js"></script> --> | ||
<!-- <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js"></script> --> | ||
<script src="./mermaid.js"></script> | ||
|
||
<script> | ||
|
@@ -100,8 +118,11 @@ | |
logLevel: 0, | ||
// basePath: './packages/', | ||
// themeVariables: { darkMode: true }, | ||
extraDiagrams: ['./mermaid-mindmap-detector.esm.mjs'], | ||
// extraDiagrams: ['../../mermaid-mindmap/registry.ts'], | ||
lazyLoadedDiagrams: [ | ||
'./mermaid-mindmap-detector.esm.mjs', | ||
'./mermaid-example-diagram-detector.esm.mjs', | ||
], | ||
// lazyLoadedDiagrams: ['../../mermaid-mindmap/registry.ts'], | ||
}); | ||
function callback() { | ||
alert('It worked'); | ||
|
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
This file was deleted.
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
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
Empty file.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.