From ab9da02c60c962128820e6874e6f07c98bc3dda7 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Tue, 04 Jul 2023 17:08:32 +0000
Subject: [PATCH] fix indexing causing main thread freeze, various polish
---
quartz/components/Graph.tsx | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/quartz/components/Graph.tsx b/quartz/components/Graph.tsx
index 0146188..e7f1df2 100644
--- a/quartz/components/Graph.tsx
+++ b/quartz/components/Graph.tsx
@@ -25,23 +25,23 @@
drag: true,
zoom: true,
depth: 1,
- scale: 1.2,
- repelForce: 2,
- centerForce: 1,
+ scale: 1.1,
+ repelForce: 0.5,
+ centerForce: 0.3,
linkDistance: 30,
fontSize: 0.6,
- opacityScale: 3
+ opacityScale: 1
},
globalGraph: {
drag: true,
zoom: true,
depth: -1,
- scale: 1.2,
- repelForce: 1,
- centerForce: 1,
+ scale: 0.9,
+ repelForce: 0.5,
+ centerForce: 0.3,
linkDistance: 30,
- fontSize: 0.5,
- opacityScale: 3
+ fontSize: 0.6,
+ opacityScale: 1
}
}
--
Gitblit v1.10.0