mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Merge main through #1495 into the renderer seam
Brings in radio country coverage (#1206), the restored format scope (#1527), the zoom-out guard (#1522), voice geometry and OSM places (#846) and paired traffic flow density (#1495). What main added that reached Cesium or the viewer now goes through the renderer: - The zoom-out guard reads the Cesium camera controller's own input, so it moves into the adapter (src/render/cesium/zoomOutGuard.js). The application installs it through the scene's viewer hooks, and a scene whose renderer gives no guard starts without one. - OSM places draws its points as a draw set, clamped to the ground. - The voice area actions read the view box and the view centre from the camera port. - The voice workflow harness is test support, named as such where the recent-imagery doubles are.
This commit is contained in:
commit
fd42fc0afd
136 files changed
+17399
-1120
No files matched your search
@@ -5,7 +5,7 @@
|
||||
* the viewer behind a renderer it made, the photoreal base tileset the scene
|
||||
* loads into that viewer, and the viewer hooks the scene hands the
|
||||
* application (stale command trimming, inline panel rendering, whether an
|
||||
* entity is the viewer's own). The scene imports this module and no other
|
||||
* entity is the viewer's own, the zoom-out guard). The scene imports this module and no other
|
||||
* part of the adapter (`src/render/noCesiumOutsideRender.test.mjs`).
|
||||
*/
|
||||
import * as Cesium from 'cesium';
|
||||
@@ -13,6 +13,7 @@ import { cesiumRenderer, cesiumViewerOf } from './appRenderer.js';
|
||||
import { loadPhotorealisticTileset } from './google3d.js';
|
||||
import { keepPanelRendering } from './panelRendering.js';
|
||||
import { trimStaleSceneCommands } from './sceneCommandRelease.js';
|
||||
import { installZoomOutGuard } from './zoomOutGuard.js';
|
||||
|
||||
export { cesiumRenderer, cesiumViewerOf };
|
||||
|
||||
@@ -55,5 +56,8 @@ export function applicationViewerHooks(viewer) {
|
||||
// Whether an entity is one of the viewer's own (Cockpit asks whether
|
||||
// the aircraft it flies still draws).
|
||||
viewerDrawsEntity: (entity) => viewer.entities.contains(entity),
|
||||
// Keeps outward user zooms bounded and the Earth framed; returns its
|
||||
// disposer (see zoomOutGuard.js).
|
||||
installZoomOutGuard: (options) => installZoomOutGuard(viewer, options),
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user