This commit is contained in:
garrying
2021-03-28 16:30:54 +00:00
parent 27085d2ee9
commit 9d510e511a
27 changed files with 318 additions and 254 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -36,6 +36,7 @@ const transitionDurationMs = 100
const tooltipWrapper = document.getElementById('tooltip-wrapper')
const tooltipContent = document.getElementById('tooltip-content')
const tooltipSource = document.getElementById('tooltip-source')
const hideTooltip = () => {
opacityTimeout = setTimeout(() => {
@ -64,6 +65,9 @@ const showTooltip = (event) => {
tooltipContent.innerHTML = tooltipContentHtml
const pathIndex = event.target.href.split('/')
tooltipSource.innerHTML = `/${pathIndex[pathIndex.length - 1]}`
tooltipWrapper.style.display = 'block'
setTimeout(() => {
tooltipWrapper.style.opacity = 1
@ -173,7 +177,7 @@ if (typeof window.graphData !== 'undefined') {
link.attr('stroke-width', (linkD) => {
if (linkD.source.id === destinationID || linkD.target.id === destinationID) {
return STROKE * 2
return STROKE * 1
}
return STROKE
})