mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
run linter
This commit is contained in:
@@ -18,7 +18,7 @@ export interface Animation {
|
||||
pause(): Animation;
|
||||
stop(): Animation;
|
||||
destroy(): Animation;
|
||||
|
||||
|
||||
progressStart(forceLinearEasing: boolean): Animation;
|
||||
progressStep(step: number): Animation;
|
||||
progressEnd(shouldComplete: boolean, step: number): Animation;
|
||||
@@ -164,7 +164,7 @@ export const createAnimation = (animationNameValue: string | undefined): Animati
|
||||
let onFinishCallback: any | undefined;
|
||||
|
||||
let numAnimationsRunning = 0;
|
||||
|
||||
|
||||
let shouldForceLinearEasing = false;
|
||||
|
||||
/**
|
||||
@@ -351,7 +351,7 @@ export const createAnimation = (animationNameValue: string | undefined): Animati
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
|
||||
const getKeyframes = (): any[] => {
|
||||
return _keyframes;
|
||||
};
|
||||
@@ -582,11 +582,11 @@ export const createAnimation = (animationNameValue: string | undefined): Animati
|
||||
} else if (step < 0) {
|
||||
step = 0;
|
||||
}
|
||||
|
||||
|
||||
childAnimations.forEach(animation => {
|
||||
animation.progressStep(step);
|
||||
});
|
||||
|
||||
|
||||
if (getDuration() !== undefined) {
|
||||
if (supportsWebAnimations()) {
|
||||
webAnimations.forEach(animation => {
|
||||
@@ -595,7 +595,7 @@ export const createAnimation = (animationNameValue: string | undefined): Animati
|
||||
});
|
||||
} else {
|
||||
const animationDuration = `-${getDuration()! * step}ms`;
|
||||
|
||||
|
||||
elements.forEach(element => {
|
||||
(element as HTMLElement).style.animationDelay = animationDuration;
|
||||
(element as HTMLElement).style.animationPlayState = 'paused';
|
||||
@@ -605,27 +605,27 @@ export const createAnimation = (animationNameValue: string | undefined): Animati
|
||||
|
||||
return generatePublicAPI();
|
||||
};
|
||||
|
||||
|
||||
const progressStart = (forceLinearEasing = false): Animation => {
|
||||
childAnimations.forEach(animation => {
|
||||
animation.progressStart(forceLinearEasing);
|
||||
});
|
||||
|
||||
|
||||
shouldForceLinearEasing = forceLinearEasing;
|
||||
|
||||
if (!initialized) {
|
||||
initializeAnimation();
|
||||
}
|
||||
|
||||
|
||||
return generatePublicAPI();
|
||||
};
|
||||
|
||||
|
||||
const progressEnd = (shouldComplete: boolean, step: number): Animation => {
|
||||
shouldComplete;
|
||||
step;
|
||||
|
||||
|
||||
shouldForceLinearEasing = false;
|
||||
|
||||
|
||||
return generatePublicAPI();
|
||||
};
|
||||
|
||||
@@ -653,7 +653,7 @@ export const createAnimation = (animationNameValue: string | undefined): Animati
|
||||
childAnimations.forEach(animation => {
|
||||
animation.play();
|
||||
});
|
||||
|
||||
|
||||
if (!initialized) {
|
||||
initializeAnimation();
|
||||
}
|
||||
@@ -779,7 +779,7 @@ export const createAnimation = (animationNameValue: string | undefined): Animati
|
||||
beforeRemoveClass,
|
||||
beforeAddClass,
|
||||
onFinish,
|
||||
|
||||
|
||||
progressStart,
|
||||
progressStep,
|
||||
progressEnd
|
||||
|
||||
@@ -149,7 +149,7 @@ const playTransition = async (trans: any, opts: TransitionOptions): Promise<Anim
|
||||
// this is a swipe to go back, just get the transition progress ready
|
||||
// kick off the swipe animation start
|
||||
trans.progressStart(true);
|
||||
|
||||
|
||||
progressCallback(trans as any);
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user