1295 Handling labels of clusters

This commit is contained in:
Knut Sveidqvist
2020-03-11 20:25:55 +01:00
parent 7bd5529bb7
commit da048cbc7b
4 changed files with 29 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ const createLabel = (vertexText, style) => {
const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');
tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');
tspan.setAttribute('dy', '1em');
tspan.setAttribute('x', '1');
tspan.setAttribute('x', '0');
tspan.textContent = rows[j];
svgLabel.appendChild(tspan);
}