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:52
Parameters¶
mapDisplay¶
stateManager¶
socketManager¶
Returns¶
Methods¶
updateFollowing()¶
Defined in: ui/map/aircraft/AircraftInteractionManager.ts:420
Update follow mode camera position Called on each aircraft data update
Parameters¶
aircraftData¶
Returns¶
void
wasLastExplicitPosFor()¶
Defined in: ui/map/aircraft/AircraftInteractionManager.ts:468
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
setDrawingToolActiveCheck()¶
Defined in: ui/map/aircraft/AircraftInteractionManager.ts:481
Register a predicate that reports whether any interactive drawing tool (route, shape, aircraft placement) is in progress. While true, map clicks are point placements: the empty-map unselect, the aircraft-icon select/unselect (with its camera flyTo), and the hover cursor swap are all suppressed.
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