Handling of svg labels for state diagrams

This commit is contained in:
Knut Sveidqvist 2021-09-29 18:29:39 +02:00
parent d45765dab5
commit c5d091d445
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ const rectWithTitle = (parent, node) => {
log.info('Label text abc79', title, text2, typeof text2 === 'object');
const text = label.node().appendChild(createLabel(title, node.labelStyle, true, true));
let bbox;
let bbox = { width: 0, height: 0 };
if (evaluate(getConfig().flowchart.htmlLabels)) {
const div = text.children[0];
const dv = select(text);