Make diamond shape a little bit bigger

This commit is contained in:
Tyler Long
2018-03-21 22:06:44 +08:00
parent 8b1698b17d
commit a5627f97ff
2 changed files with 7 additions and 9 deletions

14
dist/index.html vendored
View File

@@ -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

View File

@@ -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 },