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 (