diff --git a/steps/index.html b/steps/index.html index 84ce479..9467f72 100644 --- a/steps/index.html +++ b/steps/index.html @@ -89,6 +89,14 @@ (F11) + + Data-Explorer(MATLAB-style) + + (i) + + diff --git a/steps/src/dom.js b/steps/src/dom.js index 4bef76f..efebf14 100644 --- a/steps/src/dom.js +++ b/steps/src/dom.js @@ -81,6 +81,8 @@ export const fullscreenEnterIcon = document.getElementById("fullscreen-enter-ico export const fullscreenExitIcon = document.getElementById("fullscreen-exit-icon"); export const menuScrim = document.getElementById("menu-scrim"); export const toggleConfirmedOnly = document.getElementById("toggle-confirmed-only"); +export const explorerBtn = document.getElementById("explorer-btn"); + //----------------------UPDATE FRAME Function----------------------// diff --git a/steps/src/main.js b/steps/src/main.js index 20e1580..eab1650 100644 --- a/steps/src/main.js +++ b/steps/src/main.js @@ -103,6 +103,7 @@ import { menuScrim, toggleConfirmedOnly, resetUIForNewLoad, + explorerBtn, } from "./dom.js"; import { initializeTheme } from "./theme.js"; @@ -1061,6 +1062,14 @@ canvasContainer.addEventListener('click', () => { displayInGrid(currentFrameData.pointCloud, `Frame ${appState.currentFrame} - Point Cloud`); } }); +explorerBtn.addEventListener('click', () => { + const panel = document.getElementById("data-explorer-panel"); + if (panel.classList.contains("hidden")) { + showExplorer(); + } else { + hideExplorer(); + } +}); function calculateAndSetOffset() { const jsonTimestampInfo = extractTimestampInfo(appState.jsonFilename);