mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
Revert "#1317 : Add state id to state diagram. Move description below separa…"
This commit is contained in:
parent
1293850a09
commit
ef63a0661b
@ -79,7 +79,7 @@ export const drawDescrState = (g, stateDef) => {
|
|||||||
.attr('y', getConfig().state.textHeight + 1.3 * getConfig().state.padding)
|
.attr('y', getConfig().state.textHeight + 1.3 * getConfig().state.padding)
|
||||||
.attr('font-size', getConfig().state.fontSize)
|
.attr('font-size', getConfig().state.fontSize)
|
||||||
.attr('class', 'state-title')
|
.attr('class', 'state-title')
|
||||||
.text(stateDef.id);
|
.text(stateDef.descriptions[0]);
|
||||||
|
|
||||||
const titleBox = title.node().getBBox();
|
const titleBox = title.node().getBBox();
|
||||||
const titleHeight = titleBox.height;
|
const titleHeight = titleBox.height;
|
||||||
@ -94,8 +94,7 @@ export const drawDescrState = (g, stateDef) => {
|
|||||||
getConfig().state.dividerMargin +
|
getConfig().state.dividerMargin +
|
||||||
getConfig().state.textHeight
|
getConfig().state.textHeight
|
||||||
)
|
)
|
||||||
.attr('class', 'state-description')
|
.attr('class', 'state-description');
|
||||||
.text(stateDef.descriptions[0]);
|
|
||||||
|
|
||||||
let isFirst = true;
|
let isFirst = true;
|
||||||
let isSecond = true;
|
let isSecond = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user