antvis/G6

Do you want to work on this issue?

You can request for a bounty in order to promote it!

[Bug]: Force layout will report an error when enableWorker is enabled #6812

yvonneyx posted onGitHub

Describe the bug / 问题描述

在官网示例中尝试 WebWorker 加速 force 布局计算,效果不符合预期

开启前:

<img width="1673" alt="Image" src="https://github.com/user-attachments/assets/95fa9dbe-a60f-4d22-bc44-b7c501a0fd13" />

开启后

<img width="1681" alt="Image" src="https://github.com/user-attachments/assets/3db36d8f-9ff0-4dff-b7a0-28524ad714de" />

https://g6.antv.antgroup.com/examples/layout/force-directed/#force

Steps to Reproduce the Bug or Issue / 重现步骤

No response

Version / 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

目前没有找到与您描述的问题完全相同的已解决问题。您提到的问题已经在 Issue #6812 中被报告。为了进一步解决此问题,您可以在该问题下提供更多信息或关注该问题的更新。

如果您有其他问题或需要更多帮助,请随时告诉我。

<details> <summary>🪧 Tips</summary> For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me. </details>

posted by petercat-assistant[bot] about 2 months ago

我在使用中也遇到enableWorker报错问题,我是想做布局切换,当我要切换的布局中设置了enableWorker: true的时候,就会报错,报错信息我已经上传了 我的版本信息: "@antv/g6": "^5.0.39"

我切换布局的代码跟官网提供的示例几乎一样

Image

posted by jingyinzhou about 2 months ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests