1 | <!DOCTYPE html>
|
2 | <html>
|
3 | <head>
|
4 | <meta charset="utf-8">
|
5 | <meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6 | <title>Mermaid Quick Test Page</title>
|
7 | <link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=">
|
8 | <style>
|
9 | div.mermaid {
|
10 |
|
11 | font-family: 'Courier New', Courier, monospace !important;
|
12 | }
|
13 | </style>
|
14 | </head>
|
15 | <body>
|
16 | <div class="mermaid">
|
17 | info
|
18 | </div>
|
19 | <div class="mermaid">
|
20 | gantt
|
21 | title Exclusive end dates (Manual date should end on 3d)
|
22 | dateFormat YYYY-MM-DD
|
23 | axisFormat %d
|
24 | section Section1
|
25 | 2 Days: 1, 2019-01-01,2d
|
26 | Manual Date: 2, 2019-01-01,2019-01-03
|
27 | </div>
|
28 |
|
29 | <div class="mermaid">
|
30 | gantt
|
31 | title Inclusive end dates (Manual date should end on 4th)
|
32 | dateFormat YYYY-MM-DD
|
33 | axisFormat %d
|
34 | inclusiveEndDates
|
35 | section Section1
|
36 | 2 Days: 1, 2019-01-01,2d
|
37 | Manual Date: 2, 2019-01-01,2019-01-03
|
38 | </div>
|
39 | <div class="mermaid">
|
40 | graph LR
|
41 | sid-B3655226-6C29-4D00-B685-3D5C734DC7E1["
|
42 |
|
43 | 提交申请
|
44 | 熊大
|
45 | "];
|
46 | class sid-B3655226-6C29-4D00-B685-3D5C734DC7E1 node-executed;
|
47 | sid-4DA958A0-26D9-4D47-93A7-70F39FD7D51A["
|
48 | 负责人审批
|
49 | 强子
|
50 | "];
|
51 | class sid-4DA958A0-26D9-4D47-93A7-70F39FD7D51A node-executed;
|
52 | sid-E27C0367-E6D6-497F-9736-3CDC21FDE221["
|
53 | DBA审批
|
54 | 强子
|
55 | "];
|
56 | class sid-E27C0367-E6D6-497F-9736-3CDC21FDE221 node-executed;
|
57 | sid-BED98281-9585-4D1B-934E-BD1AC6AC0EFD["
|
58 | SA审批
|
59 | 阿美
|
60 | "];
|
61 | class sid-BED98281-9585-4D1B-934E-BD1AC6AC0EFD node-executed;
|
62 | sid-7CE72B24-E0C1-46D3-8132-8BA66BE05AA7["
|
63 | 主管审批
|
64 | 光头强
|
65 | "];
|
66 | class sid-7CE72B24-E0C1-46D3-8132-8BA66BE05AA7 node-executed;
|
67 | sid-A1B3CD96-7697-4D7C-BEAA-73D187B1BE89["
|
68 | DBA确认
|
69 | 强子
|
70 | "];
|
71 | class sid-A1B3CD96-7697-4D7C-BEAA-73D187B1BE89 node-executed;
|
72 | sid-3E35A7FF-A2F4-4E07-9247-DBF884C81937["
|
73 | SA确认
|
74 | 阿美
|
75 | "];
|
76 | class sid-3E35A7FF-A2F4-4E07-9247-DBF884C81937 node-executed;
|
77 | sid-4FC27B48-A6F9-460A-A675-021F5854FE22["
|
78 | 结束
|
79 | "];
|
80 | class sid-4FC27B48-A6F9-460A-A675-021F5854FE22 node-executed;
|
81 | sid-19DD9E9F-98C1-44EE-B604-842AFEE76F1E["
|
82 | SA执行1
|
83 | 强子
|
84 | "];
|
85 | class sid-19DD9E9F-98C1-44EE-B604-842AFEE76F1E node-executed;
|
86 | sid-6C2120F3-D940-4958-A067-0903DCE879C4["
|
87 | SA执行2
|
88 | 强子
|
89 | "];
|
90 | class sid-6C2120F3-D940-4958-A067-0903DCE879C4 node-executed;
|
91 | sid-9180E2A0-5C4B-435F-B42F-0D152470A338["
|
92 | DBA执行1
|
93 | 强子
|
94 | "];
|
95 | class sid-9180E2A0-5C4B-435F-B42F-0D152470A338 node-executed;
|
96 | sid-03A2C3AC-5337-48A5-B154-BB3FD0EC8DAD["
|
97 | DBA执行3
|
98 | 强子
|
99 | "];
|
100 | class sid-03A2C3AC-5337-48A5-B154-BB3FD0EC8DAD node-executed;
|
101 | sid-D5E1F2F4-306C-47A2-BF74-F66E3D769756["
|
102 | DBA执行2
|
103 | 强子
|
104 | "];
|
105 | class sid-D5E1F2F4-306C-47A2-BF74-F66E3D769756 node-executed;
|
106 | sid-8C3F2F1D-F014-4F99-B966-095DC1A2BD93["
|
107 | DBA执行4
|
108 | 强子
|
109 | "];
|
110 | class sid-8C3F2F1D-F014-4F99-B966-095DC1A2BD93 node-executed;
|
111 | sid-1897B30A-9C5C-4D5B-B80B-76A038785070["
|
112 | 负责人确认
|
113 | 梁静茹
|
114 | "];
|
115 | class sid-1897B30A-9C5C-4D5B-B80B-76A038785070 node-executed;
|
116 | sid-B3655226-6C29-4D00-B685-3D5C734DC7E1-->sid-7CE72B24-E0C1-46D3-8132-8BA66BE05AA7;
|
117 | sid-4DA958A0-26D9-4D47-93A7-70F39FD7D51A-->sid-1897B30A-9C5C-4D5B-B80B-76A038785070;
|
118 | sid-E27C0367-E6D6-497F-9736-3CDC21FDE221-->sid-A1B3CD96-7697-4D7C-BEAA-73D187B1BE89;
|
119 | sid-BED98281-9585-4D1B-934E-BD1AC6AC0EFD-->sid-3E35A7FF-A2F4-4E07-9247-DBF884C81937;
|
120 | sid-19DD9E9F-98C1-44EE-B604-842AFEE76F1E-->sid-6C2120F3-D940-4958-A067-0903DCE879C4;
|
121 | sid-9180E2A0-5C4B-435F-B42F-0D152470A338-->sid-D5E1F2F4-306C-47A2-BF74-F66E3D769756;
|
122 | sid-03A2C3AC-5337-48A5-B154-BB3FD0EC8DAD-->sid-8C3F2F1D-F014-4F99-B966-095DC1A2BD93;
|
123 | sid-6C2120F3-D940-4958-A067-0903DCE879C4-->sid-4DA958A0-26D9-4D47-93A7-70F39FD7D51A;
|
124 | sid-1897B30A-9C5C-4D5B-B80B-76A038785070-->sid-4FC27B48-A6F9-460A-A675-021F5854FE22;
|
125 | sid-3E35A7FF-A2F4-4E07-9247-DBF884C81937-->sid-19DD9E9F-98C1-44EE-B604-842AFEE76F1E;
|
126 | sid-A1B3CD96-7697-4D7C-BEAA-73D187B1BE89-->sid-9180E2A0-5C4B-435F-B42F-0D152470A338;
|
127 | sid-A1B3CD96-7697-4D7C-BEAA-73D187B1BE89-->sid-03A2C3AC-5337-48A5-B154-BB3FD0EC8DAD;
|
128 | sid-D5E1F2F4-306C-47A2-BF74-F66E3D769756-->sid-4DA958A0-26D9-4D47-93A7-70F39FD7D51A;
|
129 | sid-8C3F2F1D-F014-4F99-B966-095DC1A2BD93-->sid-4DA958A0-26D9-4D47-93A7-70F39FD7D51A;
|
130 | sid-7CE72B24-E0C1-46D3-8132-8BA66BE05AA7-->sid-BED98281-9585-4D1B-934E-BD1AC6AC0EFD;
|
131 | sid-7CE72B24-E0C1-46D3-8132-8BA66BE05AA7-->sid-E27C0367-E6D6-497F-9736-3CDC21FDE221;
|
132 | sid-3E35A7FF-A2F4-4E07-9247-DBF884C81937-->sid-6C2120F3-D940-4958-A067-0903DCE879C4;
|
133 | sid-7CE72B24-E0C1-46D3-8132-8BA66BE05AA7-->sid-4DA958A0-26D9-4D47-93A7-70F39FD7D51A;
|
134 | sid-7CE72B24-E0C1-46D3-8132-8BA66BE05AA7-->sid-4FC27B48-A6F9-460A-A675-021F5854FE22;
|
135 | </div>
|
136 | <div class="mermaid">
|
137 | graph TD
|
138 | A[Christmas] -->|Get money| B(Go shopping)
|
139 | B --> C{Let me thinksssssx<br/>sssssssssssssssssssuuu<br />tttsssssssssssssssssssssss}
|
140 | C -->|One| D[Laptop]
|
141 | C -->|Two| E[iPhone]
|
142 | C -->|Three| F[Car]
|
143 | </div>
|
144 | <div class="mermaid">
|
145 | graph TD
|
146 | A[/Christmas\]
|
147 | A -->|Get money| B[\Go shopping/]
|
148 | B --> C{Let me thinksssss<br/>ssssssssssssssssssssss<br/>sssssssssssssssssssssssssss}
|
149 | C -->|One| D[/Laptop/]
|
150 | C -->|Two| E[\iPhone\]
|
151 | C -->|Three| F[Car]
|
152 | </div>
|
153 | <div class="mermaid">
|
154 | graph LR
|
155 | 47(SAM.CommonFA.FMESummary)-->48(SAM.CommonFA.CommonFAFinanceBudget)
|
156 | 37(SAM.CommonFA.BudgetSubserviceLineVolume)-->48(SAM.CommonFA.CommonFAFinanceBudget)
|
157 | 35(SAM.CommonFA.PopulationFME)-->47(SAM.CommonFA.FMESummary)
|
158 | 41(SAM.CommonFA.MetricCost)-->47(SAM.CommonFA.FMESummary)
|
159 | 44(SAM.CommonFA.MetricOutliers)-->47(SAM.CommonFA.FMESummary)
|
160 | 46(SAM.CommonFA.MetricOpportunity)-->47(SAM.CommonFA.FMESummary)
|
161 | 40(SAM.CommonFA.OPVisits)-->47(SAM.CommonFA.FMESummary)
|
162 | 38(SAM.CommonFA.CommonFAFinanceRefund)-->47(SAM.CommonFA.FMESummary)
|
163 | 43(SAM.CommonFA.CommonFAFinancePicuDays)-->47(SAM.CommonFA.FMESummary)
|
164 | 42(SAM.CommonFA.CommonFAFinanceNurseryDays)-->47(SAM.CommonFA.FMESummary)
|
165 | 45(SAM.CommonFA.MetricPreOpportunity)-->46(SAM.CommonFA.MetricOpportunity)
|
166 | 35(SAM.CommonFA.PopulationFME)-->45(SAM.CommonFA.MetricPreOpportunity)
|
167 | 41(SAM.CommonFA.MetricCost)-->45(SAM.CommonFA.MetricPreOpportunity)
|
168 | 41(SAM.CommonFA.MetricCost)-->44(SAM.CommonFA.MetricOutliers)
|
169 | 39(SAM.CommonFA.ChargeDetails)-->43(SAM.CommonFA.CommonFAFinancePicuDays)
|
170 | 39(SAM.CommonFA.ChargeDetails)-->42(SAM.CommonFA.CommonFAFinanceNurseryDays)
|
171 | 39(SAM.CommonFA.ChargeDetails)-->41(SAM.CommonFA.MetricCost)
|
172 | 39(SAM.CommonFA.ChargeDetails)-->40(SAM.CommonFA.OPVisits)
|
173 | 35(SAM.CommonFA.PopulationFME)-->39(SAM.CommonFA.ChargeDetails)
|
174 | 36(SAM.CommonFA.PremetricCost)-->39(SAM.CommonFA.ChargeDetails)
|
175 | </div>
|
176 | <div class="mermaid">
|
177 | graph TD
|
178 | 9e122290_1ec3_e711_8c5a_005056ad0002("fa:fa-creative-commons My System | Test Environment")
|
179 | 82072290_1ec3_e711_8c5a_005056ad0002("fa:fa-cogs Shared Business Logic Server:Service 1")
|
180 | db052290_1ec3_e711_8c5a_005056ad0002("fa:fa-cogs Shared Business Logic Server:Service 2")
|
181 | 4e112290_1ec3_e711_8c5a_005056ad0002("fa:fa-cogs Shared Report Server:Service 1")
|
182 | 30122290_1ec3_e711_8c5a_005056ad0002("fa:fa-cogs Shared Report Server:Service 2")
|
183 | 5e112290_1ec3_e711_8c5a_005056ad0002("fa:fa-cogs Dedicated Test Business Logic Server:Service 1")
|
184 | c1112290_1ec3_e711_8c5a_005056ad0002("fa:fa-cogs Dedicated Test Business Logic Server:Service 2")
|
185 | b7042290_1ec3_e711_8c5a_005056ad0002("fa:fa-circle [DBServer\SharedDbInstance].[SupportDb]")
|
186 | 8f102290_1ec3_e711_8c5a_005056ad0002("fa:fa-circle [DBServer\SharedDbInstance].[DevelopmentDb]")
|
187 | 0e102290_1ec3_e711_8c5a_005056ad0002("fa:fa-circle [DBServer\SharedDbInstance].[TestDb]")
|
188 | 07132290_1ec3_e711_8c5a_005056ad0002("fa:fa-circle [DBServer\SharedDbInstance].[SharedReportingDb]")
|
189 | c7072290_1ec3_e711_8c5a_005056ad0002("fa:fa-server Shared Business Logic Server")
|
190 | ca122290_1ec3_e711_8c5a_005056ad0002("fa:fa-server Shared Report Server")
|
191 | 68102290_1ec3_e711_8c5a_005056ad0002("fa:fa-server Dedicated Test Business Logic Server")
|
192 | f4112290_1ec3_e711_8c5a_005056ad0002("fa:fa-database [DBServer\SharedDbInstance]")
|
193 | d6072290_1ec3_e711_8c5a_005056ad0002("fa:fa-server DBServer")
|
194 | 71082290_1ec3_e711_8c5a_005056ad0002("fa:fa-cogs DBServer\:MSSQLSERVER")
|
195 | c0102290_1ec3_e711_8c5a_005056ad0002("fa:fa-cogs DBServer\:SQLAgent")
|
196 | 9a072290_1ec3_e711_8c5a_005056ad0002("fa:fa-cogs DBServer\:SQLBrowser")
|
197 | 1d0a2290_1ec3_e711_8c5a_005056ad0002("fa:fa-server VmHost1")
|
198 | 200a2290_1ec3_e711_8c5a_005056ad0002("fa:fa-server VmHost2")
|
199 | 1c0a2290_1ec3_e711_8c5a_005056ad0002("fa:fa-server VmHost3")
|
200 | 9e122290_1ec3_e711_8c5a_005056ad0002-->82072290_1ec3_e711_8c5a_005056ad0002
|
201 | 9e122290_1ec3_e711_8c5a_005056ad0002-->db052290_1ec3_e711_8c5a_005056ad0002
|
202 | 9e122290_1ec3_e711_8c5a_005056ad0002-->4e112290_1ec3_e711_8c5a_005056ad0002
|
203 | 9e122290_1ec3_e711_8c5a_005056ad0002-->30122290_1ec3_e711_8c5a_005056ad0002
|
204 | 9e122290_1ec3_e711_8c5a_005056ad0002-->5e112290_1ec3_e711_8c5a_005056ad0002
|
205 | 9e122290_1ec3_e711_8c5a_005056ad0002-->c1112290_1ec3_e711_8c5a_005056ad0002
|
206 | 82072290_1ec3_e711_8c5a_005056ad0002-->b7042290_1ec3_e711_8c5a_005056ad0002
|
207 | 82072290_1ec3_e711_8c5a_005056ad0002-->8f102290_1ec3_e711_8c5a_005056ad0002
|
208 | 82072290_1ec3_e711_8c5a_005056ad0002-->0e102290_1ec3_e711_8c5a_005056ad0002
|
209 | 82072290_1ec3_e711_8c5a_005056ad0002-->c7072290_1ec3_e711_8c5a_005056ad0002
|
210 | db052290_1ec3_e711_8c5a_005056ad0002-->c7072290_1ec3_e711_8c5a_005056ad0002
|
211 | db052290_1ec3_e711_8c5a_005056ad0002-->82072290_1ec3_e711_8c5a_005056ad0002
|
212 | 4e112290_1ec3_e711_8c5a_005056ad0002-->b7042290_1ec3_e711_8c5a_005056ad0002
|
213 | 4e112290_1ec3_e711_8c5a_005056ad0002-->8f102290_1ec3_e711_8c5a_005056ad0002
|
214 | 4e112290_1ec3_e711_8c5a_005056ad0002-->0e102290_1ec3_e711_8c5a_005056ad0002
|
215 | 4e112290_1ec3_e711_8c5a_005056ad0002-->07132290_1ec3_e711_8c5a_005056ad0002
|
216 | 4e112290_1ec3_e711_8c5a_005056ad0002-->ca122290_1ec3_e711_8c5a_005056ad0002
|
217 | 30122290_1ec3_e711_8c5a_005056ad0002-->ca122290_1ec3_e711_8c5a_005056ad0002
|
218 | 30122290_1ec3_e711_8c5a_005056ad0002-->4e112290_1ec3_e711_8c5a_005056ad0002
|
219 | 5e112290_1ec3_e711_8c5a_005056ad0002-->8f102290_1ec3_e711_8c5a_005056ad0002
|
220 | 5e112290_1ec3_e711_8c5a_005056ad0002-->68102290_1ec3_e711_8c5a_005056ad0002
|
221 | c1112290_1ec3_e711_8c5a_005056ad0002-->68102290_1ec3_e711_8c5a_005056ad0002
|
222 | c1112290_1ec3_e711_8c5a_005056ad0002-->5e112290_1ec3_e711_8c5a_005056ad0002
|
223 | b7042290_1ec3_e711_8c5a_005056ad0002-->f4112290_1ec3_e711_8c5a_005056ad0002
|
224 | 8f102290_1ec3_e711_8c5a_005056ad0002-->f4112290_1ec3_e711_8c5a_005056ad0002
|
225 | 0e102290_1ec3_e711_8c5a_005056ad0002-->f4112290_1ec3_e711_8c5a_005056ad0002
|
226 | 07132290_1ec3_e711_8c5a_005056ad0002-->f4112290_1ec3_e711_8c5a_005056ad0002
|
227 | c7072290_1ec3_e711_8c5a_005056ad0002-->1d0a2290_1ec3_e711_8c5a_005056ad0002
|
228 | ca122290_1ec3_e711_8c5a_005056ad0002-->200a2290_1ec3_e711_8c5a_005056ad0002
|
229 | 68102290_1ec3_e711_8c5a_005056ad0002-->1c0a2290_1ec3_e711_8c5a_005056ad0002
|
230 | f4112290_1ec3_e711_8c5a_005056ad0002-->d6072290_1ec3_e711_8c5a_005056ad0002
|
231 | f4112290_1ec3_e711_8c5a_005056ad0002-->71082290_1ec3_e711_8c5a_005056ad0002
|
232 | f4112290_1ec3_e711_8c5a_005056ad0002-->c0102290_1ec3_e711_8c5a_005056ad0002
|
233 | f4112290_1ec3_e711_8c5a_005056ad0002-->9a072290_1ec3_e711_8c5a_005056ad0002
|
234 | d6072290_1ec3_e711_8c5a_005056ad0002-->1c0a2290_1ec3_e711_8c5a_005056ad0002
|
235 | 71082290_1ec3_e711_8c5a_005056ad0002-->d6072290_1ec3_e711_8c5a_005056ad0002
|
236 | c0102290_1ec3_e711_8c5a_005056ad0002-->d6072290_1ec3_e711_8c5a_005056ad0002
|
237 | c0102290_1ec3_e711_8c5a_005056ad0002-->71082290_1ec3_e711_8c5a_005056ad0002
|
238 | 9a072290_1ec3_e711_8c5a_005056ad0002-->d6072290_1ec3_e711_8c5a_005056ad0002
|
239 | 9a072290_1ec3_e711_8c5a_005056ad0002-->71082290_1ec3_e711_8c5a_005056ad0002
|
240 | </div>
|
241 | <div class="mermaid">
|
242 | graph TB
|
243 | subgraph One
|
244 | a1-->a2
|
245 | end
|
246 | </div>
|
247 | <div class="mermaid">
|
248 | graph TB
|
249 | A
|
250 | B
|
251 | subgraph foo[Foo SubGraph]
|
252 | C
|
253 | D
|
254 | end
|
255 | subgraph bar[Bar SubGraph]
|
256 | E
|
257 | F
|
258 | end
|
259 | G
|
260 |
|
261 | A-->B
|
262 | B-->C
|
263 | C-->D
|
264 | B-->D
|
265 | D-->E
|
266 | E-->A
|
267 | E-->F
|
268 | F-->D
|
269 | F-->G
|
270 | B-->G
|
271 | G-->D
|
272 |
|
273 | style foo fill:#F99,stroke-width:2px,stroke:#F0F
|
274 | style bar fill:#999,stroke-width:10px,stroke:#0F0
|
275 | </div>
|
276 | <div class="mermaid">
|
277 | graph LR
|
278 | 456ac9b0d15a8b7f1e71073221059886[1051 AAA fa:fa-check]
|
279 | f7f580e11d00a75814d2ded41fe8e8fe[1141 BBB fa:fa-check]
|
280 | 81dc9bdb52d04dc20036dbd8313ed055[1234 CCC fa:fa-check]
|
281 | 456ac9b0d15a8b7f1e71073221059886 -->|Node| f7f580e11d00a75814d2ded41fe8e8fe
|
282 | f7f580e11d00a75814d2ded41fe8e8fe -->|Node| 81dc9bdb52d04dc20036dbd8313ed055
|
283 | click 456ac9b0d15a8b7f1e71073221059886 "/admin/user/view?id=1051" "AAA
|
284 | 6000"
|
285 | click f7f580e11d00a75814d2ded41fe8e8fe "/admin/user/view?id=1141" "BBB
|
286 | 600"
|
287 | click 81dc9bdb52d04dc20036dbd8313ed055 "/admin/user/view?id=1234" "CCC
|
288 | 3000"
|
289 | style 456ac9b0d15a8b7f1e71073221059886 fill:#f9f,stroke:#333,stroke-width:4px
|
290 | </div>
|
291 | <div class="mermaid">
|
292 | graph TD
|
293 | A[Christmas] -->|Get money| B(Go shopping)
|
294 | B --> C{{Let me think...<br />Do I want something for work,<br />something to spend every free second with,<br />or something to get around?}}
|
295 | C -->|One| D[Laptop]
|
296 | C -->|Two| E[iPhone]
|
297 | C -->|Three| F[Car]
|
298 | click A "index.html#link-clicked" "link test"
|
299 | click B testClick "click test"
|
300 | classDef someclass fill:#f96;
|
301 | class A someclass;
|
302 | class C someclass;
|
303 | </div>
|
304 | <div class="mermaid">
|
305 | graph TD
|
306 | A([stadium shape test])
|
307 | A -->|Get money| B([Go shopping])
|
308 | B --> C([Let me think...<br />Do I want something for work,<br />something to spend every free second with,<br />or something to get around?])
|
309 | C -->|One| D([Laptop])
|
310 | C -->|Two| E([iPhone])
|
311 | C -->|Three| F([Car<br/>wroom wroom])
|
312 | click A "index.html#link-clicked" "link test"
|
313 | click B testClick "click test"
|
314 | classDef someclass fill:#f96;
|
315 | class A someclass;
|
316 | class C someclass;
|
317 | </div>
|
318 | <div class="mermaid">
|
319 | graph LR
|
320 | A[(cylindrical<br />shape<br />test)]
|
321 | A -->|Get money| B1[(Go shopping 1)]
|
322 | A -->|Get money| B2[(Go shopping 2)]
|
323 | A -->|Get money| B3[(Go shopping 3)]
|
324 | C[(Let me think...<br />Do I want something for work,<br />something to spend every free second with,<br />or something to get around?)]
|
325 | B1 --> C
|
326 | B2 --> C
|
327 | B3 --> C
|
328 | C -->|One| D[(Laptop)]
|
329 | C -->|Two| E[(iPhone)]
|
330 | C -->|Three| F[(Car)]
|
331 | click A "index.html#link-clicked" "link test"
|
332 | click B testClick "click test"
|
333 | classDef someclass fill:#f96;
|
334 | class A someclass;
|
335 | </div>
|
336 | <div class="mermaid">
|
337 | graph LR
|
338 | A1[Multi<br>Line] -->|Multi<br>Line| B1(Multi<br>Line)
|
339 | C1[Multi<br/>Line] -->|Multi<br/>Line| D1(Multi<br/>Line)
|
340 | E1[Multi<br />Line] -->|Multi<br />Line| F1(Multi<br />Line)
|
341 | A2[Multi<br>Line] -->|Multi<br>Line| B2(Multi<br>Line)
|
342 | C2[Multi<br/>Line] -->|Multi<br/>Line| D2(Multi<br/>Line)
|
343 | E2[Multi<br />Line] -->|Multi<br />Line| F2(Multi<br />Line)
|
344 | linkStyle 0 stroke:DarkGray,stroke-width:2px
|
345 | linkStyle 1 stroke:DarkGray,stroke-width:2px
|
346 | linkStyle 2 stroke:DarkGray,stroke-width:2px
|
347 | </div>
|
348 | <div class="mermaid">
|
349 | graph LR
|
350 | A(( )) -->|step 1| B(( ))
|
351 | B(( )) -->|step 2| C(( ))
|
352 | C(( )) -->|step 3| D(( ))
|
353 | linkStyle 1 stroke:greenyellow,stroke-width:2px
|
354 | style C fill:greenyellow,stroke:green,stroke-width:4px
|
355 | </div>
|
356 | <div class="mermaid">
|
357 | graph TB
|
358 | TITLE["Link Click Events<br>(click the nodes below)"]
|
359 | A[link test]
|
360 | B[anchor test]
|
361 | C[mailto test]
|
362 | D[other protocol test]
|
363 | E[script test]
|
364 | TITLE --> A & B & C & D & E
|
365 | click A "https://mermaid-js.github.io/mermaid/#/" "link test"
|
366 | click B "#link-clicked" "anchor test"
|
367 | click C "mailto:user@user.user" "mailto test"
|
368 | click D "notes://do-your-thing/id" "other protocol test"
|
369 | click E "javascript:alert('test')" "script test"
|
370 | </div>
|
371 | <hr/>
|
372 | <div class="mermaid">
|
373 | graph LR
|
374 | A[red<br>text] -->|red<br>text| B(blue<br>text)
|
375 | C[/red<br/>text/] -->|blue<br/>text| D{blue<br/>text}
|
376 | E{{default<br />style}} -->|default<br />style| F([default<br />style])
|
377 | linkStyle default color:Sienna;
|
378 | linkStyle 0 color:red;
|
379 | linkStyle 1 stroke:DarkGray,stroke-width:2px,color:#0000ff
|
380 | style A color:red;
|
381 | style B color:blue;
|
382 | style C stroke:#ff0000,fill:#ffcccc,color:#ff0000
|
383 | style D stroke:#0000ff,fill:#ccccff,color:#0000ff
|
384 | click B "index.html#link-clicked" "link test"
|
385 | click D testClick "click test"
|
386 | </div>
|
387 | <div class="mermaid">
|
388 | graph TD
|
389 | A[myClass1] --> B[default] & C[default]
|
390 | B[default] & C[default] --> D[myClass2]
|
391 | classDef default stroke-width:2px,fill:none,stroke:silver
|
392 | classDef node color:red
|
393 | classDef myClass1 color:#0000ff
|
394 | classDef myClass2 stroke:#0000ff,fill:#ccccff
|
395 | class A myClass1
|
396 | class D myClass2
|
397 | </div>
|
398 |
|
399 | <hr/>
|
400 |
|
401 | <div class="mermaid">
|
402 | sequenceDiagram
|
403 | participant Alice
|
404 | participant Bob
|
405 | participant John as John<br/>Second Line
|
406 | rect rgb(200, 220, 100)
|
407 | rect rgb(200, 255, 200)
|
408 | Alice ->> Bob: Hello Bob, how are you?
|
409 | Bob-->>John: How about you John?
|
410 | end
|
411 | Bob--x Alice: I am good thanks!
|
412 | Bob-x John: I am good thanks!
|
413 | Note right of John: Bob thinks a long<br/>long time, so long<br/>that the text does<br/>not fit on a row.
|
414 | Bob-->Alice: Checking with John...
|
415 | end
|
416 | alt either this
|
417 | Alice->>John: Yes
|
418 | else or this
|
419 | Alice->>John: No
|
420 | else or this will happen
|
421 | Alice->John: Maybe
|
422 | end
|
423 | par this happens in parallel
|
424 | Alice -->> Bob: Parallel message 1
|
425 | and
|
426 | Alice -->> John: Parallel message 2
|
427 | end
|
428 | </div>
|
429 | <div class="mermaid">
|
430 | sequenceDiagram
|
431 | participant 1 as multiline<br>using #lt;br#gt;
|
432 | participant 2 as multiline<br/>using #lt;br/#gt;
|
433 | participant 3 as multiline<br />using #lt;br /#gt;
|
434 | participant 4 as multiline<br />using #lt;br /#gt;
|
435 | 1->>2: multiline<br>using #lt;br#gt;
|
436 | note right of 2: multiline<br>using #lt;br#gt;
|
437 | 2->>3: multiline<br/>using #lt;br/#gt;
|
438 | note right of 3: multiline<br/>using #lt;br/#gt;
|
439 | 3->>4: multiline<br />using #lt;br /#gt;
|
440 | note right of 4: multiline<br />using #lt;br /#gt;
|
441 | 4->>1: multiline<br />using #lt;br /#gt;
|
442 | note right of 1: multiline<br />using #lt;br /#gt;
|
443 | </div>
|
444 |
|
445 | <hr/>
|
446 |
|
447 | <div class="mermaid">
|
448 | gantt
|
449 | dateFormat YYYY-MM-DD
|
450 | axisFormat %d/%m
|
451 | title Adding GANTT diagram to mermaid
|
452 | excludes weekdays 2014-01-10
|
453 |
|
454 | section A section
|
455 | Completed task :done, des1, 2014-01-06,2014-01-08
|
456 | Active task :active, des2, 2014-01-09, 3d
|
457 | Future task : des3, after des2, 5d
|
458 | Future task2 : des4, after des3, 5d
|
459 |
|
460 | section Critical tasks
|
461 | Completed task in the critical line :crit, done, 2014-01-06,24h
|
462 | Implement parser and jison :crit, done, after des1, 2d
|
463 | Create tests for parser :crit, active, 3d
|
464 | Future task in critical line :crit, 5d
|
465 | Create tests for renderer :2d
|
466 | Add to mermaid :1d
|
467 |
|
468 | section Documentation
|
469 | Describe gantt syntax :active, a1, after des1, 3d
|
470 | Add gantt diagram to demo page :after a1 , 20h
|
471 | Add another diagram to demo page :doc1, after a1 , 48h
|
472 |
|
473 | section Clickable
|
474 | Visit mermaidjs :active, cl1, 2014-01-07,2014-01-10
|
475 | Calling a Callback (look at the console log) :cl2, after cl1, 3d
|
476 |
|
477 | click cl1 href "https://mermaidjs.github.io/"
|
478 | click cl2 call ganttTestClick("test", test, test)
|
479 |
|
480 | section Last section
|
481 | Describe gantt syntax :after doc1, 3d
|
482 | Add gantt diagram to demo page : 20h
|
483 | Add another diagram to demo page : 48h
|
484 | </div>
|
485 | <div class="mermaid">
|
486 | gantt
|
487 | dateFormat YYYY-MM-DD
|
488 | axisFormat %d/%m
|
489 | title GANTT diagram with multiline section titles
|
490 | excludes weekdays 2014-01-10
|
491 |
|
492 | section A section<br>multiline
|
493 | Completed task : done, des1, 2014-01-06,2014-01-08
|
494 | Active task : active, des2, 2014-01-09, 3d
|
495 | Future task : des3, after des2, 5d
|
496 | Future task2 : des4, after des3, 5d
|
497 |
|
498 | section Critical tasks<br/>multiline
|
499 | Completed task in the critical line : crit, done, 2014-01-06, 24h
|
500 | Implement parser and jison : crit, done, after des1, 2d
|
501 | Create tests for parser : crit, active, 3d
|
502 | Future task in critical line : crit, 5d
|
503 | Create tests for renderer : 2d
|
504 | Add to mermaid : 1d
|
505 |
|
506 | section Documentation<br />multiline
|
507 | Describe gantt syntax : active, a1, after des1, 3d
|
508 | Add gantt diagram to demo page : after a1, 20h
|
509 | Add another diagram to demo page : doc1, after a1, 48h
|
510 |
|
511 | section Last section<br />multiline
|
512 | Describe gantt syntax : after doc1, 3d
|
513 | Add gantt diagram to demo page : 20h
|
514 | Add another diagram to demo page : 48h
|
515 | </div>
|
516 |
|
517 | <hr/>
|
518 |
|
519 | <div class="mermaid">
|
520 | gitGraph:
|
521 | options
|
522 | {
|
523 | "nodeSpacing": 150,
|
524 | "nodeRadius": 10
|
525 | }
|
526 | end
|
527 | commit
|
528 | branch newbranch
|
529 | checkout newbranch
|
530 | commit
|
531 | commit
|
532 | checkout master
|
533 | commit
|
534 | commit
|
535 | merge newbranch
|
536 | </div>
|
537 |
|
538 | <hr/>
|
539 |
|
540 | <div class="mermaid">
|
541 | classDiagram
|
542 | Class01 <|-- AveryLongClass : Cool
|
543 | <<interface>> Class01
|
544 | Class03 "0" *-- "0..n" Class04
|
545 | Class05 "1" o-- "many" Class06
|
546 | Class07 .. Class08
|
547 | Class09 "many" --> "1" C2 : Where am i?
|
548 | Class09 "0" --* "1..n" C3
|
549 | Class09 --|> Class07
|
550 | Class07 : equals()
|
551 | Class07 : Object[] elementData
|
552 | Class01 : #size()
|
553 | Class01 : -int chimp
|
554 | Class01 : +int gorilla
|
555 | Class08 <--> C2: Cool label
|
556 | class Class10 {
|
557 | <<service>>
|
558 | int id
|
559 | size()
|
560 | }
|
561 | </div>
|
562 |
|
563 | <div class="mermaid">
|
564 | classDiagram
|
565 | class Class01~T~
|
566 | Class01 : #size()
|
567 | Class01 : -int chimp
|
568 | Class01 : +int gorilla
|
569 | class Class10~T~ {
|
570 | <<service>>
|
571 | int id
|
572 | size()
|
573 | }
|
574 | </div>
|
575 |
|
576 | <div class="mermaid">
|
577 | classDiagram
|
578 | Class01~T~ <|-- AveryLongClass : Cool
|
579 | <<interface>> Class01
|
580 | Class03~T~ "0" *-- "0..n" Class04
|
581 | Class05 "1" o-- "many" Class06
|
582 | Class07~T~ .. Class08
|
583 | Class09 "many" --> "1" C2 : Where am i?
|
584 | Class09 "0" --* "1..n" C3
|
585 | Class09 --|> Class07
|
586 | Class07 : equals()
|
587 | Class07 : Object[] elementData
|
588 | Class01 : #size()
|
589 | Class01 : -int chimp
|
590 | Class01 : +int gorilla
|
591 | Class08 <--> C2: Cool label
|
592 | class Class10 {
|
593 | <<service>>
|
594 | int id
|
595 | size()
|
596 | }
|
597 | </div>
|
598 |
|
599 | <div class="mermaid">
|
600 | stateDiagram
|
601 | State1
|
602 | </div>
|
603 |
|
604 | <hr>
|
605 |
|
606 | <div class="mermaid">
|
607 | stateDiagram
|
608 | [*] --> First
|
609 | state First {
|
610 | [*] --> second
|
611 | second --> [*]
|
612 | }
|
613 | </div>
|
614 | <div class="mermaid">
|
615 | stateDiagram
|
616 | State1: The state with a note
|
617 | note right of State1
|
618 | Important information! You can write
|
619 | notes.
|
620 | end note
|
621 | State1 --> State2
|
622 | note left of State2 : This is the note to the left.
|
623 | </div>
|
624 | <div class="mermaid">
|
625 | stateDiagram
|
626 | State1
|
627 | note right of State1
|
628 | Line1<br>Line2<br/>Line3<br />Line4<br />Line5
|
629 | end note
|
630 | </div>
|
631 |
|
632 | <h1 id="link-clicked">Anchor for "link-clicked" test</h1>
|
633 |
|
634 | <script src="./mermaid.js"></script>
|
635 | <script>
|
636 | mermaid.initialize({
|
637 | theme: 'forest',
|
638 |
|
639 | logLevel: 3,
|
640 | securityLevel: 'loose',
|
641 | flowchart: { curve: 'basis' },
|
642 | gantt: { axisFormat: '%m/%d/%Y' },
|
643 | sequence: { actorMargin: 50 },
|
644 |
|
645 | });
|
646 | </script>
|
647 | <script>
|
648 | function ganttTestClick(a, b, c){
|
649 | console.log("a:", a)
|
650 | console.log("b:", b)
|
651 | console.log("c:", c)
|
652 | }
|
653 | function testClick(nodeId) {
|
654 | console.log("clicked", nodeId)
|
655 | var originalBgColor = document.querySelector('body').style.backgroundColor
|
656 | document.querySelector('body').style.backgroundColor = 'yellow'
|
657 | setTimeout(function() {
|
658 | document.querySelector('body').style.backgroundColor = originalBgColor
|
659 | }, 100)
|
660 | }
|
661 | </script>
|
662 | <script>
|
663 | const testLineEndings = (test, input) => {
|
664 | try {
|
665 | mermaid.render(test, input, () => {});
|
666 | } catch (err) {
|
667 | console.error("Error in %s:\n\n%s", test, err);
|
668 | }
|
669 | };
|
670 |
|
671 | testLineEndings("CR", "graph LR\rsubgraph CR\rA --> B\rend");
|
672 | testLineEndings("LF", "graph LR\nsubgraph LF\nA --> B\nend");
|
673 | testLineEndings("CRLF", "graph LR\r\nsubgraph CRLF\r\nA --> B\r\nend");
|
674 | </script>
|
675 | </body>
|
676 | </html>
|