blacktrigram 0.7.28 → 0.7.31
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/lib/components/screens/combat/CombatScreen3D.d.ts.map +1 -1
- package/lib/components/screens/combat/CombatScreen3D.js +6 -20
- package/lib/components/screens/combat/CombatScreen3D.js.map +1 -1
- package/lib/components/screens/combat/components/hud/CombatBottomHUD.d.ts.map +1 -1
- package/lib/components/screens/combat/components/hud/CombatBottomHUD.js +26 -11
- package/lib/components/screens/combat/components/hud/CombatBottomHUD.js.map +1 -1
- package/lib/components/screens/combat/components/hud/CombatTopHUD.d.ts.map +1 -1
- package/lib/components/screens/combat/components/hud/CombatTopHUD.js +2 -2
- package/lib/components/screens/combat/components/hud/CombatTopHUD.js.map +1 -1
- package/lib/components/screens/combat/hooks/useCombatActions.d.ts +2 -0
- package/lib/components/screens/combat/hooks/useCombatActions.d.ts.map +1 -1
- package/lib/components/screens/combat/hooks/useCombatActions.js +21 -2
- package/lib/components/screens/combat/hooks/useCombatActions.js.map +1 -1
- package/lib/components/screens/intro/IntroScreen3D.js +1 -1
- package/lib/components/screens/training/TrainingScreen3D.d.ts.map +1 -1
- package/lib/components/screens/training/TrainingScreen3D.js +6 -20
- package/lib/components/screens/training/TrainingScreen3D.js.map +1 -1
- package/lib/components/screens/training/components/AnatomyControlsOverlayHtml.d.ts +2 -0
- package/lib/components/screens/training/components/AnatomyControlsOverlayHtml.d.ts.map +1 -1
- package/lib/components/screens/training/components/AnatomyControlsOverlayHtml.js +6 -4
- package/lib/components/screens/training/components/AnatomyControlsOverlayHtml.js.map +1 -1
- package/lib/components/screens/training/components/TrainingControlsOverlayHtml.d.ts +2 -0
- package/lib/components/screens/training/components/TrainingControlsOverlayHtml.d.ts.map +1 -1
- package/lib/components/screens/training/components/TrainingControlsOverlayHtml.js +30 -14
- package/lib/components/screens/training/components/TrainingControlsOverlayHtml.js.map +1 -1
- package/lib/components/screens/training/components/hud/TrainingBottomHUD.d.ts.map +1 -1
- package/lib/components/screens/training/components/hud/TrainingBottomHUD.js +21 -7
- package/lib/components/screens/training/components/hud/TrainingBottomHUD.js.map +1 -1
- package/lib/components/screens/training/components/hud/TrainingLeftHUD.d.ts.map +1 -1
- package/lib/components/screens/training/components/hud/TrainingLeftHUD.js +3 -1
- package/lib/components/screens/training/components/hud/TrainingLeftHUD.js.map +1 -1
- package/lib/components/screens/training/components/hud/TrainingTopHUD.d.ts.map +1 -1
- package/lib/components/screens/training/components/hud/TrainingTopHUD.js +8 -5
- package/lib/components/screens/training/components/hud/TrainingTopHUD.js.map +1 -1
- package/lib/components/shared/mobile/MobileControlsPure.d.ts +4 -0
- package/lib/components/shared/mobile/MobileControlsPure.d.ts.map +1 -1
- package/lib/components/shared/mobile/MobileControlsPure.js +59 -30
- package/lib/components/shared/mobile/MobileControlsPure.js.map +1 -1
- package/lib/components/shared/three/ui/TechniqueBar.d.ts +13 -0
- package/lib/components/shared/three/ui/TechniqueBar.d.ts.map +1 -1
- package/lib/components/shared/three/ui/TechniqueBar.js +29 -5
- package/lib/components/shared/three/ui/TechniqueBar.js.map +1 -1
- package/lib/components/shared/ui/SplashScreen.js +2 -2
- package/lib/types/constants/layout.d.ts +60 -7
- package/lib/types/constants/layout.d.ts.map +1 -1
- package/lib/types/constants/layout.js +64 -10
- package/lib/types/constants/layout.js.map +1 -1
- package/lib/utils/math.d.ts +0 -10
- package/lib/utils/math.d.ts.map +1 -1
- package/lib/utils/math.js.map +1 -1
- package/lib/utils/responsiveLayout.d.ts +10 -0
- package/lib/utils/responsiveLayout.d.ts.map +1 -1
- package/lib/utils/responsiveLayout.js +16 -1
- package/lib/utils/responsiveLayout.js.map +1 -1
- package/package.json +3 -3
|
@@ -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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if (isMobile) return 1;
|
|
132
133
|
switch (screenSize) {
|
|
133
134
|
case "mobile": return 1;
|
|
134
135
|
case "tablet": return 1;
|
|
@@ -137,7 +138,7 @@ var CombatScreen3D = ({ players, onPlayerUpdate, currentRound, timeRemaining, is
|
|
|
137
138
|
case "xlarge": return 1.5;
|
|
138
139
|
default: return 1;
|
|
139
140
|
}
|
|
140
|
-
}, [screenSize]);
|
|
141
|
+
}, [isMobile, screenSize]);
|
|
141
142
|
const cameraConfig = useMemo(() => {
|
|
142
143
|
const base = createCameraConfig(isMobile);
|
|
143
144
|
if (!isPortrait) return base;
|
|
@@ -1711,24 +1712,7 @@ var CombatScreen3D = ({ players, onPlayerUpdate, currentRound, timeRemaining, is
|
|
|
1711
1712
|
})
|
|
1712
1713
|
]
|
|
1713
1714
|
}),
|
|
1714
|
-
|
|
1715
|
-
multisampling: 0,
|
|
1716
|
-
children: [
|
|
1717
|
-
/* @__PURE__ */ jsx(Bloom, {
|
|
1718
|
-
luminanceThreshold: .9,
|
|
1719
|
-
luminanceSmoothing: .9,
|
|
1720
|
-
mipmapBlur: true,
|
|
1721
|
-
intensity: .8,
|
|
1722
|
-
radius: .4
|
|
1723
|
-
}),
|
|
1724
|
-
/* @__PURE__ */ jsx(Noise, { opacity: .03 }),
|
|
1725
|
-
/* @__PURE__ */ jsx(Vignette, {
|
|
1726
|
-
eskil: false,
|
|
1727
|
-
offset: .1,
|
|
1728
|
-
darkness: .3
|
|
1729
|
-
})
|
|
1730
|
-
]
|
|
1731
|
-
}) : /* @__PURE__ */ jsxs(EffectComposer, {
|
|
1715
|
+
renderConfig.postProcessing && /* @__PURE__ */ jsxs(EffectComposer, {
|
|
1732
1716
|
multisampling: 4,
|
|
1733
1717
|
children: [
|
|
1734
1718
|
/* @__PURE__ */ jsx(Bloom, {
|
|
@@ -1908,7 +1892,9 @@ var CombatScreen3D = ({ players, onPlayerUpdate, currentRound, timeRemaining, is
|
|
|
1908
1892
|
onMove: handleMobileMove,
|
|
1909
1893
|
onAttack: handleMobileAttack,
|
|
1910
1894
|
onBlock: handleMobileBlock,
|
|
1911
|
-
bottom: getMobileControlsBottom(height)
|
|
1895
|
+
bottom: getMobileControlsBottom(height),
|
|
1896
|
+
viewportWidth: width,
|
|
1897
|
+
viewportHeight: height
|
|
1912
1898
|
}),
|
|
1913
1899
|
/* @__PURE__ */ jsx(StanceWheelPure, {
|
|
1914
1900
|
currentStance: currentStanceIndex,
|