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

@@ -10,7 +10,7 @@ const rect = (parent, node) => {
// Add outer g element
const shapeSvg = parent
.insert('g')
.attr('class', 'cluster')
.attr('class', 'cluster' + (node.class ? ' ' + node.class : ''))
.attr('id', node.id);
// add the rect