mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-21 18:52:18 +00:00
Every layer draws on both engines, so the per-engine availability machinery always answered yes. The renderer manifest is now the id to display map plus the wind flow backend; the catalog filter, the voice and QA-probe refusals and the engine-kind checks go with it. The Navara notice lists the same layers in the same words. Paths that read the Cesium viewer behind an engine that is always there are gone: the Recent Imagery viewer fallbacks, the shell's imagery-host service (one shared host module remains), the engineless map controller, viewer gates in voice actions, world packets and camera verbs, the orientation controls' tracked-entity fallback, and the Bhote Koshi and FIRMS Cesium-shaped paths. setCameraInputs, which nothing called, leaves the contract; suspensions remain. Smaller duplicates go too: one tracker-release helper for navigation and location, the no-op frame latch, missing-engine guards, one name for the injected display, flat bikeshare and installations displays, one overlay host and binder, one name per world-overlay method, and stub-viewer guards in the Cesium engine. Layers that still read the viewer keep the shared init(viewer, context) entry. Behaviour is unchanged on both engines. Viewer lines fall from 849 to 750 and engine-name literals from 32 to 27.
73 lines
2.2 KiB
JavaScript
73 lines
2.2 KiB
JavaScript
import { createDirectionsSource } from '../layers/directions/source.js';
|
|
/**
|
|
* @module directions
|
|
* @description Service bundle for the Directions layer.
|
|
*
|
|
* The layer itself lives in `src/layers/directions/` and draws through the
|
|
* globe contract (its render/display.js). This module is the one place that
|
|
* names the application's shared services — the render governor, the pick
|
|
* registry, the ground pick, the world overlay, the camera verbs, the shared
|
|
* ground floor and the pointer arbiter — and it re-exports the layer's pure
|
|
* helpers for the tests and the share-link code.
|
|
*/
|
|
|
|
import * as credits from './dataCredits.js';
|
|
import * as render from '../renderGovernor.js';
|
|
import * as picking from './pickRegistry.js';
|
|
import * as scenePick from './scenePick.js';
|
|
import { worldOverlayFor as overlays } from '../overlays/worldOverlay.js';
|
|
import * as camera from '../cameraVerbs.js';
|
|
import * as ground from './groundFloor.js';
|
|
import * as input from './inputOwnership.js';
|
|
import { createDirectionsLayer } from '../layers/directions/index.js';
|
|
|
|
/** The shared scene owners every Directions instance runs on. */
|
|
const directionsServices = Object.freeze({
|
|
credits,
|
|
render,
|
|
picking,
|
|
scenePick,
|
|
overlays,
|
|
camera,
|
|
ground,
|
|
input,
|
|
});
|
|
|
|
/** Construct one Directions layer over the application scene owners. */
|
|
export function createApplicationDirectionsLayer({
|
|
source = createDirectionsSource(),
|
|
createRenderer,
|
|
groundFloor = ground,
|
|
} = {}) {
|
|
return createDirectionsLayer({
|
|
services: { ...directionsServices, ground: groundFloor },
|
|
source,
|
|
createRenderer,
|
|
});
|
|
}
|
|
|
|
export {
|
|
DEFAULT_DIRECTIONS_MODE,
|
|
DIRECTIONS_MODES,
|
|
DIRECTIONS_POINTER_OWNER,
|
|
DIRECTIONS_ROUTE_COLOR,
|
|
POINTER_TOOL_EXITS,
|
|
STEP_ANCHOR_DEADLINE_MS,
|
|
STEP_ANCHOR_FAST_ATTEMPTS,
|
|
STEP_ANCHOR_RETRY_MS,
|
|
STEP_ANCHOR_SLOW_RETRY_MS,
|
|
createDirectionsStepOverlayEntry,
|
|
directionsRequestUrl,
|
|
directionsRowControls,
|
|
directionsStats,
|
|
directionsStepCopy,
|
|
directionsStepList,
|
|
normalizeDirectionsParams,
|
|
normalizeRoutePayload,
|
|
pointerBlockedMessage,
|
|
stepAnchorDelayMs,
|
|
stepIndexAtDistance,
|
|
stepMarkerHeightM,
|
|
stepMarkerIndices,
|
|
} from '../layers/directions/index.js';
|