antvis/G6


The issue has been closed
[v5] layout 方法报不存在 #5945
liseri posted onGitHub
Describe the bug / 问题描述
- 需求或目的:想不渲染只执行布局,从而通过getData()方法获取布局后的x,y坐标
- 述求:实现只布局不渲染,通过getData()方法获取布局后的x,y坐标
- 图表例子链接: https://g6-next.antv.antgroup.com/zh/examples/layout/dagre/#antv-dagre-combo
- 文档链接: https://g6-next.antv.antgroup.com/api/graph/method#graphlayout
- 版本:v5.0
- 问题描述:graph.layout()方法报方法找不到
- 问题截图:
Reproduction link / 重现链接
https://g6-next.antv.antgroup.com/zh/examples/layout/dagre/#antv-dagre-combo
Steps to Reproduce the Bug or Issue / 重现步骤
- https://g6-next.antv.antgroup.com/zh/examples/layout/dagre/#antv-dagre-combo
- 修改graph.render()为 graph.layout(), 其它的都没有改
G6 Version / G6 版本
🆕 5.x
Operating System / 操作系统
Windows
Browser / 浏览器
Chrome
Additional context / 补充说明
No response