vue-g6-editor icon indicating copy to clipboard operation
vue-g6-editor copied to clipboard

老哥,咨询下flow下面的自动布局

Open riversimith72 opened this issue 4 years ago • 2 comments

flow里面的graph的layout无法生效呢,如果节点没有设定坐标,就全部重合在一起了

riversimith72 avatar Jun 11 '20 02:06 riversimith72

不好意思,最近比较忙,所以没回复。

关于 flow 里面的 graph 的 layout 无法生效这个问题,我还使用到,不太清楚,有点我尝试一下。

blueju avatar Jun 16 '20 03:06 blueju

g6-editor内置的g62.0版本吧 layout(nodes) { nodes.forEach((node) => { node.x = node.x || Math.random() * 800; node.y = node.y || Math.random() * 800; }); }, 可以生效的

lanlan112 avatar Jun 19 '20 04:06 lanlan112