#3358 Adding support for space blocks and different shapes

This commit is contained in:
Knut Sveidqvist
2023-10-20 12:13:49 +02:00
parent 74a9e86e74
commit 5619f8771b

View File

@@ -27,7 +27,6 @@
.mermaid { .mermaid {
border: 1px solid #ddd; border: 1px solid #ddd;
margin: 10px; margin: 10px;
background: pink;
} }
.mermaid2 { .mermaid2 {
display: none; display: none;
@@ -40,7 +39,7 @@
background-size: 20px 20px; background-size: 20px 20px;
background-position: 0 0, 10px 10px; background-position: 0 0, 10px 10px;
background-repeat: repeat; background-repeat: repeat;
border: 1px solid red; border: 2px solid rgb(131, 142, 205);
} }
.malware { .malware {
position: fixed; position: fixed;
@@ -63,26 +62,50 @@
</style> </style>
</head> </head>
<body> <body>
<pre id="diagram" class="mermaid"> <pre id="diagram" class="mermaid2">
block-beta block-beta
block block
id3("Wider then")
end
</pre>
<pre id="diagram" class="mermaid">
block-beta
columns 3
space:2
id1("Wider then")
space:9
space
id2{{"Wider then"}}
space
id3("Wider then")
space
space
</pre>
<pre id="diagram" class="mermaid2">
block-beta
columns 1 columns 1
block
id1 id1
id2 id2
block
columns 1
id3("Wider then") id3("Wider then")
id5(("id5"))
end
end end
id4 id4
</pre> </pre>
<pre id="diagram" class="mermaid2"> <pre id="diagram" class="mermaid2">
block-beta block-beta
columns 1
block block
columns 1 columns 1
block block
columns 3 columns 3
id1 id1
id2 id2
id2.1 id2.1(("XYZ"))
%%id2.2 %%id2.2
end end
id48 id48
@@ -124,7 +147,7 @@ block-beta
block-beta block-beta
id1["Hello"] id1["Hello"]
block block
columns 2 columns 3
id2["to"] id2["to"]
id3["the"] id3["the"]
id4["World"] id4["World"]