From 5ebd55d87665692cea1867c5f327f4c4d6d7b70a Mon Sep 17 00:00:00 2001 From: rakadu1 Date: Fri, 6 Feb 2026 15:43:57 +0530 Subject: [PATCH] Confirmed ONLY tracks visible, now fixed --- steps/src/p5/radarSketch.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/steps/src/p5/radarSketch.js b/steps/src/p5/radarSketch.js index ff37d56..658d363 100644 --- a/steps/src/p5/radarSketch.js +++ b/steps/src/p5/radarSketch.js @@ -16,6 +16,7 @@ import { toggleVelocity, toggleVehicleDimensions, toggleClusterColor, + toggleConfirmedOnly, } from "../dom.js"; import { drawStaticRegionsToBuffer, @@ -205,6 +206,9 @@ export const radarSketch = function (p) { // } if (togglePredictedPos.checked) { for (const track of appState.vizData.tracks) { + if (toggleConfirmedOnly.checked && track.isConfirmed === false) { + continue; + } const log = track.historyLog.find((log) => log.frameIdx === appState.currentFrame); if ( log && @@ -229,6 +233,9 @@ export const radarSketch = function (p) { drawTrajectories(p, plotScales); if (toggleCovariance.checked) { for (const track of appState.vizData.tracks) { + if (toggleConfirmedOnly.checked && track.isConfirmed === false) { + continue; + } const log = track.historyLog.find( (log) => log.frameIdx === appState.currentFrame); if ( @@ -252,6 +259,9 @@ export const radarSketch = function (p) { } if (toggleVehicleDimensions.checked) { for (const track of appState.vizData.tracks) { + if (toggleConfirmedOnly.checked && track.isConfirmed === false) { + continue; + } const log = track.historyLog.find( (log) => log.frameIdx === appState.currentFrame); if (