Skip to content

Commit

Permalink
Merge pull request #1659 from VisActor/fix/animate-with-noStage
Browse files Browse the repository at this point in the history
fix: fix issue with animate error when graphic.stage is null
  • Loading branch information
neuqzxy authored Jan 10, 2025
2 parents 9562c1d + cb98cd9 commit a20dab5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vrender-core",
"comment": "fix: fix issue with animate error when graphic.stage is null",
"type": "none"
}
],
"packageName": "@visactor/vrender-core"
}
2 changes: 1 addition & 1 deletion packages/vrender-core/src/animate/animate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class Animate implements IAnimate {
slience?: boolean
) {
this.id = id;
this.timeline = timeline;
this.timeline = timeline || defaultTimeline;
this.status = AnimateStatus.INITIAL;
this.tailAnimate = new SubAnimate(this);
this.subAnimates = [this.tailAnimate];
Expand Down

0 comments on commit a20dab5

Please sign in to comment.