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

通过ws获取数据使用graph.fromjson实时动态渲染画布会一直闪烁 #4485

Closed
wangwasai opened this issue Oct 30, 2024 · 1 comment

Comments

@wangwasai
Copy link

问题描述

通过websocket获取到数据后筛选提取自己需要的数据进行添加画布数据边和节点,然后添加到一个json里 使用graph.fromjson来渲染,每当从ws获取当前数据的时候 画布视图都会闪烁一下 代码如下 这个Draw方法在ws里一直调用获取数据
第一张是节点的 第二张是边的 根据status来修改边的样式
image
image

重现链接

重现步骤

通过ws获取数据 边和节点里有一个字段来判断我的节点和边的状态 ,状态更改 就更改相应的样式

预期行为

画布使用上述方法 能够平滑的展示,不要闪烁的更新

平台

  • 操作系统: [Windows]
  • 网页浏览器: [Google Chrome]
  • X6 版本: [1.31.0]

屏幕截图或视频(可选)

default.mp4

录制的视频看不出来闪烁 但其实整体的节点画布都在闪烁 是formJSON的原因吗?

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Oct 30, 2024

👋 @wangwasai

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.

@wangwasai wangwasai closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant