mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-15 05:19:58 +02:00
fix: refactored documentation
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
@@ -228,30 +228,30 @@ Lines can be solid or dotted, and can end with various types of arrowheads, cros
|
||||
| `-)` | Solid line with an open arrow at the end (async) |
|
||||
| `--)` | Dotted line with a open arrow at the end (async) |
|
||||
|
||||
**New Half-Arrows**
|
||||
**Half-Arrows**
|
||||
|
||||
The following half-arrow types are now supported for more expressive sequence diagrams. Both solid and dotted variants are available by increasing the number of dashes (`-` → `--`).
|
||||
|
||||
---
|
||||
|
||||
\| Type | Description |
|
||||
\| ------- | ---------------------------------------------------- | ---------------------------------------------- |
|
||||
\| `-\|\` | Solid line with top half arrowhead |
|
||||
\| `--\|\` | Dotted line with top half arrowhead |
|
||||
\| `-\|/` | Solid line with bottom half arrowhead |
|
||||
\| `--\|/` | Dotted line with bottom half arrowhead |
|
||||
\| `/\|-` | Solid line with reverse top half arrowhead |
|
||||
\| `/\|--` | Dotted line with reverse top half arrowhead |
|
||||
\| `\\ | -` | Solid line with reverse bottom half arrowhead |
|
||||
\| `\\ | --` | Dotted line with reverse bottom half arrowhead |
|
||||
\| `-\\` | Solid line with top stick half arrowhead |
|
||||
\| `--\\` | Dotted line with top stick half arrowhead |
|
||||
\| `-//` | Solid line with bottom stick half arrowhead |
|
||||
\| `--//` | Dotted line with bottom stick half arrowhead |
|
||||
\| `//-` | Solid line with reverse top stick half arrowhead |
|
||||
\| `//--` | Dotted line with reverse top stick half arrowhead |
|
||||
\| `\\-` | Solid line with reverse bottom stick half arrowhead |
|
||||
\| `\\--` | Dotted line with reverse bottom stick half arrowhead |
|
||||
| Type | Description |
|
||||
| ------- | ---------------------------------------------------- |
|
||||
| `-\|\` | Solid line with top half arrowhead |
|
||||
| `--\|\` | Dotted line with top half arrowhead |
|
||||
| `-\|/` | Solid line with bottom half arrowhead |
|
||||
| `--\|/` | Dotted line with bottom half arrowhead |
|
||||
| `/\|-` | Solid line with reverse top half arrowhead |
|
||||
| `/\|--` | Dotted line with reverse top half arrowhead |
|
||||
| `\\-` | Solid line with reverse bottom half arrowhead |
|
||||
| `\\--` | Dotted line with reverse bottom half arrowhead |
|
||||
| `-\\` | Solid line with top stick half arrowhead |
|
||||
| `--\\` | Dotted line with top stick half arrowhead |
|
||||
| `-//` | Solid line with bottom stick half arrowhead |
|
||||
| `--//` | Dotted line with bottom stick half arrowhead |
|
||||
| `//-` | Solid line with reverse top stick half arrowhead |
|
||||
| `//--` | Dotted line with reverse top stick half arrowhead |
|
||||
| `\\-` | Solid line with reverse bottom stick half arrowhead |
|
||||
| `\\--` | Dotted line with reverse bottom stick half arrowhead |
|
||||
|
||||
## Central Connections
|
||||
|
||||
@@ -280,24 +280,6 @@ sequenceDiagram
|
||||
John()->>()Alice: Great!
|
||||
```
|
||||
|
||||
```mermaid-example
|
||||
sequenceDiagram
|
||||
participant Alice
|
||||
participant John
|
||||
Alice->>()John: Hello John
|
||||
Alice()->>John: How are you?
|
||||
John()->>()Alice: Great!
|
||||
```
|
||||
|
||||
```mermaid
|
||||
sequenceDiagram
|
||||
participant Alice
|
||||
participant John
|
||||
Alice->>()John: Hello John
|
||||
Alice()->>John: How are you?
|
||||
John()->>()Alice: Great!
|
||||
```
|
||||
|
||||
## Activations
|
||||
|
||||
It is possible to activate and deactivate an actor. (de)activation can be dedicated declarations:
|
||||
|
Reference in New Issue
Block a user