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:
German Khokhlov committed 2026-11-05 13:32:39 +04:00
1 parent c502404e1d
commit 7abf74518f
272 files changed
+4828 -10213

No files matched your search

+22 -16
View File
@@ -96,21 +96,25 @@ test('crop: a slow render gets one bounded fresh-frame recovery request', async
let listener = null;
try {
globalThis.document = { hidden: false };
const scene = {
postRender: {
addEventListener(next) {
listener = next;
return () => {
if (listener === next) listener = null;
};
const engine = {
frames: {
postRender: {
addEventListener(next) {
listener = next;
return () => {
if (listener === next) listener = null;
};
},
},
},
requestRender() {
requests += 1;
if (requests === 2) queueMicrotask(() => listener?.());
render: {
request() {
requests += 1;
if (requests === 2) queueMicrotask(() => listener?.());
},
},
};
assert.equal(await renderFreshPointerFrame({ scene }), true);
assert.equal(await renderFreshPointerFrame(engine), true);
assert.equal(requests, 2, 'only the pointer path retries once');
assert.equal(listener, null, 'the successful listener is removed');
} finally {
@@ -123,13 +127,15 @@ test('crop: a hidden document never starts the recovery request', async () => {
let requests = 0;
try {
globalThis.document = { hidden: true };
const scene = {
postRender: { addEventListener: () => () => {} },
requestRender() {
requests += 1;
const engine = {
frames: { postRender: { addEventListener: () => () => {} } },
render: {
request() {
requests += 1;
},
},
};
assert.equal(await renderFreshPointerFrame({ scene }), false);
assert.equal(await renderFreshPointerFrame(engine), false);
assert.equal(requests, 0);
} finally {
globalThis.document = originalDocument;