From bd356653db4f79c70a318e4388c7e9c0a66bcf98 Mon Sep 17 00:00:00 2001 From: Scott Bell Date: Tue, 25 Apr 2023 13:53:31 +0200 Subject: [PATCH] remove some debug code --- .../imagery/components/AnnotationsCanvas.vue | 14 +------------- .../imagery/components/Compass/CompassRose.vue | 1 - .../annotations/AnnotationsInspectorView.vue | 1 - 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/plugins/imagery/components/AnnotationsCanvas.vue b/src/plugins/imagery/components/AnnotationsCanvas.vue index f1b1225405..15e7b19b82 100644 --- a/src/plugins/imagery/components/AnnotationsCanvas.vue +++ b/src/plugins/imagery/components/AnnotationsCanvas.vue @@ -84,12 +84,8 @@ export default { }, methods: { buildAnnotationIndex() { - if (!this.imageryAnnotations.length) { - return; - } - 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.imageryAnnotations.forEach((annotation) => { const annotationRectangle = annotation.targets[this.keyString].rectangle; @@ -236,8 +232,6 @@ export default { this.dragging = false; 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 = {}; targetDomainObjects[this.keyString] = this.domainObject; const targetDetails = {}; @@ -269,7 +263,6 @@ export default { const resultIndicies = this.annotationsIndex.search(x, y, x, y); resultIndicies.forEach((resultIndex) => { const foundAnnotation = this.indexToAnnotationMap[resultIndex]; - console.debug(`🐭 found annotations at ${x} ${y}`, foundAnnotation); nearbyAnnotations.push(foundAnnotation); }); @@ -285,13 +278,10 @@ export default { selectOrCreateAnnotation(event) { event.stopPropagation(); this.mouseDown = false; - console.debug(`🐭 mouseClick`); if ((!this.dragging) || (!this.newAnnotationRectangle.width && !this.newAnnotationRectangle.height)) { - console.debug(`🐭 checking for existing annotations`); this.newAnnotationRectangle = {}; this.attemptToSelectExistingAnnotation(event); } else { - console.debug(`🐭 creating new annotation`); this.createNewAnnotation(); } @@ -316,7 +306,6 @@ export default { return selection; }, startAnnotationDrag(event) { - console.debug(`🐭 mouseMoving for new drag`); this.newAnnotationRectangle = {}; const boundingRect = this.canvas.getBoundingClientRect(); const scaleX = this.canvas.width / boundingRect.width; @@ -331,7 +320,6 @@ export default { const someSelectedAnnotationExists = this.selectedAnnotations.some((selectedAnnotation) => { return this.openmct.objects.areIdsEqual(selectedAnnotation.identifier, annotation.identifier); }); - console.debug(`someSelectedAnnotationExists`, someSelectedAnnotationExists); return someSelectedAnnotationExists; }, diff --git a/src/plugins/imagery/components/Compass/CompassRose.vue b/src/plugins/imagery/components/Compass/CompassRose.vue index 5cdb012205..e2b3dc4e9a 100644 --- a/src/plugins/imagery/components/Compass/CompassRose.vue +++ b/src/plugins/imagery/components/Compass/CompassRose.vue @@ -407,7 +407,6 @@ export default { svg.setAttribute('height', this.$refs.compassRoseWrapper.clientHeight); }, toggleLockCompass() { - console.debug(`toggleLockCompass: ${this.lockCompass}`); this.lockCompass = !this.lockCompass; } } diff --git a/src/plugins/inspectorViews/annotations/AnnotationsInspectorView.vue b/src/plugins/inspectorViews/annotations/AnnotationsInspectorView.vue index bf1e8fc3e2..dbc04f86be 100644 --- a/src/plugins/inspectorViews/annotations/AnnotationsInspectorView.vue +++ b/src/plugins/inspectorViews/annotations/AnnotationsInspectorView.vue @@ -175,7 +175,6 @@ export default { } }, updateSelection(selection) { - console.debug(`🥾 selection changed`, selection); const unobserveEntryFunctions = Object.values(this.unobserveEntries); unobserveEntryFunctions.forEach(unobserveEntry => { unobserveEntry();