From 91f9ae2d71d5c28ba7d2182eed5a9f77da1fbe8d Mon Sep 17 00:00:00 2001
From: Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Date: Fri, 15 Sep 2023 16:39:16 +0000
Subject: [PATCH] feat: implement file explorer component (closes #201) (#452)
---
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