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

图形渲染时的不正常闪烁现象 #3856

Closed
1 task
renzhiVivio opened this issue Apr 8, 2022 · 1 comment
Closed
1 task

图形渲染时的不正常闪烁现象 #3856

renzhiVivio opened this issue Apr 8, 2022 · 1 comment

Comments

@renzhiVivio
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

实际上上面的链接没有把问题展现出来,是在一个h5 dooring编辑器里面,我用了G2和antd charts,发现就算我把animate设置为false,transition设置为零,它作为一个组件会有一个闪烁的动作,如同animate的durantion有个10毫秒左右的渲染延迟,所以视觉上会看到闪烁

Environment Info
g2 4.1.49
System win10
Browser chrome
@hustcc
Copy link
Member

hustcc commented Jun 22, 2022

可以给一个视频看看大概的表现吗?

初步判断有两种:

  1. React 环境中,各种 props 导致的重新渲染。
  2. 图表容器的 dom 大小在一直变化,容器大小变化,会带来图表重新渲染。

@hustcc hustcc closed this as completed Jun 22, 2022
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

2 participants