antvis/G6


The issue has been closed
[Bug]: gForce布局在节点数量较少的情况下会出现edge重叠的问题 #6921
liyuhan1996 posted onGitHub
Describe the bug / 问题描述
gForce布局算法配置如下:
layout: {
type: 'gForce',
preventOverlap: true,
gpuEnabled: true,
nodeStrength: 5000,
nodeSpacing: 500,
minMovement: 10,
maxIteration: 2000,
maxSpeed: 2000,
}
3个节点时,gForce布局会计算成如下:
期望布局:edge不要重叠
Reproduction link / 复现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
No response
Version / 版本
4.x
OS / 操作系统
- macOS
- Windows
- Linux
- Others / 其他
Browser / 浏览器
- Chrome
- Edge
- Firefox
- Safari (Limited support / 有限支持)
- IE (Nonsupport / 不支持)
- Others / 其他