#1212 Class definition is not applied to flowchart nodes with links

This commit is contained in:
Marc Faber
2020-01-19 18:10:14 +01:00
parent 921d274579
commit c38f053294
3 changed files with 17 additions and 11 deletions

View File

@@ -461,6 +461,7 @@ export const draw = function(text, id) {
const node = d3.select('#' + id + ' [id="' + key + '"]');
if (node) {
const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');
link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));
link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);
link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');