mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Merge main through #1634 into the renderer seam
Brings in the CCTV opening camera, the Iceland, Giroc HLS, Taiwan, Quebec, Ottawa and world camera packs, the world clock and timeline, the zoom-out limit and registered-only layer state, ported onto the renderer contract: the sky follows the world time through the frame port's setTime in preUpdate, the Quebec overlay reads the eye, projects and redraws through the camera, query and frame ports, launches hide pending missions through their draw records, and mission orbit rings turn on the scene clock.
This commit is contained in:
commit
2b60531c3c
170 files changed
+44096
-319
No files matched your search
@@ -424,3 +424,30 @@ test('the layer coordinator replaces in-flight share layers with the navigated s
|
||||
);
|
||||
coordinator.destroy();
|
||||
});
|
||||
|
||||
test('a link made away from live carries its world time to the page that opens it', (t) => {
|
||||
installTab(t, SHARE_A);
|
||||
const worldTime = Date.UTC(2026, 9, 30, 6, 15, 42);
|
||||
const sharer = new ShareLinkManager(bindFakeCesiumCamera(fakeViewer()), {
|
||||
worldClock: { isLive: () => false, now: () => worldTime + 400 },
|
||||
});
|
||||
const link = sharer.buildLink({ nowMs: Date.UTC(2026, 10, 1) });
|
||||
sharer.destroy();
|
||||
const code = new URL(link).pathname.split('/').at(-1);
|
||||
const opener = new ShareLinkManager(bindFakeCesiumCamera(fakeViewer()), {
|
||||
initialShareCode: code,
|
||||
});
|
||||
assert.equal(opener.parseInitialHash().worldTime, worldTime);
|
||||
opener.destroy();
|
||||
|
||||
const live = new ShareLinkManager(bindFakeCesiumCamera(fakeViewer()), {
|
||||
worldClock: { isLive: () => true, now: () => worldTime },
|
||||
});
|
||||
const liveCode = new URL(live.buildLink()).pathname.split('/').at(-1);
|
||||
live.destroy();
|
||||
const liveOpener = new ShareLinkManager(bindFakeCesiumCamera(fakeViewer()), {
|
||||
initialShareCode: liveCode,
|
||||
});
|
||||
assert.equal(liveOpener.parseInitialHash().worldTime, null);
|
||||
liveOpener.destroy();
|
||||
});
|
||||
Reference in new issue
Block a user