mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 16:52:20 +00:00
Merge origin/main into german/navara
Main's work since the last merge runs on the globe contract where this branch draws through it: - Satellites take main's classes, sensors, ground-track bearings and world time through contract points and rings; launches take the world timeline. The satellite's cockpit subject dims, copies positions and refocuses through the contract. - Flights, military and vessels keep main's photos, retry cool-downs, world-clock motion and the ship bridge. Trail seeding in the shared aircraft tracking reads each layer's clock. - Traffic's flow lines and single build draw as ground sets; transit keeps dated credits and the new cities; CCTV opens the nearest camera, and the Quebec overlay projects and tests the horizon through the contract. Bikeshare's manager cleanup moved into its current lifecycle. - Draw keeps main's mark actions across engine switches. - The world clock in src/time is plain numbers again: Julian dates come from src/geo, the frame loop is injected, and the binding to Cesium's viewer clock lives in src/globe/cesium/worldTime.js. Navara's sky and sun follow the world time; live feeds keep the real time. - The cockpit's orbital view, with its sensor zoom, ground focus and satellite switching, stays Cesium-only for now: Navara hides its entry. Its Cesium calls live in src/globe/cesium/orbital.js. The ship bridge's finest-detail waterline sampling is Cesium-only too; Navara samples loaded geometry and detailed terrain. Both are in KNOWN-ISSUES. - Main's tests that built a Cesium scene by hand run on the fake engine. - The boundary manifest is regenerated, the coupling baseline records the orbital and bridge code, and the main-chunk baseline is raised to the merged size: main itself grew its main chunk by 93,959 bytes (gzip -9) since the previous merge base.
This commit is contained in:
commit
2a761aa5eb
452 files changed
+73437
-1752
No files matched your search
@@ -3,12 +3,15 @@ import assert from 'node:assert/strict';
|
||||
import * as geo from '../../geo/index.js';
|
||||
import { createTracking as createFlightsTracking } from '../flights/tracking.js';
|
||||
import { createTracking as createMilitaryTracking } from '../military/tracking.js';
|
||||
import { RENDER_DELAY_SEC as FLIGHT_DELAY_SEC } from '../flights/policy.js';
|
||||
import { RENDER_DELAY_SEC as MILITARY_DELAY_SEC } from '../military/policy.js';
|
||||
|
||||
// Both observed aircraft layers build their tracking from the shared aircraft
|
||||
// tracking; each must still reach it with its own identity and rules.
|
||||
const LAYERS = [
|
||||
{
|
||||
name: 'flights',
|
||||
delaySec: FLIGHT_DELAY_SEC,
|
||||
createTracking: createFlightsTracking,
|
||||
layerId: 'flights',
|
||||
layerName: 'Live Flights',
|
||||
@@ -19,6 +22,7 @@ const LAYERS = [
|
||||
},
|
||||
{
|
||||
name: 'military',
|
||||
delaySec: MILITARY_DELAY_SEC,
|
||||
createTracking: createMilitaryTracking,
|
||||
layerId: 'military',
|
||||
layerName: 'Military Flights',
|
||||
@@ -123,6 +127,25 @@ for (const layer of LAYERS) {
|
||||
);
|
||||
});
|
||||
|
||||
test(`${layer.name} trail seeds only fixes behind its delayed layer clock`, () => {
|
||||
const { tracking, flightState } = harness(layer);
|
||||
const cutoffMs = Date.parse('2026-10-24T12:00:00Z');
|
||||
const history = [-1000, 0, 1000].map((offset, index) => ({
|
||||
timeMs: cutoffMs + offset,
|
||||
position: geo.cartesian3.fromDegrees(-97 + index * 0.01, 30, 1000),
|
||||
}));
|
||||
flightState.now = () => cutoffMs + layer.delaySec * 1000;
|
||||
flightState._positionHistory = new Map([['abc123', history]]);
|
||||
flightState._renderer = null;
|
||||
tracking._startTrail('abc123');
|
||||
assert.deepEqual(
|
||||
flightState._trailPositions,
|
||||
history.slice(0, 2).map((fix) => fix.position),
|
||||
);
|
||||
assert.notEqual(flightState._trailPositions[0], history[0].position);
|
||||
flightState.lifetime.abort();
|
||||
});
|
||||
|
||||
test(`${layer.name} backfill places and thins history by its own rules`, async () => {
|
||||
const leading = harness(layer, {
|
||||
track: [{ observedAtMs: 1000, latitude: 35, longitude: -106 }],
|
||||
|
||||
Reference in new issue
Block a user