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
const pixelX: number = Math.floor(offsetX / ratioWidth);
const pixelY: number = Math.floor(offsetY / ratioHeight);
// console.log('CLICK X:' + pixelX + ' Y:' + pixelY);
if (this.projectData.currentlySelectedPin === -1) {
// update animation data
this.animationData.originX = pixelX;
this.animationData.originY = pixelY;
} else {
// console.log('current pin id = ' + this.projectData.currentlySelectedPin);
const newPinData = {
x: pixelX,
y: pixelY

View File

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