From ffdf2b8012b1bce7b539b318d734a5be8549103b Mon Sep 17 00:00:00 2001 From: wangzipai Date: Wed, 30 Oct 2024 16:43:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=B3=E7=B3=BB=E5=9B=BE?= =?UTF-8?q?=E8=B0=B1=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quartz.layout.ts | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/quartz.layout.ts b/quartz.layout.ts index 88e7f6802..9c64801b1 100644 --- a/quartz.layout.ts +++ b/quartz.layout.ts @@ -71,7 +71,34 @@ export const defaultContentPageLayout: PageLayout = { Component.DesktopOnly(Component.TableOfContents()), ], right: [ - Component.Graph(), + Component.Graph({ + localGraph: { + drag: true, // whether to allow panning the view around + zoom: true, // whether to allow zooming in and out + depth: 2, // how many hops of notes to display + scale: 1.1, // default view scale + repelForce: 0.5, // how much nodes should repel each other + centerForce: 0.3, // how much force to use when trying to center the nodes + linkDistance: 30, // how long should the links be by default? + fontSize: 0.6, // what size should the node labels be? + opacityScale: 1, // how quickly do we fade out the labels when zooming out? + removeTags: [], // what tags to remove from the graph + showTags: true, // whether to show tags in the graph + }, + globalGraph: { + drag: true, + zoom: true, + depth: 2, + scale: 0.9, + repelForce: 0.5, + centerForce: 0.3, + linkDistance: 30, + fontSize: 0.6, + opacityScale: 1, + removeTags: [], // what tags to remove from the graph + showTags: true, // whether to show tags in the graph + }, + }), Component.DesktopOnly(Component.TableOfContents()), Component.Backlinks(), ],