run linter

This commit is contained in:
Liam DeBeasi
2019-07-18 15:55:22 -04:00
parent 7c4dc9535c
commit d1db4b9797
2 changed files with 15 additions and 15 deletions

View File

@@ -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

View File

@@ -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 {