flight-indicators 1.2.0 → 1.2.1
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 +8 -0
- package/dist/index.cjs +92 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +98 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -98,6 +98,8 @@ interface WindIndicatorProps extends InstrumentProps {
|
|
|
98
98
|
declare function WindIndicator({ runway, runwaySide, windDirection, windSpeed, windGust, crosswindLimit, ...props }: WindIndicatorProps): react.JSX.Element;
|
|
99
99
|
|
|
100
100
|
type ToFrom = 'TO' | 'FROM' | 'OFF';
|
|
101
|
+
/** How the course deviation needle moves: sliding sideways, or swinging from a hinge under the top index. */
|
|
102
|
+
type VorNeedle = 'slide' | 'swing';
|
|
101
103
|
interface VorIndicatorProps extends InstrumentProps {
|
|
102
104
|
/** Selected course (OBS) in degrees. The compass card turns so this course sits under the top index. */
|
|
103
105
|
course?: number;
|
|
@@ -115,13 +117,19 @@ interface VorIndicatorProps extends InstrumentProps {
|
|
|
115
117
|
toFrom?: ToFrom;
|
|
116
118
|
/** `false` shows the red NAV flag, centres the needle and hides TO/FROM. Default `true`. */
|
|
117
119
|
signal?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* `"slide"` (default) moves a vertical bar sideways across a straight row of dots.
|
|
122
|
+
* `"swing"` hinges the needle just below the top index so it swings like a pendulum over a curved row of dots,
|
|
123
|
+
* as on older VOR heads.
|
|
124
|
+
*/
|
|
125
|
+
needle?: VorNeedle;
|
|
118
126
|
}
|
|
119
127
|
/** Needle deflection (°, positive = course to the right) and flag for an aircraft on `radial` with `course` selected. */
|
|
120
128
|
declare function vorDeviation(course: number, radial: number): {
|
|
121
129
|
deviation: number;
|
|
122
130
|
toFrom: ToFrom;
|
|
123
131
|
};
|
|
124
|
-
declare function VorIndicator({ course, radial, deviation, toFrom, signal, ...props }: VorIndicatorProps): react.JSX.Element;
|
|
132
|
+
declare function VorIndicator({ course, radial, deviation, toFrom, signal, needle, ...props }: VorIndicatorProps): react.JSX.Element;
|
|
125
133
|
|
|
126
134
|
interface AdfIndicatorProps extends InstrumentProps {
|
|
127
135
|
/**
|
|
@@ -364,4 +372,4 @@ interface AoaIndicatorProps extends InstrumentProps {
|
|
|
364
372
|
}
|
|
365
373
|
declare function AoaIndicator({ aoa, min, optimum, max, showValue, label, ...props }: AoaIndicatorProps): react.JSX.Element;
|
|
366
374
|
|
|
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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -98,6 +98,8 @@ interface WindIndicatorProps extends InstrumentProps {
|
|
|
98
98
|
declare function WindIndicator({ runway, runwaySide, windDirection, windSpeed, windGust, crosswindLimit, ...props }: WindIndicatorProps): react.JSX.Element;
|
|
99
99
|
|
|
100
100
|
type ToFrom = 'TO' | 'FROM' | 'OFF';
|
|
101
|
+
/** How the course deviation needle moves: sliding sideways, or swinging from a hinge under the top index. */
|
|
102
|
+
type VorNeedle = 'slide' | 'swing';
|
|
101
103
|
interface VorIndicatorProps extends InstrumentProps {
|
|
102
104
|
/** Selected course (OBS) in degrees. The compass card turns so this course sits under the top index. */
|
|
103
105
|
course?: number;
|
|
@@ -115,13 +117,19 @@ interface VorIndicatorProps extends InstrumentProps {
|
|
|
115
117
|
toFrom?: ToFrom;
|
|
116
118
|
/** `false` shows the red NAV flag, centres the needle and hides TO/FROM. Default `true`. */
|
|
117
119
|
signal?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* `"slide"` (default) moves a vertical bar sideways across a straight row of dots.
|
|
122
|
+
* `"swing"` hinges the needle just below the top index so it swings like a pendulum over a curved row of dots,
|
|
123
|
+
* as on older VOR heads.
|
|
124
|
+
*/
|
|
125
|
+
needle?: VorNeedle;
|
|
118
126
|
}
|
|
119
127
|
/** Needle deflection (°, positive = course to the right) and flag for an aircraft on `radial` with `course` selected. */
|
|
120
128
|
declare function vorDeviation(course: number, radial: number): {
|
|
121
129
|
deviation: number;
|
|
122
130
|
toFrom: ToFrom;
|
|
123
131
|
};
|
|
124
|
-
declare function VorIndicator({ course, radial, deviation, toFrom, signal, ...props }: VorIndicatorProps): react.JSX.Element;
|
|
132
|
+
declare function VorIndicator({ course, radial, deviation, toFrom, signal, needle, ...props }: VorIndicatorProps): react.JSX.Element;
|
|
125
133
|
|
|
126
134
|
interface AdfIndicatorProps extends InstrumentProps {
|
|
127
135
|
/**
|
|
@@ -364,4 +372,4 @@ interface AoaIndicatorProps extends InstrumentProps {
|
|
|
364
372
|
}
|
|
365
373
|
declare function AoaIndicator({ aoa, min, optimum, max, showValue, label, ...props }: AoaIndicatorProps): react.JSX.Element;
|
|
366
374
|
|
|
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 };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -562,12 +562,17 @@ function WindIndicator({
|
|
|
562
562
|
}
|
|
563
563
|
|
|
564
564
|
// src/components/VorIndicator.tsx
|
|
565
|
-
import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
565
|
+
import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
566
566
|
var CARDINALS3 = { 0: "N", 90: "E", 180: "S", 270: "W" };
|
|
567
567
|
var AMBER2 = "#ffb000";
|
|
568
568
|
var FULL_SCALE_DEG = 10;
|
|
569
569
|
var DOT_SPACING = 22;
|
|
570
570
|
var FULL_SCALE_PX = DOT_SPACING * 5;
|
|
571
|
+
var PIVOT_Y = CENTER - 100;
|
|
572
|
+
var SWING_LENGTH = 165;
|
|
573
|
+
var SWING_DOT_RADIUS = 156;
|
|
574
|
+
var SWING_DEG_PER_DOT = 7.5;
|
|
575
|
+
var SWING_FULL_SCALE_DEG = SWING_DEG_PER_DOT * 5;
|
|
571
576
|
var norm2 = (deg) => (deg % 360 + 360) % 360;
|
|
572
577
|
var signedDiff = (a, b) => ((a - b) % 360 + 540) % 360 - 180;
|
|
573
578
|
function vorDeviation(course, radial) {
|
|
@@ -593,7 +598,7 @@ function Flag({ y, up, visible, testId }) {
|
|
|
593
598
|
/* @__PURE__ */ jsx9("text", { x: CENTER + 22, y, fill: "#fff", fontSize: "15", fontWeight: "bold", dominantBaseline: "central", children: up ? "TO" : "FROM" })
|
|
594
599
|
] });
|
|
595
600
|
}
|
|
596
|
-
function VorIndicator({ course = 0, radial, deviation, toFrom, signal = true, ...props }) {
|
|
601
|
+
function VorIndicator({ course = 0, radial, deviation, toFrom, signal = true, needle = "slide", ...props }) {
|
|
597
602
|
const duration = props.animationDuration ?? DEFAULT_ANIMATION_MS;
|
|
598
603
|
const crs = finite(course);
|
|
599
604
|
const computed = typeof radial === "number" && Number.isFinite(radial) ? vorDeviation(crs, radial) : void 0;
|
|
@@ -602,7 +607,9 @@ function VorIndicator({ course = 0, radial, deviation, toFrom, signal = true, ..
|
|
|
602
607
|
const flag = !signal ? "OFF" : toFrom ?? computed?.toFrom ?? "OFF";
|
|
603
608
|
const displayCourse = useContinuousAngle(crs);
|
|
604
609
|
const courseText = String(Math.round(norm2(crs)) || 360).padStart(3, "0");
|
|
610
|
+
const swing = needle === "swing";
|
|
605
611
|
const needleX = dev / FULL_SCALE_DEG * FULL_SCALE_PX;
|
|
612
|
+
const needleAngle = -(dev / FULL_SCALE_DEG) * SWING_FULL_SCALE_DEG;
|
|
606
613
|
const devText = Math.abs(dev) < 0.05 ? "centred" : `${Math.abs(dev).toFixed(1)}\xB0 ${dev > 0 ? "right" : "left"}`;
|
|
607
614
|
const label2 = signal ? `VOR indicator: course ${courseText}\xB0, needle ${devText}, ${flag === "OFF" ? "no TO/FROM indication" : flag}` : `VOR indicator: course ${courseText}\xB0, no signal`;
|
|
608
615
|
return /* @__PURE__ */ jsxs9(InstrumentFrame, { ...props, label: label2, children: [
|
|
@@ -630,11 +637,77 @@ function VorIndicator({ course = 0, radial, deviation, toFrom, signal = true, ..
|
|
|
630
637
|
/* @__PURE__ */ jsx9("path", { d: `M ${CENTER} ${CENTER - 150} l -10 -28 h 20 z`, fill: AMBER2, stroke: "#000", strokeWidth: "1.5" }),
|
|
631
638
|
/* @__PURE__ */ jsx9("path", { d: `M ${CENTER} ${CENTER + 150} l -8 24 h 16 z`, fill: "#fff", stroke: "#000", strokeWidth: "1.5" }),
|
|
632
639
|
/* @__PURE__ */ jsx9("g", { stroke: AMBER2, strokeWidth: "4", strokeLinecap: "round", children: [45, 90, 135, 225, 270, 315].map((a) => /* @__PURE__ */ jsx9("path", { d: tickPath(192, 178, a) }, a)) }),
|
|
633
|
-
/* @__PURE__ */
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
640
|
+
swing ? /* @__PURE__ */ jsxs9(Fragment2, { children: [
|
|
641
|
+
/* @__PURE__ */ jsx9("g", { fill: "#fff", stroke: "#000", strokeWidth: "1", children: range(1, 5, 1).flatMap((i) => [-i, i]).map((i) => {
|
|
642
|
+
const [x, y] = polar(SWING_DOT_RADIUS, 180 - i * SWING_DEG_PER_DOT, CENTER, PIVOT_Y);
|
|
643
|
+
return /* @__PURE__ */ jsx9("circle", { cx: x, cy: y, r: "5" }, i);
|
|
644
|
+
}) }),
|
|
645
|
+
/* @__PURE__ */ jsx9(
|
|
646
|
+
"rect",
|
|
647
|
+
{
|
|
648
|
+
x: CENTER - 6,
|
|
649
|
+
y: PIVOT_Y + SWING_DOT_RADIUS - 10,
|
|
650
|
+
width: "12",
|
|
651
|
+
height: "20",
|
|
652
|
+
rx: "2",
|
|
653
|
+
fill: "none",
|
|
654
|
+
stroke: "#fff",
|
|
655
|
+
strokeWidth: "2.5"
|
|
656
|
+
}
|
|
657
|
+
),
|
|
658
|
+
/* @__PURE__ */ jsx9("rect", { x: CENTER + 46, y: CENTER - 72, width: "46", height: "76", rx: "5", fill: "#000", stroke: "#555", strokeWidth: "2" }),
|
|
659
|
+
/* @__PURE__ */ jsxs9("g", { fill: "#ccc", fontSize: "14", fontWeight: "bold", textAnchor: "middle", dominantBaseline: "central", children: [
|
|
660
|
+
/* @__PURE__ */ jsx9("text", { x: CENTER + 69, y: CENTER - 59, children: "TO" }),
|
|
661
|
+
/* @__PURE__ */ jsx9("text", { x: CENTER + 69, y: CENTER - 9, children: "FR" })
|
|
662
|
+
] }),
|
|
663
|
+
/* @__PURE__ */ jsxs9("g", { stroke: "#000", strokeWidth: "1.5", strokeLinejoin: "round", fill: "#fff", children: [
|
|
664
|
+
/* @__PURE__ */ jsx9(
|
|
665
|
+
"path",
|
|
666
|
+
{
|
|
667
|
+
"data-testid": "vor-to",
|
|
668
|
+
d: `M ${CENTER + 69} ${CENTER - 44} l 11 18 h -22 z`,
|
|
669
|
+
opacity: flag === "TO" ? 1 : 0,
|
|
670
|
+
style: { transition: "opacity 200ms ease-out" }
|
|
671
|
+
}
|
|
672
|
+
),
|
|
673
|
+
/* @__PURE__ */ jsx9(
|
|
674
|
+
"path",
|
|
675
|
+
{
|
|
676
|
+
"data-testid": "vor-from",
|
|
677
|
+
d: `M ${CENTER + 69} ${CENTER - 22} l 11 -18 h -22 z`,
|
|
678
|
+
opacity: flag === "FROM" ? 1 : 0,
|
|
679
|
+
style: { transition: "opacity 200ms ease-out" }
|
|
680
|
+
}
|
|
681
|
+
)
|
|
682
|
+
] }),
|
|
683
|
+
/* @__PURE__ */ jsxs9("g", { "data-testid": "vor-needle", style: motionStyle(`rotate(${needleAngle}deg)`, duration, CENTER, PIVOT_Y), children: [
|
|
684
|
+
/* @__PURE__ */ jsx9(
|
|
685
|
+
"path",
|
|
686
|
+
{
|
|
687
|
+
d: `M ${CENTER} ${PIVOT_Y} V ${PIVOT_Y + SWING_LENGTH}`,
|
|
688
|
+
stroke: "#000",
|
|
689
|
+
strokeWidth: "7",
|
|
690
|
+
strokeLinecap: "round"
|
|
691
|
+
}
|
|
692
|
+
),
|
|
693
|
+
/* @__PURE__ */ jsx9(
|
|
694
|
+
"path",
|
|
695
|
+
{
|
|
696
|
+
d: `M ${CENTER} ${PIVOT_Y} V ${PIVOT_Y + SWING_LENGTH}`,
|
|
697
|
+
stroke: "#fff",
|
|
698
|
+
strokeWidth: "4",
|
|
699
|
+
strokeLinecap: "round"
|
|
700
|
+
}
|
|
701
|
+
)
|
|
702
|
+
] }),
|
|
703
|
+
/* @__PURE__ */ jsx9("circle", { cx: CENTER, cy: PIVOT_Y, r: "6", fill: "#333", stroke: "#fff", strokeWidth: "2" })
|
|
704
|
+
] }) : /* @__PURE__ */ jsxs9(Fragment2, { children: [
|
|
705
|
+
/* @__PURE__ */ jsx9("g", { fill: "#fff", stroke: "#000", strokeWidth: "1", children: range(1, 5, 1).flatMap((i) => [-i, i]).map((i) => /* @__PURE__ */ jsx9("circle", { cx: CENTER + i * DOT_SPACING, cy: CENTER, r: "5" }, i)) }),
|
|
706
|
+
/* @__PURE__ */ jsx9("circle", { cx: CENTER, cy: CENTER, r: "9", fill: "none", stroke: "#fff", strokeWidth: "2.5" }),
|
|
707
|
+
/* @__PURE__ */ jsx9(Flag, { y: CENTER - 54, up: true, visible: flag === "TO", testId: "vor-to" }),
|
|
708
|
+
/* @__PURE__ */ jsx9(Flag, { y: CENTER + 54, up: false, visible: flag === "FROM", testId: "vor-from" }),
|
|
709
|
+
/* @__PURE__ */ jsx9("g", { "data-testid": "vor-needle", style: motionStyle(`translate(${needleX}px, 0px)`, duration), children: /* @__PURE__ */ jsx9("rect", { x: CENTER - 3, y: CENTER - 68, width: "6", height: "136", rx: "3", fill: "#fff", stroke: "#000", strokeWidth: "1.5" }) })
|
|
710
|
+
] }),
|
|
638
711
|
/* @__PURE__ */ jsx9("rect", { x: CENTER - 44, y: CENTER + 72, width: "88", height: "26", rx: "4", fill: "#000", stroke: "#555", strokeWidth: "2" }),
|
|
639
712
|
/* @__PURE__ */ jsxs9(
|
|
640
713
|
"text",
|
|
@@ -654,10 +727,19 @@ function VorIndicator({ course = 0, radial, deviation, toFrom, signal = true, ..
|
|
|
654
727
|
]
|
|
655
728
|
}
|
|
656
729
|
),
|
|
657
|
-
/* @__PURE__ */ jsxs9(
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
730
|
+
/* @__PURE__ */ jsxs9(
|
|
731
|
+
"g",
|
|
732
|
+
{
|
|
733
|
+
"data-testid": "vor-nav-flag",
|
|
734
|
+
opacity: signal ? 0 : 1,
|
|
735
|
+
style: { transition: "opacity 200ms ease-out" },
|
|
736
|
+
transform: swing ? "translate(-64 52)" : void 0,
|
|
737
|
+
children: [
|
|
738
|
+
/* @__PURE__ */ jsx9("rect", { x: CENTER - 28, y: CENTER - 98, width: "56", height: "24", rx: "3", fill: "#d42626", stroke: "#000", strokeWidth: "1.5" }),
|
|
739
|
+
/* @__PURE__ */ jsx9("text", { x: CENTER, y: CENTER - 85, fill: "#fff", fontSize: "15", fontWeight: "bold", textAnchor: "middle", dominantBaseline: "central", children: "NAV" })
|
|
740
|
+
]
|
|
741
|
+
}
|
|
742
|
+
)
|
|
661
743
|
] });
|
|
662
744
|
}
|
|
663
745
|
|
|
@@ -804,7 +886,7 @@ function RadioPanel({ nav, adf, dme, color = "#ff9a2e", ...props }) {
|
|
|
804
886
|
|
|
805
887
|
// src/components/RadioStack.tsx
|
|
806
888
|
import { useState } from "react";
|
|
807
|
-
import { Fragment as
|
|
889
|
+
import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
808
890
|
var parseNav = (text) => {
|
|
809
891
|
const mhz = Math.round(Number.parseFloat(text.replace(",", ".")) * 100) / 100;
|
|
810
892
|
return mhz >= 108 && mhz <= 117.95 ? mhz : void 0;
|
|
@@ -873,7 +955,7 @@ function Receiver({ name, unit, value, ident: station, color, format, parse, onC
|
|
|
873
955
|
if (text && standby === void 0 || standby === value.standby) return;
|
|
874
956
|
onChange({ active: value.active, standby });
|
|
875
957
|
};
|
|
876
|
-
return /* @__PURE__ */ jsxs12(
|
|
958
|
+
return /* @__PURE__ */ jsxs12(Fragment3, { children: [
|
|
877
959
|
/* @__PURE__ */ jsxs12("div", { style: label, children: [
|
|
878
960
|
/* @__PURE__ */ jsx12("span", { children: name }),
|
|
879
961
|
/* @__PURE__ */ jsx12("span", { "data-testid": `radio-stack-${key}-ident`, style: ident, children: station ?? "" })
|
|
@@ -1460,7 +1542,7 @@ function FlapIndicator({
|
|
|
1460
1542
|
}
|
|
1461
1543
|
|
|
1462
1544
|
// src/components/AoaIndicator.tsx
|
|
1463
|
-
import { Fragment as
|
|
1545
|
+
import { Fragment as Fragment4, jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1464
1546
|
var GREEN5 = "#3ddc3d";
|
|
1465
1547
|
var AMBER4 = "#ffb000";
|
|
1466
1548
|
var RED4 = "#ff2a2a";
|
|
@@ -1490,12 +1572,12 @@ function RowShape({ shape, y }) {
|
|
|
1490
1572
|
case "bar":
|
|
1491
1573
|
return /* @__PURE__ */ jsx17("rect", { x: l, y: y - BAR_H3 / 2, width: HALF * 2, height: BAR_H3, rx: "2" });
|
|
1492
1574
|
case "split":
|
|
1493
|
-
return /* @__PURE__ */ jsxs17(
|
|
1575
|
+
return /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
1494
1576
|
/* @__PURE__ */ jsx17("rect", { x: l, y: y - BAR_H3 / 2, width: 50, height: BAR_H3, rx: "2" }),
|
|
1495
1577
|
/* @__PURE__ */ jsx17("rect", { x: r - 50, y: y - BAR_H3 / 2, width: 50, height: BAR_H3, rx: "2" })
|
|
1496
1578
|
] });
|
|
1497
1579
|
case "donut":
|
|
1498
|
-
return /* @__PURE__ */ jsxs17(
|
|
1580
|
+
return /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
1499
1581
|
/* @__PURE__ */ jsx17("rect", { x: l, y: y - BAR_H3 / 2, width: HALF - 24, height: BAR_H3, rx: "2" }),
|
|
1500
1582
|
/* @__PURE__ */ jsx17("rect", { x: CENTER + 24, y: y - BAR_H3 / 2, width: HALF - 24, height: BAR_H3, rx: "2" }),
|
|
1501
1583
|
/* @__PURE__ */ jsx17("circle", { cx: CENTER, cy: y, r: 13, fill: "none", strokeWidth: "7" })
|