mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
The awareness layer presents its panel as a plain view and publishes it through subscribePanel() instead of writing markup into #military-awareness-panel. AwarenessPanel renders it from the gev-context store, calls the layer's navigation, and keeps focus on the same control by identity across live repaints, continuing at the note when that control leaves or is disabled.
38 lines
1.7 KiB
JavaScript
38 lines
1.7 KiB
JavaScript
import { createApplicationAwareness } from '../app/layers/militaryAwareness.js';
|
|
import flights from './flights.js';
|
|
import military from './militaryFlights.js';
|
|
import vessels from './aisLiveVessels.js';
|
|
import installations from './militaryInstallations.js';
|
|
|
|
const layer = createApplicationAwareness({
|
|
flights,
|
|
military,
|
|
vessels,
|
|
installations,
|
|
});
|
|
export const contextTargetFlyToAllowed = layer.contextTargetFlyToAllowed;
|
|
export const awarenessClearMatchesSubject = layer.awarenessClearMatchesSubject;
|
|
export const awarenessRefreshIntervalMs = layer.awarenessRefreshIntervalMs;
|
|
export const awarenessRefreshDecision = layer.awarenessRefreshDecision;
|
|
export const awarenessClearIsEviction = layer.awarenessClearIsEviction;
|
|
export const awarenessRefreshRequired = layer.awarenessRefreshRequired;
|
|
export const summarizeInstallationViewport =
|
|
layer.summarizeInstallationViewport;
|
|
export const contactsWindowFromSnapshot = layer.contactsWindowFromSnapshot;
|
|
export const buildAwarenessContextSnapshot =
|
|
layer.buildAwarenessContextSnapshot;
|
|
export const collectAircraftProximityWindow =
|
|
layer.collectAircraftProximityWindow;
|
|
export const _getAwarenessNavigationStateForTest =
|
|
layer._getAwarenessNavigationStateForTest;
|
|
export const _getAwarenessPanelRendersForTest =
|
|
layer._getAwarenessPanelRendersForTest;
|
|
export const canNavigateAwarenessNext = layer.canNavigateAwarenessNext;
|
|
export const historySubjectSnapshot = layer.historySubjectSnapshot;
|
|
export const findCompatibleHistoryIndex = layer.findCompatibleHistoryIndex;
|
|
export const awarenessResultsAreLive = layer.awarenessResultsAreLive;
|
|
export const awarenessNeedsContinuousRender =
|
|
layer.awarenessNeedsContinuousRender;
|
|
export { AWARENESS_QUERY_LIMIT } from '../layers/awareness/index.js';
|
|
export default layer;
|