Render nodes as real links

This commit is contained in:
Philipp A
2018-11-28 17:09:34 +01:00
parent a4992963b3
commit aca80726d7
2 changed files with 12 additions and 9 deletions

View File

@@ -181,14 +181,7 @@ const setLink = function (id, linkStr) {
return
}
if (typeof vertices[id] !== 'undefined') {
funs.push(function (element) {
const elem = d3.select(element).select(`[id="${id}"]`)
if (elem !== null) {
elem.on('click', function () {
window.open(linkStr, 'newTab')
})
}
})
vertices[id].link = linkStr
}
}
export const getTooltip = function (id) {