From c47608c013c77c727c71c0e96510817a07483b9b Mon Sep 17 00:00:00 2001 From: Beau Blyth Date: Mon, 30 Sep 2019 21:58:04 -0700 Subject: [PATCH] lint --- app/frame_handler.ts | 8 +++++--- app/page.ts | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/frame_handler.ts b/app/frame_handler.ts index 34d0089..d209a84 100644 --- a/app/frame_handler.ts +++ b/app/frame_handler.ts @@ -1,6 +1,6 @@ import { IAnimationData } from './Interfaces/IAnimationData'; -import { IProjectData } from './Interfaces/IProjectData'; import { IFramePinData } from './Interfaces/IFramePinData'; +import { IProjectData } from './Interfaces/IProjectData'; export class FrameHandler { private start: number = 0; @@ -74,7 +74,7 @@ export class FrameHandler { public TogglePlayingAnimation() { this.playingAnimation = !this.playingAnimation; - if (this.playingAnimation && this.currentFrame == this.filenames.length - 1 && !this.animationData.loop) { + if (this.playingAnimation && this.currentFrame === this.filenames.length - 1 && !this.animationData.loop) { this.currentFrame = -1; } console.log('playingAnimation = ', this.playingAnimation); @@ -116,7 +116,9 @@ export class FrameHandler { // draw pins for (let i = 0; i < 10; i++) { this.canvasContext.strokeStyle = '#FF0000'; - let currentSelectedPinData: IFramePinData = this.animationData.frames[this.projectData.currentFrame][i]; + const currentSelectedPinData: IFramePinData = this.animationData.frames[this.projectData.currentFrame][ + i + ]; if (currentSelectedPinData !== null && currentSelectedPinData !== undefined) { this.DrawCrossHair(50, this.canvasContext, currentSelectedPinData.x, currentSelectedPinData.y); } diff --git a/app/page.ts b/app/page.ts index ce94378..5af2fa6 100644 --- a/app/page.ts +++ b/app/page.ts @@ -4,8 +4,8 @@ import { CanvasHandler } from './canvas_handler'; import { FileHandler } from './file_handler'; import { FrameHandler } from './frame_handler'; import { IAnimationData } from './Interfaces/IAnimationData'; -import { IProjectData } from './Interfaces/IProjectData'; import { IFrame } from './Interfaces/IFrame'; +import { IProjectData } from './Interfaces/IProjectData'; import { PinHandler } from './pin_handler'; export class Page {