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

🤔 [QUESTION] 水波图调用changeData时,水波图动画有概率会停止 #3820

Open
xiaopujun opened this issue Oct 14, 2024 · 1 comment
Labels
Question Further information is requested

Comments

@xiaopujun
Copy link

问题现象:

image

渲染回波图后调用changeData方法更新水波图数据,会导致水波图的波浪动画停止。官方示例可复现.

经过多次测试发现,当changeData执行的比较频繁时容易出现该问题,但不是每次都能复现

import { Liquid } from '@antv/g2plot';

const liquidPlot = new Liquid('container', {
  percent: 0.25,
  outline: {
    border: 4,
    distance: 8,
  },
  wave: {
    length: 128,
  },
  animation: {
      appear: {
          animation: 'wave-in',
          duration: 3000
      },
  }
});
liquidPlot.render();
setInterval(()=>{
    liquidPlot.changeData(Math.random())
},4000)

版本:2.4.25
平台:windows chrome

示例连接:https://g2plot.antv.antgroup.com/examples/progress-plots/liquid/#basic

复制上方代码粘贴即可复现

@xiaopujun xiaopujun added the Question Further information is requested label Oct 14, 2024
@xiaopujun
Copy link
Author

渲染后短时间内尽快调用changeData很容易复现该现象

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant