design update

This commit is contained in:
Garry Ing
2021-03-28 12:30:27 -04:00
parent 630e923ad4
commit 5230f205da
10 changed files with 63 additions and 23 deletions

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
})