The renderer seam: clicks go to the newest tool, recession and display groups through the contract, drawing at parity with Cesium

- Clicks: when two tools want the globe's clicks, the newest takes them and the older is told and turns itself off; a click is decided when it arrives, and ambient selection fires only when no tool holds the pointer. The "map is busy" paths and their strings are removed.
- Recession: the limb fade is shared (src/render/recession.js) and reaches icon and model sets through SetSpec.recede; tuning applies on the next frame.
- Display panel groups are published through src/ui/displayGroups.js; the Weather group and src/viewWeather.js are removed.
- Draw port: a set whose icons only move is moved in place, and models that did not change are not restyled each frame, so moving fleets cost what they did when drawn directly; an untinted, fully opaque model is drawn without a colour.
- Conformance: input.lease.lost checks the new lease inside onLost and reports a throwing onLost; draw.sets.recede covers model sets.
- QA scripts read the renderer host instead of internals the seam replaced.
This commit is contained in:
Sameh Khamis committed 2026-11-15 17:03:09 -08:00
1 parent a0d299523d
commit 0ab31d4fb8
130 files changed
+5438 -1674

No files matched your search

+26 -8
View File
@@ -29,14 +29,32 @@ export const useDisplayStore = defineStore('gev-display', () => {
}
/**
* The Weather group, `{live, status, values}` (values in percent by
* condition); null where the renderer draws no weather.
* The groups an application adds under Effects, in the order first
* published: each `{id, rows}`. A row is a `toggle` (`{kind, id, label,
* icon?, title?, checked, onChange(checked)}`), a `slider` (`{kind, id,
* label, min, max, value, onChange(value)}`, its value shown in percent)
* or a `note` (`{kind, id, text}`).
*/
const weather = shallowRef(null);
const groups = shallowRef([]);
/** @param {?object} next A fresh presentation of the Weather group. */
function publishWeather(next) {
weather.value = next && markRaw(next);
/**
* Show the group `id` as `group` describes it, in place where it is shown
* already; null takes it away.
* @param {string} id
* @param {?{rows: object[]}} group
*/
function publishGroup(id, group) {
const at = groups.value.findIndex((g) => g.id === id);
const next = [...groups.value];
if (!group) {
if (at < 0) return;
next.splice(at, 1);
} else {
const shown = markRaw({ id, rows: [...(group.rows ?? [])] });
if (at < 0) next.push(shown);
else next[at] = shown;
}
groups.value = next;
}
/**
@@ -130,8 +148,8 @@ export const useDisplayStore = defineStore('gev-display', () => {
publish,
models3d,
publishModels3d,
weather,
publishWeather,
groups,
publishGroup,
sky,
publishSky,
draw,