mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
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:
commit
0ecbfbecd0
123 files changed
+5917
-1471
No files matched your search
@@ -108,6 +108,9 @@ export class ShareLinkManager {
|
||||
this._celestialRingEnabled = false;
|
||||
this._scopeEnabled = true;
|
||||
this._scopeFeatherPct = 100;
|
||||
// How strongly the scope mask shows, 0..100; 100 (the full mask) is the
|
||||
// default and leaves `sco` out of the link.
|
||||
this._scopeOpacityPct = 100;
|
||||
// null = the altitude-adaptive terminus (the default). A number pins the
|
||||
// outside-fill opacity as a percent, 94..100. (`sce`, 2026-08-17)
|
||||
this._scopeTerminusPct = null;
|
||||
@@ -291,6 +294,10 @@ export class ShareLinkManager {
|
||||
// mirrors live state for the link this session generates, so it must match
|
||||
// the mask, not the archive.)
|
||||
scopeFeatherPct: clampScopeFeatherPct(parseOr(params.get('scf'), 35)),
|
||||
scopeOpacityPct: Math.max(
|
||||
0,
|
||||
Math.min(100, Math.round(parseOr(params.get('sco'), 100))),
|
||||
),
|
||||
// Absent (or non-numeric) `sce` = adaptive (null), the default behavior;
|
||||
// a value pins the terminus opacity percent, clamped into the SUPPORTED
|
||||
// 94..100 band. `sce=0` used to survive as a sub-94 terminus — a hole in
|
||||
@@ -459,6 +466,7 @@ export class ShareLinkManager {
|
||||
celestialRing: visualCurrent ? state.celestialRing : undefined,
|
||||
scopeEnabled: visualCurrent ? state.scopeEnabled : undefined,
|
||||
scopeFeatherPct: visualCurrent ? state.scopeFeatherPct : undefined,
|
||||
scopeOpacityPct: visualCurrent ? state.scopeOpacityPct : undefined,
|
||||
scopeTerminusPct: visualCurrent ? state.scopeTerminusPct : undefined,
|
||||
mapStack: mapCurrent ? state.mapStack : undefined,
|
||||
panelState,
|
||||
@@ -625,6 +633,12 @@ export class ShareLinkManager {
|
||||
if (typeof extras.scopeFeatherPct === 'number') {
|
||||
this._scopeFeatherPct = clampScopeFeatherPct(extras.scopeFeatherPct);
|
||||
}
|
||||
if (typeof extras.scopeOpacityPct === 'number') {
|
||||
this._scopeOpacityPct = Math.max(
|
||||
0,
|
||||
Math.min(100, Math.round(extras.scopeOpacityPct)),
|
||||
);
|
||||
}
|
||||
if (extras.scopeTerminusPct === null) this._scopeTerminusPct = null;
|
||||
else if (typeof extras.scopeTerminusPct === 'number') {
|
||||
this._scopeTerminusPct = clampScopeTerminusPct(extras.scopeTerminusPct);
|
||||
@@ -730,6 +744,8 @@ export class ShareLinkManager {
|
||||
params.set('cr', this._celestialRingEnabled ? '1' : '0');
|
||||
params.set('sc', this._scopeEnabled ? '1' : '0');
|
||||
params.set('scf', Math.round(this._scopeFeatherPct).toString());
|
||||
if (this._scopeOpacityPct !== 100)
|
||||
params.set('sco', String(this._scopeOpacityPct));
|
||||
// Only written when pinned — an absent `sce` IS the adaptive default, so a
|
||||
// shared link never freezes the ramp for the recipient by accident. The
|
||||
// same 94..100 clamp applies on the way OUT, so a link can never carry an
|
||||
|
||||
Reference in new issue
Block a user