请提供一个重复动画的 api
- Dominant language
- JavaScript
- Stars
- 8k
- Forks
- 637
- PR merge metrics
- No merged PRs in 30d
Description
- [ ] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.
### What problem does this feature solve?
在做折现图的时候,需要在最高点有一个呼吸效果,如 https://g2.antv.vision/zh/examples/case/line/#line8 。但现有的版本只有在生命周期钩子中才能显示动画,而不能重复动画。若想重复,则必须重复刷新数据 (changeDate) 以达到效果。
### What does the proposed API look like?
在 animationCfg 中添加一个 repeat 选项
Contributor guide
Research direction
Start by tracing the animationCfg entry point and the lifecycle hooks that currently trigger animation, then compare the behavior with the linked G2 line8 example. Check how changeDate is used to restart animations. Done means a repeat option can produce the breathing effect without repeatedly refreshing the data, with coverage for the new animation behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100