Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 of 10 tasks
yvonneyx opened this issue Feb 28, 2025 · 2 comments
Open
2 of 10 tasks
Labels
bug 🐛 Something isn't working

Comments

@yvonneyx
Copy link
Contributor

Describe the bug / 问题描述

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

开启前:

Image

开启后

Image

Reproduction link / 复现链接

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 / 其他
@yvonneyx yvonneyx added the waiting for maintainer Triage or intervention needed from a maintainer. label Feb 28, 2025
@github-actions github-actions bot changed the title [Bug]: force 布局启用 enableWorker 后会报错 [Bug]: Force layout will report an error when enableWorker is enabled Feb 28, 2025
Copy link

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

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

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

@zhongyunWan zhongyunWan added bug 🐛 Something isn't working and removed waiting for maintainer Triage or intervention needed from a maintainer. labels Mar 3, 2025
@jingyinzhou
Copy link

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

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

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants