From 244801af65b9e628927c1f1b2518ae62ca2e354f Mon Sep 17 00:00:00 2001
From: Leo Lazou <leolazou@gmail.com>
Date: Thu, 30 May 2024 17:42:22 +0000
Subject: [PATCH] idea: Tags appear as hollow circles on the graph (#1129)
---
quartz/components/scripts/graph.inline.ts | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/quartz/components/scripts/graph.inline.ts b/quartz/components/scripts/graph.inline.ts
index e8dec4c..15a9a06 100644
--- a/quartz/components/scripts/graph.inline.ts
+++ b/quartz/components/scripts/graph.inline.ts
@@ -282,6 +282,13 @@
// @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")
--
Gitblit v1.10.0