antvis/G6

force2防止节点重叠不生效 #4313

huangxians posted onGitHub

问题描述

使用官网的在线示例http://g6.antv.antgroup.com/zh/examples/net/forceDirected#forceDirectedPreventOverlap 改变布局方式为force2,节点大小增加100,即可浮现 image 请问怎么解决,边长及节点引力都设置过了,还是会重叠,只有使用force布局才不会重叠,但是force的其他配置没有force2好用,希望大佬给解决一下

重现链接

http://g6.antv.antgroup.com/zh/examples/net/forceDirected#forceDirectedPreventOverlap

重现步骤

改变布局方式为force2 节点大小增加100

预期行为

节点不重叠

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。

posted by github-actions[bot] 10 months ago

Fund this Issue

$0.00
Funded

Pull requests