graphlib
graphlib copied to clipboard
如何在jointjs中实现自动生成无向布局呢?
So how do we automatically generate an undirected layout in JoinJS?
let graph = joint.layout.DirectedGraph.layout(this.graph, {
dagre: dagre,
graphlib:graphlib,
ranker:"tight-tree",
directed:false,
setVertices:false,
// setLinkVertices: true,
rankDir: "TB",//LR
align:"DL",
rankSep: 100,
marginX: 10,
marginY: 10,
nodeSep: 50,
edgeSep: 50,
// clusterPadding:10,
resizeClusters:false,
});