From 20cd5d3f063486d5077ce2d9d4ccdd6f4b692068 Mon Sep 17 00:00:00 2001 From: monsterkrampe Date: Tue, 18 Apr 2023 11:42:40 +0200 Subject: [PATCH] Change G6 Graph layout slightly --- frontend/src/components/graph-g6.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/graph-g6.tsx b/frontend/src/components/graph-g6.tsx index 8717b15..6c4b9b8 100644 --- a/frontend/src/components/graph-g6.tsx +++ b/frontend/src/components/graph-g6.tsx @@ -182,18 +182,14 @@ function GraphG6(props: Props) { if (!graphRef.current) { graphRef.current = new Graph({ container: ref.current!, - width: 1200, - height: 400, + height: 800, fitView: true, modes: { default: ['drag-canvas', 'zoom-canvas', 'drag-node'], }, layout: { type: 'dagre', - rankdir: 'TB', - align: 'DR', - nodesep: 100, - ranksep: 100, + rankdir: 'BT', }, // defaultNode: { // anchorPoints: [[0.5, 0], [0, 0.5], [1, 0.5], [0.5, 1]],