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

+8 -3
View File
@@ -5,8 +5,9 @@
* their scene.
*
* - camera: `pose()` from the double's camera (`viewer.camera`, else
* `viewer.scene.camera`): `positionWC`, `directionWC` and
* `positionCartographic`; `matrices()` from its `viewMatrix` and
* `viewer.scene.camera`): `positionWC`, `directionWC`,
* `positionCartographic` and `frustum.fovy` (none for an orthographic
* frustum, π/3 without a frustum); `matrices()` from its `viewMatrix` and
* `frustum.projectionMatrix`; `viewRectangle()` from its
* `computeViewRectangle()`, in degrees; events from its own `moveEnd`,
* `moveStart` and `changed`.
@@ -231,7 +232,11 @@ export function bindFakeCesiumScene(viewer, { draw = fakeDrawPort() } = {}) {
: { x: 0, y: 0, z: -1 },
up: { x: 0, y: 1, z: 0 },
right: { x: 1, y: 0, z: 0 },
fovy: Math.PI / 3,
// An orthographic frustum has none, as the Cesium port reports it.
fovy:
c?.frustum instanceof Cesium.OrthographicOffCenterFrustum
? undefined
: (c?.frustum?.fovy ?? Math.PI / 3),
aspectRatio: 1,
near: 1,
far: 5e8,