Put the DISPLAY scope mask over Navara, its terminus following the engine camera's height

This commit is contained in:
German Khokhlov committed 2026-11-03 21:46:37 +04:00
1 parent ef174b0ff7
commit 5983c663bd
5 files changed
+599 -98

No files matched your search

+2
View File
@@ -22,6 +22,7 @@ import {
attachNavaraAnnotations,
attachNavaraDraw,
attachNavaraGeoImport,
attachNavaraScopeMask,
} from './navaraTools.js';
import { createRecentImageryPanel } from '../ui/recentImagery.js';
@@ -495,6 +496,7 @@ export function attachViewerlessTools(
});
attachNavaraDraw(tools, { ...context, annotations }, { signal, defer });
attachNavaraGeoImport(tools, context, { signal, defer });
attachNavaraScopeMask(tools, context, { signal, defer });
// Voice on the engine (phase 3, Task 9): the W1 tools drive the engine;
// the Director uses the shared session; viewer-only tools declare availability.
const voiceCommands = attachSessionVoice({
+11
View File
@@ -4,6 +4,7 @@
import { createNavaraAnnotationRenderer } from '../annotations/navaraAnnotationRenderer.js';
import { navaraDrawSurface } from '../annotations/drawInputNavara.js';
import { destroyScopeMask, installScopeMask } from '../scopeMask.js';
import {
sessionAnnotations,
sessionDrawTool,
@@ -92,3 +93,13 @@ export function attachNavaraGeoImport(
defer(() => geoFileImport?.detachScene());
return geoFileImport;
}
/**
* The DISPLAY scope mask over this Navara scene: the same canvas as on
* Cesium, in the engine's container, its terminus following the engine
* camera's height. It goes with the engine.
*/
export function attachNavaraScopeMask({ engine }, _context, { defer }) {
installScopeMask(engine);
defer(() => destroyScopeMask());
}