Closed MusicDataFeTeam closed 10 months ago
x6: 版本2.0.8 layout 版本:0.3.23
` const handleLayoutChange = () => { const { graph } = data; const gridLayout = new GridLayout({ type: 'grid', width: 600, height: 400, center: [300, 200], rows: 4, cols: 4 });
console.log({nodes: graph.getNodes(), edges: graph.getEdges()}) const newModel = gridLayout.layout({ nodes: graph.getNodes(), edges: graph.getEdges() }); // console.log(newModel); graph.fromJSON(newModel);` 报错
node 里面是不是数据结构变了?
x6: 版本2.0.8 layout 版本:0.3.23
` const handleLayoutChange = () => { const { graph } = data; const gridLayout = new GridLayout({ type: 'grid', width: 600, height: 400, center: [300, 200], rows: 4, cols: 4 });
node 里面是不是数据结构变了?