JS Sequence Diagrams
文章目录
Usage
|
|
|
|
toml [params.sequenceDiagrams] enable = true options = “{theme: ‘hand’}”
1
|
Configure for a single post in the front matter (**Params in front matter have higher precedence**): |
yaml sequenceDiagrams: enable: true options: “{theme: ‘hand’}”
1
|
### Options |
js options = { // Change the styling of the diagram, typically one of ‘simple’, ‘hand’. New themes can be registered with registerTheme(…). theme: string,
// CSS style to apply to the diagram’s svg tag. (Only supported if using snap.svg) css_class: string, }
1 2 3 |
See more information from https://github.com/bramp/js-sequence-diagrams. ## Examples |
sequence Title: Here is a title A->B: Normal line B–>C: Dashed line C->>D: Open arrow D–>>A: Dashed open arrow
1 2 3 4 5 6 7 8 9 |
```sequence Title: Here is a title A->B: Normal line B-->C: Dashed line C->>D: Open arrow D-->>A: Dashed open arrow ``` --- |
sequence
Example of a comment.
Note left of A: Note to the\n left of A Note right of A: Note to the\n right of A Note over A: Note over A Note over A,B: Note over both A and B ```
1 2 3 4 5 6 7 |
```sequence # Example of a comment. Note left of A: Note to the\n left of A Note right of A: Note to the\n right of A Note over A: Note over A Note over A,B: Note over both A and B ``` |
文章作者 shengli
上次更新 2015-03-04