From 55c8bcf0727c40b43f11011e5786ae5a2a45e3af Mon Sep 17 00:00:00 2001 From: imaitland Date: Wed, 7 Feb 2024 15:53:53 +0000 Subject: [PATCH] GH Actions Build --- dist/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/index.html b/dist/index.html index 8646125..8782d49 100644 --- a/dist/index.html +++ b/dist/index.html @@ -175,7 +175,7 @@ }) //.d3Force('charge', null) .onEngineStop(() => { - Graph.zoomToFit(200, 80); + //Graph.zoomToFit(200, 80); // if mobile zoom to about... // Center/zoom on node @@ -188,6 +188,7 @@ Graph.centerAt(lastClickedNode.x, lastClickedNode.y, 1000); Graph.zoom(8, 2000); } else { + console.log("using root node"); const rootNode = graph_data.nodes.find((node)=>{return node.id === "about"}) Graph.centerAt(rootNode.x, rootNode.y, 1000); Graph.zoom(8, 2000);