You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/10/11 08:38:18 UTC
[GitHub] [echarts] nanzhiji commented on issue #16265: [Feature] 希望添加一个事件去控制动画停留在某一刻(seek)
nanzhiji commented on issue #16265:
URL: https://github.com/apache/echarts/issues/16265#issuecomment-1274316511
简单来说,就是去深入到源码中的zrender层,去修改源码,把他写的方法改掉,他其实有提供播放暂停的,但是他暂停后再播放是重新播放,所以在这里你要去改写逻辑,进行计算每一刻的一个播放状态,把对应的播放的时间参数传进去,然后就可以得到正确的当前时刻播放的一个状态,类似这样去实现的。但是因为破坏了原有的播放逻辑,所以是有缺陷的。一些不太比必要的东西需要隐藏掉。后来这个功能是否在项目中使用了,我也不清楚,因为只是做了一个预研工作。然后后来我也离职了。
------------------ 原始邮件 ------------------
发件人: "apache/echarts" ***@***.***>;
发送时间: 2022年7月1日(星期五) 上午10:43
***@***.***>;
***@***.******@***.***>;
主题: Re: [apache/echarts] [Feature] 希望添加一个事件去控制动画停留在某一刻(seek) (Issue #16265)
我自己改相关源码了,差不多也能实现,还有一些bug还在处理中。
@nanzhiji 你好,能提供一下实现思路么~
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org