A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.
JavaScript 3d-globecesiumflight-trackinggeospatialgeospatial-intelligencegisosintphotogrammetrysatellite-trackingspatial-intelligencewebglworldview
chore: remove the remaining unused local bindings
Sameh Khamisf3a87777ee29
diff --git a/scripts/qa-final-polish-credits.mjs b/scripts/qa-final-polish-credits.mjsindex 7e7182985..dde1431b9 100644--- a/scripts/qa-final-polish-credits.mjs+++ b/scripts/qa-final-polish-credits.mjs@@ -52,7 +52,6 @@ try {id,value,);- const text = () => page.$eval('#cesium-credits', (e) => e.innerText);const shot = async (name, osm, tiles) => {await sleep(300);const state = await page.$eval('#cesium-credits', (e) => {diff --git a/scripts/qa-radio.mjs b/scripts/qa-radio.mjsindex 648075bd2..14a9680ac 100644--- a/scripts/qa-radio.mjs+++ b/scripts/qa-radio.mjs@@ -1291,8 +1291,6 @@ async function main() {const clusterBadge = await page.evaluate(async () => {const viewer = window.__godsEyeView.viewer;const { getOverlayPaintRect, getWorldOverlayDiagnostics } = await import('/src/overlays/worldOverlay.js');- const { distanceFade } = await import('/src/overlays/worldOverlayDraw.js');- const { radioStationIdFromPick } = await import('/src/data/radio.js');const baselineSolveRevision = getWorldOverlayDiagnostics().solveRevision;const source = Array.from({ length: viewer.dataSources.length }, (_, index) => viewer.dataSources.get(index)).find((item) => item.name === 'Radio stations');diff --git a/scripts/qa-traffic-oblique.mjs b/scripts/qa-traffic-oblique.mjsindex 596d2f009..6ea1c953d 100644--- a/scripts/qa-traffic-oblique.mjs+++ b/scripts/qa-traffic-oblique.mjs@@ -80,9 +80,7 @@ try {page.evaluate(() => {const { viewer, dataManager } = window.__godsEyeView;let upper = 0,- lower = 0,- near = 0;- const camera = viewer.camera.positionWC;+ lower = 0;dataManager.layers.get('traffic').module.visitMotionDots((id, key, p) => {diff --git a/scripts/qa-vessel-cards.mjs b/scripts/qa-vessel-cards.mjsindex b5ad8ac87..278c1c71f 100644--- a/scripts/qa-vessel-cards.mjs+++ b/scripts/qa-vessel-cards.mjs@@ -295,7 +295,7 @@ async function main() {);// Wait for the photoreal tileset and at least one vessel refresh.- const settled = await page+ await page.waitForFunction(() => {const gev = window.__godsEyeView;const t = gev.tileset;diff --git a/src/cameraHandoff.test.mjs b/src/cameraHandoff.test.mjsindex 8a09810ea..d91b9d8a4 100644--- a/src/cameraHandoff.test.mjs+++ b/src/cameraHandoff.test.mjs@@ -1,7 +1,6 @@import { LayerBindings } from './ui/layerBindings.js';import { readShellSource, shellMethod } from './testSupport/readShellSource.mjs';import { readLayerSource } from './testSupport/readLayerSource.mjs';-import { StyleManager } from './ui/applicationShell.js';import { enter as cockpitEnter, navigateContext } from './ui/cockpitTrackingController.js';import { CockpitViewController } from './ui/cockpitController.js';import assert from 'node:assert/strict';@@ -384,7 +383,7 @@ test('world-focus listener lifecycle is symmetric and idempotent', () => {});test('vessel and fire layers announce valid clicks and never fly cameras', () => {- for (const [label, source] of [['vessels', vessels], ['fires', firms]]) {+ for (const source of [vessels, firms]) {assert.match(source, /requestWorldFocus\(\{/);assert.doesNotMatch(source, /camera\.flyTo/);}diff --git a/src/contextSessionOrdering.test.mjs b/src/contextSessionOrdering.test.mjsindex 32ec10b28..2f9bfeae0 100644--- a/src/contextSessionOrdering.test.mjs+++ b/src/contextSessionOrdering.test.mjs@@ -8,7 +8,6 @@ import { setContextMode as contextModeAction } from './ui/contextActions.js';import { ContextControls } from './ui/contextControls.js';import { readFileSync as readRadioSource } from 'node:fs';const radioBindings = readRadioSource(new URL('./ui/radioBindings.js', import.meta.url), 'utf8');-const radioPresentation = readRadioSource(new URL('./ui/radioPresentation.js', import.meta.url), 'utf8');const radioControlsSource = readRadioSource(new URL('./ui/radioControls.js', import.meta.url), 'utf8');// Source-contract pins read the actual Context owners and root disposal wiring. Each pin guards a bug that shipped or nearly shipped:// - session bookkeeping ran AFTER the exit early-return, so the compensatingdiff --git a/src/contextTabKeyboard.test.mjs b/src/contextTabKeyboard.test.mjsindex 55ff429a2..6994459a7 100644--- a/src/contextTabKeyboard.test.mjs+++ b/src/contextTabKeyboard.test.mjs@@ -1,4 +1,3 @@-import { readShellSource } from './testSupport/readShellSource.mjs';import { expandApplicationHtml } from '../build/application-html.js';import { readStylesheet } from './testSupport/readStylesheet.mjs';import { _selectContextMode } from './ui/contextTransactions.js';@@ -8,13 +7,11 @@ import { clearSelectedLayers } from './ui/contextActions.js';import { readFileSync as readRadioSource } from 'node:fs';const radioBindings = readRadioSource(new URL('./ui/radioBindings.js', import.meta.url), 'utf8');const radioPresentation = readRadioSource(new URL('./ui/radioPresentation.js', import.meta.url), 'utf8');-const radioControlsSource = readRadioSource(new URL('./ui/radioControls.js', import.meta.url), 'utf8');import { readFileSync } from 'node:fs';import { test } from 'node:test';import assert from 'node:assert/strict';const html = expandApplicationHtml(readFileSync(new URL('../index.html', import.meta.url), 'utf8'));-const ui = readShellSource();const css = readStylesheet(new URL('../style.css', import.meta.url));test('Contacts and Space Missions both participate in the ordinary Tab sequence', () => {@@ -32,8 +29,6 @@ test('Contacts and Space Missions both participate in the ordinary Tab sequence'});test('Context transition state preserves focus and Tab availability until settle', () => {- const syncSource = _syncContextModeButtons.toString();-const attributes = () => new Map();const makeButton = () => {const attrs = attributes();diff --git a/src/creditAttribution.test.mjs b/src/creditAttribution.test.mjsindex d5306dbaa..894d8f7ed 100644--- a/src/creditAttribution.test.mjs+++ b/src/creditAttribution.test.mjs@@ -1,4 +1,3 @@-import { readShellSource } from './testSupport/readShellSource.mjs';import { readStylesheet } from './testSupport/readStylesheet.mjs';import assert from 'node:assert/strict';import fs from 'node:fs';@@ -8,7 +7,6 @@ import { fileURLToPath } from 'node:url';const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');const css = readStylesheet(path.join(ROOT, 'style.css'));-const ui = readShellSource();/** Required-attribution keep-out pin.diff --git a/src/data/radio.test.mjs b/src/data/radio.test.mjsindex 58a4101a1..8bc543b03 100644--- a/src/data/radio.test.mjs+++ b/src/data/radio.test.mjs@@ -1779,7 +1779,6 @@ test('voice playback confirmation waits for playing and requires a hard duck', a});test('voice playback confirmation accepts fallback buffering but times out safely', async () => {- let listener = () => {};const state = {audioState: 'loading',playingStationId: 'fallback',@@ -1789,9 +1788,8 @@ test('voice playback confirmation accepts fallback buffering but times out safelconst confirmed = await confirmRadioPlayback({startPlayback: async () => false,subscribe: (next) => {- listener = next;next(state);- return () => { listener = () => {}; };+ return () => {};},getState: () => state,timeoutMs: 10,diff --git a/src/data/trackedModelRegime.test.mjs b/src/data/trackedModelRegime.test.mjsindex 1b02df1d5..17fec219d 100644--- a/src/data/trackedModelRegime.test.mjs+++ b/src/data/trackedModelRegime.test.mjs@@ -930,7 +930,6 @@ for (const fixture of LAYERS) {}test('both layers gate the tracked-model load and record its failures', async () => {- const { readFile } = await import('node:fs/promises');for (const name of ['flights.js', 'militaryFlights.js']) {const source = readLayerSource(new URL(`./${name}`, import.meta.url));assert.match(source, /!(?:flightState\.)?_trackedModel\s*&&\s*!(?:flightState\.)?_trackedModelLoading\s*&&\s*(?:parts\.\w+\.)?_trackedModelLoadAllowed\(\s*,?\s*\)/,@@ -946,7 +945,6 @@ test('both layers gate the tracked-model load and record its failures', async ()});test('the tracked regime never consults the fleet models3d toggle', async () => {- const { readFile } = await import('node:fs/promises');for (const name of ['flights.js', 'militaryFlights.js']) {const source = readLayerSource(new URL(`./${name}`, import.meta.url));const regime = /^([ \t]*)function _trackedModelRegimeActive\b[\s\S]*?\n\1\}/m.exec(source)?.[0];diff --git a/src/firstRunExperience.test.mjs b/src/firstRunExperience.test.mjsindex 749123acd..e4a6d2483 100644--- a/src/firstRunExperience.test.mjs+++ b/src/firstRunExperience.test.mjs@@ -373,10 +373,6 @@ test('one ESC does one thing — the radio disclosure stops the launcher outrighnew URL('./ui/radioBindings.js', import.meta.url),'utf8',);- const module = fs.readFileSync(- new URL('./firstRunExperience.js', import.meta.url),- 'utf8',- );// stopPropagation() does NOT stop later listeners on the SAME document, so the// disclosure's earlier capture handler closed the disclosure and the launcherdiff --git a/src/layers/bikeshare/failureReporting.test.mjs b/src/layers/bikeshare/failureReporting.test.mjsindex 89a87bdad..e49ebd962 100644--- a/src/layers/bikeshare/failureReporting.test.mjs+++ b/src/layers/bikeshare/failureReporting.test.mjs@@ -60,7 +60,7 @@ test('the layer reports failure when a failed city left it with nothing', () =>});test('a layer with nothing to draw and nothing failed is not an error', () => {- const { state, methods } = makeLayer();+ const { methods } = makeLayer();// Out of range of every city is empty, not broken.assert.equal(methods.getStats().error, undefined);diff --git a/src/layers/launches/rendering.js b/src/layers/launches/rendering.jsindex 60e6e0070..6379e78e1 100644--- a/src/layers/launches/rendering.js+++ b/src/layers/launches/rendering.js@@ -109,7 +109,7 @@ export function createRendering({);});if (satelliteTrack) layerState._orbitMatches++;- const entity = layerState._dataSource.entities.add({+ layerState._dataSource.entities.add({id: `rocket-launch:${launch.id}`,position,point: {diff --git a/src/layers/radio/rendering.js b/src/layers/radio/rendering.jsindex 36cbc5050..9b4e6b387 100644--- a/src/layers/radio/rendering.js+++ b/src/layers/radio/rendering.js@@ -259,7 +259,7 @@ export function createRendering({layerState._horizonScanCount += 1;const occluder = horizonOccluder(layerState._viewer.camera);let visibilityChanged = false;- for (const [id, record] of layerState._renderById) {+ for (const record of layerState._renderById.values()) {const matches = parts.categories.stationMatchesRadioCategory(record.station,layerState._filter,diff --git a/src/layers/streetLevel/lineCoverage.test.mjs b/src/layers/streetLevel/lineCoverage.test.mjsindex 4d0cb0408..049d2f746 100644--- a/src/layers/streetLevel/lineCoverage.test.mjs+++ b/src/layers/streetLevel/lineCoverage.test.mjs@@ -317,7 +317,7 @@ test('a rejected key stops coverage requests until the layer goes off', async ()test('a rate limit keeps the drawn tiles and asks again once the wait is over', async (t) => {t.mock.timers.enable({ apis: ['setTimeout', 'Date'] });- const { viewer, source, state, coverage } = setup();+ const { viewer, source, coverage } = setup();coverage.refresh();source.calls[0].reject(Object.assign(new Error('rate limited'), { retryAfterSec: 30 }),@@ -593,7 +593,7 @@ test('a tile that fails before the terrain table loads is reported at once, neve});test('the selected sequence is drawn and highlighted even past the per-tile cap', async () => {- const { state, source, coverage, centre, viewer } = setup();+ const { state, source, coverage, centre } = setup();const line = (n) => [[[centre.lon - 0.001, centre.lat + n * 1e-6],diff --git a/src/layers/transit/lifecycle.test.mjs b/src/layers/transit/lifecycle.test.mjsindex 0719acd95..bcc152576 100644--- a/src/layers/transit/lifecycle.test.mjs+++ b/src/layers/transit/lifecycle.test.mjs@@ -1406,7 +1406,6 @@ test('the selected card lands where the vehicle stopped, not short of it', async// segment ends left it a few metres behind, and then the render hold was// released with no frame scheduled to close the gap.const app = harness(t);- const start = Date.now();app.serve('mbta', () => ({status: 200,body: snapshot('mbta', 'MBTA', [vehicle('b', 42.36, -71.06, reported())], {diff --git a/src/layers/wind/index.test.mjs b/src/layers/wind/index.test.mjsindex 3b5e09697..175381031 100644--- a/src/layers/wind/index.test.mjs+++ b/src/layers/wind/index.test.mjs@@ -97,7 +97,7 @@ const complete = (model, extra = {}) => ({});test('local appearance and units reuse the loaded field; optional scalar requests remain separate', async () => {const requests = [];- const { layer, calls } = harness({+ const { layer } = harness({getSnapshot: async (args) => {requests.push(args);return complete(diff --git a/src/loadingFeedback.test.mjs b/src/loadingFeedback.test.mjsindex 01d00b1d6..19c660702 100644--- a/src/loadingFeedback.test.mjs+++ b/src/loadingFeedback.test.mjs@@ -93,7 +93,6 @@ test('deferred terminal notices lose ownership to newer acquisition epochs and d});test('share-follow failures use the universal top-center status instead of the bottom toast', () => {- const ui = readShellSource();const handler = shellMethod('_handleShareTrackingRestoreStatus').toString();assert.match(handler, /this\.showStatus\(message\)/);assert.match(handler, /this\.initialRestorePromise\.then\(showAfterStartupCover\)/);diff --git a/src/locationReadouts.test.mjs b/src/locationReadouts.test.mjsindex 79cc92489..9d38592e3 100644--- a/src/locationReadouts.test.mjs+++ b/src/locationReadouts.test.mjs@@ -1,5 +1,4 @@import { readShellSource, shellMethod } from './testSupport/readShellSource.mjs';-import { StyleManager } from './ui/applicationShell.js';import assert from 'node:assert/strict';import fs from 'node:fs';import path from 'node:path';diff --git a/src/mapSourceFocus.test.mjs b/src/mapSourceFocus.test.mjsindex b7beec325..0fa66e0da 100644--- a/src/mapSourceFocus.test.mjs+++ b/src/mapSourceFocus.test.mjs@@ -1,6 +1,5 @@-import { readShellSource, shellMethod } from './testSupport/readShellSource.mjs';+import { shellMethod } from './testSupport/readShellSource.mjs';import { expandApplicationHtml } from '../build/application-html.js';-import { StyleManager } from './ui/applicationShell.js';import { createHoverDisclosure, collapsePanelOnEscape } from './ui/panelDisclosure.js';import test from 'node:test';import assert from 'node:assert/strict';@@ -8,7 +7,6 @@ import { readFileSync } from 'node:fs';import { msg, t } from './i18n/index.js';// Exercise the installed event routes and central close method, without WebGL.-const source = readShellSource();const markup = expandApplicationHtml(readFileSync(new URL('../index.html', import.meta.url), 'utf8'));const locationMarkup = markup.slice(markup.indexOf('<div id="location-bar"'), markup.indexOf('<div id="left-panel-stack"'));const locationToggleMarkup = locationMarkup.match(/<button\b([^>]*\bid="location-bar-toggle"[^>]*)>([\s\S]*?)<\/button>/);diff --git a/src/panelEscape.test.mjs b/src/panelEscape.test.mjsindex e0588e9b2..d3d5cfc6d 100644--- a/src/panelEscape.test.mjs+++ b/src/panelEscape.test.mjs@@ -2,8 +2,6 @@ import { readShellSource } from './testSupport/readShellSource.mjs';import { onKeyDown as cockpitKeyDown } from './ui/cockpitInput.js';import { readFileSync as readRadioSource } from 'node:fs';const radioBindings = readRadioSource(new URL('./ui/radioBindings.js', import.meta.url), 'utf8');-const radioPresentation = readRadioSource(new URL('./ui/radioPresentation.js', import.meta.url), 'utf8');-const radioControlsSource = readRadioSource(new URL('./ui/radioControls.js', import.meta.url), 'utf8');import { bindPanelDisclosure, collapsePanelOnEscape } from './ui/panelDisclosure.js';import assert from 'node:assert/strict';import test from 'node:test';diff --git a/src/sharelink.celestial.test.mjs b/src/sharelink.celestial.test.mjsindex ad421dde7..230843584 100644--- a/src/sharelink.celestial.test.mjs+++ b/src/sharelink.celestial.test.mjs@@ -2,7 +2,6 @@ import { DisplayBindings } from './ui/displayBindings.js';import { LocationNavigation } from './ui/locationNavigation.js';import { VisualSettings } from './ui/visualSettings.js';import { readShellSource, shellMethod } from './testSupport/readShellSource.mjs';-import { StyleManager } from './ui/applicationShell.js';import { _claimContextVisualAuthority, setContextMode } from './ui/contextActions.js';import { _initGlobalContextPanel } from './ui/contextBindings.js';import { test } from 'node:test';diff --git a/src/ui/cockpitInput.js b/src/ui/cockpitInput.jsindex aed87f483..95fb2aee2 100644--- a/src/ui/cockpitInput.js+++ b/src/ui/cockpitInput.js@@ -64,7 +64,8 @@ export function onKeyDown(event) {event.preventDefault();event.stopImmediatePropagation();if (!this.active && !this.isEntryAllowed()) return;- const changed = this.active ? this.exit() : this.enter();+ if (this.active) this.exit();+ else this.enter();return;}}diff --git a/src/voice/realtimeNarration.test.mjs b/src/voice/realtimeNarration.test.mjsindex c9cd3e55f..e47a888c8 100644--- a/src/voice/realtimeNarration.test.mjs+++ b/src/voice/realtimeNarration.test.mjs@@ -135,7 +135,7 @@ test('an old progress completion leaves the active in-band response alone', asyn});test('user speech stops an audible progress line: cancel and clear its audio', async () => {- const { controller, sent, event, progressLine } = controllerFixture();+ const { sent, event, progressLine } = controllerFixture();await progressLine('resp_p');await event({ type: 'output_audio_buffer.started', response_id: 'resp_p' });sent.length = 0;diff --git a/tools/streetview-panorama.mjs b/tools/streetview-panorama.mjsindex a40d8d287..73010aa6c 100755--- a/tools/streetview-panorama.mjs+++ b/tools/streetview-panorama.mjs@@ -157,7 +157,7 @@ async function fetchTile(apiKey, session, panoId, z, x, y) {// ---------------------------------------------------------------------------async function stitchPanorama(apiKey, session, panoId, metadata, zoom) {- const { imageWidth, imageHeight, tileWidth, tileHeight } = metadata;+ const { tileWidth, tileHeight } = metadata;// Street View tile grids follow a fixed power-of-2 scheme:// zoom 0: 1×1 (360° FOV, entire panorama in one tile)