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:
parent
927f7b26ea
commit
20cd5d3f06
@ -182,18 +182,14 @@ function GraphG6(props: Props) {
|
|||||||
if (!graphRef.current) {
|
if (!graphRef.current) {
|
||||||
graphRef.current = new Graph({
|
graphRef.current = new Graph({
|
||||||
container: ref.current!,
|
container: ref.current!,
|
||||||
width: 1200,
|
height: 800,
|
||||||
height: 400,
|
|
||||||
fitView: true,
|
fitView: true,
|
||||||
modes: {
|
modes: {
|
||||||
default: ['drag-canvas', 'zoom-canvas', 'drag-node'],
|
default: ['drag-canvas', 'zoom-canvas', 'drag-node'],
|
||||||
},
|
},
|
||||||
layout: {
|
layout: {
|
||||||
type: 'dagre',
|
type: 'dagre',
|
||||||
rankdir: 'TB',
|
rankdir: 'BT',
|
||||||
align: 'DR',
|
|
||||||
nodesep: 100,
|
|
||||||
ranksep: 100,
|
|
||||||
},
|
},
|
||||||
// defaultNode: {
|
// defaultNode: {
|
||||||
// anchorPoints: [[0.5, 0], [0, 0.5], [1, 0.5], [0.5, 1]],
|
// anchorPoints: [[0.5, 0], [0, 0.5], [1, 0.5], [0.5, 1]],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user