mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-14 12:59:46 +02:00
Make diamond shape a little bit bigger
This commit is contained in:
14
dist/index.html
vendored
14
dist/index.html
vendored
@@ -8,14 +8,12 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="mermaid">
|
<div class="mermaid">
|
||||||
graph TD
|
graph TD
|
||||||
A-->B
|
A[Christmas] -->|Get money| B(Go shopping)
|
||||||
A-->C
|
B --> C{Let me thinksssss<br/>ssssssssssssssssssssss<br/>sssssssssssssssssssssssssss}
|
||||||
A-->Z
|
C -->|One| D[Laptop]
|
||||||
A-->Y
|
C -->|Two| E[iPhone]
|
||||||
B-->Y
|
C -->|Three| F[Car]
|
||||||
Z-->Y
|
|
||||||
Y-->A
|
|
||||||
</div>
|
</div>
|
||||||
<div class="mermaid">
|
<div class="mermaid">
|
||||||
graph LR
|
graph LR
|
||||||
|
@@ -293,7 +293,7 @@ export const draw = function (text, id) {
|
|||||||
render.shapes().question = function (parent, bbox, node) {
|
render.shapes().question = function (parent, bbox, node) {
|
||||||
const w = bbox.width
|
const w = bbox.width
|
||||||
const h = bbox.height
|
const h = bbox.height
|
||||||
const s = (w + h) * 0.8
|
const s = (w + h) * 0.9
|
||||||
const points = [
|
const points = [
|
||||||
{ x: s / 2, y: 0 },
|
{ x: s / 2, y: 0 },
|
||||||
{ x: s, y: -s / 2 },
|
{ x: s, y: -s / 2 },
|
||||||
|
Reference in New Issue
Block a user