refactor(data): focus projects through the engine; readout follows a tracked visual's follow

Task 10b foundation.
- focusDeemphasis projects through the engine registered for the scene it
  is given (engineFromViewer(scene).projector), as iconOrientation already
  does, else Cesium's SceneTransforms. On Cesium the engine projector is
  SceneTransforms, so nothing changes there; on Navara the aircraft
  renderer's scene adapter is registered with the engine. Test with a fake
  engine.
- refreshTrackedReadout accepts a layer's tracked visual that names its
  follow handle (gevFollowHandle): engines without tracked entities
  republish the card through it. Test.
This commit is contained in:
German Khokhlov committed 2026-10-17 01:16:59 +04:00
1 parent 4dfcba8989
commit 443c581280
4 files changed
+71 -14

No files matched your search

+7
View File
@@ -333,6 +333,13 @@ test("on a globe engine the readout follows engine.camera.follow's plain-data la
recorder.calls.filter(({ op }) => op === 'set').at(-1).entries[0].details,
['409 km'],
);
// So does a layer's tracked visual that names its follow handle.
model = { ...model, details: ['410 km'] };
refreshTrackedReadout({ gevFollowHandle: handle });
assert.deepEqual(
recorder.calls.filter(({ op }) => op === 'set').at(-1).entries[0].details,
['410 km'],
);
handle.stop();
assert.equal(getActiveTrackedReadoutId(), null);
} finally {