Added option to include if and loop condition text in the diagram (fixes #162)

This commit is contained in:
Bartek Kryza
2023-07-04 23:58:42 +02:00
parent a514532e51
commit 3bd8f7f7a8
20 changed files with 365 additions and 13 deletions

View File

@@ -8,6 +8,7 @@
* [Lambda expressions in sequence diagrams](#lambda-expressions-in-sequence-diagrams)
* [Customizing participants order](#customizing-participants-order)
* [Generating return types](#generating-return-types)
* [Generating condition statements](#generating-condition-statements)
<!-- tocstop -->
@@ -263,3 +264,15 @@ generate_return_types: true
This option only affects the `plantuml` generation, in `json` generator
`return_type` property is always present in the message nodes.
## Generating condition statements
Sometimes, it is useful to include actual condition statements (for instance
contents of the `if()` condition in the `alt` or `loop` blocks in the sequence
diagrams, to make them more readable.
This can be enabled using the following option:
```yaml
generate_condition_statements: true
```