Merge origin/main into the renderer-contract branch: the procedural fleet models drawn through the renderer's model sets

Aircraft, military, local ADS-B, vessel, transit and rail models come from
the fleet model set, loaded up front and drawn life size through the draw
port's models sets; no layer touches the viewer or Cesium outside
src/render/cesium/. The models capability gains glTF bytes (gltf), a
per-axis stretch (axisScale), a colour for tinted parts (maskColor) and a
cut below the origin (clip: 'belowOrigin'), with conformance checks.

Main's rail layer and Data Library are ported to the ports; the CCTV
footprint probe keeps the globe-terrain clamp through the query port.
This commit is contained in:
Sameh Khamis committed 2026-11-13 14:14:42 -08:00
commit e3865f462f
533 files changed
+55738 -2518

No files matched your search

+44
View File
@@ -451,3 +451,47 @@ test('a link made away from live carries its world time to the page that opens i
assert.equal(liveOpener.parseInitialHash().worldTime, null);
liveOpener.destroy();
});
test('a copied link carries the Data Library selection to a clean recipient', (t) => {
installTab(t, SHARE_A);
const sharer = new ShareLinkManager(bindFakeCesiumCamera(fakeViewer()));
sharer.setLibraryParamsEncoder((params) => params.set('lib', '03.0a'));
const code = new URL(sharer.buildLink()).pathname.split('/').at(-1);
sharer.destroy();
const opener = new ShareLinkManager(bindFakeCesiumCamera(fakeViewer()), { initialShareCode: code });
assert.deepEqual(opener.parseInitialHash().library, ['03', '0a']);
assert.deepEqual(opener.initialLibraryTokens, ['03', '0a']);
opener.destroy();
// A link with every library entry off is a share that switches none on.
const none = new ShareLinkManager(bindFakeCesiumCamera(fakeViewer()));
const noneCode = new URL(none.buildLink()).pathname.split('/').at(-1);
none.destroy();
const noneOpener = new ShareLinkManager(bindFakeCesiumCamera(fakeViewer()), {
initialShareCode: noneCode,
});
noneOpener.parseInitialHash();
assert.deepEqual(noneOpener.initialLibraryTokens, []);
noneOpener.destroy();
// A page opened without a share leaves the library its stored selection.
installTab(t, '');
const plain = new ShareLinkManager(bindFakeCesiumCamera(fakeViewer()));
plain.parseInitialHash();
assert.equal(plain.initialLibraryTokens, null);
plain.destroy();
});
test('a share navigated to in this tab hands its library tokens over', (t) => {
const tab = installTab(t, SHARE_A);
const manager = new ShareLinkManager(bindFakeCesiumCamera(fakeViewer()));
manager.parseInitialHash();
const received = [];
manager.setLibraryShareListener((tokens) => received.push(tokens));
manager.watchNavigation(() => {});
tab.navigate(`${SHARE_B}&lib=01`);
tab.navigate(SHARE_A);
tab.back();
assert.deepEqual(received, [['01'], [], ['01']]);
manager.destroy();
});