From 5a1fbc937470b4f43b318dd0fa9af01b4a47b188 Mon Sep 17 00:00:00 2001
From: DhammaCharts <100090806+DhammaCharts@users.noreply.github.com>
Date: Wed, 01 Jun 2022 12:49:27 +0000
Subject: [PATCH] Improve graph display, options and ability to have a global graph on the home page, local graphs on subpage.

---
 data/graphConfig.yaml |   33 +++++++++++++++++++++++++++++++--
 1 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/data/graphConfig.yaml b/data/graphConfig.yaml
index 3f8d3fb..7f08130 100644
--- a/data/graphConfig.yaml
+++ b/data/graphConfig.yaml
@@ -1,6 +1,35 @@
+# if true, a Global Graph will be shown on home page with full width, no backlink.
+# A different set of Local Graphs will be shown on sub pages.
+# if false, Local Graph will be default on every page as usual
+enableGlobalGraph: true
+
+### Local Graph ###
+
 enableLegend: false
 enableDrag: true
 enableZoom: true
-depth: -1 # set to -1 to show full graph
+depth: 1 # set to -1 to show full graph
+scale: 1
+repelForce: 2
+centerForce: 1
+linkDistance: 1
+fontSize: 0.6
+opacityScale: 3
+
+### Global Graph ###
+
+enableLegendGG: false
+enableDragGG: true
+enableZoomGG: true
+depthGG: -1 # set to -1 to show full graph
+scaleGG: 1.2
+repelForceGG: 1
+centerForceGG: 1
+linkDistanceGG: 1
+fontSizeGG: 0.5
+opacityScaleGG: 3
+
+### Graphs ###
+
 paths:
-  - /moc: "#4388cc"
\ No newline at end of file
+  - /moc: "#4388cc"

--
Gitblit v1.10.0