mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-17 22:39:56 +02:00
Merge remote-tracking branch 'upstream/develop' into sidv/fixE2E
* upstream/develop: (33 commits) Updated lockfile chore(deps-dev): update vite requirement from ^3.0.9 to ^3.1.4 chore(deps-dev): update typescript requirement from ^4.8.3 to ^4.8.4 chore(deps-dev): update @vitest/coverage-c8 requirement chore(deps-dev): update @typescript-eslint/eslint-plugin requirement chore(deps-dev): update esbuild requirement from ^0.15.8 to ^0.15.10 chore(deps-dev): update @commitlint/config-conventional requirement chore(deps-dev): update eslint-plugin-jest requirement chore(deps-dev): update @applitools/eyes-cypress requirement chore(deps-dev): update jsdom requirement from ^20.0.0 to ^20.0.1 chore(deps-dev): update vitest requirement from ^0.23.1 to ^0.23.4 chore(deps-dev): update lint-staged requirement from ^13.0.0 to ^13.0.3 chore(deps): update @types/node requirement from ^18.7.21 to ^18.8.1 chore(deps-dev): update @typescript-eslint/parser requirement Fix postbuild script #3561 Adding cScale0-11 etc and usage of the colors from the mindmap diagram Fix for broken test Mindmap cleanup Using cose-bilkent layout algorithm for mindmaps chore(deps-dev): update husky requirement from ^8.0.0 to ^8.0.1 ...
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
|
||||
/>
|
||||
<link
|
||||
href="https://cdn.jsdelivr.net/npm/@mdi/font@6.9.96/css/materialdesignicons.min.css"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap"
|
||||
rel="stylesheet"
|
||||
|
@@ -6,6 +6,10 @@
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
|
||||
/>
|
||||
<link
|
||||
href="https://cdn.jsdelivr.net/npm/@mdi/font@6.9.96/css/materialdesignicons.min.css"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Noto+Sans+SC&display=swap"
|
||||
rel="stylesheet"
|
||||
@@ -25,6 +29,12 @@
|
||||
}
|
||||
.mermaid svg {
|
||||
/* font-size: 18px !important; */
|
||||
background-color: #eee;
|
||||
background-image: radial-gradient(#fff 1%, transparent 11%),
|
||||
radial-gradient(#fff 1%, transparent 11%);
|
||||
background-size: 20px 20px;
|
||||
background-position: 0 0, 10px 10px;
|
||||
background-repeat: repeat;
|
||||
}
|
||||
.malware {
|
||||
position: fixed;
|
||||
@@ -52,6 +62,16 @@ example-diagram
|
||||
<pre id="diagram" class="mermaid">
|
||||
mindmap
|
||||
root
|
||||
A
|
||||
B
|
||||
C
|
||||
D
|
||||
E
|
||||
A2
|
||||
B2
|
||||
C2
|
||||
D2
|
||||
E2
|
||||
child1((Circle))
|
||||
grandchild 1
|
||||
grandchild 2
|
||||
@@ -63,8 +83,10 @@ mindmap
|
||||
::icon(mdi mdi-fire)
|
||||
gc6((grand<br/>child 6))
|
||||
::icon(mdi mdi-fire)
|
||||
gc7((grand<br/>grand<br/>child 8))
|
||||
</pre>
|
||||
<script src="./mermaid-mindmap-detector.js"></script>
|
||||
<!-- <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="./mermaid.js"></script>
|
||||
<script>
|
||||
@@ -72,10 +94,11 @@ mindmap
|
||||
// console.error('Mermaid error: ', err);
|
||||
};
|
||||
mermaid.initialize({
|
||||
theme: 'forest',
|
||||
startOnLoad: true,
|
||||
logLevel: 0,
|
||||
basePath: './packages/',
|
||||
// themeVariables: {relationLabelColor: 'red'}
|
||||
// themeVariables: { darkMode: true },
|
||||
});
|
||||
function callback() {
|
||||
alert('It worked');
|
||||
|
Reference in New Issue
Block a user