-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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 #2832 from gwincr11/cg-accessibility
ER and Sequence Chart Accessibility
- Loading branch information
Showing
14 changed files
with
242 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>Mermaid Quick Test Page</title> | ||
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo="> | ||
<style> | ||
div.mermaid { | ||
/* font-family: 'trebuchet ms', verdana, arial; */ | ||
font-family: 'Courier New', Courier, monospace !important; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
|
||
|
||
<div class="mermaid"> | ||
erDiagram | ||
title This is a title | ||
accDescription Test a description | ||
CUSTOMER ||--o{ ORDER : places | ||
ORDER ||--|{ LINE-ITEM : contains | ||
CUSTOMER }|..|{ DELIVERY-ADDRESS : uses | ||
</div> | ||
|
||
<script src="./mermaid.js"></script> | ||
<script> | ||
mermaid.initialize({ | ||
theme: 'forest', | ||
// themeCSS: '.node rect { fill: red; }', | ||
logLevel: 3, | ||
securityLevel: 'loose', | ||
flowchart: { curve: 'basis' }, | ||
gantt: { axisFormat: '%m/%d/%Y' }, | ||
sequence: { actorMargin: 50 }, | ||
// sequenceDiagram: { actorMargin: 300 } // deprecated | ||
}); | ||
</script> | ||
|
||
</body> | ||
|
||
</html> |
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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>Mermaid Quick Test Page</title> | ||
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo="> | ||
<style> | ||
div.mermaid { | ||
/* font-family: 'trebuchet ms', verdana, arial; */ | ||
font-family: 'Courier New', Courier, monospace !important; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
|
||
|
||
<div class="mermaid"> | ||
sequenceDiagram | ||
title: FancySequenceDiagram | ||
accDescription Test a description | ||
participant Alice | ||
participant Bob | ||
participant John as John<br />Second Line | ||
rect rgb(200, 220, 100) | ||
rect rgb(200, 255, 200) | ||
Alice ->> Bob: Hello Bob, how are you? | ||
Bob-->>John: How about you John? | ||
end | ||
Bob--x Alice: I am good thanks! | ||
Bob-x John: I am good thanks! | ||
Note right of John: John thinks a long<br />long time, so long<br />that the text does<br />not fit on a row. | ||
Bob-->Alice: Checking with John... | ||
Note over John:wrap: John looks like he's still thinking, so Bob prods him a bit. | ||
Bob-x John: Hey John - we're still waiting to know<br />how you're doing | ||
Note over John:nowrap: John's trying hard not to break his train of thought. | ||
Bob-x John:wrap: John! Are you still debating about how you're doing? How long does it take?? | ||
Note over John: After a few more moments, John<br />finally snaps out of it. | ||
end | ||
alt either this | ||
Alice->>John: Yes | ||
else or this | ||
Alice->>John: No | ||
else or this will happen | ||
Alice->John: Maybe | ||
end | ||
par this happens in parallel | ||
Alice -->> Bob: Parallel message 1 | ||
and | ||
Alice -->> John: Parallel message 2 | ||
end | ||
</div> | ||
|
||
<script src="./mermaid.js"></script> | ||
<script> | ||
mermaid.initialize({ | ||
theme: 'forest', | ||
// themeCSS: '.node rect { fill: red; }', | ||
logLevel: 3, | ||
securityLevel: 'loose', | ||
flowchart: { curve: 'basis' }, | ||
gantt: { axisFormat: '%m/%d/%Y' }, | ||
sequence: { actorMargin: 50 }, | ||
// sequenceDiagram: { actorMargin: 300 } // deprecated | ||
}); | ||
</script> | ||
|
||
</body> | ||
|
||
</html> |
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,11 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "attach", | ||
"name": "Attach", | ||
"port": 9229 | ||
} | ||
] | ||
} |
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
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
Oops, something went wrong.