mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
133 lines
3.4 KiB
JavaScript
133 lines
3.4 KiB
JavaScript
/** Compose UI controls with the application's existing engines and layer instances. */
|
|
import { StyleManager as ApplicationShell } from './applicationShell.js';
|
|
import { LocationSearch } from './location.js';
|
|
import {
|
|
CITY_POIS,
|
|
GLOBE_VIEW,
|
|
flyToGlobeView,
|
|
flyToPresetLocation,
|
|
flyToPOI,
|
|
searchAndFlyTo,
|
|
} from '../locations.js';
|
|
import { interruptCameraMotion } from '../cameraVerbs.js';
|
|
import { IntelHUD } from '../hud.js';
|
|
import { ShareLinkManager } from '../sharelink.js';
|
|
import { OrbitController } from '../orbit.js';
|
|
import {
|
|
CelestialRing,
|
|
getKeyholeFadeTuning,
|
|
isCelestialRingStyleSupported,
|
|
setKeyholeFadeTuning,
|
|
} from '../celestialRing.js';
|
|
import {
|
|
destroyTrackedReadout,
|
|
initTrackedReadout,
|
|
} from '../data/trackedReadout.js';
|
|
import {
|
|
destroyWorldOverlay,
|
|
initWorldOverlay,
|
|
} from '../overlays/worldOverlay.js';
|
|
import {
|
|
destroyDetection,
|
|
initDetection,
|
|
cycleMode as cycleDetectionMode,
|
|
getDetectionDiagnostics as readDetectionDiagnostics,
|
|
getDetectionTuning,
|
|
getMode as getDetectionMode,
|
|
setMode as setDetectionModeByLabel,
|
|
suspendDetection,
|
|
resumeDetection,
|
|
setDetectionStyle,
|
|
setDetectionTuning,
|
|
} from '../data/detection.js';
|
|
import { isTr3b, toggleTr3b } from '../data/tr3bRegistry.js';
|
|
import {
|
|
cachedGroundFloor,
|
|
cachedMeshFloor,
|
|
GROUND_FLOOR_LIFT_M,
|
|
meshFloorPreferred,
|
|
warmGroundFloor,
|
|
} from '../data/groundFloor.js';
|
|
import { sampleMeshFloorCells } from '../data/meshFloorSampler.js';
|
|
import {
|
|
holdContinuousRender,
|
|
releaseContinuousRender,
|
|
governorRequestRender,
|
|
} from '../renderGovernor.js';
|
|
import {
|
|
setScopeMaskEnabled,
|
|
isScopeMaskEnabled,
|
|
setScopeMaskFeather,
|
|
getScopeMaskFeather,
|
|
setScopeTerminusOverride,
|
|
getScopeTerminusOverride,
|
|
clampScopeTerminusPct,
|
|
} from '../scopeMask.js';
|
|
import {
|
|
fetchRegionalBrief,
|
|
regionalDistanceM,
|
|
weatherCodeLabel,
|
|
} from '../data/regionalBrief.js';
|
|
|
|
export class StyleManager extends ApplicationShell {
|
|
constructor(viewer, options = {}) {
|
|
super(viewer, {
|
|
...options,
|
|
services: {
|
|
CITY_POIS,
|
|
GLOBE_VIEW,
|
|
flyToGlobeView,
|
|
flyToPresetLocation,
|
|
flyToPOI,
|
|
searchAndFlyTo,
|
|
interruptCameraMotion,
|
|
IntelHUD,
|
|
ShareLinkManager,
|
|
OrbitController,
|
|
CelestialRing,
|
|
getKeyholeFadeTuning,
|
|
isCelestialRingStyleSupported,
|
|
setKeyholeFadeTuning,
|
|
destroyTrackedReadout,
|
|
initTrackedReadout,
|
|
destroyWorldOverlay,
|
|
initWorldOverlay,
|
|
destroyDetection,
|
|
initDetection,
|
|
cycleDetectionMode,
|
|
readDetectionDiagnostics,
|
|
getDetectionTuning,
|
|
getDetectionMode,
|
|
setDetectionModeByLabel,
|
|
suspendDetection,
|
|
resumeDetection,
|
|
setDetectionStyle,
|
|
setDetectionTuning,
|
|
isTr3b,
|
|
toggleTr3b,
|
|
cachedGroundFloor,
|
|
cachedMeshFloor,
|
|
GROUND_FLOOR_LIFT_M,
|
|
meshFloorPreferred,
|
|
warmGroundFloor,
|
|
sampleMeshFloorCells,
|
|
holdContinuousRender,
|
|
releaseContinuousRender,
|
|
governorRequestRender,
|
|
setScopeMaskEnabled,
|
|
isScopeMaskEnabled,
|
|
setScopeMaskFeather,
|
|
getScopeMaskFeather,
|
|
setScopeTerminusOverride,
|
|
getScopeTerminusOverride,
|
|
clampScopeTerminusPct,
|
|
fetchRegionalBrief,
|
|
regionalDistanceM,
|
|
weatherCodeLabel,
|
|
LocationSearch,
|
|
...options.services,
|
|
},
|
|
});
|
|
}
|
|
}
|