From d1db4b979771b8a4535b57ec82c29a8010e69d78 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Thu, 18 Jul 2019 15:55:22 -0400 Subject: [PATCH] run linter --- core/src/utils/animation/animation.ts | 28 +++++++++++++-------------- core/src/utils/transition/index.ts | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/core/src/utils/animation/animation.ts b/core/src/utils/animation/animation.ts index b1128a71d2..12b44a943c 100644 --- a/core/src/utils/animation/animation.ts +++ b/core/src/utils/animation/animation.ts @@ -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 diff --git a/core/src/utils/transition/index.ts b/core/src/utils/transition/index.ts index 7ba78d71ee..801a238912 100644 --- a/core/src/utils/transition/index.ts +++ b/core/src/utils/transition/index.ts @@ -149,7 +149,7 @@ const playTransition = async (trans: any, opts: TransitionOptions): Promise