mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 16:52:20 +00:00
Cut duplicated and dead code across the engines, the layers and the QA scripts
- src/geo drops the ported debug argument checks and the tests that bitExact already covers; package boundaries accept a directory entry, so src/geo/ is listed once per group. - Cesium no longer carries movers and lines nobody draws with: they are optional engine capabilities. The fake engine and the Cesium camera use the shared cameraMath; unused contract tables, clock.ticked, the 'finest' surface detail and Navara click statistics are gone. - ALPR keeps one overlay core and one presentation model for both engines, bikeshare one station bookkeeping, the Navara ground effects one definition helper; image atlases, view centres, mover banks and colours are shared. - The legacy switch route, the clock offset and rate controls and other unused exports are removed. - The acceptance runs the Navara draw, geo import and scope checks; scenarios use the harness switch and page helpers; the main chunk check keeps the size budget only and runs once in CI.
This commit is contained in:
1 parent
c502404e1d
commit
7abf74518f
272 files changed
+4828
-10213
No files matched your search
@@ -2,7 +2,7 @@ import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import * as geo from '../../geo/index.js';
|
||||
import { assertGlobeEngine, engineCapabilities } from '../contract.js';
|
||||
import { cesiumFovy, orientationVectors } from './cameraMath.js';
|
||||
import { cesiumFovy, orientationVectors } from '../cameraMath.js';
|
||||
import { createNavaraEngine } from './createNavaraEngine.js';
|
||||
|
||||
const { cartesian2, cartesian3, math } = geo;
|
||||
@@ -138,7 +138,6 @@ test('the engine clock is the app clock, latched on the view preUpdate before fr
|
||||
const engine = createNavaraEngine(view, { hooks, appClock });
|
||||
assert.equal(engine.clock.now(), 2_000_000);
|
||||
const seen = [];
|
||||
engine.clock.ticked.addEventListener((time) => seen.push(['ticked', time]));
|
||||
for (const name of ['preUpdate', 'preRender', 'postRender'])
|
||||
engine.frames[name].addEventListener(() =>
|
||||
seen.push([name, engine.clock.frameTime()]),
|
||||
@@ -149,7 +148,6 @@ test('the engine clock is the app clock, latched on the view preUpdate before fr
|
||||
view.emit('preRender', 2);
|
||||
view.emit('postRender', 3);
|
||||
assert.deepEqual(seen, [
|
||||
['ticked', 2_000_016],
|
||||
['preUpdate', 2_000_016],
|
||||
['preRender', 2_000_016],
|
||||
['postRender', 2_000_016],
|
||||
@@ -158,7 +156,7 @@ test('the engine clock is the app clock, latched on the view preUpdate before fr
|
||||
engine.destroy();
|
||||
wall += 16;
|
||||
view.emit('preUpdate', 4);
|
||||
assert.equal(seen.length, 4, 'no tick after destroy');
|
||||
assert.equal(seen.length, 3, 'no frame after destroy');
|
||||
});
|
||||
|
||||
test('render requests are forceUpdate and continuous mode is Navara animation', () => {
|
||||
|
||||
Reference in new issue
Block a user