antvis/G6

[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布局会计算成如下: Image

期望布局:edge不要重叠 Image

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 / 其他

可以先改成 force 布局绕过这个问题~

posted by yvonneyx 29 days ago

⚠️ This issue has been automatically closed due to inactivity.

  • If the issue is still relevant and important to you, feel free to:
    1. Reopen with additional information
    2. Create a new issue with updated context
    3. Reference any related issues or discussions

We close inactive issues to keep our backlog manageable and focused on active issues.

Your contribution makes our project better! 🌟


⚠️ 由于长期无活动,此 issue 已被自动关闭。

  • 如果这个问题对您来说仍然重要,您可以:
    1. 重新打开并提供补充信息
    2. 创建一个新的 issue 并更新相关背景
    3. 关联相关的 issue 或讨论

为了更好地维护项目,我们需要定期清理不活跃的问题。

感谢您为开源添砖加瓦!🌟

posted by github-actions[bot] 21 days ago

Fund this Issue

$0.00
Funded

Pull requests