antvis/G2

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

renzhiVivio posted onGitHub

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

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

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


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

初步判断有两种:

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

Fund this Issue

$0.00
Funded

Pull requests