#487 Set text color for flowchart nodes according to style definitions

This commit is contained in:
Marc Faber
2020-01-24 01:24:47 +01:00
parent 28153656d7
commit d2d4a24229
4 changed files with 46 additions and 2 deletions

View File

@@ -87,6 +87,7 @@ export const addVertices = function(vert, g, svgId) {
vertexNode.parentNode.removeChild(vertexNode);
} else {
const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');
svgLabel.setAttribute('style', labelStyle.replace('color:', 'fill:'));
const rows = vertexText.split(/<br\s*\/?>/gi);