ui/map/aircraft/AircraftInteractionManager¶
Classes¶
AircraftInteractionManager¶
Defined in: ui/map/aircraft/AircraftInteractionManager.ts:24
Constructors¶
Constructor¶
new AircraftInteractionManager(
mapDisplay,
stateManager,
socketManager): AircraftInteractionManager;
Defined in: ui/map/aircraft/AircraftInteractionManager.ts:51
Parameters¶
mapDisplay¶
stateManager¶
socketManager¶
Returns¶
Methods¶
updateFollowing()¶
Defined in: ui/map/aircraft/AircraftInteractionManager.ts:416
Update follow mode camera position Called on each aircraft data update
Parameters¶
aircraftData¶
Returns¶
void
wasLastExplicitPosFor()¶
Defined in: ui/map/aircraft/AircraftInteractionManager.ts:464
Check if we recently sent a POS command for this aircraft Used to avoid treating server responses to our own commands as unsolicited data
Parameters¶
aircraftId¶
string
Aircraft ID to check
Returns¶
boolean
true if we recently sent POS for this aircraft
sendExplicitPos()¶
Defined in: ui/map/aircraft/AircraftInteractionManager.ts:476
Public wrapper around requestRouteData() used by other subsystems (e.g. RouteDrawingManager) that need BlueSky to re-broadcast ROUTEDATA for an aircraft. Marks the POS as explicit so the resulting ROUTEDATA is processed on the normal (non-unsolicited) path in App.onRouteData.
Parameters¶
aircraftId¶
string
Returns¶
void
setRouteDrawingActiveCheck()¶
Defined in: ui/map/aircraft/AircraftInteractionManager.ts:485
Register a predicate that reports whether interactive route drawing is currently in progress. When true, empty-map clicks are suppressed from the "unselect aircraft" path so they can be consumed as waypoint drops.
Parameters¶
check¶
() => boolean
Returns¶
void
getFollowingAircraft()¶
Defined in: ui/map/aircraft/AircraftInteractionManager.ts:492
Get currently following aircraft ID
Returns¶
string | null
isFollowing()¶
Defined in: ui/map/aircraft/AircraftInteractionManager.ts:499
Check if in follow mode
Returns¶
boolean
destroy()¶
Defined in: ui/map/aircraft/AircraftInteractionManager.ts:507
Cleanup resources. Map listeners die with the map; the document listeners and state subscription must be released explicitly.
Returns¶
void
Interfaces¶
AircraftClickEvent¶
Defined in: ui/map/aircraft/AircraftInteractionManager.ts:20
Properties¶
aircraftId¶
Defined in: ui/map/aircraft/AircraftInteractionManager.ts:21