mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
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:
1 parent
ee9de4edda
commit
a043854f27
3 files changed
+21
-1
No files matched your search
@@ -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([]);
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user