Browse Source

exposing the appstate in console.

refactor/modularize
RUSHIL AMBARISH KADU 8 months ago
parent
commit
aa8d41d212
  1. 2
      steps/src/dom.js
  2. 1
      steps/src/main.js
  3. 4
      steps/src/p5/zoomSketch.js

2
steps/src/dom.js

@ -331,7 +331,7 @@ export function updatePersistentOverlays(currentMediaTime) {
appState.videoStartDate.getTime() + currentMediaTime * 1000 appState.videoStartDate.getTime() + currentMediaTime * 1000
); );
const videoFrame = Math.floor(currentMediaTime * VIDEO_FPS); const videoFrame = Math.floor(currentMediaTime * VIDEO_FPS);
console.warn('Could not load radarframes ', appState.vizData.radarFrames)
//console.warn('Could not load radarframes ', appState.vizData.radarFrames) console warning for reference
videoInfoOverlay.innerHTML = ` videoInfoOverlay.innerHTML = `
Frame: ${videoFrame} Frame: ${videoFrame}

1
steps/src/main.js

@ -38,6 +38,7 @@ import {
formatTime, formatTime,
} from "./utils.js"; } from "./utils.js";
import { appState } from "./state.js"; import { appState } from "./state.js";
window.appState = appState; // exposing the appState to console
import { import {
themeToggleBtn, themeToggleBtn,
canvasContainer, canvasContainer,

4
steps/src/p5/zoomSketch.js

@ -200,8 +200,8 @@ function drawZoomTooltip(p, hoveredItems, mainMouseX) {
const BASE_LINE_HEIGHT = 15; const BASE_LINE_HEIGHT = 15;
const BASE_PADDING = 8; const BASE_PADDING = 8;
const BASE_HIGHLIGHT_THICKNESS = 2; const BASE_HIGHLIGHT_THICKNESS = 2;
const BASE_LINE_THICKNESS = 1;
const BASE_DISTANCE_OFFSET = 45; // <-- How far the tooltip is from the items
const BASE_LINE_THICKNESS = 2;
const BASE_DISTANCE_OFFSET = 65; // <-- How far the tooltip is from the items
// COLORS // COLORS
const highlightColor = p.color(46, 204, 113); // Green for border and lines const highlightColor = p.color(46, 204, 113); // Green for border and lines

Loading…
Cancel
Save