antvis / antvis/G

动画api中,如果在动画执行的过程中,调用cancel方法,会导致动画的finished Promise 不进入后续状态

Open
#1,947 3 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
1.2k
Forks
230
PR merge metrics
No merged PRs in 30d

Description

动画api中,如果在动画执行的过程中,调用cancel方法,会导致动画的finished Promise 不进入后续状态,在G6 中这种情况会导致一些依赖动画状态结束的操作无法正常进入后续流程。

![Image](https://github.com/user-attachments/assets/107c6cbf-c889-46c2-9b37-5c9052fe67aa)

- OS: [e.g. win10, iOS8.1]
- Browser [e.g. chrome, safari]
- Version [e.g. @antv/g-lite@6.1.10]

## Steps To Reproduce

Link to code example:

## The current behavior

## The expected behavior

Contributor guide

Open the contributing guide

Research direction

No source file, test, or reproducible steps are provided. Start by isolating an in-progress animation, call cancel, and inspect the finished Promise behavior; confirm the intended post-cancellation state with maintainers before adding a regression test and defining done.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.