-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v5]comboCombined(内外侧均使用antv-dagre)布局不理想 #5980
Comments
combo-combine + dagre 结合使用还没有经过充分实践,可能并不能正常工作 |
你好,那想请教下 我这单独使用布局,用法对么,文档中找了半天也没找到个完整的示例,数据需要先包到graphLib中才能用,而且还有一个特殊处理(从源码中扒出来的),不知道对不对,如下代码:
|
我具体化一下吧,给您个具体的例子,这个例子(代码如下)里如下图这么改一下连接数据,就直接报错了,因此我怀疑就是上述扒的代码扒的有问题; 而不单独布局,直接使用g6进行布局且渲染,就没有错误(不报错,但布局有问题,与本报错无关 已单独提issue #5988)
|
node-5 是一个 id,它应该位于 |
您是说 AntVDagreLayout.execute(data), 这里的data应该是 {nodes:[], combos:[], edges:[]} 这样的数据结构么? 哪里能找到一个示例么,这样就不用一遍遍麻烦您了; |
是的,你只需要把 combo 数据放到 data.combos 下即可,与 nodes\edges 是一样的,可以参考下面示例中的数据: https://g6-next.antv.antgroup.com/examples/element/combo/#circle |
Describe the bug / 问题描述
V5
4.代码:
Reproduction link / 重现链接
https://g6-next.antv.antgroup.com/zh/examples/layout/dagre#antv-dagre-combo
Steps to Reproduce the Bug or Issue / 重现步骤
G6 Version / G6 版本
🆕 5.x
Operating System / 操作系统
Windows
Browser / 浏览器
Chrome
Additional context / 补充说明
No response
The text was updated successfully, but these errors were encountered: