deploy: 5230f205da
This commit is contained in:
@ -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
|
||||
})
|
||||
|
Reference in New Issue
Block a user