Skip to content

Commit

Permalink
fix: fix issue with visible for disappear
Browse files Browse the repository at this point in the history
  • Loading branch information
neuqzxy committed Jul 17, 2024
1 parent 10abae7 commit 342d460
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 342d460

Please sign in to comment.