lint
parent
8e62001389
commit
c47608c013
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue