From ef63a0661bad6a9abcbb49c78191b6d38d49395a Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Sat, 27 Feb 2021 10:51:36 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"#1317=20:=20Add=20state=20id=20to=20s?= =?UTF-8?q?tate=20diagram.=20=20Move=20description=20below=20separa?= =?UTF-8?q?=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/diagrams/state/shapes.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/diagrams/state/shapes.js b/src/diagrams/state/shapes.js index 4b239693a..79452aca0 100644 --- a/src/diagrams/state/shapes.js +++ b/src/diagrams/state/shapes.js @@ -79,7 +79,7 @@ export const drawDescrState = (g, stateDef) => { .attr('y', getConfig().state.textHeight + 1.3 * getConfig().state.padding) .attr('font-size', getConfig().state.fontSize) .attr('class', 'state-title') - .text(stateDef.id); + .text(stateDef.descriptions[0]); const titleBox = title.node().getBBox(); const titleHeight = titleBox.height; @@ -94,8 +94,7 @@ export const drawDescrState = (g, stateDef) => { getConfig().state.dividerMargin + getConfig().state.textHeight ) - .attr('class', 'state-description') - .text(stateDef.descriptions[0]); + .attr('class', 'state-description'); let isFirst = true; let isSecond = true;