flight-indicators 1.0.1 → 1.1.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/README.md +136 -2
- package/dist/index.cjs +868 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +204 -1
- package/dist/index.d.ts +204 -1
- package/dist/index.js +851 -1
- package/dist/index.js.map +1 -1
- package/package.json +13 -2
package/dist/index.d.cts
CHANGED
|
@@ -80,4 +80,207 @@ interface TurnCoordinatorProps extends InstrumentProps {
|
|
|
80
80
|
}
|
|
81
81
|
declare function TurnCoordinator({ turnRate, slip, ...props }: TurnCoordinatorProps): react.JSX.Element;
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
type RunwaySide = 'L' | 'C' | 'R';
|
|
84
|
+
interface WindIndicatorProps extends InstrumentProps {
|
|
85
|
+
/** Magnetic heading of the runway in degrees (either end; e.g. `90` for runway 09/27). */
|
|
86
|
+
runway?: number;
|
|
87
|
+
/** Parallel-runway letter for the `runway` end. The opposite end gets the mirrored letter. */
|
|
88
|
+
runwaySide?: RunwaySide;
|
|
89
|
+
/** Direction the wind is blowing *from*, in degrees. */
|
|
90
|
+
windDirection?: number;
|
|
91
|
+
/** Wind speed in knots. Below 1 kt is shown as calm. */
|
|
92
|
+
windSpeed?: number;
|
|
93
|
+
/** Gust speed in knots. Shown when higher than `windSpeed`. */
|
|
94
|
+
windGust?: number;
|
|
95
|
+
/** Crosswind (kt) above which the component readout turns amber. Default `15`. */
|
|
96
|
+
crosswindLimit?: number;
|
|
97
|
+
}
|
|
98
|
+
declare function WindIndicator({ runway, runwaySide, windDirection, windSpeed, windGust, crosswindLimit, ...props }: WindIndicatorProps): react.JSX.Element;
|
|
99
|
+
|
|
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
|
+
/** One readout on a `DataPanel`. */
|
|
127
|
+
interface DataField {
|
|
128
|
+
/** Short caption printed above the value, e.g. `"COM1"`. */
|
|
129
|
+
name: string;
|
|
130
|
+
/** Value to display. Strings are printed as given; numbers are formatted with `decimals`. */
|
|
131
|
+
value: string | number;
|
|
132
|
+
/** Unit printed after the value, e.g. `"MHz"`. */
|
|
133
|
+
unit?: string;
|
|
134
|
+
/** Decimal places for numeric values. Default `0`. */
|
|
135
|
+
decimals?: number;
|
|
136
|
+
/** Colour of the value text. Default white. */
|
|
137
|
+
color?: string;
|
|
138
|
+
}
|
|
139
|
+
interface DataPanelProps extends InstrumentProps {
|
|
140
|
+
/** Readouts to show, laid out in a grid. At most `MAX_FIELDS` (6) are drawn; extra fields are ignored. */
|
|
141
|
+
fields?: DataField[];
|
|
142
|
+
/** Optional caption printed in the bezel above the panel. */
|
|
143
|
+
heading?: string;
|
|
144
|
+
}
|
|
145
|
+
declare const MAX_FIELDS = 6;
|
|
146
|
+
declare function formatValue(field: DataField): string;
|
|
147
|
+
declare function DataPanel({ fields, heading, ...props }: DataPanelProps): react.JSX.Element;
|
|
148
|
+
|
|
149
|
+
/** One tank shown on a `FuelIndicator`. */
|
|
150
|
+
interface FuelTank {
|
|
151
|
+
/** Caption above the bar, e.g. `"LEFT"`. */
|
|
152
|
+
name: string;
|
|
153
|
+
/** Fuel on board, in `unit`. */
|
|
154
|
+
quantity: number;
|
|
155
|
+
/** Full-tank quantity. Defaults to the indicator's `capacity`. */
|
|
156
|
+
capacity?: number;
|
|
157
|
+
}
|
|
158
|
+
interface FuelIndicatorProps extends InstrumentProps {
|
|
159
|
+
/** Tanks to show, left to right. At most `MAX_TANKS` (4) are drawn. */
|
|
160
|
+
tanks?: FuelTank[];
|
|
161
|
+
/** Default full-tank quantity for tanks without their own `capacity`. Default `50`. */
|
|
162
|
+
capacity?: number;
|
|
163
|
+
/** Unit printed under each readout and in the accessible label. Default `"gal"`. */
|
|
164
|
+
unit?: string;
|
|
165
|
+
/** Quantity at or below which a tank's bar and readout turn red. Default 10% of that tank's capacity. */
|
|
166
|
+
low?: number;
|
|
167
|
+
/** Decimal places in the readouts. Default `1`. */
|
|
168
|
+
decimals?: number;
|
|
169
|
+
/** Caption along the bottom of the display. Default `"FUEL"`. */
|
|
170
|
+
label?: string;
|
|
171
|
+
}
|
|
172
|
+
declare const MAX_TANKS = 4;
|
|
173
|
+
declare function FuelIndicator({ tanks, capacity, unit, low, decimals, label, ...props }: FuelIndicatorProps): react.JSX.Element;
|
|
174
|
+
|
|
175
|
+
/** A scaled gauge: where the value sits between `min` and `max`, and which bands are coloured. */
|
|
176
|
+
interface EngineGauge {
|
|
177
|
+
value?: number;
|
|
178
|
+
/** Bottom of the scale. Default `0`. */
|
|
179
|
+
min?: number;
|
|
180
|
+
/** Top of the scale. Default `100`. */
|
|
181
|
+
max?: number;
|
|
182
|
+
/** Normal operating band `[from, to]`, drawn green. */
|
|
183
|
+
green?: [number, number];
|
|
184
|
+
/** Caution band `[from, to]`, drawn yellow. */
|
|
185
|
+
yellow?: [number, number];
|
|
186
|
+
/** Values at or below this are red (the scale from `min` to `low` is drawn red). */
|
|
187
|
+
low?: number;
|
|
188
|
+
/** Values at or above this are red (the scale from `high` to `max` is drawn red). */
|
|
189
|
+
high?: number;
|
|
190
|
+
/** Unit printed next to the readout. */
|
|
191
|
+
unit?: string;
|
|
192
|
+
/** Decimal places in the readout. Default `0`. */
|
|
193
|
+
decimals?: number;
|
|
194
|
+
}
|
|
195
|
+
/** A horizontal bar gauge on the right-hand side of the display. */
|
|
196
|
+
interface EngineBarGauge extends EngineGauge {
|
|
197
|
+
/** Caption under the bar, e.g. `"Oil P"`. */
|
|
198
|
+
label: string;
|
|
199
|
+
}
|
|
200
|
+
interface EngineIndicatorProps extends InstrumentProps {
|
|
201
|
+
/** Percent power printed at the top. */
|
|
202
|
+
power?: number;
|
|
203
|
+
/** Manifold pressure arc gauge. Defaults to a 10–35 inHg scale. */
|
|
204
|
+
manifold?: EngineGauge;
|
|
205
|
+
/** Engine speed arc gauge. Defaults to a 0–3000 RPM scale. */
|
|
206
|
+
rpm?: EngineGauge;
|
|
207
|
+
/** Cylinder head temperature per cylinder, up to `MAX_CYLINDERS`. */
|
|
208
|
+
cht?: number[];
|
|
209
|
+
/** Exhaust gas temperature per cylinder, up to `MAX_CYLINDERS`. */
|
|
210
|
+
egt?: number[];
|
|
211
|
+
/** Turbine inlet temperature, drawn as the `T` column. Omit to hide it. */
|
|
212
|
+
tit?: number;
|
|
213
|
+
/** CHT at which the red dashed limit line is drawn. Default `400`. */
|
|
214
|
+
chtLimit?: number;
|
|
215
|
+
/** CHT that fills the bar graph to the top. Default `500`. */
|
|
216
|
+
chtScale?: number;
|
|
217
|
+
/** EGT (and TIT) that fills the bar graph to the top. Default `1700`. */
|
|
218
|
+
egtScale?: number;
|
|
219
|
+
/** Temperature unit printed after CHT/EGT/TIT. Default `"°F"`. */
|
|
220
|
+
temperatureUnit?: string;
|
|
221
|
+
/** Horizontal bar gauges, top to bottom, up to `MAX_BAR_GAUGES`. Defaults to oil pressure, oil temperature, fuel pressure and fuel flow. */
|
|
222
|
+
gauges?: EngineBarGauge[];
|
|
223
|
+
/** Alternator current in amps. */
|
|
224
|
+
amps?: number;
|
|
225
|
+
/** Bus voltage. */
|
|
226
|
+
volts?: number;
|
|
227
|
+
/** Fuel in the left tank. */
|
|
228
|
+
fuelLeft?: number;
|
|
229
|
+
/** Fuel in the right tank. */
|
|
230
|
+
fuelRight?: number;
|
|
231
|
+
/** Full quantity of each tank, used to fill the tank icons. Default `30`. */
|
|
232
|
+
fuelCapacity?: number;
|
|
233
|
+
/** Fuel unit printed under the quantities. Default `"GAL"`. */
|
|
234
|
+
fuelUnit?: string;
|
|
235
|
+
}
|
|
236
|
+
declare const MAX_CYLINDERS = 6;
|
|
237
|
+
declare const MAX_BAR_GAUGES = 4;
|
|
238
|
+
declare const DEFAULT_MANIFOLD: EngineGauge;
|
|
239
|
+
declare const DEFAULT_RPM: EngineGauge;
|
|
240
|
+
declare const DEFAULT_BAR_GAUGES: EngineBarGauge[];
|
|
241
|
+
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;
|
|
242
|
+
|
|
243
|
+
/** Maximum speed allowed once the flaps are at or beyond `flaps` degrees. */
|
|
244
|
+
interface FlapSpeedLimit {
|
|
245
|
+
flaps: number;
|
|
246
|
+
/** Speed in knots. */
|
|
247
|
+
speed: number;
|
|
248
|
+
}
|
|
249
|
+
interface FlapIndicatorProps extends InstrumentProps {
|
|
250
|
+
/** Flap position in degrees, 0 = retracted. Clamped to `0…max`. */
|
|
251
|
+
flaps?: number;
|
|
252
|
+
/** Full flap deflection in degrees. Default `40`. */
|
|
253
|
+
max?: number;
|
|
254
|
+
/** Scale labels in degrees. Default every 10° from 0 to `max`. */
|
|
255
|
+
detents?: number[];
|
|
256
|
+
/** Number of LED segments in the bar. Default `20`. */
|
|
257
|
+
segments?: number;
|
|
258
|
+
/**
|
|
259
|
+
* Flap extension speed limits (Vfe) in knots. The entry with the largest `flaps` at or below the
|
|
260
|
+
* current position is shown as the MAX speed. Omit to hide the speed readout.
|
|
261
|
+
*/
|
|
262
|
+
speedLimits?: FlapSpeedLimit[];
|
|
263
|
+
/** Current airspeed in knots. When above the limit for the current flap setting the readout turns red. */
|
|
264
|
+
airspeed?: number;
|
|
265
|
+
/** Caption at the bottom of the dial. Default `"WING FLAP"`. */
|
|
266
|
+
label?: string;
|
|
267
|
+
}
|
|
268
|
+
declare function FlapIndicator({ flaps, max, detents, segments, speedLimits, airspeed, label, ...props }: FlapIndicatorProps): react.JSX.Element;
|
|
269
|
+
|
|
270
|
+
interface AoaIndicatorProps extends InstrumentProps {
|
|
271
|
+
/** Current angle of attack in degrees. */
|
|
272
|
+
aoa?: number;
|
|
273
|
+
/** AoA at which the bottom bar lights, e.g. zero lift. Default `0`. */
|
|
274
|
+
min?: number;
|
|
275
|
+
/** Optimum AoA (approach / L/Dmax) at which the green donut lights. Default halfway between `min` and `max`. */
|
|
276
|
+
optimum?: number;
|
|
277
|
+
/** Critical (stall) AoA at which the top red chevron lights and the chevrons flash. Default `20`. */
|
|
278
|
+
max?: number;
|
|
279
|
+
/** Print the AoA in degrees under the display. Default `false`. */
|
|
280
|
+
showValue?: boolean;
|
|
281
|
+
/** Caption at the bottom of the dial. Default `"AOA"`. */
|
|
282
|
+
label?: string;
|
|
283
|
+
}
|
|
284
|
+
declare function AoaIndicator({ aoa, min, optimum, max, showValue, label, ...props }: AoaIndicatorProps): react.JSX.Element;
|
|
285
|
+
|
|
286
|
+
export { 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 RunwaySide, type ToFrom, TurnCoordinator, type TurnCoordinatorProps, VerticalSpeed, type VerticalSpeedProps, VorIndicator, type VorIndicatorProps, WindIndicator, type WindIndicatorProps, formatValue, vorDeviation };
|
package/dist/index.d.ts
CHANGED
|
@@ -80,4 +80,207 @@ interface TurnCoordinatorProps extends InstrumentProps {
|
|
|
80
80
|
}
|
|
81
81
|
declare function TurnCoordinator({ turnRate, slip, ...props }: TurnCoordinatorProps): react.JSX.Element;
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
type RunwaySide = 'L' | 'C' | 'R';
|
|
84
|
+
interface WindIndicatorProps extends InstrumentProps {
|
|
85
|
+
/** Magnetic heading of the runway in degrees (either end; e.g. `90` for runway 09/27). */
|
|
86
|
+
runway?: number;
|
|
87
|
+
/** Parallel-runway letter for the `runway` end. The opposite end gets the mirrored letter. */
|
|
88
|
+
runwaySide?: RunwaySide;
|
|
89
|
+
/** Direction the wind is blowing *from*, in degrees. */
|
|
90
|
+
windDirection?: number;
|
|
91
|
+
/** Wind speed in knots. Below 1 kt is shown as calm. */
|
|
92
|
+
windSpeed?: number;
|
|
93
|
+
/** Gust speed in knots. Shown when higher than `windSpeed`. */
|
|
94
|
+
windGust?: number;
|
|
95
|
+
/** Crosswind (kt) above which the component readout turns amber. Default `15`. */
|
|
96
|
+
crosswindLimit?: number;
|
|
97
|
+
}
|
|
98
|
+
declare function WindIndicator({ runway, runwaySide, windDirection, windSpeed, windGust, crosswindLimit, ...props }: WindIndicatorProps): react.JSX.Element;
|
|
99
|
+
|
|
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
|
+
/** One readout on a `DataPanel`. */
|
|
127
|
+
interface DataField {
|
|
128
|
+
/** Short caption printed above the value, e.g. `"COM1"`. */
|
|
129
|
+
name: string;
|
|
130
|
+
/** Value to display. Strings are printed as given; numbers are formatted with `decimals`. */
|
|
131
|
+
value: string | number;
|
|
132
|
+
/** Unit printed after the value, e.g. `"MHz"`. */
|
|
133
|
+
unit?: string;
|
|
134
|
+
/** Decimal places for numeric values. Default `0`. */
|
|
135
|
+
decimals?: number;
|
|
136
|
+
/** Colour of the value text. Default white. */
|
|
137
|
+
color?: string;
|
|
138
|
+
}
|
|
139
|
+
interface DataPanelProps extends InstrumentProps {
|
|
140
|
+
/** Readouts to show, laid out in a grid. At most `MAX_FIELDS` (6) are drawn; extra fields are ignored. */
|
|
141
|
+
fields?: DataField[];
|
|
142
|
+
/** Optional caption printed in the bezel above the panel. */
|
|
143
|
+
heading?: string;
|
|
144
|
+
}
|
|
145
|
+
declare const MAX_FIELDS = 6;
|
|
146
|
+
declare function formatValue(field: DataField): string;
|
|
147
|
+
declare function DataPanel({ fields, heading, ...props }: DataPanelProps): react.JSX.Element;
|
|
148
|
+
|
|
149
|
+
/** One tank shown on a `FuelIndicator`. */
|
|
150
|
+
interface FuelTank {
|
|
151
|
+
/** Caption above the bar, e.g. `"LEFT"`. */
|
|
152
|
+
name: string;
|
|
153
|
+
/** Fuel on board, in `unit`. */
|
|
154
|
+
quantity: number;
|
|
155
|
+
/** Full-tank quantity. Defaults to the indicator's `capacity`. */
|
|
156
|
+
capacity?: number;
|
|
157
|
+
}
|
|
158
|
+
interface FuelIndicatorProps extends InstrumentProps {
|
|
159
|
+
/** Tanks to show, left to right. At most `MAX_TANKS` (4) are drawn. */
|
|
160
|
+
tanks?: FuelTank[];
|
|
161
|
+
/** Default full-tank quantity for tanks without their own `capacity`. Default `50`. */
|
|
162
|
+
capacity?: number;
|
|
163
|
+
/** Unit printed under each readout and in the accessible label. Default `"gal"`. */
|
|
164
|
+
unit?: string;
|
|
165
|
+
/** Quantity at or below which a tank's bar and readout turn red. Default 10% of that tank's capacity. */
|
|
166
|
+
low?: number;
|
|
167
|
+
/** Decimal places in the readouts. Default `1`. */
|
|
168
|
+
decimals?: number;
|
|
169
|
+
/** Caption along the bottom of the display. Default `"FUEL"`. */
|
|
170
|
+
label?: string;
|
|
171
|
+
}
|
|
172
|
+
declare const MAX_TANKS = 4;
|
|
173
|
+
declare function FuelIndicator({ tanks, capacity, unit, low, decimals, label, ...props }: FuelIndicatorProps): react.JSX.Element;
|
|
174
|
+
|
|
175
|
+
/** A scaled gauge: where the value sits between `min` and `max`, and which bands are coloured. */
|
|
176
|
+
interface EngineGauge {
|
|
177
|
+
value?: number;
|
|
178
|
+
/** Bottom of the scale. Default `0`. */
|
|
179
|
+
min?: number;
|
|
180
|
+
/** Top of the scale. Default `100`. */
|
|
181
|
+
max?: number;
|
|
182
|
+
/** Normal operating band `[from, to]`, drawn green. */
|
|
183
|
+
green?: [number, number];
|
|
184
|
+
/** Caution band `[from, to]`, drawn yellow. */
|
|
185
|
+
yellow?: [number, number];
|
|
186
|
+
/** Values at or below this are red (the scale from `min` to `low` is drawn red). */
|
|
187
|
+
low?: number;
|
|
188
|
+
/** Values at or above this are red (the scale from `high` to `max` is drawn red). */
|
|
189
|
+
high?: number;
|
|
190
|
+
/** Unit printed next to the readout. */
|
|
191
|
+
unit?: string;
|
|
192
|
+
/** Decimal places in the readout. Default `0`. */
|
|
193
|
+
decimals?: number;
|
|
194
|
+
}
|
|
195
|
+
/** A horizontal bar gauge on the right-hand side of the display. */
|
|
196
|
+
interface EngineBarGauge extends EngineGauge {
|
|
197
|
+
/** Caption under the bar, e.g. `"Oil P"`. */
|
|
198
|
+
label: string;
|
|
199
|
+
}
|
|
200
|
+
interface EngineIndicatorProps extends InstrumentProps {
|
|
201
|
+
/** Percent power printed at the top. */
|
|
202
|
+
power?: number;
|
|
203
|
+
/** Manifold pressure arc gauge. Defaults to a 10–35 inHg scale. */
|
|
204
|
+
manifold?: EngineGauge;
|
|
205
|
+
/** Engine speed arc gauge. Defaults to a 0–3000 RPM scale. */
|
|
206
|
+
rpm?: EngineGauge;
|
|
207
|
+
/** Cylinder head temperature per cylinder, up to `MAX_CYLINDERS`. */
|
|
208
|
+
cht?: number[];
|
|
209
|
+
/** Exhaust gas temperature per cylinder, up to `MAX_CYLINDERS`. */
|
|
210
|
+
egt?: number[];
|
|
211
|
+
/** Turbine inlet temperature, drawn as the `T` column. Omit to hide it. */
|
|
212
|
+
tit?: number;
|
|
213
|
+
/** CHT at which the red dashed limit line is drawn. Default `400`. */
|
|
214
|
+
chtLimit?: number;
|
|
215
|
+
/** CHT that fills the bar graph to the top. Default `500`. */
|
|
216
|
+
chtScale?: number;
|
|
217
|
+
/** EGT (and TIT) that fills the bar graph to the top. Default `1700`. */
|
|
218
|
+
egtScale?: number;
|
|
219
|
+
/** Temperature unit printed after CHT/EGT/TIT. Default `"°F"`. */
|
|
220
|
+
temperatureUnit?: string;
|
|
221
|
+
/** Horizontal bar gauges, top to bottom, up to `MAX_BAR_GAUGES`. Defaults to oil pressure, oil temperature, fuel pressure and fuel flow. */
|
|
222
|
+
gauges?: EngineBarGauge[];
|
|
223
|
+
/** Alternator current in amps. */
|
|
224
|
+
amps?: number;
|
|
225
|
+
/** Bus voltage. */
|
|
226
|
+
volts?: number;
|
|
227
|
+
/** Fuel in the left tank. */
|
|
228
|
+
fuelLeft?: number;
|
|
229
|
+
/** Fuel in the right tank. */
|
|
230
|
+
fuelRight?: number;
|
|
231
|
+
/** Full quantity of each tank, used to fill the tank icons. Default `30`. */
|
|
232
|
+
fuelCapacity?: number;
|
|
233
|
+
/** Fuel unit printed under the quantities. Default `"GAL"`. */
|
|
234
|
+
fuelUnit?: string;
|
|
235
|
+
}
|
|
236
|
+
declare const MAX_CYLINDERS = 6;
|
|
237
|
+
declare const MAX_BAR_GAUGES = 4;
|
|
238
|
+
declare const DEFAULT_MANIFOLD: EngineGauge;
|
|
239
|
+
declare const DEFAULT_RPM: EngineGauge;
|
|
240
|
+
declare const DEFAULT_BAR_GAUGES: EngineBarGauge[];
|
|
241
|
+
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;
|
|
242
|
+
|
|
243
|
+
/** Maximum speed allowed once the flaps are at or beyond `flaps` degrees. */
|
|
244
|
+
interface FlapSpeedLimit {
|
|
245
|
+
flaps: number;
|
|
246
|
+
/** Speed in knots. */
|
|
247
|
+
speed: number;
|
|
248
|
+
}
|
|
249
|
+
interface FlapIndicatorProps extends InstrumentProps {
|
|
250
|
+
/** Flap position in degrees, 0 = retracted. Clamped to `0…max`. */
|
|
251
|
+
flaps?: number;
|
|
252
|
+
/** Full flap deflection in degrees. Default `40`. */
|
|
253
|
+
max?: number;
|
|
254
|
+
/** Scale labels in degrees. Default every 10° from 0 to `max`. */
|
|
255
|
+
detents?: number[];
|
|
256
|
+
/** Number of LED segments in the bar. Default `20`. */
|
|
257
|
+
segments?: number;
|
|
258
|
+
/**
|
|
259
|
+
* Flap extension speed limits (Vfe) in knots. The entry with the largest `flaps` at or below the
|
|
260
|
+
* current position is shown as the MAX speed. Omit to hide the speed readout.
|
|
261
|
+
*/
|
|
262
|
+
speedLimits?: FlapSpeedLimit[];
|
|
263
|
+
/** Current airspeed in knots. When above the limit for the current flap setting the readout turns red. */
|
|
264
|
+
airspeed?: number;
|
|
265
|
+
/** Caption at the bottom of the dial. Default `"WING FLAP"`. */
|
|
266
|
+
label?: string;
|
|
267
|
+
}
|
|
268
|
+
declare function FlapIndicator({ flaps, max, detents, segments, speedLimits, airspeed, label, ...props }: FlapIndicatorProps): react.JSX.Element;
|
|
269
|
+
|
|
270
|
+
interface AoaIndicatorProps extends InstrumentProps {
|
|
271
|
+
/** Current angle of attack in degrees. */
|
|
272
|
+
aoa?: number;
|
|
273
|
+
/** AoA at which the bottom bar lights, e.g. zero lift. Default `0`. */
|
|
274
|
+
min?: number;
|
|
275
|
+
/** Optimum AoA (approach / L/Dmax) at which the green donut lights. Default halfway between `min` and `max`. */
|
|
276
|
+
optimum?: number;
|
|
277
|
+
/** Critical (stall) AoA at which the top red chevron lights and the chevrons flash. Default `20`. */
|
|
278
|
+
max?: number;
|
|
279
|
+
/** Print the AoA in degrees under the display. Default `false`. */
|
|
280
|
+
showValue?: boolean;
|
|
281
|
+
/** Caption at the bottom of the dial. Default `"AOA"`. */
|
|
282
|
+
label?: string;
|
|
283
|
+
}
|
|
284
|
+
declare function AoaIndicator({ aoa, min, optimum, max, showValue, label, ...props }: AoaIndicatorProps): react.JSX.Element;
|
|
285
|
+
|
|
286
|
+
export { 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 RunwaySide, type ToFrom, TurnCoordinator, type TurnCoordinatorProps, VerticalSpeed, type VerticalSpeedProps, VorIndicator, type VorIndicatorProps, WindIndicator, type WindIndicatorProps, formatValue, vorDeviation };
|