fix(vessels): upload Navara chevrons and restore click focus

Fix delayed and growing mover bank commits, reject stale hidden model picks, and route world-focus through the engine. Strengthen vessel parity and performance checks without changing thresholds.
This commit is contained in:
German Khokhlov committed 2026-10-22 12:31:59 +04:00
1 parent 69a78710cc
commit c8a4f3ed98
10 files changed
+96 -7

No files matched your search

+1
View File
@@ -264,6 +264,7 @@ export class StyleManager extends ShellFacade {
this._layerBindings = new LayerBindings({
viewer,
engine,
services: {
imageryHost: () =>
resolveImageryHost({
+3 -1
View File
@@ -13,6 +13,7 @@ import { registerNavigationAuthorityListener } from '../navigationPolicy.js';
export class LayerBindings {
constructor({
viewer,
engine,
services,
readControls,
operations,
@@ -23,6 +24,7 @@ export class LayerBindings {
this,
{
viewer,
engine,
services,
readControls,
_feedback: feedback,
@@ -71,7 +73,7 @@ export class LayerBindings {
routeWorldFocusRequest(
event,
(detail, fly) => this._runExplicitWorldFocus(detail, fly),
(detail) => flyToWorldTarget(this.viewer, detail),
(detail) => flyToWorldTarget(this.engine ?? this.viewer, detail),
);
this._removeWorldRequestFocusListener = registerWorldFocusRequestListener(
window,
+18
View File
@@ -152,3 +152,21 @@ test('weather shell supplies live imagery hosts to wind and observations and rel
owner.disconnect();
for (const id of ids) assert.equal(attached.get(id), null);
});
test('world focus uses the engine when the shell has no Cesium viewer', async (t) => {
const { requestWorldFocus } = await import('../worldFocus.js');
replaceWindow(t, new EventTarget());
const engine = createFakeEngine();
let target;
engine.camera.flyToSphere = (sphere) => { target = sphere.center; };
const owner = new LayerBindings({
viewer: null, engine, services: {}, readControls: () => ({}),
operations: { _runExplicitWorldFocus: (_detail, fly) => fly() },
});
owner.observeCamera();
const position = { x: 6378137, y: 0, z: 0 };
requestWorldFocus({ kind: 'vessel', id: '111', position });
assert.deepEqual(target, position);
owner.stop();
});