From 78c4fba78c7c074ff5176d502e1e269b7ce0f325 Mon Sep 17 00:00:00 2001 From: Bryon Lewis Date: Fri, 23 Feb 2024 15:45:08 -0500 Subject: [PATCH] fix legend rednering and allow item to fill view --- client/src/components/SpectrogramViewer.vue | 19 +++++++--- .../components/geoJS/layers/legendLayer.ts | 36 ++++++++++++++----- client/src/use/useState.ts | 2 ++ client/src/views/Spectrogram.vue | 4 +++ 4 files changed, 48 insertions(+), 13 deletions(-) diff --git a/client/src/components/SpectrogramViewer.vue b/client/src/components/SpectrogramViewer.vue index cfab3b4..5be5c98 100644 --- a/client/src/components/SpectrogramViewer.vue +++ b/client/src/components/SpectrogramViewer.vue @@ -40,7 +40,7 @@ export default defineComponent({ "hoverData", ], setup(props, { emit }) { - const { annotations, temporalAnnotations, selectedId, selectedType, creationType } = useState(); + const { annotations, temporalAnnotations, selectedId, selectedType, creationType, blackBackground } = useState(); const containerRef: Ref = ref(); const geoJS = useGeoJS(); const initialized = ref(false); @@ -193,13 +193,17 @@ export default defineComponent({ createAnnotation, cursorHandler, imageCursorRef, + blackBackground, }; }, });