This commit is contained in:
garrying
2021-05-30 19:18:40 +00:00
parent 75f01bd35b
commit eddcefae95
46 changed files with 204 additions and 198 deletions

View File

@ -53,7 +53,7 @@ const showTooltip = (event) => {
const elemProps = elem.getClientRects()[elem.getClientRects().length - 1]
const top = window.pageYOffset || document.documentElement.scrollTop
if (event.target.host === window.location.host) {
if (event.target.host === window.location.host && event.target.getAttribute('href').charAt(0) !== '#') {
window.fetch(event.target.href)
.then(response => response.text())
.then(data => {
@ -331,6 +331,7 @@ if (typeof window.graphData !== 'undefined') {
.merge(text)
node.attr('active', (d) => isCurrentPath(d.path) ? true : null)
node.attr('long-form', (d) => d.type === 'long-form' ? true : null)
text.attr('active', (d) => isCurrentPath(d.path) ? true : null)
simulation.nodes(nodesData)