remove log statements

pull/2/head
thatcosmonaut 2019-12-12 13:19:41 -08:00
parent 99e74e2a2c
commit 552525e001
3 changed files with 0 additions and 15 deletions

View File

@ -55,13 +55,11 @@ export class CanvasHandler {
// get origin in pixels // get origin in pixels
const pixelX: number = Math.floor(offsetX / ratioWidth); const pixelX: number = Math.floor(offsetX / ratioWidth);
const pixelY: number = Math.floor(offsetY / ratioHeight); const pixelY: number = Math.floor(offsetY / ratioHeight);
// console.log('CLICK X:' + pixelX + ' Y:' + pixelY);
if (this.projectData.currentlySelectedPin === -1) { if (this.projectData.currentlySelectedPin === -1) {
// update animation data // update animation data
this.animationData.originX = pixelX; this.animationData.originX = pixelX;
this.animationData.originY = pixelY; this.animationData.originY = pixelY;
} else { } else {
// console.log('current pin id = ' + this.projectData.currentlySelectedPin);
const newPinData = { const newPinData = {
x: pixelX, x: pixelX,
y: pixelY y: pixelY

View File

@ -141,7 +141,6 @@ export class FrameHandler {
for (let p = 0; p < this.animationData.pinDefinitions.length; p++) { for (let p = 0; p < this.animationData.pinDefinitions.length; p++) {
if (this.animationData.pinDefinitions[p] !== undefined) { if (this.animationData.pinDefinitions[p] !== undefined) {
const pinIDtoCheck = this.animationData.pinDefinitions[p].id; const pinIDtoCheck = this.animationData.pinDefinitions[p].id;
// console.log('checking frame ' + f + ' for pinID ' + this.animationData.pins[p].name);
if (this.frameViewer.children[f] !== undefined) { if (this.frameViewer.children[f] !== undefined) {
if (this.animationData.frames[f].pinData[pinIDtoCheck] === undefined) { if (this.animationData.frames[f].pinData[pinIDtoCheck] === undefined) {
this.frameViewer.children[f].classList.add('warning'); this.frameViewer.children[f].classList.add('warning');
@ -216,6 +215,5 @@ export class FrameHandler {
} }
this.RefreshImage(); this.RefreshImage();
window.requestAnimationFrame(this.windowAnimationUpdate); window.requestAnimationFrame(this.windowAnimationUpdate);
// console.log('timestamp = ' + timestamp);
}; };
} }

View File

@ -46,7 +46,6 @@ export class PinHandler {
if (this.animationData.frames[f] !== undefined) { if (this.animationData.frames[f] !== undefined) {
if (this.animationData.frames[f].pinData[pinNumber] === undefined) { if (this.animationData.frames[f].pinData[pinNumber] === undefined) {
pinDiv.classList.add('warning'); pinDiv.classList.add('warning');
// console.log('added warning');
break; break;
} }
} }
@ -64,7 +63,6 @@ export class PinHandler {
const animationPinData: IPinDefinition[] = []; const animationPinData: IPinDefinition[] = [];
for (let i = 0; i < this.allPinContainers.length; i++) { for (let i = 0; i < this.allPinContainers.length; i++) {
const pinName: string = this.GetPinNameFromDiv(this.allPinContainers[i]); const pinName: string = this.GetPinNameFromDiv(this.allPinContainers[i]);
// console.log('new pin name = ' + pinName);
if (pinName !== null && pinName !== undefined) { if (pinName !== null && pinName !== undefined) {
const newPinData: IPinDefinition = { const newPinData: IPinDefinition = {
id: this.GetPinNumberFromID(this.allPinContainers[i].id), id: this.GetPinNumberFromID(this.allPinContainers[i].id),
@ -74,7 +72,6 @@ export class PinHandler {
} }
} }
this.animationData.pinDefinitions = animationPinData; this.animationData.pinDefinitions = animationPinData;
console.log(animationPinData);
}; };
public RemoveAllPins = () => { public RemoveAllPins = () => {
@ -94,7 +91,6 @@ export class PinHandler {
const pinID: number = this.GetPinNumberFromID(this.allPinContainers[i].id); const pinID: number = this.GetPinNumberFromID(this.allPinContainers[i].id);
availablePins.push(pinID); availablePins.push(pinID);
} }
// console.log('available pins are: ' + availablePins);
return availablePins; return availablePins;
}; };
@ -174,7 +170,6 @@ export class PinHandler {
private SelectPin = (pinDiv: HTMLElement) => { private SelectPin = (pinDiv: HTMLElement) => {
this.projectData.currentlySelectedPin = this.GetPinNumberFromID(pinDiv.id); this.projectData.currentlySelectedPin = this.GetPinNumberFromID(pinDiv.id);
// console.log('selected pin ' + this.projectData.currentlySelectedPin);
this.UpdatePinBoxStatus(); this.UpdatePinBoxStatus();
this.UpdateAnimationPinDefinitions(); this.UpdateAnimationPinDefinitions();
}; };
@ -191,11 +186,9 @@ export class PinHandler {
let deleted: boolean = false; let deleted: boolean = false;
for (let i = 0; i < this.animationData.pinDefinitions.length; i++) { for (let i = 0; i < this.animationData.pinDefinitions.length; i++) {
// console.log('checking if ' + this.animationData.pins[i].id.toString + ' === ' + pinID.toString());
if (this.animationData.pinDefinitions[i].id === pinID) { if (this.animationData.pinDefinitions[i].id === pinID) {
indexToDelete = i; indexToDelete = i;
} }
// console.log('deleting pinID ' + pinID);
deleted = true; deleted = true;
} }
@ -203,10 +196,7 @@ export class PinHandler {
return; return;
} }
console.log('deleting: ' + indexToDelete);
let removedPinDefinition = this.animationData.pinDefinitions[indexToDelete]; let removedPinDefinition = this.animationData.pinDefinitions[indexToDelete];
console.log('removing:');
console.log(removedPinDefinition);
this.animationData.pinDefinitions.splice(indexToDelete, 1); this.animationData.pinDefinitions.splice(indexToDelete, 1);
for (let i = this.animationData.pinDefinitions.length - 1; i >= 0; i--) { for (let i = this.animationData.pinDefinitions.length - 1; i >= 0; i--) {
let pinDefinition = this.animationData.pinDefinitions[i]; let pinDefinition = this.animationData.pinDefinitions[i];
@ -216,7 +206,6 @@ export class PinHandler {
pinDefinition.id -= 1; pinDefinition.id -= 1;
} }
} }
console.log(this.animationData.pinDefinitions);
if (!deleted) { if (!deleted) {
// console.log('failed to find pinID ' + pinID + ' in list of pins'); // console.log('failed to find pinID ' + pinID + ' in list of pins');