Interface: FlightPlanActiveLegEvent
An event fired when an active leg changes.
Properties
batch
• Optional
Readonly
batch: readonly Readonly
<FlightPlanModBatch
>[]
The modification batch stack to which the change was assigned, in order of increasing nestedness. Not defined if the change was not assigned to any batches.
Defined in
src/sdk/flightplan/FlightPlanner.ts:154
index
• Readonly
index: number
The global index of the active leg.
Defined in
src/sdk/flightplan/FlightPlanner.ts:133
legIndex
• Readonly
legIndex: number
The index of the leg within the segment.
Defined in
src/sdk/flightplan/FlightPlanner.ts:139
planIndex
• Readonly
planIndex: number
The index of the flight plan.
Defined in
src/sdk/flightplan/FlightPlanner.ts:130
previousLegIndex
• Readonly
previousLegIndex: number
The index of the previously active leg within the previously active segment.
Defined in
src/sdk/flightplan/FlightPlanner.ts:145
previousSegmentIndex
• Readonly
previousSegmentIndex: number
The index of the segment in which the previously active leg is.
Defined in
src/sdk/flightplan/FlightPlanner.ts:142
segmentIndex
• Readonly
segmentIndex: number
The index of the segment in which the active leg is.
Defined in
src/sdk/flightplan/FlightPlanner.ts:136
type
• Readonly
type: ActiveLegType
The type of active leg that changed.
Defined in
src/sdk/flightplan/FlightPlanner.ts:148