Merge main (e4708a81, #1745) into the renderer branch

Main brings the reviewed one-time-control and timeline-mark changes. They
keep this branch's renderer work: earthquakes draw through the draw port and
register their strong quakes as marks; the weather clock keeps `follows` beside
`world`; the weather layer measures ages and delays from the timeline time;
the Visual panel keeps its sky and weather groups under Effects. Tests that
moved time through the weather clock now move it on the world clock.
This commit is contained in:
Sameh Khamis committed 2026-11-14 22:08:39 -08:00
commit 0ecbfbecd0
123 files changed
+5917 -1471

No files matched your search

+23
View File
@@ -122,6 +122,29 @@ test('scope feather above 100% survives share parsing and serialization', () =>
clearTimeout(manager._debounceTimer);
});
test('scope opacity rides as sco only below full, and through the compact link', () => {
// Links without `sco`, every link made before it, open at full opacity.
assert.equal(makeManager('#v=2&lat=10&lon=20&scf=35').parseInitialHash().scopeOpacityPct, 100);
assert.equal(makeManager('#v=2&lat=10&lon=20&sco=40').parseInitialHash().scopeOpacityPct, 40);
assert.equal(makeManager('#v=2&lat=10&lon=20&sco=250').parseInitialHash().scopeOpacityPct, 100);
assert.equal(makeManager('#v=2&lat=10&lon=20&sco=-3').parseInitialHash().scopeOpacityPct, 0);
assert.equal(makeManager('#v=2&lat=10&lon=20&sco=x').parseInitialHash().scopeOpacityPct, 100);
const manager = makeManager();
manager.onToggleChange(false, true, {});
const before = manager._buildHashParams().toString();
assert.equal(manager._buildHashParams().has('sco'), false, 'full opacity writes nothing');
manager.onToggleChange(false, true, { scopeOpacityPct: 100 });
assert.equal(manager._buildHashParams().toString(), before);
manager.onToggleChange(false, true, { scopeOpacityPct: 45.4 });
assert.equal(manager._buildHashParams().get('sco'), '45');
assert.equal(sharedState(manager.buildLink()).scopeOpacityPct, 45);
manager.onToggleChange(false, true, { scopeOpacityPct: 100 });
assert.equal(manager._buildHashParams().has('sco'), false);
assert.equal(sharedState(manager.buildLink()).scopeOpacityPct, 100);
clearTimeout(manager._debounceTimer);
});
test('share-link serialization emits the current celestial state', () => {
const manager = makeManager();
manager.onToggleChange(false, false, { celestialRingEnabled: false });