flight-indicators 1.0.3 → 1.2.0

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
@@ -97,4 +97,271 @@ interface WindIndicatorProps extends InstrumentProps {
97
97
  }
98
98
  declare function WindIndicator({ runway, runwaySide, windDirection, windSpeed, windGust, crosswindLimit, ...props }: WindIndicatorProps): react.JSX.Element;
99
99
 
100
- export { Airspeed, type AirspeedArcs, type AirspeedProps, Altimeter, type AltimeterProps, AttitudeIndicator, type AttitudeIndicatorProps, HeadingIndicator, type HeadingIndicatorProps, type InstrumentProps, type PressureUnit, type RunwaySide, TurnCoordinator, type TurnCoordinatorProps, VerticalSpeed, type VerticalSpeedProps, WindIndicator, type WindIndicatorProps };
100
+ type ToFrom = 'TO' | 'FROM' | 'OFF';
101
+ interface VorIndicatorProps extends InstrumentProps {
102
+ /** Selected course (OBS) in degrees. The compass card turns so this course sits under the top index. */
103
+ course?: number;
104
+ /**
105
+ * Radial the aircraft is on, measured from the station, in degrees.
106
+ * When given, the needle deflection and the TO/FROM flag are worked out from `course` and `radial`.
107
+ */
108
+ radial?: number;
109
+ /**
110
+ * Course deviation in degrees, positive when the course lies to the right.
111
+ * Full scale is ±10° (5 dots of 2°). Overrides the value computed from `radial`.
112
+ */
113
+ deviation?: number;
114
+ /** TO/FROM flag. Overrides the value computed from `radial`. `"OFF"` hides both triangles. */
115
+ toFrom?: ToFrom;
116
+ /** `false` shows the red NAV flag, centres the needle and hides TO/FROM. Default `true`. */
117
+ signal?: boolean;
118
+ }
119
+ /** Needle deflection (°, positive = course to the right) and flag for an aircraft on `radial` with `course` selected. */
120
+ declare function vorDeviation(course: number, radial: number): {
121
+ deviation: number;
122
+ toFrom: ToFrom;
123
+ };
124
+ declare function VorIndicator({ course, radial, deviation, toFrom, signal, ...props }: VorIndicatorProps): react.JSX.Element;
125
+
126
+ interface AdfIndicatorProps extends InstrumentProps {
127
+ /**
128
+ * Relative bearing to the station in degrees, measured clockwise from the aircraft's nose.
129
+ * `0` means the station is dead ahead, `90` off the right wing.
130
+ */
131
+ bearing?: number;
132
+ /**
133
+ * Heading set on the compass card, in degrees. Leave at `0` for a fixed-card ADF.
134
+ * Pass the aircraft heading for a rotatable-card ADF / RMI, where the needle then reads
135
+ * the magnetic bearing to the station directly.
136
+ */
137
+ heading?: number;
138
+ /** `false` parks the needle at 90° and shows the red ADF flag. Default `true`. */
139
+ signal?: boolean;
140
+ }
141
+ /** Relative bearing (0–360°, clockwise from the nose) of a station that lies on `bearingToStation` when flying `heading`. */
142
+ declare function relativeBearing(heading: number, bearingToStation: number): number;
143
+ declare function AdfIndicator({ bearing, heading, signal, ...props }: AdfIndicatorProps): react.JSX.Element;
144
+
145
+ /** Active and standby frequency of one receiver. Leave a value out to show dashes. */
146
+ interface RadioFrequency {
147
+ active?: number;
148
+ standby?: number;
149
+ }
150
+ interface RadioPanelProps extends InstrumentProps {
151
+ /** NAV (VOR/LOC) receiver frequencies in MHz, shown with two decimals. */
152
+ nav?: RadioFrequency;
153
+ /** ADF receiver frequencies in kHz. */
154
+ adf?: RadioFrequency;
155
+ /** DME distance to the station in nautical miles. Leave out (or pass `NaN`) to show dashes. */
156
+ dme?: number;
157
+ /** Colour of the digits. Default amber. */
158
+ color?: string;
159
+ }
160
+ /** NAV frequency in MHz as `116.80`, or dashes. */
161
+ declare const formatNav: (mhz?: number) => string;
162
+ /** ADF frequency in kHz as `362` (or `362.5`), or dashes. */
163
+ declare const formatAdf: (khz?: number) => string;
164
+ /** DME distance in NM: one decimal below 100 NM, whole miles above, or dashes. */
165
+ declare const formatDme: (nm?: number) => string;
166
+ declare function RadioPanel({ nav, adf, dme, color, ...props }: RadioPanelProps): react.JSX.Element;
167
+
168
+ interface RadioStackProps {
169
+ /** NAV (VOR/LOC) receiver, in MHz. Pass it to control the component; leave it out and it keeps its own state. */
170
+ nav?: RadioFrequency;
171
+ /** ADF receiver, in kHz. Pass it to control the component; leave it out and it keeps its own state. */
172
+ adf?: RadioFrequency;
173
+ /** Starting NAV frequencies when `nav` is not controlled. */
174
+ defaultNav?: RadioFrequency;
175
+ /** Starting ADF frequencies when `adf` is not controlled. */
176
+ defaultAdf?: RadioFrequency;
177
+ /** Called when the NAV standby frequency is entered or the frequencies are swapped. */
178
+ onNavChange?: (next: RadioFrequency) => void;
179
+ /** Called when the ADF standby frequency is entered or the frequencies are swapped. */
180
+ onAdfChange?: (next: RadioFrequency) => void;
181
+ /** Identifier of the station received on the active NAV frequency, e.g. `"KNA"`. Shown under the NAV label. */
182
+ navIdent?: string;
183
+ /** Identifier of the station received on the active ADF frequency. Shown under the ADF label. */
184
+ adfIdent?: string;
185
+ /** DME distance to the station in nautical miles. Leave out (or pass `NaN`) to show dashes. */
186
+ dme?: number;
187
+ /** Colour of the digits. Default amber. */
188
+ color?: string;
189
+ /** Rendered width. Number = pixels, or any CSS length (e.g. `"100%"`). Everything scales with it. Default `320`. */
190
+ width?: number | string;
191
+ className?: string;
192
+ style?: CSSProperties;
193
+ /** Accessible name of the group. Default `"Radio panel"`. */
194
+ title?: string;
195
+ }
196
+ /** NAV receivers tune 108.00–117.95 MHz. */
197
+ declare const parseNav: (text: string) => number | undefined;
198
+ /** ADF receivers tune 190–1750 kHz. */
199
+ declare const parseAdf: (text: string) => number | undefined;
200
+ /**
201
+ * An interactive navigation radio: NAV and ADF receivers with an active frequency, an editable standby
202
+ * frequency and a transfer button each, plus a DME distance readout.
203
+ * Unlike the instruments it is an HTML control, not an SVG dial.
204
+ */
205
+ declare function RadioStack({ nav, adf, defaultNav, defaultAdf, onNavChange, onAdfChange, navIdent, adfIdent, dme, color, width, className, style, title, }: RadioStackProps): react.JSX.Element;
206
+
207
+ /** One readout on a `DataPanel`. */
208
+ interface DataField {
209
+ /** Short caption printed above the value, e.g. `"COM1"`. */
210
+ name: string;
211
+ /** Value to display. Strings are printed as given; numbers are formatted with `decimals`. */
212
+ value: string | number;
213
+ /** Unit printed after the value, e.g. `"MHz"`. */
214
+ unit?: string;
215
+ /** Decimal places for numeric values. Default `0`. */
216
+ decimals?: number;
217
+ /** Colour of the value text. Default white. */
218
+ color?: string;
219
+ }
220
+ interface DataPanelProps extends InstrumentProps {
221
+ /** Readouts to show, laid out in a grid. At most `MAX_FIELDS` (6) are drawn; extra fields are ignored. */
222
+ fields?: DataField[];
223
+ /** Optional caption printed in the bezel above the panel. */
224
+ heading?: string;
225
+ }
226
+ declare const MAX_FIELDS = 6;
227
+ declare function formatValue(field: DataField): string;
228
+ declare function DataPanel({ fields, heading, ...props }: DataPanelProps): react.JSX.Element;
229
+
230
+ /** One tank shown on a `FuelIndicator`. */
231
+ interface FuelTank {
232
+ /** Caption above the bar, e.g. `"LEFT"`. */
233
+ name: string;
234
+ /** Fuel on board, in `unit`. */
235
+ quantity: number;
236
+ /** Full-tank quantity. Defaults to the indicator's `capacity`. */
237
+ capacity?: number;
238
+ }
239
+ interface FuelIndicatorProps extends InstrumentProps {
240
+ /** Tanks to show, left to right. At most `MAX_TANKS` (4) are drawn. */
241
+ tanks?: FuelTank[];
242
+ /** Default full-tank quantity for tanks without their own `capacity`. Default `50`. */
243
+ capacity?: number;
244
+ /** Unit printed under each readout and in the accessible label. Default `"gal"`. */
245
+ unit?: string;
246
+ /** Quantity at or below which a tank's bar and readout turn red. Default 10% of that tank's capacity. */
247
+ low?: number;
248
+ /** Decimal places in the readouts. Default `1`. */
249
+ decimals?: number;
250
+ /** Caption along the bottom of the display. Default `"FUEL"`. */
251
+ label?: string;
252
+ }
253
+ declare const MAX_TANKS = 4;
254
+ declare function FuelIndicator({ tanks, capacity, unit, low, decimals, label, ...props }: FuelIndicatorProps): react.JSX.Element;
255
+
256
+ /** A scaled gauge: where the value sits between `min` and `max`, and which bands are coloured. */
257
+ interface EngineGauge {
258
+ value?: number;
259
+ /** Bottom of the scale. Default `0`. */
260
+ min?: number;
261
+ /** Top of the scale. Default `100`. */
262
+ max?: number;
263
+ /** Normal operating band `[from, to]`, drawn green. */
264
+ green?: [number, number];
265
+ /** Caution band `[from, to]`, drawn yellow. */
266
+ yellow?: [number, number];
267
+ /** Values at or below this are red (the scale from `min` to `low` is drawn red). */
268
+ low?: number;
269
+ /** Values at or above this are red (the scale from `high` to `max` is drawn red). */
270
+ high?: number;
271
+ /** Unit printed next to the readout. */
272
+ unit?: string;
273
+ /** Decimal places in the readout. Default `0`. */
274
+ decimals?: number;
275
+ }
276
+ /** A horizontal bar gauge on the right-hand side of the display. */
277
+ interface EngineBarGauge extends EngineGauge {
278
+ /** Caption under the bar, e.g. `"Oil P"`. */
279
+ label: string;
280
+ }
281
+ interface EngineIndicatorProps extends InstrumentProps {
282
+ /** Percent power printed at the top. */
283
+ power?: number;
284
+ /** Manifold pressure arc gauge. Defaults to a 10–35 inHg scale. */
285
+ manifold?: EngineGauge;
286
+ /** Engine speed arc gauge. Defaults to a 0–3000 RPM scale. */
287
+ rpm?: EngineGauge;
288
+ /** Cylinder head temperature per cylinder, up to `MAX_CYLINDERS`. */
289
+ cht?: number[];
290
+ /** Exhaust gas temperature per cylinder, up to `MAX_CYLINDERS`. */
291
+ egt?: number[];
292
+ /** Turbine inlet temperature, drawn as the `T` column. Omit to hide it. */
293
+ tit?: number;
294
+ /** CHT at which the red dashed limit line is drawn. Default `400`. */
295
+ chtLimit?: number;
296
+ /** CHT that fills the bar graph to the top. Default `500`. */
297
+ chtScale?: number;
298
+ /** EGT (and TIT) that fills the bar graph to the top. Default `1700`. */
299
+ egtScale?: number;
300
+ /** Temperature unit printed after CHT/EGT/TIT. Default `"°F"`. */
301
+ temperatureUnit?: string;
302
+ /** Horizontal bar gauges, top to bottom, up to `MAX_BAR_GAUGES`. Defaults to oil pressure, oil temperature, fuel pressure and fuel flow. */
303
+ gauges?: EngineBarGauge[];
304
+ /** Alternator current in amps. */
305
+ amps?: number;
306
+ /** Bus voltage. */
307
+ volts?: number;
308
+ /** Fuel in the left tank. */
309
+ fuelLeft?: number;
310
+ /** Fuel in the right tank. */
311
+ fuelRight?: number;
312
+ /** Full quantity of each tank, used to fill the tank icons. Default `30`. */
313
+ fuelCapacity?: number;
314
+ /** Fuel unit printed under the quantities. Default `"GAL"`. */
315
+ fuelUnit?: string;
316
+ }
317
+ declare const MAX_CYLINDERS = 6;
318
+ declare const MAX_BAR_GAUGES = 4;
319
+ declare const DEFAULT_MANIFOLD: EngineGauge;
320
+ declare const DEFAULT_RPM: EngineGauge;
321
+ declare const DEFAULT_BAR_GAUGES: EngineBarGauge[];
322
+ declare function EngineIndicator({ power, manifold, rpm, cht, egt, tit, chtLimit, chtScale, egtScale, temperatureUnit, gauges, amps, volts, fuelLeft, fuelRight, fuelCapacity, fuelUnit, ...props }: EngineIndicatorProps): react.JSX.Element;
323
+
324
+ /** Maximum speed allowed once the flaps are at or beyond `flaps` degrees. */
325
+ interface FlapSpeedLimit {
326
+ flaps: number;
327
+ /** Speed in knots. */
328
+ speed: number;
329
+ }
330
+ interface FlapIndicatorProps extends InstrumentProps {
331
+ /** Flap position in degrees, 0 = retracted. Clamped to `0…max`. */
332
+ flaps?: number;
333
+ /** Full flap deflection in degrees. Default `40`. */
334
+ max?: number;
335
+ /** Scale labels in degrees. Default every 10° from 0 to `max`. */
336
+ detents?: number[];
337
+ /** Number of LED segments in the bar. Default `20`. */
338
+ segments?: number;
339
+ /**
340
+ * Flap extension speed limits (Vfe) in knots. The entry with the largest `flaps` at or below the
341
+ * current position is shown as the MAX speed. Omit to hide the speed readout.
342
+ */
343
+ speedLimits?: FlapSpeedLimit[];
344
+ /** Current airspeed in knots. When above the limit for the current flap setting the readout turns red. */
345
+ airspeed?: number;
346
+ /** Caption at the bottom of the dial. Default `"WING FLAP"`. */
347
+ label?: string;
348
+ }
349
+ declare function FlapIndicator({ flaps, max, detents, segments, speedLimits, airspeed, label, ...props }: FlapIndicatorProps): react.JSX.Element;
350
+
351
+ interface AoaIndicatorProps extends InstrumentProps {
352
+ /** Current angle of attack in degrees. */
353
+ aoa?: number;
354
+ /** AoA at which the bottom bar lights, e.g. zero lift. Default `0`. */
355
+ min?: number;
356
+ /** Optimum AoA (approach / L/Dmax) at which the green donut lights. Default halfway between `min` and `max`. */
357
+ optimum?: number;
358
+ /** Critical (stall) AoA at which the top red chevron lights and the chevrons flash. Default `20`. */
359
+ max?: number;
360
+ /** Print the AoA in degrees under the display. Default `false`. */
361
+ showValue?: boolean;
362
+ /** Caption at the bottom of the dial. Default `"AOA"`. */
363
+ label?: string;
364
+ }
365
+ declare function AoaIndicator({ aoa, min, optimum, max, showValue, label, ...props }: AoaIndicatorProps): react.JSX.Element;
366
+
367
+ 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, WindIndicator, type WindIndicatorProps, formatAdf, formatDme, formatNav, formatValue, parseAdf, parseNav, relativeBearing, vorDeviation };
package/dist/index.d.ts CHANGED
@@ -97,4 +97,271 @@ interface WindIndicatorProps extends InstrumentProps {
97
97
  }
98
98
  declare function WindIndicator({ runway, runwaySide, windDirection, windSpeed, windGust, crosswindLimit, ...props }: WindIndicatorProps): react.JSX.Element;
99
99
 
100
- export { Airspeed, type AirspeedArcs, type AirspeedProps, Altimeter, type AltimeterProps, AttitudeIndicator, type AttitudeIndicatorProps, HeadingIndicator, type HeadingIndicatorProps, type InstrumentProps, type PressureUnit, type RunwaySide, TurnCoordinator, type TurnCoordinatorProps, VerticalSpeed, type VerticalSpeedProps, WindIndicator, type WindIndicatorProps };
100
+ type ToFrom = 'TO' | 'FROM' | 'OFF';
101
+ interface VorIndicatorProps extends InstrumentProps {
102
+ /** Selected course (OBS) in degrees. The compass card turns so this course sits under the top index. */
103
+ course?: number;
104
+ /**
105
+ * Radial the aircraft is on, measured from the station, in degrees.
106
+ * When given, the needle deflection and the TO/FROM flag are worked out from `course` and `radial`.
107
+ */
108
+ radial?: number;
109
+ /**
110
+ * Course deviation in degrees, positive when the course lies to the right.
111
+ * Full scale is ±10° (5 dots of 2°). Overrides the value computed from `radial`.
112
+ */
113
+ deviation?: number;
114
+ /** TO/FROM flag. Overrides the value computed from `radial`. `"OFF"` hides both triangles. */
115
+ toFrom?: ToFrom;
116
+ /** `false` shows the red NAV flag, centres the needle and hides TO/FROM. Default `true`. */
117
+ signal?: boolean;
118
+ }
119
+ /** Needle deflection (°, positive = course to the right) and flag for an aircraft on `radial` with `course` selected. */
120
+ declare function vorDeviation(course: number, radial: number): {
121
+ deviation: number;
122
+ toFrom: ToFrom;
123
+ };
124
+ declare function VorIndicator({ course, radial, deviation, toFrom, signal, ...props }: VorIndicatorProps): react.JSX.Element;
125
+
126
+ interface AdfIndicatorProps extends InstrumentProps {
127
+ /**
128
+ * Relative bearing to the station in degrees, measured clockwise from the aircraft's nose.
129
+ * `0` means the station is dead ahead, `90` off the right wing.
130
+ */
131
+ bearing?: number;
132
+ /**
133
+ * Heading set on the compass card, in degrees. Leave at `0` for a fixed-card ADF.
134
+ * Pass the aircraft heading for a rotatable-card ADF / RMI, where the needle then reads
135
+ * the magnetic bearing to the station directly.
136
+ */
137
+ heading?: number;
138
+ /** `false` parks the needle at 90° and shows the red ADF flag. Default `true`. */
139
+ signal?: boolean;
140
+ }
141
+ /** Relative bearing (0–360°, clockwise from the nose) of a station that lies on `bearingToStation` when flying `heading`. */
142
+ declare function relativeBearing(heading: number, bearingToStation: number): number;
143
+ declare function AdfIndicator({ bearing, heading, signal, ...props }: AdfIndicatorProps): react.JSX.Element;
144
+
145
+ /** Active and standby frequency of one receiver. Leave a value out to show dashes. */
146
+ interface RadioFrequency {
147
+ active?: number;
148
+ standby?: number;
149
+ }
150
+ interface RadioPanelProps extends InstrumentProps {
151
+ /** NAV (VOR/LOC) receiver frequencies in MHz, shown with two decimals. */
152
+ nav?: RadioFrequency;
153
+ /** ADF receiver frequencies in kHz. */
154
+ adf?: RadioFrequency;
155
+ /** DME distance to the station in nautical miles. Leave out (or pass `NaN`) to show dashes. */
156
+ dme?: number;
157
+ /** Colour of the digits. Default amber. */
158
+ color?: string;
159
+ }
160
+ /** NAV frequency in MHz as `116.80`, or dashes. */
161
+ declare const formatNav: (mhz?: number) => string;
162
+ /** ADF frequency in kHz as `362` (or `362.5`), or dashes. */
163
+ declare const formatAdf: (khz?: number) => string;
164
+ /** DME distance in NM: one decimal below 100 NM, whole miles above, or dashes. */
165
+ declare const formatDme: (nm?: number) => string;
166
+ declare function RadioPanel({ nav, adf, dme, color, ...props }: RadioPanelProps): react.JSX.Element;
167
+
168
+ interface RadioStackProps {
169
+ /** NAV (VOR/LOC) receiver, in MHz. Pass it to control the component; leave it out and it keeps its own state. */
170
+ nav?: RadioFrequency;
171
+ /** ADF receiver, in kHz. Pass it to control the component; leave it out and it keeps its own state. */
172
+ adf?: RadioFrequency;
173
+ /** Starting NAV frequencies when `nav` is not controlled. */
174
+ defaultNav?: RadioFrequency;
175
+ /** Starting ADF frequencies when `adf` is not controlled. */
176
+ defaultAdf?: RadioFrequency;
177
+ /** Called when the NAV standby frequency is entered or the frequencies are swapped. */
178
+ onNavChange?: (next: RadioFrequency) => void;
179
+ /** Called when the ADF standby frequency is entered or the frequencies are swapped. */
180
+ onAdfChange?: (next: RadioFrequency) => void;
181
+ /** Identifier of the station received on the active NAV frequency, e.g. `"KNA"`. Shown under the NAV label. */
182
+ navIdent?: string;
183
+ /** Identifier of the station received on the active ADF frequency. Shown under the ADF label. */
184
+ adfIdent?: string;
185
+ /** DME distance to the station in nautical miles. Leave out (or pass `NaN`) to show dashes. */
186
+ dme?: number;
187
+ /** Colour of the digits. Default amber. */
188
+ color?: string;
189
+ /** Rendered width. Number = pixels, or any CSS length (e.g. `"100%"`). Everything scales with it. Default `320`. */
190
+ width?: number | string;
191
+ className?: string;
192
+ style?: CSSProperties;
193
+ /** Accessible name of the group. Default `"Radio panel"`. */
194
+ title?: string;
195
+ }
196
+ /** NAV receivers tune 108.00–117.95 MHz. */
197
+ declare const parseNav: (text: string) => number | undefined;
198
+ /** ADF receivers tune 190–1750 kHz. */
199
+ declare const parseAdf: (text: string) => number | undefined;
200
+ /**
201
+ * An interactive navigation radio: NAV and ADF receivers with an active frequency, an editable standby
202
+ * frequency and a transfer button each, plus a DME distance readout.
203
+ * Unlike the instruments it is an HTML control, not an SVG dial.
204
+ */
205
+ declare function RadioStack({ nav, adf, defaultNav, defaultAdf, onNavChange, onAdfChange, navIdent, adfIdent, dme, color, width, className, style, title, }: RadioStackProps): react.JSX.Element;
206
+
207
+ /** One readout on a `DataPanel`. */
208
+ interface DataField {
209
+ /** Short caption printed above the value, e.g. `"COM1"`. */
210
+ name: string;
211
+ /** Value to display. Strings are printed as given; numbers are formatted with `decimals`. */
212
+ value: string | number;
213
+ /** Unit printed after the value, e.g. `"MHz"`. */
214
+ unit?: string;
215
+ /** Decimal places for numeric values. Default `0`. */
216
+ decimals?: number;
217
+ /** Colour of the value text. Default white. */
218
+ color?: string;
219
+ }
220
+ interface DataPanelProps extends InstrumentProps {
221
+ /** Readouts to show, laid out in a grid. At most `MAX_FIELDS` (6) are drawn; extra fields are ignored. */
222
+ fields?: DataField[];
223
+ /** Optional caption printed in the bezel above the panel. */
224
+ heading?: string;
225
+ }
226
+ declare const MAX_FIELDS = 6;
227
+ declare function formatValue(field: DataField): string;
228
+ declare function DataPanel({ fields, heading, ...props }: DataPanelProps): react.JSX.Element;
229
+
230
+ /** One tank shown on a `FuelIndicator`. */
231
+ interface FuelTank {
232
+ /** Caption above the bar, e.g. `"LEFT"`. */
233
+ name: string;
234
+ /** Fuel on board, in `unit`. */
235
+ quantity: number;
236
+ /** Full-tank quantity. Defaults to the indicator's `capacity`. */
237
+ capacity?: number;
238
+ }
239
+ interface FuelIndicatorProps extends InstrumentProps {
240
+ /** Tanks to show, left to right. At most `MAX_TANKS` (4) are drawn. */
241
+ tanks?: FuelTank[];
242
+ /** Default full-tank quantity for tanks without their own `capacity`. Default `50`. */
243
+ capacity?: number;
244
+ /** Unit printed under each readout and in the accessible label. Default `"gal"`. */
245
+ unit?: string;
246
+ /** Quantity at or below which a tank's bar and readout turn red. Default 10% of that tank's capacity. */
247
+ low?: number;
248
+ /** Decimal places in the readouts. Default `1`. */
249
+ decimals?: number;
250
+ /** Caption along the bottom of the display. Default `"FUEL"`. */
251
+ label?: string;
252
+ }
253
+ declare const MAX_TANKS = 4;
254
+ declare function FuelIndicator({ tanks, capacity, unit, low, decimals, label, ...props }: FuelIndicatorProps): react.JSX.Element;
255
+
256
+ /** A scaled gauge: where the value sits between `min` and `max`, and which bands are coloured. */
257
+ interface EngineGauge {
258
+ value?: number;
259
+ /** Bottom of the scale. Default `0`. */
260
+ min?: number;
261
+ /** Top of the scale. Default `100`. */
262
+ max?: number;
263
+ /** Normal operating band `[from, to]`, drawn green. */
264
+ green?: [number, number];
265
+ /** Caution band `[from, to]`, drawn yellow. */
266
+ yellow?: [number, number];
267
+ /** Values at or below this are red (the scale from `min` to `low` is drawn red). */
268
+ low?: number;
269
+ /** Values at or above this are red (the scale from `high` to `max` is drawn red). */
270
+ high?: number;
271
+ /** Unit printed next to the readout. */
272
+ unit?: string;
273
+ /** Decimal places in the readout. Default `0`. */
274
+ decimals?: number;
275
+ }
276
+ /** A horizontal bar gauge on the right-hand side of the display. */
277
+ interface EngineBarGauge extends EngineGauge {
278
+ /** Caption under the bar, e.g. `"Oil P"`. */
279
+ label: string;
280
+ }
281
+ interface EngineIndicatorProps extends InstrumentProps {
282
+ /** Percent power printed at the top. */
283
+ power?: number;
284
+ /** Manifold pressure arc gauge. Defaults to a 10–35 inHg scale. */
285
+ manifold?: EngineGauge;
286
+ /** Engine speed arc gauge. Defaults to a 0–3000 RPM scale. */
287
+ rpm?: EngineGauge;
288
+ /** Cylinder head temperature per cylinder, up to `MAX_CYLINDERS`. */
289
+ cht?: number[];
290
+ /** Exhaust gas temperature per cylinder, up to `MAX_CYLINDERS`. */
291
+ egt?: number[];
292
+ /** Turbine inlet temperature, drawn as the `T` column. Omit to hide it. */
293
+ tit?: number;
294
+ /** CHT at which the red dashed limit line is drawn. Default `400`. */
295
+ chtLimit?: number;
296
+ /** CHT that fills the bar graph to the top. Default `500`. */
297
+ chtScale?: number;
298
+ /** EGT (and TIT) that fills the bar graph to the top. Default `1700`. */
299
+ egtScale?: number;
300
+ /** Temperature unit printed after CHT/EGT/TIT. Default `"°F"`. */
301
+ temperatureUnit?: string;
302
+ /** Horizontal bar gauges, top to bottom, up to `MAX_BAR_GAUGES`. Defaults to oil pressure, oil temperature, fuel pressure and fuel flow. */
303
+ gauges?: EngineBarGauge[];
304
+ /** Alternator current in amps. */
305
+ amps?: number;
306
+ /** Bus voltage. */
307
+ volts?: number;
308
+ /** Fuel in the left tank. */
309
+ fuelLeft?: number;
310
+ /** Fuel in the right tank. */
311
+ fuelRight?: number;
312
+ /** Full quantity of each tank, used to fill the tank icons. Default `30`. */
313
+ fuelCapacity?: number;
314
+ /** Fuel unit printed under the quantities. Default `"GAL"`. */
315
+ fuelUnit?: string;
316
+ }
317
+ declare const MAX_CYLINDERS = 6;
318
+ declare const MAX_BAR_GAUGES = 4;
319
+ declare const DEFAULT_MANIFOLD: EngineGauge;
320
+ declare const DEFAULT_RPM: EngineGauge;
321
+ declare const DEFAULT_BAR_GAUGES: EngineBarGauge[];
322
+ declare function EngineIndicator({ power, manifold, rpm, cht, egt, tit, chtLimit, chtScale, egtScale, temperatureUnit, gauges, amps, volts, fuelLeft, fuelRight, fuelCapacity, fuelUnit, ...props }: EngineIndicatorProps): react.JSX.Element;
323
+
324
+ /** Maximum speed allowed once the flaps are at or beyond `flaps` degrees. */
325
+ interface FlapSpeedLimit {
326
+ flaps: number;
327
+ /** Speed in knots. */
328
+ speed: number;
329
+ }
330
+ interface FlapIndicatorProps extends InstrumentProps {
331
+ /** Flap position in degrees, 0 = retracted. Clamped to `0…max`. */
332
+ flaps?: number;
333
+ /** Full flap deflection in degrees. Default `40`. */
334
+ max?: number;
335
+ /** Scale labels in degrees. Default every 10° from 0 to `max`. */
336
+ detents?: number[];
337
+ /** Number of LED segments in the bar. Default `20`. */
338
+ segments?: number;
339
+ /**
340
+ * Flap extension speed limits (Vfe) in knots. The entry with the largest `flaps` at or below the
341
+ * current position is shown as the MAX speed. Omit to hide the speed readout.
342
+ */
343
+ speedLimits?: FlapSpeedLimit[];
344
+ /** Current airspeed in knots. When above the limit for the current flap setting the readout turns red. */
345
+ airspeed?: number;
346
+ /** Caption at the bottom of the dial. Default `"WING FLAP"`. */
347
+ label?: string;
348
+ }
349
+ declare function FlapIndicator({ flaps, max, detents, segments, speedLimits, airspeed, label, ...props }: FlapIndicatorProps): react.JSX.Element;
350
+
351
+ interface AoaIndicatorProps extends InstrumentProps {
352
+ /** Current angle of attack in degrees. */
353
+ aoa?: number;
354
+ /** AoA at which the bottom bar lights, e.g. zero lift. Default `0`. */
355
+ min?: number;
356
+ /** Optimum AoA (approach / L/Dmax) at which the green donut lights. Default halfway between `min` and `max`. */
357
+ optimum?: number;
358
+ /** Critical (stall) AoA at which the top red chevron lights and the chevrons flash. Default `20`. */
359
+ max?: number;
360
+ /** Print the AoA in degrees under the display. Default `false`. */
361
+ showValue?: boolean;
362
+ /** Caption at the bottom of the dial. Default `"AOA"`. */
363
+ label?: string;
364
+ }
365
+ declare function AoaIndicator({ aoa, min, optimum, max, showValue, label, ...props }: AoaIndicatorProps): react.JSX.Element;
366
+
367
+ 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, WindIndicator, type WindIndicatorProps, formatAdf, formatDme, formatNav, formatValue, parseAdf, parseNav, relativeBearing, vorDeviation };