Skip to content

Commit

Permalink
Merge pull request #20 from VisActor/fix/disappear-visible
Browse files Browse the repository at this point in the history
fix: fix issue with visible for disappear
  • Loading branch information
neuqzxy authored Jul 17, 2024
2 parents 45efb23 + 342d460 commit 8d1beea
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,13 @@ export function moveOut(graphic: IGraphic, params: IMoveOutParams) {
}
}

graphic.animate().to({ x: toX, y: toY }, duration, easing as EasingType);
graphic
.animate()
.to({ x: toX, y: toY }, duration, easing as EasingType)
// 最终不显示
.onEnd(() => {
graphic.setAttributes({ visible: false, visibleAll: false } as any);
});
return true;
}

Expand Down

0 comments on commit 8d1beea

Please sign in to comment.