Skip to content

Commit

Permalink
fix: fix issue with animate error when graphic.stage is null
Browse files Browse the repository at this point in the history
  • Loading branch information
neuqzxy committed Dec 30, 2024
1 parent 86c793a commit cb98cd9
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 cb98cd9

Please sign in to comment.