mirror of
https://github.com/alrayyes/wiki.git
synced 2025-04-30 06:14:13 +00:00
improve path resolution stability
This commit is contained in:
parent
c874e7e937
commit
dd47be1bc6
5 changed files with 8 additions and 7 deletions
quartz/components/scripts
|
@ -177,7 +177,7 @@ async function renderGraph(container: string, fullSlug: FullSlug) {
|
|||
window.spaNavigate(new URL(targ, window.location.toString()))
|
||||
})
|
||||
.on("mouseover", function (_, d) {
|
||||
const neighbours: SimpleSlug[] = data[slug].links ?? []
|
||||
const neighbours: SimpleSlug[] = data[fullSlug].links ?? []
|
||||
const neighbourNodes = d3
|
||||
.selectAll<HTMLElement, NodeData>(".node")
|
||||
.filter((d) => neighbours.includes(d.id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue