mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-28 14:04:43 -04:00
Feature/d3 graphviz (#564)
added graphviz diagrams via d3-graphviz added craco and webpack-copy-plugin to copy wasm files Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
e6ee1aff50
commit
5972932d33
8 changed files with 448 additions and 49 deletions
|
@ -9,6 +9,54 @@ opengraph:
|
|||
# Embedding demo
|
||||
[TOC]
|
||||
|
||||
## GraphViz
|
||||
|
||||
\`\`\`graphviz
|
||||
graph {
|
||||
a -- b
|
||||
a -- b
|
||||
b -- a [color=blue]
|
||||
}
|
||||
\`\`\`
|
||||
|
||||
\`\`\`graphviz
|
||||
digraph structs {
|
||||
node [shape=record];
|
||||
struct1 [label="<f0> left|<f1> mid\ dle|<f2> right"];
|
||||
struct2 [label="<f0> one|<f1> two"];
|
||||
struct3 [label="hello\nworld |{ b |{c|<here> d|e}| f}| g | h"];
|
||||
struct1:f1 -> struct2:f0;
|
||||
struct1:f2 -> struct3:here;
|
||||
}
|
||||
\`\`\`
|
||||
|
||||
\`\`\`graphviz
|
||||
digraph G {
|
||||
main -> parse -> execute;
|
||||
main -> init;
|
||||
main -> cleanup;
|
||||
execute -> make_string;
|
||||
execute -> printf
|
||||
init -> make_string;
|
||||
main -> printf;
|
||||
execute -> compare;
|
||||
}
|
||||
\`\`\`
|
||||
|
||||
\`\`\`graphviz
|
||||
digraph D {
|
||||
node [fontname="Arial"];
|
||||
node_A [shape=record label="shape=record|{above|middle|below}|right"];
|
||||
node_B [shape=plaintext label="shape=plaintext|{curly|braces and|bars without}|effect"];
|
||||
}
|
||||
\`\`\`
|
||||
|
||||
\`\`\`graphviz
|
||||
digraph D {
|
||||
A -> {B, C, D} -> {F}
|
||||
}
|
||||
\`\`\`
|
||||
|
||||
## Sequence Diagram (deprecated)
|
||||
|
||||
\`\`\`sequence
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue