mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 03:14:00 +00:00
Separate vessel records and acquisition from scene resources
This commit is contained in:
1 parent
852008df4d
commit
bdc026e50a
26 files changed
+877
-508
No files matched your search
@@ -17,28 +17,28 @@ export function createEvidence({
|
||||
return { ok: false, count: 0 };
|
||||
}
|
||||
components.selection.clearVesselInspection();
|
||||
components.store.reconcileVessels(
|
||||
components.snapshots.reconcileVessels(
|
||||
state.viewer,
|
||||
Array.isArray(rows) ? rows : [],
|
||||
);
|
||||
state.count = state.vesselRecords.length;
|
||||
state.loaded = true;
|
||||
state.error = null;
|
||||
state.stale = false;
|
||||
state.lastUpdate = Date.now();
|
||||
state.transportStatus = 'synthetic';
|
||||
state.lastMessageAt = null;
|
||||
state.rawRowCount = Array.isArray(rows) ? rows.length : 0;
|
||||
state.acceptedRowCount = state.count;
|
||||
return { ok: true, count: state.count };
|
||||
state.feed.count = state.records.all.length;
|
||||
state.feed.loaded = true;
|
||||
state.feed.error = null;
|
||||
state.feed.stale = false;
|
||||
state.feed.lastUpdate = Date.now();
|
||||
state.feed.transportStatus = 'synthetic';
|
||||
state.feed.lastMessageAt = null;
|
||||
state.feed.rawRowCount = Array.isArray(rows) ? rows.length : 0;
|
||||
state.feed.acceptedRowCount = state.feed.count;
|
||||
return { ok: true, count: state.feed.count };
|
||||
}
|
||||
|
||||
/** JSON-safe vessel alpha/position snapshot for the evidence report. */
|
||||
|
||||
function _focusEvidenceVesselSnapshot() {
|
||||
if (!FOCUS_EVIDENCE_DEV || !state.viewer) return [];
|
||||
return state.vesselRecords.map((record) => {
|
||||
const bb = record.billboard;
|
||||
return state.records.all.map((record) => {
|
||||
const bb = components.rendering.getVisual(record).billboard;
|
||||
const screen = bb?.position
|
||||
? Cesium.SceneTransforms.worldToWindowCoordinates(
|
||||
state.viewer.scene,
|
||||
|
||||
Reference in new issue
Block a user