Take the input dispatcher off Cesium: pointer input from the renderer's input port, picks from the query port

The dispatcher now builds on renderer.input and the query port, with
positions as plain {x, y}. Its viewer access count is zero and it leaves
the Cesium allow-list. Layers that read the raw engine pick read the Hit,
drawHit or event.native instead, and pickRegistry's resolvePickId and
pickContact take a Hit, with the raw versions kept in the Cesium adapter.

rendererOf gains findInput, provideUnboundInput and provideNativeClick.
event.native carries the engine's pick, drill and pickWindow, and picks
through the follow helper happen inside it. An unbound input port
survives the viewer being bound until it is released.

The query port's pick memo is now per task rather than per frame,
because Cesium's own picks advance the frame number. A click on the sky
skips the depth pass when nothing is on the ray. Touch contact search
keeps its eight-deep drill in a 14x14 window.
This commit is contained in:
Sameh Khamis committed 2026-11-09 00:47:30 -08:00
1 parent 6eb9ceef46
commit 8bcaced6ad
52 files changed
+1836 -484

No files matched your search

+2 -1
View File
@@ -1158,7 +1158,8 @@ test('vessel touch interaction yields to the first nearby flight behind map tile
// The click's shared drill: the 14 px touch window, at least 8 deep.
assert.deepEqual([width, height], [14, 14]);
assert.ok(limit >= 8);
return [tile, { id: 'a1b2c3' }];
// The flight's icon: a draw-set item.
return [tile, { id: { set: 'flights:1', id: 'a1b2c3' } }];
};
try {
harness.handler.click({ position: { x: 10, y: 20 } });