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

官方示例中,添加节点过多时,给用户一种闪烁的感觉,是否有规避手段 #3813

Open
PalmerShuai opened this issue Jul 27, 2023 · 4 comments
Labels
resolution: needs more info 需要更多信息 Issues that require more information from their reporters

Comments

@PalmerShuai
Copy link

问题描述

官方示例(https://x6.antv.antgroup.com/zh/examples/showcase/practices/#orgchart),在点击添加节点后,由于为了自动布局都会执行layout()方法,当节点过多的时候会给用户一种闪烁感觉,请问有没有处理的办法来解决这种闪烁感

重现链接

https://x6.antv.antgroup.com/zh/examples/showcase/practices/#orgchart

重现步骤

https://x6.antv.antgroup.com/zh/examples/showcase/practices/#orgchart

预期行为

添加节点,不会有闪的视觉感

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [2.11.1 ...]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@PalmerShuai
Copy link
Author

在寻找解决办法的时候,发现过canvas中可以使用双缓存的机制来规避类似问题,x6针对这种问题是否有规避方法

@NewByVector
Copy link
Contributor

layout 之后只会修改节点的位置以及连线的 vertices,我本地并没有出现闪烁情况,请问你添加了多少节点。

@NewByVector NewByVector added the resolution: needs more info 需要更多信息 Issues that require more information from their reporters label Aug 7, 2023
@PalmerShuai
Copy link
Author

1692252518106
以上是我操作的视频

https://github.com/antvis/X6/assets/48782144/5c0aa7f8-489b-464c-9b1f-5b3b91c0d88d
截图就是闪烁的情况,造成闪烁的原因是因为每次添加节点,都会执行自动布局的操作造成的

@PalmerShuai
Copy link
Author

IMG_2631.mp4

这个视频可以更明显一点

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: needs more info 需要更多信息 Issues that require more information from their reporters
Projects
None yet
Development

No branches or pull requests

2 participants