@number10/phaserjsx 0.5.2 → 0.6.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/dist/{TransformOriginView-2QSoN8wM.cjs → TransformOriginView-DsD_qZno.cjs} +242 -247
- package/dist/{TransformOriginView-2QSoN8wM.cjs.map → TransformOriginView-DsD_qZno.cjs.map} +1 -1
- package/dist/{TransformOriginView-Bh_khdJD.js → TransformOriginView-uYYqbEHW.js} +260 -265
- package/dist/{TransformOriginView-Bh_khdJD.js.map → TransformOriginView-uYYqbEHW.js.map} +1 -1
- package/dist/colors/color-utils.d.ts +24 -0
- package/dist/colors/color-utils.d.ts.map +1 -1
- package/dist/colors/index.d.ts +2 -2
- package/dist/colors/index.d.ts.map +1 -1
- package/dist/components/appliers/applyGestures.d.ts.map +1 -1
- package/dist/components/custom/Accordion.d.ts.map +1 -1
- package/dist/components/custom/CharText/CharText.d.ts.map +1 -1
- package/dist/components/custom/CharTextInput.d.ts.map +1 -1
- package/dist/components/custom/Joystick.d.ts.map +1 -1
- package/dist/components/custom/NineSliceButton.d.ts.map +1 -1
- package/dist/components/custom/RefOriginView.d.ts.map +1 -1
- package/dist/components/custom/ScrollView.d.ts.map +1 -1
- package/dist/components/custom/Slider.d.ts +1 -2
- package/dist/components/custom/Slider.d.ts.map +1 -1
- package/dist/components/custom/TransformOriginView.d.ts +1 -2
- package/dist/components/custom/TransformOriginView.d.ts.map +1 -1
- package/dist/components/custom/WrapText.d.ts.map +1 -1
- package/dist/components/custom/index.cjs +1 -1
- package/dist/components/custom/index.js +1 -1
- package/dist/components/internal/SceneWrapper.d.ts +3 -3
- package/dist/components/internal/SceneWrapper.d.ts.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as equal, v as viewportRegistry, w as parseSize, x as resolveSize, y as getGestureManager, z as calculateLayout, E as themeRegistry, F as normalizeGap, G as getChildSize, H as DebugLogger, K as useTheme, L as getThemedProps, O as register, Q as useEffect, U as useScene, V as useRef, X as useCallback, Y as mountJSX, Z as useState, _ as getPresetWithMode, $ as alpha, a0 as remountAll, a1 as defaultRadiusTokens, a2 as defaultSizeTokens, a3 as defaultSpacingTokens, a4 as createTextStyleTokens } from "./TransformOriginView-
|
|
2
|
-
import { A, a, B, C, b, af, bj, a7, ab, ac, D, c, d, ag, bc, bo, I, f, J, a8, M, N, g, P, h, R, i, n, j, bk, S, l, m, o, bl, T, p, q, bd, r, s, be, W, bg,
|
|
1
|
+
import { t as equal, v as viewportRegistry, w as parseSize, x as resolveSize, y as getGestureManager, z as calculateLayout, E as themeRegistry, F as normalizeGap, G as getChildSize, H as DebugLogger, K as useTheme, L as getThemedProps, O as register, Q as useEffect, U as useScene, V as useRef, X as useCallback, Y as mountJSX, Z as useState, _ as getPresetWithMode, $ as alpha, a0 as remountAll, a1 as defaultRadiusTokens, a2 as defaultSizeTokens, a3 as defaultSpacingTokens, a4 as createTextStyleTokens } from "./TransformOriginView-uYYqbEHW.js";
|
|
2
|
+
import { A, a, B, C, b, af, bj, a7, ab, ac, D, c, d, ag, bc, bo, I, f, J, a8, M, N, g, P, h, R, i, n, j, bk, S, l, m, o, bl, T, p, q, bd, r, s, be, W, bg, bC, ah, bD, k, aj, ak, b2, b7, al, am, an, ao, ap, e, aq, ar, as, at, au, av, aw, ax, ay, az, bz, b5, aA, aB, aC, aD, bu, bv, bK, b3, aW, bA, bE, bF, aM, bB, aE, aL, aO, aJ, a9, bG, aa, aQ, bw, bp, b1, bh, bx, by, b4, bH, b8, b0, a5, a6, b6, bq, br, bI, ba, bf, bJ, aZ, aX, aY, ai, bs, bt, aT, aU, ad, b9, bb, bi, aN, aG, ae, u, aS, aP, aK, aH, aV, a_, a$, bm, bn, aI, aR, aF } from "./TransformOriginView-uYYqbEHW.js";
|
|
3
3
|
import * as Phaser from "phaser";
|
|
4
4
|
import { jsx } from "./jsx-runtime.js";
|
|
5
5
|
import { Fragment, jsxs } from "./jsx-runtime.js";
|
|
@@ -1128,8 +1128,7 @@ function applyGesturesProps(scene, container, prev, next) {
|
|
|
1128
1128
|
console.warn("applyGesturesProps: Invalid scene or scene not initialized");
|
|
1129
1129
|
return;
|
|
1130
1130
|
}
|
|
1131
|
-
if (
|
|
1132
|
-
console.warn("applyGesturesProps: Scene is not active or game is null");
|
|
1131
|
+
if (scene.sys.game === null) {
|
|
1133
1132
|
return;
|
|
1134
1133
|
}
|
|
1135
1134
|
const hasAnyGesture = !!(next.onTouch || next.onTouchOutside || next.onTouchMove || next.onDoubleTap || next.onLongPress || next.onHoverStart || next.onHoverEnd || next.onWheel);
|
|
@@ -2750,10 +2749,10 @@ export {
|
|
|
2750
2749
|
alpha,
|
|
2751
2750
|
bg as animatedSignal,
|
|
2752
2751
|
applyCameraFXByName,
|
|
2753
|
-
|
|
2752
|
+
bC as applyDarkMode,
|
|
2754
2753
|
ah as applyEffectByName,
|
|
2755
2754
|
applyFXByName,
|
|
2756
|
-
|
|
2755
|
+
bD as applyLightMode,
|
|
2757
2756
|
buildDeathZonesFromLayout,
|
|
2758
2757
|
buildEmitZone,
|
|
2759
2758
|
buildEmitZoneFromLayout,
|
|
@@ -2791,7 +2790,7 @@ export {
|
|
|
2791
2790
|
ax as createSpinEffect,
|
|
2792
2791
|
ay as createSwingEffect,
|
|
2793
2792
|
az as createTadaEffect,
|
|
2794
|
-
|
|
2793
|
+
bz as createTextStyle,
|
|
2795
2794
|
createTextStyleTokens,
|
|
2796
2795
|
b5 as createTheme,
|
|
2797
2796
|
createVignetteFX,
|
|
@@ -2799,29 +2798,29 @@ export {
|
|
|
2799
2798
|
aB as createWobbleEffect,
|
|
2800
2799
|
aC as createZoomInEffect,
|
|
2801
2800
|
aD as createZoomOutEffect,
|
|
2802
|
-
|
|
2803
|
-
|
|
2801
|
+
bu as darken,
|
|
2802
|
+
bv as darkenHex,
|
|
2804
2803
|
defaultRadiusTokens,
|
|
2805
2804
|
defaultSizeTokens,
|
|
2806
2805
|
defaultSpacingTokens,
|
|
2807
|
-
|
|
2806
|
+
bK as defaultTextStyleTokens,
|
|
2808
2807
|
b3 as defaultTheme,
|
|
2809
2808
|
aW as disposeCtx,
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2809
|
+
bA as ensureContrast,
|
|
2810
|
+
bE as forestGreenPreset,
|
|
2811
|
+
bF as generateColorScale,
|
|
2813
2812
|
getAvailablePresets,
|
|
2814
2813
|
getBackgroundColor,
|
|
2815
2814
|
aM as getBackgroundGraphics,
|
|
2816
2815
|
getBorderColor,
|
|
2817
|
-
|
|
2816
|
+
bB as getContrastRatio,
|
|
2818
2817
|
aE as getCurrent,
|
|
2819
2818
|
getCurrentPreset,
|
|
2820
2819
|
aL as getLayoutProps,
|
|
2821
2820
|
aO as getLayoutRect,
|
|
2822
2821
|
aJ as getLayoutSize,
|
|
2823
2822
|
a9 as getMountStats,
|
|
2824
|
-
|
|
2823
|
+
bG as getPreset,
|
|
2825
2824
|
getPresetWithMode,
|
|
2826
2825
|
aa as getRenderContext,
|
|
2827
2826
|
getSurfaceColor,
|
|
@@ -2830,7 +2829,7 @@ export {
|
|
|
2830
2829
|
aQ as getWorldLayoutRect,
|
|
2831
2830
|
graphicsCreator,
|
|
2832
2831
|
graphicsPatcher,
|
|
2833
|
-
|
|
2832
|
+
bw as hex,
|
|
2834
2833
|
bp as hexToNumber,
|
|
2835
2834
|
b1 as host,
|
|
2836
2835
|
imageCreator,
|
|
@@ -2838,11 +2837,11 @@ export {
|
|
|
2838
2837
|
bh as isAnimatedSignal,
|
|
2839
2838
|
jsx,
|
|
2840
2839
|
jsxs,
|
|
2841
|
-
|
|
2842
|
-
|
|
2840
|
+
bx as lighten,
|
|
2841
|
+
by as lightenHex,
|
|
2843
2842
|
memo,
|
|
2844
2843
|
b4 as mergeThemes,
|
|
2845
|
-
|
|
2844
|
+
bH as midnightPreset,
|
|
2846
2845
|
b8 as mount,
|
|
2847
2846
|
mountJSX as mountComponent,
|
|
2848
2847
|
mountJSX,
|
|
@@ -2856,12 +2855,12 @@ export {
|
|
|
2856
2855
|
b6 as normalizeVNodeLike,
|
|
2857
2856
|
bq as numberToHex,
|
|
2858
2857
|
br as numberToRgb,
|
|
2859
|
-
|
|
2858
|
+
bI as oceanBluePreset,
|
|
2860
2859
|
particlesCreator,
|
|
2861
2860
|
particlesPatcher,
|
|
2862
2861
|
ba as patchVNode,
|
|
2863
2862
|
bf as portalRegistry,
|
|
2864
|
-
|
|
2863
|
+
bJ as presets,
|
|
2865
2864
|
register,
|
|
2866
2865
|
registerBuiltins,
|
|
2867
2866
|
aZ as releaseAllSVGTextures,
|
|
@@ -2872,7 +2871,8 @@ export {
|
|
|
2872
2871
|
ai as resolveEffect,
|
|
2873
2872
|
resolveFX,
|
|
2874
2873
|
resolveParticlePreset,
|
|
2875
|
-
bs as
|
|
2874
|
+
bs as rgbToHsl,
|
|
2875
|
+
bt as rgbToNumber,
|
|
2876
2876
|
setColorMode,
|
|
2877
2877
|
setColorPreset,
|
|
2878
2878
|
aT as shallowEqual,
|