Skip to content

Commit 244801a

Browse files
authored
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
1 parent 73a5ec8 commit 244801a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

quartz/components/scripts/graph.inline.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,13 @@ async function renderGraph(container: string, fullSlug: FullSlug) {
282282
// @ts-ignore
283283
.call(drag(simulation))
284284

285+
// make tags hollow circles
286+
node
287+
.filter((d) => d.id.startsWith("tags/"))
288+
.attr("stroke", color)
289+
.attr("stroke-width", 2)
290+
.attr("fill", "var(--light)")
291+
285292
// draw labels
286293
const labels = graphNode
287294
.append("text")

0 commit comments

Comments
 (0)