mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-22 03:02:20 +00:00
refactor(cctv): isolate native rendering resources
Keep shared CCTV logic independent of Cesium, release the original renderer's resources, and guard retired initialization/media work. Preserve native marker, plane, volume, calibration and input behavior. Record keyless dev/preview validation and retain unresolved shell idle/terrain and photoreal acceptance gaps. Routine QA builds use empty Google and Cesium credentials and block paid maps before navigation.
This commit is contained in:
1 parent
f72bf6a774
commit
93c71ffc86
32 files changed
+1536
-740
No files matched your search
@@ -20,7 +20,7 @@ import { createIngestion } from './ingestion.js';
|
||||
import { createState } from './state.js';
|
||||
|
||||
/** Construct one layer with its own scene state and supplied application services. */
|
||||
export function createCctvLayer({ services, source }) {
|
||||
export function createCctvLayer({ services, source, rendererFactory }) {
|
||||
if (
|
||||
!['getCatalog', 'getHealth', 'getFrameUrl', 'getMediaUrl'].every(
|
||||
(key) => typeof source?.[key] === 'function',
|
||||
@@ -29,7 +29,7 @@ export function createCctvLayer({ services, source }) {
|
||||
throw new TypeError('A camera source is required');
|
||||
const state = createState({ services });
|
||||
const parts = {};
|
||||
const context = { state, services, parts, source };
|
||||
const context = { state, services, parts, source, rendererFactory };
|
||||
parts.calibration = createCalibration(context);
|
||||
parts.testing = createTesting(context);
|
||||
parts.projection = createProjection(context);
|
||||
@@ -94,7 +94,6 @@ export function createCctvLayer({ services, source }) {
|
||||
clearProbeClampOnDeactivation:
|
||||
parts.geometry.clearProbeClampOnDeactivation,
|
||||
cctvRecordNeedsActivation: parts.model.cctvRecordNeedsActivation,
|
||||
bindCctvWorldClickGesture: parts.selection.bindCctvWorldClickGesture,
|
||||
setActiveCamera: parts.selection.setActiveCamera,
|
||||
deactivateActiveCamera: parts.selection.deactivateActiveCamera,
|
||||
cctvEmptyClickDeselects: parts.selection.cctvEmptyClickDeselects,
|
||||
|
||||
Reference in new issue
Block a user