mirror of
https://github.com/nasa/openmct.git
synced 2025-01-07 21:58:44 +00:00
separate annotation guard
This commit is contained in:
parent
bd356653db
commit
3a77efb010
@ -14,7 +14,7 @@ $elemBg: rgba(black, 0.7);
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 4;
|
z-index: 3;
|
||||||
@include userSelectNone;
|
@include userSelectNone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@
|
|||||||
:sized-image-dimensions="sizedImageDimensions"
|
:sized-image-dimensions="sizedImageDimensions"
|
||||||
/>
|
/>
|
||||||
<AnnotationsCanvas
|
<AnnotationsCanvas
|
||||||
v-if="shouldDisplayCompass"
|
v-if="shouldDisplayAnnotations"
|
||||||
:image="focusedImage"
|
:image="focusedImage"
|
||||||
:imagery-annotations="imageryAnnotations[focusedImage.time]"
|
:imagery-annotations="imageryAnnotations[focusedImage.time]"
|
||||||
/>
|
/>
|
||||||
@ -429,6 +429,19 @@ export default {
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
shouldDisplayAnnotations() {
|
||||||
|
const imageHeightAndWidth = this.sizedImageHeight !== 0
|
||||||
|
&& this.sizedImageWidth !== 0;
|
||||||
|
const display = this.focusedImage !== undefined
|
||||||
|
&& this.focusedImageNaturalAspectRatio !== undefined
|
||||||
|
&& this.imageContainerWidth !== undefined
|
||||||
|
&& this.imageContainerHeight !== undefined
|
||||||
|
&& imageHeightAndWidth
|
||||||
|
&& this.zoomFactor === 1
|
||||||
|
&& this.imagePanned !== true;
|
||||||
|
|
||||||
|
return display;
|
||||||
|
},
|
||||||
shouldDisplayCompass() {
|
shouldDisplayCompass() {
|
||||||
const imageHeightAndWidth = this.sizedImageHeight !== 0
|
const imageHeightAndWidth = this.sizedImageHeight !== 0
|
||||||
&& this.sizedImageWidth !== 0;
|
&& this.sizedImageWidth !== 0;
|
||||||
@ -763,7 +776,7 @@ export default {
|
|||||||
|
|
||||||
const incomingSelectedAnnotation = selection?.[0]?.[0]?.context?.annotations?.[0];
|
const incomingSelectedAnnotation = selection?.[0]?.[0]?.context?.annotations?.[0];
|
||||||
console.debug(`📲 incoming search selections`, incomingSelectedAnnotation);
|
console.debug(`📲 incoming search selections`, incomingSelectedAnnotation);
|
||||||
// for incoming search results, we should:
|
// TODO: for incoming search results, we should:
|
||||||
// 1. set the the time bounds to match the search result
|
// 1. set the the time bounds to match the search result
|
||||||
// 2. search the imageHistory for the image that matches the time of the search result
|
// 2. search the imageHistory for the image that matches the time of the search result
|
||||||
// 3. using the index from the above, "click" on the image to select it
|
// 3. using the index from the above, "click" on the image to select it
|
||||||
|
@ -532,5 +532,5 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 3;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user