remove some debug code

This commit is contained in:
Scott Bell 2023-04-25 13:53:31 +02:00
parent d1e8b3835d
commit bd356653db
3 changed files with 1 additions and 15 deletions

View File

@ -84,10 +84,6 @@ export default {
}, },
methods: { methods: {
buildAnnotationIndex() { buildAnnotationIndex() {
if (!this.imageryAnnotations.length) {
return;
}
if (this.imageryAnnotations.length) { if (this.imageryAnnotations.length) {
// create a flatbush index for the annotations // create a flatbush index for the annotations
this.annotationsIndex = new Flatbush(this.imageryAnnotations.length); this.annotationsIndex = new Flatbush(this.imageryAnnotations.length);
@ -236,8 +232,6 @@ export default {
this.dragging = false; this.dragging = false;
this.selectedAnnotations = []; this.selectedAnnotations = [];
console.debug(`🖼️ Creating new image annotation of size ${this.newAnnotationRectangle.width}x${this.newAnnotationRectangle.height} at ${this.newAnnotationRectangle.x},${this.newAnnotationRectangle.y}`);
const targetDomainObjects = {}; const targetDomainObjects = {};
targetDomainObjects[this.keyString] = this.domainObject; targetDomainObjects[this.keyString] = this.domainObject;
const targetDetails = {}; const targetDetails = {};
@ -269,7 +263,6 @@ export default {
const resultIndicies = this.annotationsIndex.search(x, y, x, y); const resultIndicies = this.annotationsIndex.search(x, y, x, y);
resultIndicies.forEach((resultIndex) => { resultIndicies.forEach((resultIndex) => {
const foundAnnotation = this.indexToAnnotationMap[resultIndex]; const foundAnnotation = this.indexToAnnotationMap[resultIndex];
console.debug(`🐭 found annotations at ${x} ${y}`, foundAnnotation);
nearbyAnnotations.push(foundAnnotation); nearbyAnnotations.push(foundAnnotation);
}); });
@ -285,13 +278,10 @@ export default {
selectOrCreateAnnotation(event) { selectOrCreateAnnotation(event) {
event.stopPropagation(); event.stopPropagation();
this.mouseDown = false; this.mouseDown = false;
console.debug(`🐭 mouseClick`);
if ((!this.dragging) || (!this.newAnnotationRectangle.width && !this.newAnnotationRectangle.height)) { if ((!this.dragging) || (!this.newAnnotationRectangle.width && !this.newAnnotationRectangle.height)) {
console.debug(`🐭 checking for existing annotations`);
this.newAnnotationRectangle = {}; this.newAnnotationRectangle = {};
this.attemptToSelectExistingAnnotation(event); this.attemptToSelectExistingAnnotation(event);
} else { } else {
console.debug(`🐭 creating new annotation`);
this.createNewAnnotation(); this.createNewAnnotation();
} }
@ -316,7 +306,6 @@ export default {
return selection; return selection;
}, },
startAnnotationDrag(event) { startAnnotationDrag(event) {
console.debug(`🐭 mouseMoving for new drag`);
this.newAnnotationRectangle = {}; this.newAnnotationRectangle = {};
const boundingRect = this.canvas.getBoundingClientRect(); const boundingRect = this.canvas.getBoundingClientRect();
const scaleX = this.canvas.width / boundingRect.width; const scaleX = this.canvas.width / boundingRect.width;
@ -331,7 +320,6 @@ export default {
const someSelectedAnnotationExists = this.selectedAnnotations.some((selectedAnnotation) => { const someSelectedAnnotationExists = this.selectedAnnotations.some((selectedAnnotation) => {
return this.openmct.objects.areIdsEqual(selectedAnnotation.identifier, annotation.identifier); return this.openmct.objects.areIdsEqual(selectedAnnotation.identifier, annotation.identifier);
}); });
console.debug(`someSelectedAnnotationExists`, someSelectedAnnotationExists);
return someSelectedAnnotationExists; return someSelectedAnnotationExists;
}, },

View File

@ -407,7 +407,6 @@ export default {
svg.setAttribute('height', this.$refs.compassRoseWrapper.clientHeight); svg.setAttribute('height', this.$refs.compassRoseWrapper.clientHeight);
}, },
toggleLockCompass() { toggleLockCompass() {
console.debug(`toggleLockCompass: ${this.lockCompass}`);
this.lockCompass = !this.lockCompass; this.lockCompass = !this.lockCompass;
} }
} }

View File

@ -175,7 +175,6 @@ export default {
} }
}, },
updateSelection(selection) { updateSelection(selection) {
console.debug(`🥾 selection changed`, selection);
const unobserveEntryFunctions = Object.values(this.unobserveEntries); const unobserveEntryFunctions = Object.values(this.unobserveEntries);
unobserveEntryFunctions.forEach(unobserveEntry => { unobserveEntryFunctions.forEach(unobserveEntry => {
unobserveEntry(); unobserveEntry();