This commit is contained in:
Knut Sveidqvist
2020-10-15 17:37:16 +02:00
parent 35deb4a512
commit 4812437519
4 changed files with 28 additions and 22 deletions

View File

@@ -86,7 +86,8 @@ const createLabel = (_vertexText, style, isTitle, isNode) => {
label: vertexText.replace(
/fa[lrsb]?:fa-[\w-]+/g,
s => `<i class='${s.replace(':', ' ')}'></i>`
)
),
labelStyle: style.replace('fill:', 'color:')
};
let vertexNode = addHtmlLabel(node);
// vertexNode.parentNode.removeChild(vertexNode);