1
0
mirror of https://github.com/ellmau/adf-obdd.git synced 2025-12-20 09:39:38 +01:00

Change G6 Graph layout slightly

This commit is contained in:
monsterkrampe 2023-04-18 11:42:40 +02:00
parent 927f7b26ea
commit 20cd5d3f06
No known key found for this signature in database
GPG Key ID: B8ADC1F5A5CE5057

View File

@ -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]],