From 9270f4bcd3eb16bdcbe784114a7116b00f7a398b Mon Sep 17 00:00:00 2001 From: 2hwk Date: Tue, 2 Apr 2024 20:39:01 +0800 Subject: [PATCH] fix(efb): fuel EFB page visual glitches (#8573) --- .../src/EFB/Assets/FuelOutline.tsx | 62 +++++-------------- .../Ground/Pages/Fuel/A380_842/A380Fuel.tsx | 1 + 2 files changed, 15 insertions(+), 48 deletions(-) diff --git a/fbw-common/src/systems/instruments/src/EFB/Assets/FuelOutline.tsx b/fbw-common/src/systems/instruments/src/EFB/Assets/FuelOutline.tsx index a5c4ac1a0149..2ba0da1e74e0 100644 --- a/fbw-common/src/systems/instruments/src/EFB/Assets/FuelOutline.tsx +++ b/fbw-common/src/systems/instruments/src/EFB/Assets/FuelOutline.tsx @@ -37,12 +37,13 @@ const AnimatedLinearGradient = ({ id, percent, color, duration, enableDynamic }) ); }; -export const A380FuelOutline = ({ className, feed1Percent, feed2Percent, feed3Percent, feed4Percent, leftInnerPercent, leftMidPercent, leftOuterPercent, rightInnerPercent, rightMidPercent, rightOuterPercent, trimPercent }: { +export const A380FuelOutline = ({ className, feed1Percent, feed2Percent, feed3Percent, feed4Percent, leftInnerPercent, leftMidPercent, leftOuterPercent, rightInnerPercent, rightMidPercent, rightOuterPercent, trimPercent, enableDynamic }: { className: string, feed1Percent: number, feed2Percent: number, feed3Percent: number, feed4Percent: number, leftInnerPercent: number, leftMidPercent: number, leftOuterPercent: number, rightInnerPercent: number, rightMidPercent: number, rightOuterPercent: number, - trimPercent: number + trimPercent: number, + enableDynamic: boolean }) => ( @@ -51,17 +52,17 @@ export const A380FuelOutline = ({ className, feed1Percent, feed2Percent, feed3Pe '.cls-1, .cls-2, .cls-3, .cls-4 { stroke-miterlimit: 10; } .cls-2 { stroke-width: 3px; } .cls-3 { stroke-width: 2px; } .cls-4 { stroke-width: .5px; }' } - - - - - - - - - - - + + + + + + + + + + + @@ -197,39 +198,4 @@ export const A380FuelOutline = ({ className, feed1Percent, feed2Percent, feed3Pe - - /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ ); diff --git a/fbw-common/src/systems/instruments/src/EFB/Ground/Pages/Fuel/A380_842/A380Fuel.tsx b/fbw-common/src/systems/instruments/src/EFB/Ground/Pages/Fuel/A380_842/A380Fuel.tsx index 4399c56adf86..e5fec76d3650 100644 --- a/fbw-common/src/systems/instruments/src/EFB/Ground/Pages/Fuel/A380_842/A380Fuel.tsx +++ b/fbw-common/src/systems/instruments/src/EFB/Ground/Pages/Fuel/A380_842/A380Fuel.tsx @@ -487,6 +487,7 @@ export const A380Fuel: React.FC = ({ rightMidPercent={(Math.max(rightMidGal * FUEL_GALLONS_TO_KG, 0) / MID_TANK_MAX_KG) * 100} rightOuterPercent={(Math.max(rightOuterGal * FUEL_GALLONS_TO_KG, 0) / OUTER_TANK_MAX_KG) * 100} trimPercent={(Math.max(trimGal * FUEL_GALLONS_TO_KG, 0) / TRIM_TANK_MAX_KG) * 100} + enableDynamic={!eng1Running && !eng2Running && !eng3Running && !eng4Running || refuelStartedByUser} />