Replies: 1 comment
-
转至Issue: #5269 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
新版本的聚类的折叠/扩展交互案例无法正常运行,只有这个链接上的代码可以正常运行
在新版案例中不能正常运行
https://g6.antv.vision/examples/case/graphDemos/#simplifyCluster
将旧版代码中的以下部分
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.g6-3.1.1/build/g6.js"></script>
替换为新版后代码不能正常运行:
<script src="https://gw.alipayobjects.com/os/lib/antv/g6/4.3.11/dist/g6.min.js"></script>
此外
if (!ge.get('sourceNode').get('visible') && sourceModel.cluster !== model.cluster) { ... } else if (ge.get('targetNode').get('visible') && targetModel.cluster !== model.cluster) { ... }
处,
else if
后应该改成(!ge.get('targetNode').get('visible') && targetModel.cluster !== model.cluster)
否则会出现点击聚类节点时,普通节点的边会被漏掉无法显示
Beta Was this translation helpful? Give feedback.
All reactions