You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/12/14 07:02:20 UTC

[echarts] branch graphic-animation updated: refact(animation): use new duration api

This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch graphic-animation
in repository https://gitbox.apache.org/repos/asf/echarts.git


The following commit(s) were added to refs/heads/graphic-animation by this push:
     new c59ebb7  refact(animation): use new duration api
c59ebb7 is described below

commit c59ebb72f64a8860af505a7d5344dfbf09fb4b66
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Dec 14 15:01:16 2021 +0800

    refact(animation): use new duration api
---
 src/animation/customGraphicKeyframeAnimation.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/animation/customGraphicKeyframeAnimation.ts b/src/animation/customGraphicKeyframeAnimation.ts
index 0de270a..9ac59e1 100644
--- a/src/animation/customGraphicKeyframeAnimation.ts
+++ b/src/animation/customGraphicKeyframeAnimation.ts
@@ -155,6 +155,7 @@ export function applyKeyframeAnimation<T extends Record<string, any>>(
 
         animator
             .delay(animationOpts.delay || 0)
-            .start(animationOpts.easing, duration);
+            .duration(duration)
+            .start(animationOpts.easing);
     });
 }
\ No newline at end of file

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org