Updated changes for b.8

This commit is contained in:
Knut Sveidqvist
2024-03-01 18:03:00 +01:00
parent f5bf2563cf
commit c2b640aa86
4 changed files with 40 additions and 9 deletions

View File

@@ -64,14 +64,43 @@
</head>
<body>
<pre id="diagram" class="mermaid">
sequenceDiagram
actor Alice as Alice
participant John as John
%%{ init: {}}%%
Alice ->>+ John: Hello John, how are you?
Alice ->>+ John: John, can you hear me?
John -->>- Alice: Hi Alice, I can hear you!
John -->>- Alice: I feel great!
flowchart TB
subgraph Simple
subgraph Simple2
A
end
end
subgraph Leak
B
end
B --> C
</pre>
<pre id="diagram" class="mermaid2">
%%{ init: {}}%%
sequenceDiagram
participant H as H
participant Alice as Alice
participant Bob as Bob
Alice ->> Bob: Hello Bob, how are you ?
Bob ->> Alice: Fine, thank you. And you?
create participant Carl as Carl
Alice ->> Carl: Hi Carl!
create actor D as Donald
Carl ->> D: Hi!
D ->> H: sss
destroy Carl
Alice -x Carl: We are too many
destroy Bob
Bob ->> Alice: I agree
</pre>
<pre id="diagram" class="mermaid2">

View File

@@ -1,6 +1,6 @@
{
"name": "@mermaid-chart/mermaid",
"version": "10.8.0-b.7",
"version": "10.8.0-b.8",
"description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
"type": "module",
"module": "./dist/mermaid.core.mjs",

View File

@@ -15,6 +15,8 @@ const rect = (parent, node) => {
const shapeSvg = parent
.insert('g')
.attr('class', 'cluster' + (node.class ? ' ' + node.class : ''))
.attr('data-et', 'cluster')
.attr('data-id', node.id)
.attr('id', node.id);
// add the rect

View File

@@ -300,7 +300,7 @@ const drawActorTypeParticipant = function (elem, actor, conf, isFooter) {
.attr('data-et', 'life-line')
.attr('data-id', actor.name)
.attr('x1', center)
.attr('y1', actor.height)
.attr('y1', actor.starty || 0 + actor.height)
.attr('x2', center)
.attr('y2', 2000)
.attr('class', 'actor-line')