Fix the review findings across the engines, layers, data and QA

Navara now matches Cesium where the review found it diverging: a flight
holds the camera inputs, camera.changed counts turns as Cesium does,
render requests made during a frame survive it, follow pinches zoom,
ground widths follow the pixel ratio and Cyber sonar reaches glyph caches
and models. On Cesium, a staged imagery swap keeps loading tiles, setView
replaces a running flight, and a cleared weather detail goes away.

The contract gains MoverSet.failed, maps.terrainRevision,
render.maxTextureSize and surface.sampleTerrainMostDetailed on every
engine, so layers retry failed models, key road heights by terrain,
size weather textures to the GPU and place Bhote Koshi cards on detailed
terrain.

Engine switches keep the live view, follows, focus, layer options and
cards: a pick hands over the exact pose, applies no address options and
pans no carried-over card; a history visit still applies its entry.

Layers put GhostMaps pins, cable landings, OSM Places and directions on
the measured surface without per-frame sampling, draw the Cockpit contact
dot, hide disabled CCTV on attach, and keep ALPR running outside secure
contexts. KML imports draw raised polygon fills, rotated and coloured
ground overlays and north-referenced icon headings, and report files
with nothing to draw.

QA scripts read the contract instead of Cesium internals (test:track is
109/109 again), wait for the camera to rest before clicking, and give
cold switches and parked engines realistic time. Docs follow the code.
This commit is contained in:
German Khokhlov committed 2026-11-09 21:34:42 +04:00
1 parent 69fbf5b38d
commit 0ef29781e5
276 files changed
+7217 -1517

No files matched your search

+24 -8
View File
@@ -2,8 +2,8 @@ import { bindOverlayHost } from '../../../overlays/bindOverlayHost.js';
// The submarine cables on the globe contract, the same on every engine:
// - cable paths: one engine.ground corridor set (2.5 px, each cable's own
// colour at 0.92), draped on the active map stack's surface;
// - landing points: a point mover set at the ground (the 6 px GeoJSON pin's
// width and colour);
// - landing points: a point mover set on the sampled surface (the 6 px
// GeoJSON pin's width and colour);
// - references: per cable and landing point, a tip point mover high enough
// for a ~66 px stem, sized on the sweep cadence, with its label on the
// shared world-overlay host;
@@ -14,6 +14,7 @@ import { bindOverlayHost } from '../../../overlays/bindOverlayHost.js';
import * as geo from '../../../geo/index.js';
import { isPointerFree } from '../../../data/inputOwnership.js';
import { rgbaFromCss } from '../../shared/color.js';
import { createSurfacePoints } from '../../shared/render/surfacePoints.js';
import {
featureLabel,
featureReference,
@@ -213,11 +214,10 @@ export function createCablesDisplay(
}
for (const set of tipSets.values()) set.commit();
if (markers) {
markerRows.forEach((row, index) =>
markers.set(index, {
show: engine.projector.horizonVisible(row.base),
}),
);
markerRows.forEach((row, index) => {
row.show = engine.projector.horizonVisible(row.base);
markers.set(index, { show: row.show });
});
markers.commit();
}
const winners = selectCableReferenceLabelWinners([...records.values()]);
@@ -365,6 +365,7 @@ export function createCablesDisplay(
items.push({ positions, ...style.path(feature), pickId: id });
for (const point of shapes.points)
rows.push({
cartographic: geo.cartographic.fromDegrees(point[0], point[1]),
position: geo.cartesian3.fromDegrees(point[0], point[1]),
base,
color: style.marker,
@@ -380,7 +381,7 @@ export function createCablesDisplay(
id: `${ID}-markers`,
kind: 'point',
capacity: rows.length,
depthTest: 'normal',
depthTest: { disableWithinM: 2500 },
pickable: true,
point: { sizePx: MARKER_PX, outlinePx: 0 },
});
@@ -457,7 +458,21 @@ export function createCablesDisplay(
try {
build(next);
dataset = next;
const surface = createSurfacePoints(engine, {
// The reference tips and stems stand over the landing points.
groups: () => [
{
set: markers,
points: markerRows,
exclude: [markers, stemBatch, ...tipSets.values()].filter(
Boolean,
),
},
],
request: wake,
});
removers.push(
surface.destroy,
engine.input.on('click', onClick, { pick: true }),
engine.camera.moveEnd.addEventListener(() => {
gate.markDirty();
@@ -465,6 +480,7 @@ export function createCablesDisplay(
}),
engine.frames.preRender.addEventListener(sweep),
);
surface.place();
publisher.show();
// A hide cleared the host source: an identical cohort republishes.
resetSignature();