Timed imagery reads the drawn globe tiles through internals.js

The tiles the globe last drew are a private Cesium field: read through
globeTilesDrawn, whose field the internals test checks the installed
Cesium still declares.
This commit is contained in:
Sameh Khamis committed 2026-11-11 17:20:58 -08:00
1 parent ee9de4edda
commit a043854f27
3 files changed
+21 -1

No files matched your search

+11
View File
@@ -211,6 +211,17 @@ export function trimGlobeTiles(globe) {
globe?._surface?._tileReplacementQueue?.trimTiles(0);
}
/**
* The globe tiles the last frame drew, for timed imagery to tell when a
* frame's own imagery is what they draw (`imageryFrames.js`); Cesium says
* only whether every tile has loaded, prefetched layers included.
* @param {object} globe Cesium Globe.
* @returns {object[]} Cesium QuadtreeTiles.
*/
export function globeTilesDrawn(globe) {
return globe?._surface?._tilesToRender ?? [];
}
const NO_CREDITS = Object.freeze([]);
/**