From 5232d09af520e12bc421cf19ae5d231a7e36cd4d Mon Sep 17 00:00:00 2001
From: ArtfulAzeria <146041757+ArtfulAzeria@users.noreply.github.com>
Date: Fri, 29 Sep 2023 18:17:48 +0000
Subject: [PATCH] feat: Better and more responsive tag behavior (#515)
---
quartz/components/Graph.tsx | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/quartz/components/Graph.tsx b/quartz/components/Graph.tsx
index 0c54bdb..1b8071b 100644
--- a/quartz/components/Graph.tsx
+++ b/quartz/components/Graph.tsx
@@ -13,6 +13,8 @@
linkDistance: number
fontSize: number
opacityScale: number
+ removeTags: string[]
+ showTags: boolean
}
interface GraphOptions {
@@ -31,6 +33,8 @@
linkDistance: 30,
fontSize: 0.6,
opacityScale: 1,
+ showTags: true,
+ removeTags: [],
},
globalGraph: {
drag: true,
@@ -42,13 +46,15 @@
linkDistance: 30,
fontSize: 0.6,
opacityScale: 1,
+ showTags: true,
+ removeTags: [],
},
}
export default ((opts?: GraphOptions) => {
function Graph() {
- const localGraph = { ...defaultOptions.localGraph, ...opts?.localGraph, }
- const globalGraph = { ...defaultOptions.globalGraph, ...opts?.globalGraph, }
+ const localGraph = { ...defaultOptions.localGraph, ...opts?.localGraph }
+ const globalGraph = { ...defaultOptions.globalGraph, ...opts?.globalGraph }
return (
<div class="graph">
<h3>Graph View</h3>
--
Gitblit v1.10.0