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