mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Application extras come from the renderer plugin; framing, occlusion and panel drawing are contract ports
A renderer plugin may supply applicationHooks(renderer) for what only its renderer has (map engine, own credits, stale commands, QA handles). What every renderer should do moves onto the contract: controls.keepEarthFramed (behind the keepEarthFramed capability), query.occlusionTest (behind occlusionTest), and panel drawing, which keepPanelRendering now does through resize and frame.renderNow through the contract. renderNow throws when the frame fails to draw. The Cesium port installs its zoom-out guard through keepEarthFramed (a setView no longer cancels its turn) and answers occlusionTest with the scene's probe; the stub answers it with a horizon test.
This commit is contained in:
1 parent
a755f63638
commit
619c19ea67
40 files changed
+737
-323
No files matched your search
Vendored
+10
@@ -201,6 +201,16 @@ export interface CameraControls {
|
||||
* the page.
|
||||
*/
|
||||
zoomInputs: Array<'wheel' | 'pinch' | 'rightDrag' | 'ctrlWheel'>;
|
||||
/**
|
||||
* `keepEarthFramed`: keep the whole Earth in reach and in frame as the
|
||||
* user zooms out. An outward user zoom goes no farther than about
|
||||
* 40,000 km, or than the height a camera command left the eye at when
|
||||
* that is higher (the user then zooms in from there), and from high up
|
||||
* it turns the view down toward the globe so the whole Earth stays in
|
||||
* frame. A camera command, a follow and a flight are not held to it, and
|
||||
* a camera command ends any turn under way. Off by default.
|
||||
*/
|
||||
keepEarthFramed?: boolean;
|
||||
}
|
||||
|
||||
export type CameraEvent =
|
||||
|
||||
Reference in new issue
Block a user