mirror of
https://github.com/ArthurSonzogni/Diagon.git
synced 2026-08-30 00:50:45 +08:00
184 lines
3.8 KiB
JSON
184 lines
3.8 KiB
JSON
[
|
|
{
|
|
"tool": "Sequence",
|
|
"description": "Sequence diagram",
|
|
"examples": [
|
|
{
|
|
"title": "------------------------",
|
|
"empty": true
|
|
},
|
|
{
|
|
"title":"1-basic",
|
|
"content": [
|
|
"Alice -> Bob: Hello Bob!",
|
|
"Alice <- Bob: Hello Alice!"
|
|
]
|
|
},
|
|
{
|
|
"title":"2-More actors",
|
|
"content": [
|
|
"Renderer -> Browser: BeginNavigation()",
|
|
"Browser -> Network: URLRequest()",
|
|
"Browser <- Network: URLResponse()",
|
|
"Renderer <- Browser: CommitNavigation()",
|
|
"Renderer -> Browser: DidCommitNavigation()"
|
|
]
|
|
},
|
|
{
|
|
"title":"3-Actors order",
|
|
"content": [
|
|
"Actor 2 -> Actor 3: message 1",
|
|
"Actor 1 -> Actor 2: message 2",
|
|
"",
|
|
"Actor 1:",
|
|
"Actor 2:",
|
|
"Actor 3:"
|
|
]
|
|
},
|
|
{
|
|
"title":"4-Message order",
|
|
"content": [
|
|
"2) Actor 2 -> Actor 3: message 1",
|
|
"1) Actor 1 -> Actor 2: message 2",
|
|
"",
|
|
"Actor 1:",
|
|
"Actor 2: 1<2",
|
|
"Actor 3:"
|
|
]
|
|
},
|
|
{
|
|
"title":"5-Message crossing",
|
|
"content": [
|
|
"1) Renderer -> Browser: Message 1",
|
|
"2) Renderer <- Browser: Message 2",
|
|
"",
|
|
"Renderer: 1<2",
|
|
"Browser: 2<1"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
|
|
{
|
|
"tool": "PlanarGraph",
|
|
"description": "Planar graph",
|
|
"examples": [
|
|
{
|
|
"title": "------------------------",
|
|
"empty": true
|
|
},
|
|
{
|
|
"title":"if then else loop",
|
|
"content": [
|
|
"if -> \"then A\" -> end",
|
|
"if -> \"then B\" -> end",
|
|
"end -> loop -> if"
|
|
]
|
|
},
|
|
{
|
|
"title":"test",
|
|
"content": [
|
|
"A -- B",
|
|
"A -- C",
|
|
"A -- D -- G",
|
|
"B -- Z",
|
|
"C -- Z"
|
|
]
|
|
},
|
|
{
|
|
"title": "Big graph",
|
|
"content": [
|
|
"a -- b",
|
|
"a -- c",
|
|
"a -- d",
|
|
"b -- c",
|
|
"b -- e",
|
|
"c -- e",
|
|
"c -- f",
|
|
"d -- f",
|
|
"d -- g",
|
|
"e -- h",
|
|
"f -- h",
|
|
"f -- i",
|
|
"f -- j",
|
|
"f -- g",
|
|
"g -- k",
|
|
"h -- o",
|
|
"h -- l",
|
|
"i -- l",
|
|
"i -- m",
|
|
"i -- j",
|
|
"j -- m",
|
|
"j -- n",
|
|
"j -- k",
|
|
"k -- n",
|
|
"k -- r",
|
|
"l -- o",
|
|
"l -- m",
|
|
"m -- o",
|
|
"m -- p",
|
|
"m -- n",
|
|
"n -- q",
|
|
"n -- r",
|
|
"o -- s",
|
|
"o -- p",
|
|
"p -- s",
|
|
"p -- t",
|
|
"p -- q",
|
|
"q -- t",
|
|
"q -- r",
|
|
"r -- t",
|
|
"s -- z",
|
|
"t -- z"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"tool": "LineNumberUnicode",
|
|
"description": "Line number unicode",
|
|
"examples": [
|
|
{
|
|
"title": "------------------------",
|
|
"empty": true
|
|
},
|
|
{
|
|
"title":"1-Hello world",
|
|
"content": [
|
|
"#include <iostream>",
|
|
"using namespace std;",
|
|
"",
|
|
"int main() ",
|
|
"{",
|
|
" cout << \"Hello, World!\";",
|
|
" return 0;",
|
|
"}"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"tool": "LineNumberASCII",
|
|
"description": "Line number ASCII",
|
|
"examples": [
|
|
{
|
|
"title": "------------------------",
|
|
"empty": true
|
|
},
|
|
{
|
|
"title":"Hello world",
|
|
"content": [
|
|
"#include <iostream>",
|
|
"using namespace std;",
|
|
"",
|
|
"int main() ",
|
|
"{",
|
|
" cout << \"Hello, World!\";",
|
|
" return 0;",
|
|
"}"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|