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

开启async后,会出现飞线 #3852

Closed
lunar9621 opened this issue Aug 15, 2023 · 4 comments
Closed

开启async后,会出现飞线 #3852

lunar9621 opened this issue Aug 15, 2023 · 4 comments
Labels
resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems

Comments

@lunar9621
Copy link

问题描述

使用fromJSON渲染所有节点和边,开启异步渲染(async为true)后,会出现飞线的情况,去掉后就正常渲染

重现链接

重现步骤

const graph=new Graph({ async:true,...otheroptions });
graph.fromJSON(data)

预期行为

希望没有飞线,正常渲染

平台

  • 操作系统: [macOS,]
  • 网页浏览器: [Google Chrome]
  • X6 版本: [1.34.13]

屏幕截图或视频(可选)

截屏2023-08-15 11 13 39

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Aug 15, 2023

👋 @lunar9621

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@NewByVector
Copy link
Contributor

这条线本来是不该存在的?能否提供一个可以复现的 demo 看下?

@NewByVector NewByVector added the resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems label Sep 7, 2023
@lunar9621
Copy link
Author

这条线本来是不该存在的?能否提供一个可以复现的 demo 看下?

不是 是没有链接到对应的node上,猜测可能是node没渲染完就渲染edge 导致,改成先addNode,监听render:done后再渲染edge可解决

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 19, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Sep 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems
Projects
None yet
Development

No branches or pull requests

2 participants