From 06a04d2558f50ffe849ae3954f75a0c16be30c75 Mon Sep 17 00:00:00 2001 From: Bryon Lewis <61746913+BryonLewis@users.noreply.github.com> Date: Tue, 30 Jan 2024 10:40:07 -0500 Subject: [PATCH] Spectrogram Legend (#24) * adding legend capabilities * add hover state and improve legend * toggle icon bar * defaulting grid to off * fix for NaN numbers in annotations not in compressed view --- client/src/components/SpectrogramViewer.vue | 91 +++-- client/src/components/ThumbnailViewer.vue | 1 + client/src/components/geoJS/LayerManager.vue | 23 ++ client/src/components/geoJS/geoJSUtils.ts | 17 +- .../components/geoJS/layers/legendLayer.ts | 323 ++++++++++++++++++ .../components/geoJS/layers/rectangleLayer.ts | 11 +- client/src/views/Spectrogram.vue | 64 +++- 7 files changed, 498 insertions(+), 32 deletions(-) create mode 100644 client/src/components/geoJS/layers/legendLayer.ts diff --git a/client/src/components/SpectrogramViewer.vue b/client/src/components/SpectrogramViewer.vue index a9e54d7..c16eb44 100644 --- a/client/src/components/SpectrogramViewer.vue +++ b/client/src/components/SpectrogramViewer.vue @@ -1,13 +1,15 @@