Fox fr keeping the label background in state diagrams

This commit is contained in:
Knut Sveidqvist
2021-06-03 21:27:53 +02:00
parent aa2596b457
commit c0b65e9304

View File

@@ -295,7 +295,7 @@ export const draw = function(text, id) {
svg.attr('viewBox', vBox); svg.attr('viewBox', vBox);
// Add label rects for non html labels // Add label rects for non html labels
if (!evaluate(conf.htmlLabels)) { // if (!evaluate(conf.htmlLabels) || true) {
const labels = document.querySelectorAll('[id="' + id + '"] .edgeLabel .label'); const labels = document.querySelectorAll('[id="' + id + '"] .edgeLabel .label');
for (let k = 0; k < labels.length; k++) { for (let k = 0; k < labels.length; k++) {
const label = labels[k]; const label = labels[k];
@@ -310,7 +310,7 @@ export const draw = function(text, id) {
rect.setAttribute('height', dim.height); rect.setAttribute('height', dim.height);
label.insertBefore(rect, label.firstChild); label.insertBefore(rect, label.firstChild);
} // }
} }
}; };