|
137 | 137 | {{ source('@WebProfiler/Script/Mermaid/mermaid-flowchart-v2.min.js') }}
|
138 | 138 | const isDarkMode = document.querySelector('body').classList.contains('theme-dark');
|
139 | 139 | mermaid.initialize({
|
140 |
| - flowchart: { useMaxWidth: false }, |
| 140 | + flowchart: { |
| 141 | + useMaxWidth: true, |
| 142 | + }, |
141 | 143 | securityLevel: 'loose',
|
142 |
| - 'theme': 'base', |
143 |
| - 'themeVariables': { |
| 144 | + theme: 'base', |
| 145 | + themeVariables: { |
144 | 146 | darkMode: isDarkMode,
|
145 |
| - 'fontFamily': 'var(--font-family-system)', |
146 |
| - 'fontSize': 'var(--font-size-body)', |
| 147 | + fontFamily: 'var(--font-family-system)', |
| 148 | + fontSize: 'var(--font-size-body)', |
147 | 149 | // the properties below don't support CSS variables
|
148 |
| - 'primaryColor': isDarkMode ? 'lightsteelblue' : 'aliceblue', |
149 |
| - 'primaryTextColor': isDarkMode ? '#000' : '#000', |
150 |
| - 'primaryBorderColor': isDarkMode ? 'steelblue' : 'lightsteelblue', |
151 |
| - 'lineColor': isDarkMode ? '#939393' : '#d4d4d4', |
152 |
| - 'secondaryColor': isDarkMode ? 'lightyellow' : 'lightyellow', |
153 |
| - 'tertiaryColor': isDarkMode ? 'lightSalmon' : 'lightSalmon', |
| 150 | + primaryColor: isDarkMode ? 'lightsteelblue' : 'aliceblue', |
| 151 | + primaryTextColor: isDarkMode ? '#000' : '#000', |
| 152 | + primaryBorderColor: isDarkMode ? 'steelblue' : 'lightsteelblue', |
| 153 | + lineColor: isDarkMode ? '#939393' : '#d4d4d4', |
| 154 | + secondaryColor: isDarkMode ? 'lightyellow' : 'lightyellow', |
| 155 | + tertiaryColor: isDarkMode ? 'lightSalmon' : 'lightSalmon', |
154 | 156 | }
|
155 | 157 | });
|
156 | 158 |
|
|
275 | 277 | click {{ nodeId }} showNodeDetails{{ collector.hash(name) }}
|
276 | 278 | {% endfor %}
|
277 | 279 | </pre>
|
| 280 | + <a href="{{ collector.buildMermaidLiveLink(name) }}">View on mermaid.live</a> |
278 | 281 |
|
279 | 282 | <h3>Calls</h3>
|
280 | 283 | <table>
|
|
0 commit comments