Check annotation visibility and frame marks through the renderer's ports

The annotation engine no longer imports Cesium. The camera assist tests
whether a fresh mark is in view against the frustum planes of the camera
port's view-projection, with the same one-metre sphere Cesium's culling
volume used, and asks the query port whether it is behind the globe. The
view-projection is in world coordinates, so the test now also holds when
the camera has a reference frame of its own. Framing uses the camera port
and the geo helpers for spheres, angles and distances. It leaves the
Cesium allow-list.

The window.__CESIUM__ dev hook the QA scripts read moves to the
application viewer module, which every app boot loads before the viewer
is made. A new test covers the assist: marks in view, off the frustum,
behind the globe, and a camera that cannot answer.
This commit is contained in:
Sameh Khamis committed 2026-11-07 04:13:56 -08:00
1 parent 9fe3e7633f
commit f509c688e8
4 files changed
+124 -39

No files matched your search

-1
View File
@@ -1,6 +1,5 @@
[
"dev/conformance/main.js",
"src/annotations/annotationEngine.js",
"src/annotations/drawTool.js",
"src/annotations/worldAnnotationRenderer.js",
"src/app/embed.js",