Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
autonumber
participant Alice
participant Bob
participant Charlie

Note over Alice,Charlie: Normal arrows
Alice->>Alice: Normal solid
Bob-->>Bob: Normal dotted
Charlie->Charlie: Normal open

Note over Alice,Charlie: Reverse arrows
Alice/|-Alice: Reverse solid top
Bob\|-Bob: Reverse solid bottom

Note over Alice,Charlie: Bidirectional arrows
Charlie<<->>Charlie: Bidirectional solid
Alice<<-->>Alice: Bidirectional dotted

Note over Alice,Charlie: Central connections
Bob->>()Bob: Central at destination
Charlie()->>Charlie: Central at source
Alice()->>()Alice: Dual central

Note over Alice,Charlie: Reverse with central
Bob()/|-()Bob: Reverse with dual central
Charlie/|-()Charlie: Reverse with central at destination

Note over Alice,Charlie: Bidirectional with central
Alice()<<->>()Alice: Bidirectional with dual central
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
participant Alice
participant Bob
participant Charlie
Alice()/|-()Alice: Circles at both ends with solid top reverse
Bob()\|-()Bob: Circles at both ends with solid bottom reverse
Charlie()//-()Charlie: Circles at both ends with stick top reverse
Alice()\\-()Alice: Circles at both ends with stick bottom reverse
Bob()/|--()Bob: Circles at both ends with dotted solid top reverse
Charlie()\|--()Charlie: Circles at both ends with dotted solid bottom reverse
Alice()//--()Alice: Circles at both ends with dotted stick top reverse
Bob()\\--()Bob: Circles at both ends with dotted stick bottom reverse
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
autonumber
participant Alice
participant Bob
participant Charlie
Alice()/|-Alice: Circle at source with solid top reverse
Bob()\|-Bob: Circle at source with solid bottom reverse
Charlie()//-Charlie: Circle at source with stick top reverse
Alice()\\-Alice: Circle at source with stick bottom reverse
Bob()/|--Bob: Circle at source with dotted solid top reverse
Charlie()\|--Charlie: Circle at source with dotted solid bottom reverse
Alice()//--Alice: Circle at source with dotted stick top reverse
Bob()\\--Bob: Circle at source with dotted stick bottom reverse
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
participant Alice
participant Bob
participant Charlie
Alice()/|-Alice: Circle at source with solid top reverse
Bob()\|-Bob: Circle at source with solid bottom reverse
Charlie()//-Charlie: Circle at source with stick top reverse
Alice()\\-Alice: Circle at source with stick bottom reverse
Bob()/|--Bob: Circle at source with dotted solid top reverse
Charlie()\|--Charlie: Circle at source with dotted solid bottom reverse
Alice()//--Alice: Circle at source with dotted stick top reverse
Bob()\\--Bob: Circle at source with dotted stick bottom reverse
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
autonumber
participant Alice
participant Bob
participant Charlie

Alice->>Bob: Regular message
Bob->>Bob: Self-reference solid
Bob-->>Charlie: Regular dotted
Charlie()->>()Charlie: Self-ref dual central
Charlie->>Alice: Regular back
Alice<<->>Alice: Self-ref bidirectional
Alice()->>Bob: Regular with central
Bob()/|-()Bob: Self-ref reverse dual central
Bob-->>Alice: Regular dotted back
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
autonumber
participant Alice
participant Bob
participant Charlie
Alice()<<->>()Alice: Dual central with bidirectional solid
Bob()<<-->>()Bob: Dual central with bidirectional dotted
Charlie<<->>()Charlie: Central at end with bidirectional
Bob()<<->>Bob: Central at start with bidirectional
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
autonumber
participant Alice
participant Bob
participant Charlie
Alice()->>()Alice: Circles at both ends with solid arrow
Bob()-->>()Bob: Circles at both ends with dotted arrow
Charlie()->()Charlie: Circles at both ends with open arrow
Alice()--x()Alice: Circles at both ends with cross arrow
Bob()--)()Bob: Circles at both ends with close arrow
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
participant Alice
participant Bob
participant Charlie
Alice()->>()Alice: Circles at both ends with solid arrow
Bob()-->>()Bob: Circles at both ends with dotted arrow
Charlie()->()Charlie: Circles at both ends with open arrow
Alice()--x()Alice: Circles at both ends with cross arrow
Bob()--)()Bob: Circles at both ends with close arrow
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
autonumber
participant Alice
participant Bob
participant Charlie
Alice()->>Alice: Circle at source with solid arrow
Bob()-->>Bob: Circle at source with dotted arrow
Charlie()->Charlie: Circle at source with open arrow
Alice()--xAlice: Circle at source with cross arrow
Bob()--)Bob: Circle at source with close arrow
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
participant Alice
participant Bob
participant Charlie
Alice()->>Alice: Circle at source with solid arrow
Bob()-->>Bob: Circle at source with dotted arrow
Charlie()->Charlie: Circle at source with open arrow
Alice()--xAlice: Circle at source with cross arrow
Bob()--)Bob: Circle at source with close arrow
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
autonumber
participant Alice
participant Bob
participant Charlie
Alice->>()Alice: Solid arrow with circle at destination
Bob-->>()Bob: Dotted arrow with circle at destination
Charlie->()Charlie: Open arrow with circle at destination
Alice--x()Alice: Cross arrow with circle at destination
Bob--)()Bob: Close arrow with circle at destination
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
participant Alice
participant Bob
participant Charlie
Alice->>()Alice: Solid arrow with circle at destination
Bob-->>()Bob: Dotted arrow with circle at destination
Charlie->()Charlie: Open arrow with circle at destination
Alice--x()Alice: Cross arrow with circle at destination
Bob--)()Bob: Close arrow with circle at destination
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
autonumber
participant Alice
participant Bob
participant Charlie
Alice/|-()Alice: Solid top reverse with circle at destination
Bob\|-()Bob: Solid bottom reverse with circle at destination
Charlie//-()Charlie: Stick top reverse with circle at destination
Alice\\-()Alice: Stick bottom reverse with circle at destination
Bob/|--()Bob: Dotted solid top reverse with circle at destination
Charlie\|--()Charlie: Dotted solid bottom reverse with circle at destination
Alice//--()Alice: Dotted stick top reverse with circle at destination
Bob\\--()Bob: Dotted stick bottom reverse with circle at destination
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
participant Alice
participant Bob
participant Charlie
Alice/|-()Alice: Solid top reverse with circle at destination
Bob\|-()Bob: Solid bottom reverse with circle at destination
Charlie//-()Charlie: Stick top reverse with circle at destination
Alice\\-()Alice: Stick bottom reverse with circle at destination
Bob/|--()Bob: Dotted solid top reverse with circle at destination
Charlie\|--()Charlie: Dotted solid bottom reverse with circle at destination
Alice//--()Alice: Dotted stick top reverse with circle at destination
Bob\\--()Bob: Dotted stick bottom reverse with circle at destination
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
autonumber
participant Alice
participant Bob
participant Charlie
Alice()/|-()Alice: Circles at both ends with solid top reverse
Bob()\|-()Bob: Circles at both ends with solid bottom reverse
Charlie()//-()Charlie: Circles at both ends with stick top reverse
Alice()\\-()Alice: Circles at both ends with stick bottom reverse
Bob()/|--()Bob: Circles at both ends with dotted solid top reverse
Charlie()\|--()Charlie: Circles at both ends with dotted solid bottom reverse
Alice()//--()Alice: Circles at both ends with dotted stick top reverse
Bob()\\--()Bob: Circles at both ends with dotted stick bottom reverse
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
config:
sequence:
diagramMarginX: 50
diagramMarginY: 10
---
%%{init: {'theme':'base'}}%%
sequenceDiagram
participant Alice
participant Bob
participant Charlie
Alice()<<->>()Alice: Dual central with bidirectional solid
Bob()<<-->>()Bob: Dual central with bidirectional dotted
Charlie<<->>()Alice: Central at end with bidirectional
Bob()<<->>Bob: Central at start with bidirectional
27 changes: 27 additions & 0 deletions e2e/rendering/mindmap/mindmap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,4 +280,31 @@ root
});
});
/* The end */
test('all shapes with mdi:fire icon', async ({ page }, testInfo) => {
await imgSnapshotTest(
page,
testInfo,
`mindmap
root((MindMap))
::icon(mdi:fire)
square[I am a square]
::icon(mdi:fire)
rounded(I am a rounded square)
::icon(mdi:fire)
circle((I am a circle))
::icon(mdi:fire)
bang))I am a bang((
::icon(mdi:fire)
cloud)I am a cloud(
::icon(mdi:fire)
hex{{I am a hexagon}}
::icon(mdi:fire)
I am the default shape
::icon(mdi:fire)
`,
{},
undefined,
shouldHaveRoot
);
});
});
Loading