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