From 16a15cf67ee9bd6e11b3c93afbaa2b0e6599bd12 Mon Sep 17 00:00:00 2001 From: Marcel Stimberg Date: Wed, 4 Dec 2024 14:56:21 +0100 Subject: [PATCH] manual layout tweaking (needs a better approach) --- graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph.js b/graph.js index 6ee7fc4..e51457a 100644 --- a/graph.js +++ b/graph.js @@ -39,7 +39,7 @@ function layoutNodes() { nodeDimensionsIncludeLabels: true, centerGraph: false, }); - unconnected.forEach((eles, i) => {eles.restore(); eles.position("x", 500); eles.position("y", 200 + i*50);}); + unconnected.forEach((eles, i) => {eles.restore(); eles.position("x", 250); eles.position("y", 200 + i*50);}); cy_layout.run(); }