mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-15 02:04:08 +01:00
Correccted bug with innen height in composite diags
This commit is contained in:
@@ -89,6 +89,19 @@ stateDiagram-v2
|
|||||||
</pre
|
</pre
|
||||||
>
|
>
|
||||||
|
|
||||||
|
<pre id="diagram" class="mermaid2">
|
||||||
|
stateDiagram
|
||||||
|
[*] --> Still
|
||||||
|
Still --> [*]
|
||||||
|
Still --> Moving
|
||||||
|
Moving --> Still
|
||||||
|
Moving --> Crash
|
||||||
|
Crash --> [*]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</pre>
|
||||||
|
|
||||||
<pre id="diagram" class="mermaid">
|
<pre id="diagram" class="mermaid">
|
||||||
stateDiagram
|
stateDiagram
|
||||||
direction LR
|
direction LR
|
||||||
@@ -100,11 +113,7 @@ stateDiagram-v2
|
|||||||
a --> b
|
a --> b
|
||||||
}
|
}
|
||||||
B --> D
|
B --> D
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
</pre
|
|
||||||
>
|
|
||||||
|
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import mermaid from './mermaid.esm.mjs';
|
import mermaid from './mermaid.esm.mjs';
|
||||||
@@ -129,8 +138,9 @@ stateDiagram-v2
|
|||||||
noteFontFamily: 'arial',
|
noteFontFamily: 'arial',
|
||||||
messageFontFamily: 'arial',
|
messageFontFamily: 'arial',
|
||||||
},
|
},
|
||||||
fontSize: 12,
|
fontSize: 10,
|
||||||
logLevel: 0,
|
logLevel: 0,
|
||||||
|
htmlLabels: true,
|
||||||
});
|
});
|
||||||
function callback() {
|
function callback() {
|
||||||
alert('It worked');
|
alert('It worked');
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ const roundedWithTitle = (parent, node) => {
|
|||||||
const y = node.y - node.height / 2 - halfPadding;
|
const y = node.y - node.height / 2 - halfPadding;
|
||||||
const innerY = node.y - node.height / 2 - halfPadding + bbox.height + 2;
|
const innerY = node.y - node.height / 2 - halfPadding + bbox.height + 2;
|
||||||
const height = node.height + padding;
|
const height = node.height + padding;
|
||||||
const innerHeight = node.height + padding - bbox.height - 2;
|
const innerHeight = node.height + padding - bbox.height - 6;
|
||||||
const look = siteConfig.look;
|
const look = siteConfig.look;
|
||||||
|
|
||||||
// add the rect
|
// add the rect
|
||||||
|
|||||||
Reference in New Issue
Block a user