From a5627f97ff7b19b60463e3a0567041e8c3f39df9 Mon Sep 17 00:00:00 2001 From: Tyler Long Date: Wed, 21 Mar 2018 22:06:44 +0800 Subject: [PATCH] Make diamond shape a little bit bigger --- dist/index.html | 14 ++++++-------- src/diagrams/flowchart/flowRenderer.js | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/dist/index.html b/dist/index.html index 2fdbbe3dd..389479622 100644 --- a/dist/index.html +++ b/dist/index.html @@ -8,14 +8,12 @@
- graph TD - A-->B - A-->C - A-->Z - A-->Y - B-->Y - Z-->Y - Y-->A + graph TD + A[Christmas] -->|Get money| B(Go shopping) + B --> C{Let me thinksssss
ssssssssssssssssssssss
sssssssssssssssssssssssssss} + C -->|One| D[Laptop] + C -->|Two| E[iPhone] + C -->|Three| F[Car]
graph LR diff --git a/src/diagrams/flowchart/flowRenderer.js b/src/diagrams/flowchart/flowRenderer.js index 0c7746efb..accf9eab0 100644 --- a/src/diagrams/flowchart/flowRenderer.js +++ b/src/diagrams/flowchart/flowRenderer.js @@ -293,7 +293,7 @@ export const draw = function (text, id) { render.shapes().question = function (parent, bbox, node) { const w = bbox.width const h = bbox.height - const s = (w + h) * 0.8 + const s = (w + h) * 0.9 const points = [ { x: s / 2, y: 0 }, { x: s, y: -s / 2 },