Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion packages/vchart/src/core/vchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1905,16 +1905,22 @@ export class VChart implements IVChart {

/** 停止正在进行的所有动画 */
stopAnimation() {
// this._compiler?.getVGrammarView()?.animate?.stop();
this.getStage()?.stopAnimation(true);
}

reRunNormalAnimation() {
this.getStage()?.reApplyAnimationState('normal', true);
}

/** 暂停正在进行的所有动画 */
pauseAnimation() {
this.getStage()?.pauseAnimation(true);
// this._compiler?.getVGrammarView()?.animate?.pause();
}

/** 恢复暂停时正在进行的所有动画 */
resumeAnimation() {
this.getStage()?.resumeAnimation(true);
// this._compiler?.getVGrammarView()?.animate?.resume();
}

Expand Down