antvis/G6

关闭动画后,再次开启动画不生效。 #3143

Fiv5 posted onGitHub

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

Edit on CodeSandbox

Steps to reproduce

例子选用的是节点动画这个 demo,虽然代码和我在工程中实现上有差异,但表现出来的行为是一致的。

  1. 先正常添加辅助 shape:back1、back2、back3,并对其分别启动动画;
  2. 分别对辅助 shape 关闭动画并隐藏(这里直接使用了定时器,在实际工程中我是通过状态切换后在 setState 生命周期里控制的); image
  3. 分别对辅助 shape 显示并打开启动动画(使用定时器),此时动画不生效。 image
Environment Info
g6 4.3.5
System -
Browser -

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


Fund this Issue

$0.00
Funded

Pull requests