blacktrigram 0.7.48 → 0.7.50

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.
Files changed (38) hide show
  1. package/lib/components/screens/combat/CombatScreen3D.d.ts.map +1 -1
  2. package/lib/components/screens/combat/CombatScreen3D.js +7 -14
  3. package/lib/components/screens/combat/CombatScreen3D.js.map +1 -1
  4. package/lib/components/screens/combat/components/hud/CombatBottomHUD.d.ts.map +1 -1
  5. package/lib/components/screens/combat/components/hud/CombatBottomHUD.js +2 -2
  6. package/lib/components/screens/combat/components/hud/CombatBottomHUD.js.map +1 -1
  7. package/lib/components/screens/combat/components/hud/CombatPortraitStatusStrip.js +1 -1
  8. package/lib/components/screens/combat/components/hud/CombatTopHUD.d.ts.map +1 -1
  9. package/lib/components/screens/combat/components/hud/CombatTopHUD.js +2 -1
  10. package/lib/components/screens/combat/components/hud/CombatTopHUD.js.map +1 -1
  11. package/lib/components/screens/combat/hooks/useCombatLayout.d.ts.map +1 -1
  12. package/lib/components/screens/combat/hooks/useCombatLayout.js +11 -5
  13. package/lib/components/screens/combat/hooks/useCombatLayout.js.map +1 -1
  14. package/lib/components/screens/controls/ControlsScreen3D.js +1 -1
  15. package/lib/components/screens/intro/IntroScreen3D.js +1 -1
  16. package/lib/components/screens/philosophy/PhilosophyScreen3D.js +1 -1
  17. package/lib/components/screens/training/TrainingScreen3D.d.ts.map +1 -1
  18. package/lib/components/screens/training/TrainingScreen3D.js +2 -11
  19. package/lib/components/screens/training/TrainingScreen3D.js.map +1 -1
  20. package/lib/components/screens/training/components/hud/TrainingBottomHUD.d.ts.map +1 -1
  21. package/lib/components/screens/training/components/hud/TrainingBottomHUD.js +2 -2
  22. package/lib/components/screens/training/components/hud/TrainingBottomHUD.js.map +1 -1
  23. package/lib/components/screens/training/hooks/useTrainingLayout.d.ts.map +1 -1
  24. package/lib/components/screens/training/hooks/useTrainingLayout.js +11 -5
  25. package/lib/components/screens/training/hooks/useTrainingLayout.js.map +1 -1
  26. package/lib/components/shared/ui/SplashScreen.js +2 -2
  27. package/lib/hooks/useHUDLayout.d.ts.map +1 -1
  28. package/lib/hooks/useHUDLayout.js +3 -2
  29. package/lib/hooks/useHUDLayout.js.map +1 -1
  30. package/lib/types/constants/layout.d.ts +21 -0
  31. package/lib/types/constants/layout.d.ts.map +1 -1
  32. package/lib/types/constants/layout.js +22 -1
  33. package/lib/types/constants/layout.js.map +1 -1
  34. package/lib/utils/responsiveLayoutHelpers.d.ts +7 -0
  35. package/lib/utils/responsiveLayoutHelpers.d.ts.map +1 -1
  36. package/lib/utils/responsiveLayoutHelpers.js +16 -2
  37. package/lib/utils/responsiveLayoutHelpers.js.map +1 -1
  38. package/package.json +8 -8
@@ -1 +1 @@
1
- {"version":3,"file":"CombatScreen3D.d.ts","sourceRoot":"","sources":["../../../../src/components/screens/combat/CombatScreen3D.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH,OAAO,KAMN,MAAM,OAAO,CAAC;AAUf,OAAO,EAAa,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAwB1D,OAAO,EAEL,QAAQ,EAIT,MAAM,gBAAgB,CAAC;AAoFxB;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;IACzC;;;;OAIG;IACH,QAAQ,CAAC,cAAc,EAAE,CACvB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,KAC1B,IAAI,CAAC;IACV;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,IAAI,CAAC;IACpC;;;OAGG;IACH,QAAQ,CAAC,SAA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,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAC3C;AA6BD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0kFxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -25,11 +25,13 @@ import BalanceSystem from "../../../systems/combat/BalanceSystem.js";
25
25
  import CombatSystem from "../../../systems/CombatSystem.js";
26
26
  import { getPersonalityByArchetype } from "../../../systems/ai/AIPersonality.js";
27
27
  import { AdaptiveDifficulty } from "../../../systems/ai/AdaptiveDifficulty.js";
28
- import { getMobileControlsBottom } from "../../../types/constants/layout.js";
28
+ import { COMBAT_TOP_HUD_HEIGHT_PERCENT, getMobileControlsBottom } from "../../../types/constants/layout.js";
29
29
  import { getAnimationTypeForTechnique } from "../../../data/techniqueMappings.js";
30
30
  import { toHexColor } from "../../../utils/colorHelpers.js";
31
31
  import { usePlayerMovement } from "../../../utils/inputSystem.js";
32
32
  import PerformanceOverlay3D from "../../../utils/performance/PerformanceOverlay3D.js";
33
+ import { getHUDHeight } from "../../../utils/responsiveLayout.js";
34
+ import { getHUDPositionScale } from "../../../utils/responsiveLayoutHelpers.js";
33
35
  import { createPlayerFromArchetype } from "../../../utils/playerUtils.js";
34
36
  import { createCameraConfig } from "../../../utils/sharedPhysicsConfig.js";
35
37
  import { useAdaptiveQuality } from "../../shared/three/optimization/AdaptiveQuality.js";
@@ -129,17 +131,8 @@ var CombatScreen3D = ({ players, onPlayerUpdate, currentRound, timeRemaining, is
129
131
  size: "md",
130
132
  isMobile
131
133
  });
132
- const positionScale = useMemo(() => {
133
- if (isMobile) return 1;
134
- switch (screenSize) {
135
- case "mobile": return 1;
136
- case "tablet": return 1;
137
- case "desktop": return 1;
138
- case "large": return 1.25;
139
- case "xlarge": return 1.5;
140
- default: return 1;
141
- }
142
- }, [isMobile, screenSize]);
134
+ const positionScale = useMemo(() => getHUDPositionScale(screenSize, isMobile), [screenSize, isMobile]);
135
+ const combatTopHudHeight = useMemo(() => getHUDHeight(height, COMBAT_TOP_HUD_HEIGHT_PERCENT) * positionScale, [height, positionScale]);
143
136
  const cameraConfig = useMemo(() => {
144
137
  const base = createCameraConfig(isMobile);
145
138
  if (!isPortrait) return base;
@@ -1641,7 +1634,7 @@ var CombatScreen3D = ({ players, onPlayerUpdate, currentRound, timeRemaining, is
1641
1634
  }),
1642
1635
  /* @__PURE__ */ jsx(VitalPointOverlayControlsHtml, {
1643
1636
  screenPosition: {
1644
- top: `${layoutConstants.hudHeight + layoutConstants.padding}px`,
1637
+ top: `${combatTopHudHeight + layoutConstants.padding}px`,
1645
1638
  left: `${layoutConstants.padding}px`
1646
1639
  },
1647
1640
  visible: overlayVisible,
@@ -1793,7 +1786,7 @@ var CombatScreen3D = ({ players, onPlayerUpdate, currentRound, timeRemaining, is
1793
1786
  player1: validPlayers[0],
1794
1787
  player2: validPlayers[1],
1795
1788
  positionScale,
1796
- topOffset: layoutConstants.hudHeight
1789
+ topOffset: combatTopHudHeight
1797
1790
  }),
1798
1791
  /* @__PURE__ */ jsx(CombatBottomHUD, {
1799
1792
  width,