mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(animations): remove deprecated methods (#20041)
This commit is contained in:
@@ -212,11 +212,6 @@ export interface Animation {
|
||||
* upon the animation ending
|
||||
*/
|
||||
onFinish(callback: AnimationLifecycle, opts?: AnimationCallbackOptions): Animation;
|
||||
|
||||
/** @deprecated */
|
||||
playAsync(): Promise<void>;
|
||||
/** @deprecated */
|
||||
playSync(): void;
|
||||
}
|
||||
|
||||
export type AnimationLifecycle = (currentStep: 0 | 1, animation: Animation) => void;
|
||||
|
||||
@@ -750,16 +750,6 @@ export const createAnimation = (animationId?: string): Animation => {
|
||||
return ani;
|
||||
};
|
||||
|
||||
const playAsync = () => {
|
||||
return play();
|
||||
};
|
||||
|
||||
const playSync = () => {
|
||||
play({ sync: true });
|
||||
|
||||
return ani;
|
||||
};
|
||||
|
||||
const onAnimationEndFallback = () => {
|
||||
cssAnimationsTimerFallback = undefined;
|
||||
animationFinish();
|
||||
@@ -941,8 +931,6 @@ export const createAnimation = (animationId?: string): Animation => {
|
||||
fromTo,
|
||||
parent,
|
||||
play,
|
||||
playAsync,
|
||||
playSync,
|
||||
pause,
|
||||
stop,
|
||||
destroy,
|
||||
|
||||
Reference in New Issue
Block a user