flight-indicators 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -131,6 +131,44 @@ declare function vorDeviation(course: number, radial: number): {
131
131
  };
132
132
  declare function VorIndicator({ course, radial, deviation, toFrom, signal, needle, ...props }: VorIndicatorProps): react.JSX.Element;
133
133
 
134
+ /**
135
+ * How the crossed needles move.
136
+ * `"slide"`: both needles move parallel to themselves over hatched scales.
137
+ * `"swing"`: the course needle is hinged near the bottom and the glideslope needle near the left, so they pivot.
138
+ */
139
+ type IlsNeedles = 'slide' | 'swing';
140
+ interface IlsIndicatorProps extends InstrumentProps {
141
+ /** Selected course (OBS) in degrees. The compass card turns so this course sits under the top index. */
142
+ course?: number;
143
+ /** Radial the aircraft is on, measured from the station, in degrees. Drives the course needle and TO/FROM. */
144
+ radial?: number;
145
+ /** Course (VOR/LOC) deviation in degrees, positive when the course lies to the right. Overrides `radial`. */
146
+ deviation?: number;
147
+ /** Deviation in degrees at full-scale deflection of the course needle (5 dots). Default `10` (VOR); use `2.5` for a localizer. */
148
+ fullScale?: number;
149
+ /** TO/FROM indication. Overrides the value computed from `radial`. */
150
+ toFrom?: ToFrom;
151
+ /** `false` drops the orange NAV flag (bottom window), centres the course needle and hides TO/FROM. Default `true`. */
152
+ signal?: boolean;
153
+ /**
154
+ * Glideslope deviation in degrees, positive when the glidepath is above the aircraft (fly up).
155
+ * Leave it out when no glideslope is received: the GS flag (right window) drops and the needle is parked.
156
+ */
157
+ glideslope?: number;
158
+ /** Glideslope deviation in degrees at full-scale deflection (5 dots). Default `0.7`. */
159
+ glideslopeFullScale?: number;
160
+ /** Overrides whether the glideslope is received. Defaults to `true` when `glideslope` is a finite number. */
161
+ glideslopeSignal?: boolean;
162
+ /** `"slide"` (default) or `"swing"`; see {@link IlsNeedles}. */
163
+ needles?: IlsNeedles;
164
+ }
165
+ /**
166
+ * Crossed-needle VOR/LOC and glideslope indicator with an OBS card, as fitted to many light aircraft.
167
+ * The vertical needle shows course deviation, the horizontal needle glideslope deviation,
168
+ * and orange flags drop into windows at the bottom (NAV) and right (GS) when a signal is lost.
169
+ */
170
+ declare function IlsIndicator({ course, radial, deviation, fullScale, toFrom, signal, glideslope, glideslopeFullScale, glideslopeSignal, needles, ...props }: IlsIndicatorProps): react.JSX.Element;
171
+
134
172
  interface AdfIndicatorProps extends InstrumentProps {
135
173
  /**
136
174
  * Relative bearing to the station in degrees, measured clockwise from the aircraft's nose.
@@ -372,4 +410,4 @@ interface AoaIndicatorProps extends InstrumentProps {
372
410
  }
373
411
  declare function AoaIndicator({ aoa, min, optimum, max, showValue, label, ...props }: AoaIndicatorProps): react.JSX.Element;
374
412
 
375
- export { AdfIndicator, type AdfIndicatorProps, Airspeed, type AirspeedArcs, type AirspeedProps, Altimeter, type AltimeterProps, AoaIndicator, type AoaIndicatorProps, AttitudeIndicator, type AttitudeIndicatorProps, DEFAULT_BAR_GAUGES, DEFAULT_MANIFOLD, DEFAULT_RPM, type DataField, DataPanel, type DataPanelProps, type EngineBarGauge, type EngineGauge, EngineIndicator, type EngineIndicatorProps, FlapIndicator, type FlapIndicatorProps, type FlapSpeedLimit, FuelIndicator, type FuelIndicatorProps, type FuelTank, HeadingIndicator, type HeadingIndicatorProps, type InstrumentProps, MAX_BAR_GAUGES, MAX_CYLINDERS, MAX_FIELDS, MAX_TANKS, type PressureUnit, type RadioFrequency, RadioPanel, type RadioPanelProps, RadioStack, type RadioStackProps, type RunwaySide, type ToFrom, TurnCoordinator, type TurnCoordinatorProps, VerticalSpeed, type VerticalSpeedProps, VorIndicator, type VorIndicatorProps, type VorNeedle, WindIndicator, type WindIndicatorProps, formatAdf, formatDme, formatNav, formatValue, parseAdf, parseNav, relativeBearing, vorDeviation };
413
+ export { AdfIndicator, type AdfIndicatorProps, Airspeed, type AirspeedArcs, type AirspeedProps, Altimeter, type AltimeterProps, AoaIndicator, type AoaIndicatorProps, AttitudeIndicator, type AttitudeIndicatorProps, DEFAULT_BAR_GAUGES, DEFAULT_MANIFOLD, DEFAULT_RPM, type DataField, DataPanel, type DataPanelProps, type EngineBarGauge, type EngineGauge, EngineIndicator, type EngineIndicatorProps, FlapIndicator, type FlapIndicatorProps, type FlapSpeedLimit, FuelIndicator, type FuelIndicatorProps, type FuelTank, HeadingIndicator, type HeadingIndicatorProps, IlsIndicator, type IlsIndicatorProps, type IlsNeedles, type InstrumentProps, MAX_BAR_GAUGES, MAX_CYLINDERS, MAX_FIELDS, MAX_TANKS, type PressureUnit, type RadioFrequency, RadioPanel, type RadioPanelProps, RadioStack, type RadioStackProps, type RunwaySide, type ToFrom, TurnCoordinator, type TurnCoordinatorProps, VerticalSpeed, type VerticalSpeedProps, VorIndicator, type VorIndicatorProps, type VorNeedle, WindIndicator, type WindIndicatorProps, formatAdf, formatDme, formatNav, formatValue, parseAdf, parseNav, relativeBearing, vorDeviation };
package/dist/index.d.ts CHANGED
@@ -131,6 +131,44 @@ declare function vorDeviation(course: number, radial: number): {
131
131
  };
132
132
  declare function VorIndicator({ course, radial, deviation, toFrom, signal, needle, ...props }: VorIndicatorProps): react.JSX.Element;
133
133
 
134
+ /**
135
+ * How the crossed needles move.
136
+ * `"slide"`: both needles move parallel to themselves over hatched scales.
137
+ * `"swing"`: the course needle is hinged near the bottom and the glideslope needle near the left, so they pivot.
138
+ */
139
+ type IlsNeedles = 'slide' | 'swing';
140
+ interface IlsIndicatorProps extends InstrumentProps {
141
+ /** Selected course (OBS) in degrees. The compass card turns so this course sits under the top index. */
142
+ course?: number;
143
+ /** Radial the aircraft is on, measured from the station, in degrees. Drives the course needle and TO/FROM. */
144
+ radial?: number;
145
+ /** Course (VOR/LOC) deviation in degrees, positive when the course lies to the right. Overrides `radial`. */
146
+ deviation?: number;
147
+ /** Deviation in degrees at full-scale deflection of the course needle (5 dots). Default `10` (VOR); use `2.5` for a localizer. */
148
+ fullScale?: number;
149
+ /** TO/FROM indication. Overrides the value computed from `radial`. */
150
+ toFrom?: ToFrom;
151
+ /** `false` drops the orange NAV flag (bottom window), centres the course needle and hides TO/FROM. Default `true`. */
152
+ signal?: boolean;
153
+ /**
154
+ * Glideslope deviation in degrees, positive when the glidepath is above the aircraft (fly up).
155
+ * Leave it out when no glideslope is received: the GS flag (right window) drops and the needle is parked.
156
+ */
157
+ glideslope?: number;
158
+ /** Glideslope deviation in degrees at full-scale deflection (5 dots). Default `0.7`. */
159
+ glideslopeFullScale?: number;
160
+ /** Overrides whether the glideslope is received. Defaults to `true` when `glideslope` is a finite number. */
161
+ glideslopeSignal?: boolean;
162
+ /** `"slide"` (default) or `"swing"`; see {@link IlsNeedles}. */
163
+ needles?: IlsNeedles;
164
+ }
165
+ /**
166
+ * Crossed-needle VOR/LOC and glideslope indicator with an OBS card, as fitted to many light aircraft.
167
+ * The vertical needle shows course deviation, the horizontal needle glideslope deviation,
168
+ * and orange flags drop into windows at the bottom (NAV) and right (GS) when a signal is lost.
169
+ */
170
+ declare function IlsIndicator({ course, radial, deviation, fullScale, toFrom, signal, glideslope, glideslopeFullScale, glideslopeSignal, needles, ...props }: IlsIndicatorProps): react.JSX.Element;
171
+
134
172
  interface AdfIndicatorProps extends InstrumentProps {
135
173
  /**
136
174
  * Relative bearing to the station in degrees, measured clockwise from the aircraft's nose.
@@ -372,4 +410,4 @@ interface AoaIndicatorProps extends InstrumentProps {
372
410
  }
373
411
  declare function AoaIndicator({ aoa, min, optimum, max, showValue, label, ...props }: AoaIndicatorProps): react.JSX.Element;
374
412
 
375
- export { AdfIndicator, type AdfIndicatorProps, Airspeed, type AirspeedArcs, type AirspeedProps, Altimeter, type AltimeterProps, AoaIndicator, type AoaIndicatorProps, AttitudeIndicator, type AttitudeIndicatorProps, DEFAULT_BAR_GAUGES, DEFAULT_MANIFOLD, DEFAULT_RPM, type DataField, DataPanel, type DataPanelProps, type EngineBarGauge, type EngineGauge, EngineIndicator, type EngineIndicatorProps, FlapIndicator, type FlapIndicatorProps, type FlapSpeedLimit, FuelIndicator, type FuelIndicatorProps, type FuelTank, HeadingIndicator, type HeadingIndicatorProps, type InstrumentProps, MAX_BAR_GAUGES, MAX_CYLINDERS, MAX_FIELDS, MAX_TANKS, type PressureUnit, type RadioFrequency, RadioPanel, type RadioPanelProps, RadioStack, type RadioStackProps, type RunwaySide, type ToFrom, TurnCoordinator, type TurnCoordinatorProps, VerticalSpeed, type VerticalSpeedProps, VorIndicator, type VorIndicatorProps, type VorNeedle, WindIndicator, type WindIndicatorProps, formatAdf, formatDme, formatNav, formatValue, parseAdf, parseNav, relativeBearing, vorDeviation };
413
+ export { AdfIndicator, type AdfIndicatorProps, Airspeed, type AirspeedArcs, type AirspeedProps, Altimeter, type AltimeterProps, AoaIndicator, type AoaIndicatorProps, AttitudeIndicator, type AttitudeIndicatorProps, DEFAULT_BAR_GAUGES, DEFAULT_MANIFOLD, DEFAULT_RPM, type DataField, DataPanel, type DataPanelProps, type EngineBarGauge, type EngineGauge, EngineIndicator, type EngineIndicatorProps, FlapIndicator, type FlapIndicatorProps, type FlapSpeedLimit, FuelIndicator, type FuelIndicatorProps, type FuelTank, HeadingIndicator, type HeadingIndicatorProps, IlsIndicator, type IlsIndicatorProps, type IlsNeedles, type InstrumentProps, MAX_BAR_GAUGES, MAX_CYLINDERS, MAX_FIELDS, MAX_TANKS, type PressureUnit, type RadioFrequency, RadioPanel, type RadioPanelProps, RadioStack, type RadioStackProps, type RunwaySide, type ToFrom, TurnCoordinator, type TurnCoordinatorProps, VerticalSpeed, type VerticalSpeedProps, VorIndicator, type VorIndicatorProps, type VorNeedle, WindIndicator, type WindIndicatorProps, formatAdf, formatDme, formatNav, formatValue, parseAdf, parseNav, relativeBearing, vorDeviation };