mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-22 03:02: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
+6
-9
@@ -5,7 +5,7 @@
|
||||
// metres), colours rgba in 0..1, rotations radians. No engine imports.
|
||||
|
||||
export const MOVER_KINDS = Object.freeze(['sprite', 'point', 'model']);
|
||||
export const MOVER_DEPTH_TESTS = Object.freeze(['normal', 'always']);
|
||||
const MOVER_DEPTH_TESTS = Object.freeze(['normal', 'always']);
|
||||
|
||||
const isFiniteNumber = (value) =>
|
||||
typeof value === 'number' && Number.isFinite(value);
|
||||
@@ -146,10 +146,6 @@ export function normalizeMoverSetOptions(options) {
|
||||
'model.minimumPixelSize',
|
||||
0,
|
||||
),
|
||||
maximumScale:
|
||||
model.maximumScale === undefined
|
||||
? Infinity
|
||||
: positive(model.maximumScale, 'model.maximumScale'),
|
||||
colorBlend: blend
|
||||
? { mode: blend.mode, amount: blend.amount ?? 0.5 }
|
||||
: null,
|
||||
@@ -305,8 +301,10 @@ export function createMoverStore(options) {
|
||||
});
|
||||
this.clean();
|
||||
},
|
||||
/** Indices changed since clean(), as [from, to), or null. */
|
||||
/** The changed range (one object, reused: read it at once), or null. */
|
||||
/**
|
||||
* Indices changed since clean(), as [from, to) (one object, reused: read
|
||||
* it at once), or null.
|
||||
*/
|
||||
dirty() {
|
||||
if (dirtyFrom === Infinity) return null;
|
||||
range.from = dirtyFrom;
|
||||
@@ -350,14 +348,13 @@ export function createMoverSet(
|
||||
commit();
|
||||
store.clean();
|
||||
},
|
||||
positionsView: () => store.positionsView(),
|
||||
// Whether what it draws has loaded (a model's glTF, an atlas image).
|
||||
ready: () => !destroyed && ready() === true,
|
||||
destroy() {
|
||||
if (destroyed) return;
|
||||
destroyed = true;
|
||||
destroy();
|
||||
store.release?.();
|
||||
store.release();
|
||||
},
|
||||
isDestroyed: () => destroyed,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user