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

+1 -1
View File
@@ -7,7 +7,7 @@
// PickableInstancedMeshWrapper so Navara's pick pass sees each instance;
// pickIds.js turns its batch ids back into instances. commit() uploads and
// asks for one frame (view.forceUpdate); per-frame work runs only on frames
// the view draws anyway (S5), so an idle view stays idle.
// the view draws anyway, so an idle view stays idle.
import { withFrameUpdates } from '../frameDescriptor.js';
import {
+5 -6
View File
@@ -1,10 +1,10 @@
// The three side of a Navara model set: the glTF loaded once, one
// InstancedMesh per mesh in it (all instances share the model's meshes),
// each instance placed by position, orientation and scale relative to an
// origin near the camera. Cesium's minimumPixelSize/maximumScale are kept on
// the CPU once per drawn frame (models are few: tracked and proximity
// aircraft), and the instance colour is mixed into the surface colour
// (colorBlend), or the model drawn unlit.
// origin near the camera. Cesium's minimumPixelSize is kept on the CPU once
// per drawn frame (models are few: tracked and proximity aircraft), and the
// instance colour is mixed into the surface colour (colorBlend), or the model
// drawn unlit.
import {
Box3,
@@ -25,7 +25,7 @@ import { createModelTint } from './modelTint.js';
* besides the sun. Navara's sky light alone left it grey-brown at dawn.
* The instance colour is applied after lighting, independently of this share.
*/
export const MODEL_AMBIENT = 0.5;
const MODEL_AMBIENT = 0.5;
/**
* The distance Cesium sizes a model's minimumPixelSize at (Camera
@@ -159,7 +159,6 @@ export function createModelMover(
const pixels = (2 * radius * scale) / (footprint * distance);
if (pixels < model.minimumPixelSize)
scale *= model.minimumPixelSize / pixels;
scale = Math.min(scale, model.maximumScale);
drawnPx[index] = (pixels * scale) / scales[index];
}
scratchTranslation.set(
+1 -1
View File
@@ -23,7 +23,7 @@ export function atlasUvRects(cells, keys) {
}
/** The camera distance from the origin past which the origin moves. */
export const recentreDistance = (cameraHeight) =>
const recentreDistance = (cameraHeight) =>
Math.max(1_000, 0.1 * Math.abs(cameraHeight));
/**