idea: Tags appear as hollow circles on the graph (#1129)

* Tags appear as hollow circles on the graph

Added a few lines to make tags appear as hollow circles on the graph, as opposed to pages which are plain circles, for better visual separation.

* Applied Prettier code style
This commit is contained in:
Leo Lazou 2024-05-30 19:42:22 +02:00 committed by GitHub
parent 73a5ec87f1
commit 244801af65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -282,6 +282,13 @@ async function renderGraph(container: string, fullSlug: FullSlug) {
// @ts-ignore
.call(drag(simulation))
// make tags hollow circles
node
.filter((d) => d.id.startsWith("tags/"))
.attr("stroke", color)
.attr("stroke-width", 2)
.attr("fill", "var(--light)")
// draw labels
const labels = graphNode
.append("text")