mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 15:30:03 +02:00
Render nodes as real links
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user