@number10/jsx-phaser 5.0.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/LICENSE +667 -0
- package/README.md +44 -0
- package/dist/_virtual/_commonjsHelpers.cjs +7 -0
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +7 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/index.cjs +7 -0
- package/dist/_virtual/index.cjs.map +1 -0
- package/dist/_virtual/index.js +8 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/animation/index.d.ts +7 -0
- package/dist/animation/index.d.ts.map +1 -0
- package/dist/camera/index.d.ts +5 -0
- package/dist/camera/index.d.ts.map +1 -0
- package/dist/camera/use-camera-fx.cjs +49 -0
- package/dist/camera/use-camera-fx.cjs.map +1 -0
- package/dist/camera/use-camera-fx.d.ts +25 -0
- package/dist/camera/use-camera-fx.d.ts.map +1 -0
- package/dist/camera/use-camera-fx.js +49 -0
- package/dist/camera/use-camera-fx.js.map +1 -0
- package/dist/clip/index.cjs +8 -0
- package/dist/clip/index.cjs.map +1 -0
- package/dist/clip/index.d.ts +3 -0
- package/dist/clip/index.d.ts.map +1 -0
- package/dist/clip/index.js +9 -0
- package/dist/clip/index.js.map +1 -0
- package/dist/clip/stencil-clip-depth.cjs +24 -0
- package/dist/clip/stencil-clip-depth.cjs.map +1 -0
- package/dist/clip/stencil-clip-depth.d.ts +10 -0
- package/dist/clip/stencil-clip-depth.d.ts.map +1 -0
- package/dist/clip/stencil-clip-depth.js +24 -0
- package/dist/clip/stencil-clip-depth.js.map +1 -0
- package/dist/clip/stencil-clip-extension.cjs +113 -0
- package/dist/clip/stencil-clip-extension.cjs.map +1 -0
- package/dist/clip/stencil-clip-extension.d.ts +18 -0
- package/dist/clip/stencil-clip-extension.d.ts.map +1 -0
- package/dist/clip/stencil-clip-extension.js +96 -0
- package/dist/clip/stencil-clip-extension.js.map +1 -0
- package/dist/clip/stencil-clip-fbo-bridge.cjs +46 -0
- package/dist/clip/stencil-clip-fbo-bridge.cjs.map +1 -0
- package/dist/clip/stencil-clip-fbo-bridge.d.ts +7 -0
- package/dist/clip/stencil-clip-fbo-bridge.d.ts.map +1 -0
- package/dist/clip/stencil-clip-fbo-bridge.js +46 -0
- package/dist/clip/stencil-clip-fbo-bridge.js.map +1 -0
- package/dist/clip/stencil-clip-renderer.cjs +300 -0
- package/dist/clip/stencil-clip-renderer.cjs.map +1 -0
- package/dist/clip/stencil-clip-renderer.d.ts +7 -0
- package/dist/clip/stencil-clip-renderer.d.ts.map +1 -0
- package/dist/clip/stencil-clip-renderer.js +300 -0
- package/dist/clip/stencil-clip-renderer.js.map +1 -0
- package/dist/clip/stencil-clip-state.cjs +84 -0
- package/dist/clip/stencil-clip-state.cjs.map +1 -0
- package/dist/clip/stencil-clip-state.d.ts +28 -0
- package/dist/clip/stencil-clip-state.d.ts.map +1 -0
- package/dist/clip/stencil-clip-state.js +84 -0
- package/dist/clip/stencil-clip-state.js.map +1 -0
- package/dist/clip/stencil-clip-types.d.ts +67 -0
- package/dist/clip/stencil-clip-types.d.ts.map +1 -0
- package/dist/clip/stencil-clip.cjs +138 -0
- package/dist/clip/stencil-clip.cjs.map +1 -0
- package/dist/clip/stencil-clip.d.ts +53 -0
- package/dist/clip/stencil-clip.d.ts.map +1 -0
- package/dist/clip/stencil-clip.js +122 -0
- package/dist/clip/stencil-clip.js.map +1 -0
- package/dist/colors/use-color-mode.cjs +28 -0
- package/dist/colors/use-color-mode.cjs.map +1 -0
- package/dist/colors/use-color-mode.d.ts +22 -0
- package/dist/colors/use-color-mode.d.ts.map +1 -0
- package/dist/colors/use-color-mode.js +28 -0
- package/dist/colors/use-color-mode.js.map +1 -0
- package/dist/colors/use-colors.cjs +45 -0
- package/dist/colors/use-colors.cjs.map +1 -0
- package/dist/colors/use-colors.d.ts +36 -0
- package/dist/colors/use-colors.d.ts.map +1 -0
- package/dist/colors/use-colors.js +45 -0
- package/dist/colors/use-colors.js.map +1 -0
- package/dist/components/DebugPanel.cjs +88 -0
- package/dist/components/DebugPanel.cjs.map +1 -0
- package/dist/components/DebugPanel.d.ts +45 -0
- package/dist/components/DebugPanel.d.ts.map +1 -0
- package/dist/components/DebugPanel.js +71 -0
- package/dist/components/DebugPanel.js.map +1 -0
- package/dist/components/appliers/applyBackground.cjs +89 -0
- package/dist/components/appliers/applyBackground.cjs.map +1 -0
- package/dist/components/appliers/applyBackground.d.ts +18 -0
- package/dist/components/appliers/applyBackground.d.ts.map +1 -0
- package/dist/components/appliers/applyBackground.js +89 -0
- package/dist/components/appliers/applyBackground.js.map +1 -0
- package/dist/components/appliers/applyGestures.cjs +85 -0
- package/dist/components/appliers/applyGestures.cjs.map +1 -0
- package/dist/components/appliers/applyGestures.d.ts +12 -0
- package/dist/components/appliers/applyGestures.d.ts.map +1 -0
- package/dist/components/appliers/applyGestures.js +68 -0
- package/dist/components/appliers/applyGestures.js.map +1 -0
- package/dist/components/appliers/applyGraphics.cjs +21 -0
- package/dist/components/appliers/applyGraphics.cjs.map +1 -0
- package/dist/components/appliers/applyGraphics.d.ts +13 -0
- package/dist/components/appliers/applyGraphics.d.ts.map +1 -0
- package/dist/components/appliers/applyGraphics.js +21 -0
- package/dist/components/appliers/applyGraphics.js.map +1 -0
- package/dist/components/appliers/applyGraphicsLayout.cjs +18 -0
- package/dist/components/appliers/applyGraphicsLayout.cjs.map +1 -0
- package/dist/components/appliers/applyGraphicsLayout.d.ts +13 -0
- package/dist/components/appliers/applyGraphicsLayout.d.ts.map +1 -0
- package/dist/components/appliers/applyGraphicsLayout.js +18 -0
- package/dist/components/appliers/applyGraphicsLayout.js.map +1 -0
- package/dist/components/appliers/applyImage.cjs +92 -0
- package/dist/components/appliers/applyImage.cjs.map +1 -0
- package/dist/components/appliers/applyImage.d.ts +47 -0
- package/dist/components/appliers/applyImage.d.ts.map +1 -0
- package/dist/components/appliers/applyImage.js +92 -0
- package/dist/components/appliers/applyImage.js.map +1 -0
- package/dist/components/appliers/applyImageLayout.cjs +18 -0
- package/dist/components/appliers/applyImageLayout.cjs.map +1 -0
- package/dist/components/appliers/applyImageLayout.d.ts +18 -0
- package/dist/components/appliers/applyImageLayout.d.ts.map +1 -0
- package/dist/components/appliers/applyImageLayout.js +18 -0
- package/dist/components/appliers/applyImageLayout.js.map +1 -0
- package/dist/components/appliers/applyLayout.cjs +108 -0
- package/dist/components/appliers/applyLayout.cjs.map +1 -0
- package/dist/components/appliers/applyLayout.d.ts +19 -0
- package/dist/components/appliers/applyLayout.d.ts.map +1 -0
- package/dist/components/appliers/applyLayout.js +91 -0
- package/dist/components/appliers/applyLayout.js.map +1 -0
- package/dist/components/appliers/applyNineSlice.cjs +37 -0
- package/dist/components/appliers/applyNineSlice.cjs.map +1 -0
- package/dist/components/appliers/applyNineSlice.d.ts +14 -0
- package/dist/components/appliers/applyNineSlice.d.ts.map +1 -0
- package/dist/components/appliers/applyNineSlice.js +37 -0
- package/dist/components/appliers/applyNineSlice.js.map +1 -0
- package/dist/components/appliers/applyNineSliceLayout.cjs +18 -0
- package/dist/components/appliers/applyNineSliceLayout.cjs.map +1 -0
- package/dist/components/appliers/applyNineSliceLayout.d.ts +18 -0
- package/dist/components/appliers/applyNineSliceLayout.d.ts.map +1 -0
- package/dist/components/appliers/applyNineSliceLayout.js +18 -0
- package/dist/components/appliers/applyNineSliceLayout.js.map +1 -0
- package/dist/components/appliers/applyParticles.cjs +46 -0
- package/dist/components/appliers/applyParticles.cjs.map +1 -0
- package/dist/components/appliers/applyParticles.d.ts +7 -0
- package/dist/components/appliers/applyParticles.d.ts.map +1 -0
- package/dist/components/appliers/applyParticles.js +46 -0
- package/dist/components/appliers/applyParticles.js.map +1 -0
- package/dist/components/appliers/applyParticlesLayout.cjs +7 -0
- package/dist/components/appliers/applyParticlesLayout.cjs.map +1 -0
- package/dist/components/appliers/applyParticlesLayout.d.ts +11 -0
- package/dist/components/appliers/applyParticlesLayout.d.ts.map +1 -0
- package/dist/components/appliers/applyParticlesLayout.js +7 -0
- package/dist/components/appliers/applyParticlesLayout.js.map +1 -0
- package/dist/components/appliers/applyPhaser.cjs +40 -0
- package/dist/components/appliers/applyPhaser.cjs.map +1 -0
- package/dist/components/appliers/applyPhaser.d.ts +24 -0
- package/dist/components/appliers/applyPhaser.d.ts.map +1 -0
- package/dist/components/appliers/applyPhaser.js +40 -0
- package/dist/components/appliers/applyPhaser.js.map +1 -0
- package/dist/components/appliers/applySprite.cjs +124 -0
- package/dist/components/appliers/applySprite.cjs.map +1 -0
- package/dist/components/appliers/applySprite.d.ts +13 -0
- package/dist/components/appliers/applySprite.d.ts.map +1 -0
- package/dist/components/appliers/applySprite.js +124 -0
- package/dist/components/appliers/applySprite.js.map +1 -0
- package/dist/components/appliers/applySpriteLayout.cjs +7 -0
- package/dist/components/appliers/applySpriteLayout.cjs.map +1 -0
- package/dist/components/appliers/applySpriteLayout.d.ts +17 -0
- package/dist/components/appliers/applySpriteLayout.d.ts.map +1 -0
- package/dist/components/appliers/applySpriteLayout.js +7 -0
- package/dist/components/appliers/applySpriteLayout.js.map +1 -0
- package/dist/components/appliers/applyText.cjs +142 -0
- package/dist/components/appliers/applyText.cjs.map +1 -0
- package/dist/components/appliers/applyText.d.ts +32 -0
- package/dist/components/appliers/applyText.d.ts.map +1 -0
- package/dist/components/appliers/applyText.js +142 -0
- package/dist/components/appliers/applyText.js.map +1 -0
- package/dist/components/appliers/applyTextLayout.cjs +16 -0
- package/dist/components/appliers/applyTextLayout.cjs.map +1 -0
- package/dist/components/appliers/applyTextLayout.d.ts +18 -0
- package/dist/components/appliers/applyTextLayout.d.ts.map +1 -0
- package/dist/components/appliers/applyTextLayout.js +16 -0
- package/dist/components/appliers/applyTextLayout.js.map +1 -0
- package/dist/components/appliers/applyTooltip.cjs +247 -0
- package/dist/components/appliers/applyTooltip.cjs.map +1 -0
- package/dist/components/appliers/applyTooltip.d.ts +16 -0
- package/dist/components/appliers/applyTooltip.d.ts.map +1 -0
- package/dist/components/appliers/applyTooltip.js +247 -0
- package/dist/components/appliers/applyTooltip.js.map +1 -0
- package/dist/components/appliers/applyTransform.cjs +61 -0
- package/dist/components/appliers/applyTransform.cjs.map +1 -0
- package/dist/components/appliers/applyTransform.d.ts +24 -0
- package/dist/components/appliers/applyTransform.d.ts.map +1 -0
- package/dist/components/appliers/applyTransform.js +61 -0
- package/dist/components/appliers/applyTransform.js.map +1 -0
- package/dist/components/backgroundImage.cjs +411 -0
- package/dist/components/backgroundImage.cjs.map +1 -0
- package/dist/components/backgroundImage.d.ts +14 -0
- package/dist/components/backgroundImage.d.ts.map +1 -0
- package/dist/components/backgroundImage.js +411 -0
- package/dist/components/backgroundImage.js.map +1 -0
- package/dist/components/creators/createBackground.cjs +18 -0
- package/dist/components/creators/createBackground.cjs.map +1 -0
- package/dist/components/creators/createBackground.d.ts +20 -0
- package/dist/components/creators/createBackground.d.ts.map +1 -0
- package/dist/components/creators/createBackground.js +18 -0
- package/dist/components/creators/createBackground.js.map +1 -0
- package/dist/components/creators/createGestures.cjs +51 -0
- package/dist/components/creators/createGestures.cjs.map +1 -0
- package/dist/components/creators/createGestures.d.ts +11 -0
- package/dist/components/creators/createGestures.d.ts.map +1 -0
- package/dist/components/creators/createGestures.js +34 -0
- package/dist/components/creators/createGestures.js.map +1 -0
- package/dist/components/creators/createGraphicsLayout.cjs +24 -0
- package/dist/components/creators/createGraphicsLayout.cjs.map +1 -0
- package/dist/components/creators/createGraphicsLayout.d.ts +12 -0
- package/dist/components/creators/createGraphicsLayout.d.ts.map +1 -0
- package/dist/components/creators/createGraphicsLayout.js +24 -0
- package/dist/components/creators/createGraphicsLayout.js.map +1 -0
- package/dist/components/creators/createImageLayout.cjs +16 -0
- package/dist/components/creators/createImageLayout.cjs.map +1 -0
- package/dist/components/creators/createImageLayout.d.ts +17 -0
- package/dist/components/creators/createImageLayout.d.ts.map +1 -0
- package/dist/components/creators/createImageLayout.js +16 -0
- package/dist/components/creators/createImageLayout.js.map +1 -0
- package/dist/components/creators/createLayout.cjs +61 -0
- package/dist/components/creators/createLayout.cjs.map +1 -0
- package/dist/components/creators/createLayout.d.ts +15 -0
- package/dist/components/creators/createLayout.d.ts.map +1 -0
- package/dist/components/creators/createLayout.js +61 -0
- package/dist/components/creators/createLayout.js.map +1 -0
- package/dist/components/creators/createNineSliceLayout.cjs +16 -0
- package/dist/components/creators/createNineSliceLayout.cjs.map +1 -0
- package/dist/components/creators/createNineSliceLayout.d.ts +17 -0
- package/dist/components/creators/createNineSliceLayout.d.ts.map +1 -0
- package/dist/components/creators/createNineSliceLayout.js +16 -0
- package/dist/components/creators/createNineSliceLayout.js.map +1 -0
- package/dist/components/creators/createParticlesLayout.cjs +8 -0
- package/dist/components/creators/createParticlesLayout.cjs.map +1 -0
- package/dist/components/creators/createParticlesLayout.d.ts +14 -0
- package/dist/components/creators/createParticlesLayout.d.ts.map +1 -0
- package/dist/components/creators/createParticlesLayout.js +8 -0
- package/dist/components/creators/createParticlesLayout.js.map +1 -0
- package/dist/components/creators/createPhaser.cjs +36 -0
- package/dist/components/creators/createPhaser.cjs.map +1 -0
- package/dist/components/creators/createPhaser.d.ts +14 -0
- package/dist/components/creators/createPhaser.d.ts.map +1 -0
- package/dist/components/creators/createPhaser.js +36 -0
- package/dist/components/creators/createPhaser.js.map +1 -0
- package/dist/components/creators/createSpriteLayout.cjs +10 -0
- package/dist/components/creators/createSpriteLayout.cjs.map +1 -0
- package/dist/components/creators/createSpriteLayout.d.ts +18 -0
- package/dist/components/creators/createSpriteLayout.d.ts.map +1 -0
- package/dist/components/creators/createSpriteLayout.js +10 -0
- package/dist/components/creators/createSpriteLayout.js.map +1 -0
- package/dist/components/creators/createTextLayout.cjs +16 -0
- package/dist/components/creators/createTextLayout.cjs.map +1 -0
- package/dist/components/creators/createTextLayout.d.ts +17 -0
- package/dist/components/creators/createTextLayout.d.ts.map +1 -0
- package/dist/components/creators/createTextLayout.js +16 -0
- package/dist/components/creators/createTextLayout.js.map +1 -0
- package/dist/components/creators/createTransform.cjs +83 -0
- package/dist/components/creators/createTransform.cjs.map +1 -0
- package/dist/components/creators/createTransform.d.ts +26 -0
- package/dist/components/creators/createTransform.d.ts.map +1 -0
- package/dist/components/creators/createTransform.js +83 -0
- package/dist/components/creators/createTransform.js.map +1 -0
- package/dist/components/custom/Graphics.cjs +13 -0
- package/dist/components/custom/Graphics.cjs.map +1 -0
- package/dist/components/custom/Graphics.d.ts +50 -0
- package/dist/components/custom/Graphics.d.ts.map +1 -0
- package/dist/components/custom/Graphics.js +13 -0
- package/dist/components/custom/Graphics.js.map +1 -0
- package/dist/components/custom/NineSlice.cjs +13 -0
- package/dist/components/custom/NineSlice.cjs.map +1 -0
- package/dist/components/custom/NineSlice.d.ts +87 -0
- package/dist/components/custom/NineSlice.d.ts.map +1 -0
- package/dist/components/custom/NineSlice.js +13 -0
- package/dist/components/custom/NineSlice.js.map +1 -0
- package/dist/components/custom/Particles.cjs +8 -0
- package/dist/components/custom/Particles.cjs.map +1 -0
- package/dist/components/custom/Particles.d.ts +28 -0
- package/dist/components/custom/Particles.d.ts.map +1 -0
- package/dist/components/custom/Particles.js +8 -0
- package/dist/components/custom/Particles.js.map +1 -0
- package/dist/components/custom/RefOriginView.cjs +67 -0
- package/dist/components/custom/RefOriginView.cjs.map +1 -0
- package/dist/components/custom/RefOriginView.d.ts +49 -0
- package/dist/components/custom/RefOriginView.d.ts.map +1 -0
- package/dist/components/custom/RefOriginView.js +67 -0
- package/dist/components/custom/RefOriginView.js.map +1 -0
- package/dist/components/custom/Sprite.cjs +13 -0
- package/dist/components/custom/Sprite.cjs.map +1 -0
- package/dist/components/custom/Sprite.d.ts +79 -0
- package/dist/components/custom/Sprite.d.ts.map +1 -0
- package/dist/components/custom/Sprite.js +13 -0
- package/dist/components/custom/Sprite.js.map +1 -0
- package/dist/components/custom/TileSprite.cjs +13 -0
- package/dist/components/custom/TileSprite.cjs.map +1 -0
- package/dist/components/custom/TileSprite.d.ts +65 -0
- package/dist/components/custom/TileSprite.d.ts.map +1 -0
- package/dist/components/custom/TileSprite.js +13 -0
- package/dist/components/custom/TileSprite.js.map +1 -0
- package/dist/components/custom/index.d.ts +15 -0
- package/dist/components/custom/index.d.ts.map +1 -0
- package/dist/components/index.cjs +33 -0
- package/dist/components/index.cjs.map +1 -0
- package/dist/components/index.d.ts +11 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +33 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/internal/SceneWrapper.cjs +10 -0
- package/dist/components/internal/SceneWrapper.cjs.map +1 -0
- package/dist/components/internal/SceneWrapper.d.ts +20 -0
- package/dist/components/internal/SceneWrapper.d.ts.map +1 -0
- package/dist/components/internal/SceneWrapper.js +10 -0
- package/dist/components/internal/SceneWrapper.js.map +1 -0
- package/dist/components/primitives/graphics.cjs +29 -0
- package/dist/components/primitives/graphics.cjs.map +1 -0
- package/dist/components/primitives/graphics.d.ts +146 -0
- package/dist/components/primitives/graphics.d.ts.map +1 -0
- package/dist/components/primitives/graphics.js +29 -0
- package/dist/components/primitives/graphics.js.map +1 -0
- package/dist/components/primitives/image.cjs +110 -0
- package/dist/components/primitives/image.cjs.map +1 -0
- package/dist/components/primitives/image.d.ts +170 -0
- package/dist/components/primitives/image.d.ts.map +1 -0
- package/dist/components/primitives/image.js +110 -0
- package/dist/components/primitives/image.js.map +1 -0
- package/dist/components/primitives/nineslice.cjs +42 -0
- package/dist/components/primitives/nineslice.cjs.map +1 -0
- package/dist/components/primitives/nineslice.d.ts +271 -0
- package/dist/components/primitives/nineslice.d.ts.map +1 -0
- package/dist/components/primitives/nineslice.js +42 -0
- package/dist/components/primitives/nineslice.js.map +1 -0
- package/dist/components/primitives/particles.cjs +77 -0
- package/dist/components/primitives/particles.cjs.map +1 -0
- package/dist/components/primitives/particles.d.ts +47 -0
- package/dist/components/primitives/particles.d.ts.map +1 -0
- package/dist/components/primitives/particles.js +77 -0
- package/dist/components/primitives/particles.js.map +1 -0
- package/dist/components/primitives/sprite.cjs +100 -0
- package/dist/components/primitives/sprite.cjs.map +1 -0
- package/dist/components/primitives/sprite.d.ts +147 -0
- package/dist/components/primitives/sprite.d.ts.map +1 -0
- package/dist/components/primitives/sprite.js +100 -0
- package/dist/components/primitives/sprite.js.map +1 -0
- package/dist/components/primitives/text.cjs +73 -0
- package/dist/components/primitives/text.cjs.map +1 -0
- package/dist/components/primitives/text.d.ts +155 -0
- package/dist/components/primitives/text.d.ts.map +1 -0
- package/dist/components/primitives/text.js +73 -0
- package/dist/components/primitives/text.js.map +1 -0
- package/dist/components/primitives/tilesprite.cjs +77 -0
- package/dist/components/primitives/tilesprite.cjs.map +1 -0
- package/dist/components/primitives/tilesprite.d.ts +157 -0
- package/dist/components/primitives/tilesprite.d.ts.map +1 -0
- package/dist/components/primitives/tilesprite.js +77 -0
- package/dist/components/primitives/tilesprite.js.map +1 -0
- package/dist/components/primitives/vectorDraw.cjs +73 -0
- package/dist/components/primitives/vectorDraw.cjs.map +1 -0
- package/dist/components/primitives/vectorDraw.d.ts +4 -0
- package/dist/components/primitives/vectorDraw.d.ts.map +1 -0
- package/dist/components/primitives/vectorDraw.js +73 -0
- package/dist/components/primitives/vectorDraw.js.map +1 -0
- package/dist/components/primitives/view.cjs +105 -0
- package/dist/components/primitives/view.cjs.map +1 -0
- package/dist/components/primitives/view.d.ts +23 -0
- package/dist/components/primitives/view.d.ts.map +1 -0
- package/dist/components/primitives/view.js +105 -0
- package/dist/components/primitives/view.js.map +1 -0
- package/dist/core-props.d.ts +105 -0
- package/dist/core-props.d.ts.map +1 -0
- package/dist/core-types.d.ts +71 -0
- package/dist/core-types.d.ts.map +1 -0
- package/dist/design-tokens/resolve-theme-tokens.cjs +27 -0
- package/dist/design-tokens/resolve-theme-tokens.cjs.map +1 -0
- package/dist/design-tokens/resolve-theme-tokens.d.ts +9 -0
- package/dist/design-tokens/resolve-theme-tokens.d.ts.map +1 -0
- package/dist/design-tokens/resolve-theme-tokens.js +27 -0
- package/dist/design-tokens/resolve-theme-tokens.js.map +1 -0
- package/dist/design-tokens/use-theme-tokens.cjs +26 -0
- package/dist/design-tokens/use-theme-tokens.cjs.map +1 -0
- package/dist/design-tokens/use-theme-tokens.d.ts +28 -0
- package/dist/design-tokens/use-theme-tokens.d.ts.map +1 -0
- package/dist/design-tokens/use-theme-tokens.js +26 -0
- package/dist/design-tokens/use-theme-tokens.js.map +1 -0
- package/dist/effects/index.d.ts +2 -0
- package/dist/effects/index.d.ts.map +1 -0
- package/dist/effects/phaser-effects-bridge.cjs +48 -0
- package/dist/effects/phaser-effects-bridge.cjs.map +1 -0
- package/dist/effects/phaser-effects-bridge.d.ts +2 -0
- package/dist/effects/phaser-effects-bridge.d.ts.map +1 -0
- package/dist/effects/phaser-effects-bridge.js +30 -0
- package/dist/effects/phaser-effects-bridge.js.map +1 -0
- package/dist/effects/use-effect.cjs +155 -0
- package/dist/effects/use-effect.cjs.map +1 -0
- package/dist/effects/use-effect.d.ts +30 -0
- package/dist/effects/use-effect.d.ts.map +1 -0
- package/dist/effects/use-effect.js +155 -0
- package/dist/effects/use-effect.js.map +1 -0
- package/dist/fx/convenience-hooks/index.d.ts +7 -0
- package/dist/fx/convenience-hooks/index.d.ts.map +1 -0
- package/dist/fx/convenience-hooks/use-blur.cjs +18 -0
- package/dist/fx/convenience-hooks/use-blur.cjs.map +1 -0
- package/dist/fx/convenience-hooks/use-blur.d.ts +21 -0
- package/dist/fx/convenience-hooks/use-blur.d.ts.map +1 -0
- package/dist/fx/convenience-hooks/use-blur.js +18 -0
- package/dist/fx/convenience-hooks/use-blur.js.map +1 -0
- package/dist/fx/convenience-hooks/use-glow.cjs +18 -0
- package/dist/fx/convenience-hooks/use-glow.cjs.map +1 -0
- package/dist/fx/convenience-hooks/use-glow.d.ts +21 -0
- package/dist/fx/convenience-hooks/use-glow.d.ts.map +1 -0
- package/dist/fx/convenience-hooks/use-glow.js +18 -0
- package/dist/fx/convenience-hooks/use-glow.js.map +1 -0
- package/dist/fx/convenience-hooks/use-shadow.cjs +18 -0
- package/dist/fx/convenience-hooks/use-shadow.cjs.map +1 -0
- package/dist/fx/convenience-hooks/use-shadow.d.ts +21 -0
- package/dist/fx/convenience-hooks/use-shadow.d.ts.map +1 -0
- package/dist/fx/convenience-hooks/use-shadow.js +18 -0
- package/dist/fx/convenience-hooks/use-shadow.js.map +1 -0
- package/dist/fx/fx-creators/blur.cjs +20 -0
- package/dist/fx/fx-creators/blur.cjs.map +1 -0
- package/dist/fx/fx-creators/blur.d.ts +37 -0
- package/dist/fx/fx-creators/blur.d.ts.map +1 -0
- package/dist/fx/fx-creators/blur.js +20 -0
- package/dist/fx/fx-creators/blur.js.map +1 -0
- package/dist/fx/fx-creators/color-matrix.cjs +47 -0
- package/dist/fx/fx-creators/color-matrix.cjs.map +1 -0
- package/dist/fx/fx-creators/color-matrix.d.ts +31 -0
- package/dist/fx/fx-creators/color-matrix.d.ts.map +1 -0
- package/dist/fx/fx-creators/color-matrix.js +47 -0
- package/dist/fx/fx-creators/color-matrix.js.map +1 -0
- package/dist/fx/fx-creators/glow.cjs +27 -0
- package/dist/fx/fx-creators/glow.cjs.map +1 -0
- package/dist/fx/fx-creators/glow.d.ts +36 -0
- package/dist/fx/fx-creators/glow.d.ts.map +1 -0
- package/dist/fx/fx-creators/glow.js +27 -0
- package/dist/fx/fx-creators/glow.js.map +1 -0
- package/dist/fx/fx-creators/index.d.ts +10 -0
- package/dist/fx/fx-creators/index.d.ts.map +1 -0
- package/dist/fx/fx-creators/pixelate.cjs +20 -0
- package/dist/fx/fx-creators/pixelate.cjs.map +1 -0
- package/dist/fx/fx-creators/pixelate.d.ts +24 -0
- package/dist/fx/fx-creators/pixelate.d.ts.map +1 -0
- package/dist/fx/fx-creators/pixelate.js +20 -0
- package/dist/fx/fx-creators/pixelate.js.map +1 -0
- package/dist/fx/fx-creators/shadow.cjs +28 -0
- package/dist/fx/fx-creators/shadow.cjs.map +1 -0
- package/dist/fx/fx-creators/shadow.d.ts +43 -0
- package/dist/fx/fx-creators/shadow.d.ts.map +1 -0
- package/dist/fx/fx-creators/shadow.js +28 -0
- package/dist/fx/fx-creators/shadow.js.map +1 -0
- package/dist/fx/fx-creators/vignette.cjs +20 -0
- package/dist/fx/fx-creators/vignette.cjs.map +1 -0
- package/dist/fx/fx-creators/vignette.d.ts +33 -0
- package/dist/fx/fx-creators/vignette.d.ts.map +1 -0
- package/dist/fx/fx-creators/vignette.js +20 -0
- package/dist/fx/fx-creators/vignette.js.map +1 -0
- package/dist/fx/fx-registry.cjs +43 -0
- package/dist/fx/fx-registry.cjs.map +1 -0
- package/dist/fx/fx-registry.d.ts +59 -0
- package/dist/fx/fx-registry.d.ts.map +1 -0
- package/dist/fx/fx-registry.js +43 -0
- package/dist/fx/fx-registry.js.map +1 -0
- package/dist/fx/index.d.ts +51 -0
- package/dist/fx/index.d.ts.map +1 -0
- package/dist/fx/use-fx.cjs +54 -0
- package/dist/fx/use-fx.cjs.map +1 -0
- package/dist/fx/use-fx.d.ts +53 -0
- package/dist/fx/use-fx.d.ts.map +1 -0
- package/dist/fx/use-fx.js +54 -0
- package/dist/fx/use-fx.js.map +1 -0
- package/dist/gestures/gesture-manager.cjs +773 -0
- package/dist/gestures/gesture-manager.cjs.map +1 -0
- package/dist/gestures/gesture-manager.d.ts +158 -0
- package/dist/gestures/gesture-manager.d.ts.map +1 -0
- package/dist/gestures/gesture-manager.js +773 -0
- package/dist/gestures/gesture-manager.js.map +1 -0
- package/dist/gestures/gesture-types.cjs +9 -0
- package/dist/gestures/gesture-types.cjs.map +1 -0
- package/dist/gestures/gesture-types.d.ts +232 -0
- package/dist/gestures/gesture-types.d.ts.map +1 -0
- package/dist/gestures/gesture-types.js +9 -0
- package/dist/gestures/gesture-types.js.map +1 -0
- package/dist/hooks.cjs +193 -0
- package/dist/hooks.cjs.map +1 -0
- package/dist/hooks.d.ts +151 -0
- package/dist/hooks.d.ts.map +1 -0
- package/dist/hooks.js +146 -0
- package/dist/hooks.js.map +1 -0
- package/dist/host.cjs +85 -0
- package/dist/host.cjs.map +1 -0
- package/dist/host.d.ts +78 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/host.js +85 -0
- package/dist/host.js.map +1 -0
- package/dist/index.cjs +614 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +273 -0
- package/dist/index.js.map +1 -0
- package/dist/jsx-dev-runtime.cjs +20 -0
- package/dist/jsx-dev-runtime.cjs.map +1 -0
- package/dist/jsx-dev-runtime.d.ts +8 -0
- package/dist/jsx-dev-runtime.d.ts.map +1 -0
- package/dist/jsx-dev-runtime.js +8 -0
- package/dist/jsx-dev-runtime.js.map +1 -0
- package/dist/jsx-runtime.cjs +16 -0
- package/dist/jsx-runtime.cjs.map +1 -0
- package/dist/jsx-runtime.d.ts +9 -0
- package/dist/jsx-runtime.d.ts.map +1 -0
- package/dist/jsx-runtime.js +7 -0
- package/dist/jsx-runtime.js.map +1 -0
- package/dist/jsx-types.d.ts +40 -0
- package/dist/jsx-types.d.ts.map +1 -0
- package/dist/layout/appliers/background-applier.cjs +40 -0
- package/dist/layout/appliers/background-applier.cjs.map +1 -0
- package/dist/layout/appliers/background-applier.d.ts +16 -0
- package/dist/layout/appliers/background-applier.d.ts.map +1 -0
- package/dist/layout/appliers/background-applier.js +40 -0
- package/dist/layout/appliers/background-applier.js.map +1 -0
- package/dist/layout/index.d.ts +5 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/layout-engine-test-utils.d.ts +24 -0
- package/dist/layout/layout-engine-test-utils.d.ts.map +1 -0
- package/dist/layout/phaser-layout-bridge.cjs +41 -0
- package/dist/layout/phaser-layout-bridge.cjs.map +1 -0
- package/dist/layout/phaser-layout-bridge.d.ts +9 -0
- package/dist/layout/phaser-layout-bridge.d.ts.map +1 -0
- package/dist/layout/phaser-layout-bridge.js +40 -0
- package/dist/layout/phaser-layout-bridge.js.map +1 -0
- package/dist/layout/types.d.ts +14 -0
- package/dist/layout/types.d.ts.map +1 -0
- package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.cjs +39 -0
- package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +39 -0
- package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js.map +1 -0
- package/dist/particles/emit-zone.cjs +205 -0
- package/dist/particles/emit-zone.cjs.map +1 -0
- package/dist/particles/emit-zone.d.ts +88 -0
- package/dist/particles/emit-zone.d.ts.map +1 -0
- package/dist/particles/emit-zone.js +205 -0
- package/dist/particles/emit-zone.js.map +1 -0
- package/dist/particles/index.d.ts +8 -0
- package/dist/particles/index.d.ts.map +1 -0
- package/dist/particles/particle-types.d.ts +25 -0
- package/dist/particles/particle-types.d.ts.map +1 -0
- package/dist/particles/preset-registry.cjs +57 -0
- package/dist/particles/preset-registry.cjs.map +1 -0
- package/dist/particles/preset-registry.d.ts +49 -0
- package/dist/particles/preset-registry.d.ts.map +1 -0
- package/dist/particles/preset-registry.js +57 -0
- package/dist/particles/preset-registry.js.map +1 -0
- package/dist/particles/use-particles.cjs +67 -0
- package/dist/particles/use-particles.cjs.map +1 -0
- package/dist/particles/use-particles.d.ts +19 -0
- package/dist/particles/use-particles.d.ts.map +1 -0
- package/dist/particles/use-particles.js +67 -0
- package/dist/particles/use-particles.js.map +1 -0
- package/dist/particles/utils.cjs +82 -0
- package/dist/particles/utils.cjs.map +1 -0
- package/dist/particles/utils.d.ts +10 -0
- package/dist/particles/utils.d.ts.map +1 -0
- package/dist/particles/utils.js +82 -0
- package/dist/particles/utils.js.map +1 -0
- package/dist/phaser-bridges.cjs +148 -0
- package/dist/phaser-bridges.cjs.map +1 -0
- package/dist/phaser-bridges.d.ts +78 -0
- package/dist/phaser-bridges.d.ts.map +1 -0
- package/dist/phaser-bridges.js +131 -0
- package/dist/phaser-bridges.js.map +1 -0
- package/dist/phaser-host-adapter.cjs +148 -0
- package/dist/phaser-host-adapter.cjs.map +1 -0
- package/dist/phaser-host-adapter.d.ts +30 -0
- package/dist/phaser-host-adapter.d.ts.map +1 -0
- package/dist/phaser-host-adapter.js +148 -0
- package/dist/phaser-host-adapter.js.map +1 -0
- package/dist/phaser-runtime-types.d.ts +89 -0
- package/dist/phaser-runtime-types.d.ts.map +1 -0
- package/dist/phaser-surface-adapter.cjs +488 -0
- package/dist/phaser-surface-adapter.cjs.map +1 -0
- package/dist/phaser-surface-adapter.d.ts +74 -0
- package/dist/phaser-surface-adapter.d.ts.map +1 -0
- package/dist/phaser-surface-adapter.js +471 -0
- package/dist/phaser-surface-adapter.js.map +1 -0
- package/dist/phaser-vdom-runtime.cjs +63 -0
- package/dist/phaser-vdom-runtime.cjs.map +1 -0
- package/dist/phaser-vdom-runtime.d.ts +2 -0
- package/dist/phaser-vdom-runtime.d.ts.map +1 -0
- package/dist/phaser-vdom-runtime.js +63 -0
- package/dist/phaser-vdom-runtime.js.map +1 -0
- package/dist/plugin.cjs +182 -0
- package/dist/plugin.cjs.map +1 -0
- package/dist/plugin.d.ts +161 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +165 -0
- package/dist/plugin.js.map +1 -0
- package/dist/render-context.cjs +106 -0
- package/dist/render-context.cjs.map +1 -0
- package/dist/render-context.d.ts +66 -0
- package/dist/render-context.d.ts.map +1 -0
- package/dist/render-context.js +106 -0
- package/dist/render-context.js.map +1 -0
- package/dist/scene-backgrounds.cjs +285 -0
- package/dist/scene-backgrounds.cjs.map +1 -0
- package/dist/scene-backgrounds.d.ts +69 -0
- package/dist/scene-backgrounds.d.ts.map +1 -0
- package/dist/scene-backgrounds.js +268 -0
- package/dist/scene-backgrounds.js.map +1 -0
- package/dist/theme-base.d.ts +133 -0
- package/dist/theme-base.d.ts.map +1 -0
- package/dist/theme-custom.d.ts +13 -0
- package/dist/theme-custom.d.ts.map +1 -0
- package/dist/theme-defaults.cjs +29 -0
- package/dist/theme-defaults.cjs.map +1 -0
- package/dist/theme-defaults.d.ts +1 -0
- package/dist/theme-defaults.d.ts.map +1 -0
- package/dist/theme-defaults.js +28 -0
- package/dist/theme-defaults.js.map +1 -0
- package/dist/theme.cjs +34 -0
- package/dist/theme.cjs.map +1 -0
- package/dist/theme.d.ts +36 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +32 -0
- package/dist/theme.js.map +1 -0
- package/dist/tooltip/tooltip-types.d.ts +6 -0
- package/dist/tooltip/tooltip-types.d.ts.map +1 -0
- package/dist/types.d.ts +22 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/KeyboardInputManager.cjs +112 -0
- package/dist/utils/KeyboardInputManager.cjs.map +1 -0
- package/dist/utils/KeyboardInputManager.d.ts +48 -0
- package/dist/utils/KeyboardInputManager.d.ts.map +1 -0
- package/dist/utils/KeyboardInputManager.js +112 -0
- package/dist/utils/KeyboardInputManager.js.map +1 -0
- package/dist/utils/dom-input-manager.cjs +253 -0
- package/dist/utils/dom-input-manager.cjs.map +1 -0
- package/dist/utils/dom-input-manager.d.ts +113 -0
- package/dist/utils/dom-input-manager.d.ts.map +1 -0
- package/dist/utils/dom-input-manager.js +253 -0
- package/dist/utils/dom-input-manager.js.map +1 -0
- package/dist/utils/fast-deep-equal.cjs +7 -0
- package/dist/utils/fast-deep-equal.cjs.map +1 -0
- package/dist/utils/fast-deep-equal.d.ts +4 -0
- package/dist/utils/fast-deep-equal.d.ts.map +1 -0
- package/dist/utils/fast-deep-equal.js +7 -0
- package/dist/utils/fast-deep-equal.js.map +1 -0
- package/dist/utils/image-subtexture-registry.cjs +98 -0
- package/dist/utils/image-subtexture-registry.cjs.map +1 -0
- package/dist/utils/image-subtexture-registry.d.ts +17 -0
- package/dist/utils/image-subtexture-registry.d.ts.map +1 -0
- package/dist/utils/image-subtexture-registry.js +98 -0
- package/dist/utils/image-subtexture-registry.js.map +1 -0
- package/dist/utils/phaser-guards.cjs +15 -0
- package/dist/utils/phaser-guards.cjs.map +1 -0
- package/dist/utils/phaser-guards.d.ts +7 -0
- package/dist/utils/phaser-guards.d.ts.map +1 -0
- package/dist/utils/phaser-guards.js +15 -0
- package/dist/utils/phaser-guards.js.map +1 -0
- package/dist/utils/svg-texture.cjs +48 -0
- package/dist/utils/svg-texture.cjs.map +1 -0
- package/dist/utils/svg-texture.d.ts +34 -0
- package/dist/utils/svg-texture.d.ts.map +1 -0
- package/dist/utils/svg-texture.js +48 -0
- package/dist/utils/svg-texture.js.map +1 -0
- package/dist/utils/texture-registry.cjs +117 -0
- package/dist/utils/texture-registry.cjs.map +1 -0
- package/dist/utils/texture-registry.d.ts +53 -0
- package/dist/utils/texture-registry.d.ts.map +1 -0
- package/dist/utils/texture-registry.js +117 -0
- package/dist/utils/texture-registry.js.map +1 -0
- package/dist/vdom-host-types.d.ts +12 -0
- package/dist/vdom-host-types.d.ts.map +1 -0
- package/dist/vdom-registry.d.ts +27 -0
- package/dist/vdom-registry.d.ts.map +1 -0
- package/dist/vdom-utils.d.ts +16 -0
- package/dist/vdom-utils.d.ts.map +1 -0
- package/dist/vdom.cjs +36 -0
- package/dist/vdom.cjs.map +1 -0
- package/dist/vdom.d.ts +23 -0
- package/dist/vdom.d.ts.map +1 -0
- package/dist/vdom.js +36 -0
- package/dist/vdom.js.map +1 -0
- package/dist/vector/PhaserVectorDrawContext.cjs +97 -0
- package/dist/vector/PhaserVectorDrawContext.cjs.map +1 -0
- package/dist/vector/PhaserVectorDrawContext.d.ts +27 -0
- package/dist/vector/PhaserVectorDrawContext.d.ts.map +1 -0
- package/dist/vector/PhaserVectorDrawContext.js +97 -0
- package/dist/vector/PhaserVectorDrawContext.js.map +1 -0
- package/dist/vector/index.d.ts +2 -0
- package/dist/vector/index.d.ts.map +1 -0
- package/package.json +96 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { NestedComponentThemes, PartialTheme, Theme } from './theme-base';
|
|
2
|
+
/**
|
|
3
|
+
* @number10/jsx-phaser — Phaser 4 renderer.
|
|
4
|
+
*
|
|
5
|
+
* Canonical entry point for all Phaser-specific APIs.
|
|
6
|
+
*
|
|
7
|
+
* @migration(audit:phase-5f) Phase 5F — files moved here, local exports.
|
|
8
|
+
*/
|
|
9
|
+
export * from '@number10/jsx-core';
|
|
10
|
+
export { type GestureProps, type PhaserProps, type TextSpecificProps } from './core-props';
|
|
11
|
+
export type { FocusEventData, GestureEventData, InputEventData, KeyboardEventData, TouchMoveState, WheelEventData, } from './gestures/gesture-types';
|
|
12
|
+
export { host, nodeRegistry, register } from './host';
|
|
13
|
+
export type { HostCreator, HostPatcher, NodeDescriptor } from './host';
|
|
14
|
+
export { PhaserHostAdapter } from './phaser-host-adapter';
|
|
15
|
+
export { createPhaserSurfaceContext, PhaserSurfaceAdapter, viewportRegistry, } from './phaser-surface-adapter';
|
|
16
|
+
export { PhaserVectorDrawContext } from './vector';
|
|
17
|
+
export type { NodeInstance, NodeMap, NodeProps, NodePropsMap, NodeType } from './core-types';
|
|
18
|
+
export { GestureManager, getGestureManager } from './gestures/gesture-manager';
|
|
19
|
+
export { createPhaserJSXPlugin, PhaserJSXPlugin } from './plugin';
|
|
20
|
+
export type { PhaserJSXPluginConfig, PhaserJSXPluginEntry } from './plugin';
|
|
21
|
+
export { getRenderContext, RenderContext } from './render-context';
|
|
22
|
+
export { createElement, getHostAdapter, getMountStats, getSurfaceAdapter, mount, mountJSX, normalizeVNodeLike, patchVNode, remountAll, setHostAdapter, setSurfaceAdapter, unmount, unmountJSX, } from './vdom';
|
|
23
|
+
export type { MountComponentProps, MountHandle, MountProps } from './vdom';
|
|
24
|
+
export { clearContainer, createDummyNode, deriveHostContext, extractScene, getParentContentSize, updateGestureHitAreaAfterLayout, } from './phaser-bridges';
|
|
25
|
+
export { calculateLayout, DeferredLayoutQueue, LayoutBatchQueue } from './layout';
|
|
26
|
+
export { VectorDrawContent } from '@number10/jsx-components';
|
|
27
|
+
export { useAtlas, useSVGTexture, useTexture } from '@number10/jsx-core';
|
|
28
|
+
export type { VectorDrawContext } from '@number10/jsx-core';
|
|
29
|
+
export { depsChanged, disposeCtx, getCurrent, getCurrentCtx, getCurrentOrThrow, getLayoutProps, getLayoutRect, getLayoutSize, getWorldLayoutRect, setCurrentCtx, shallowEqual, shouldComponentUpdate, useBackgroundGraphics, useCallback, useEffect, useForceRedraw, useLayoutEffect, useLayoutRect, useLayoutSize, useMemo, usePhaserTheme, useRedraw, useRef, useScene, useState, useTheme, useViewportSize, useWorldLayoutRect, withHooks, } from './hooks';
|
|
30
|
+
export type { Ctx, VNode } from './hooks';
|
|
31
|
+
export type { NestedComponentThemes, PartialTheme, Theme };
|
|
32
|
+
export { createDefaultTheme, createTheme, defaultTheme, getThemedProps, mergeThemes, themeRegistry, } from './theme';
|
|
33
|
+
export type { ComponentThemes, CustomComponentThemes, PhaserPartialTheme } from './theme-base';
|
|
34
|
+
export { useCameraFX } from './camera';
|
|
35
|
+
export * from './clip';
|
|
36
|
+
export { useGameObjectEffect } from './effects';
|
|
37
|
+
export { applyFXByName, createBlurFX, createColorMatrixFX, createGlowFX, createPixelateFX, createShadowFX, createVignetteFX, DEFAULT_FX, FX_REGISTRY as fxRegistry, resolveFX, useBlur, useFX, useGlow, useShadow, } from './fx';
|
|
38
|
+
export type { BlurFXConfig, BuiltInFXName, ColorMatrixEffect, ColorMatrixFXConfig, FXCapableGameObject, FXConfig, FXCreatorFn, FXDefinition, FXName, FXNameExtensions, FXType, GlowFXConfig, PixelateFXConfig, ShadowFXConfig, VignetteFXConfig, } from './fx';
|
|
39
|
+
export * from './particles';
|
|
40
|
+
export * from './scene-backgrounds';
|
|
41
|
+
export { svgToTexture } from './utils/svg-texture';
|
|
42
|
+
export type { GraphicsBaseProps } from './components/primitives/graphics';
|
|
43
|
+
export type { ImageBaseProps } from './components/primitives/image';
|
|
44
|
+
export type { NineSliceBaseProps } from './components/primitives/nineslice';
|
|
45
|
+
export type { ParticlesBaseProps } from './components/primitives/particles';
|
|
46
|
+
export type { SpriteBaseProps } from './components/primitives/sprite';
|
|
47
|
+
export { textCreator, textPatcher, type TextBaseProps } from './components/primitives/text';
|
|
48
|
+
export type { TileSpriteBaseProps } from './components/primitives/tilesprite';
|
|
49
|
+
export { viewCreator, viewPatcher, type ViewBaseProps } from './components/primitives/view';
|
|
50
|
+
export { Text, View } from '@number10/jsx-components';
|
|
51
|
+
export type { TextPrimitivePropsComplete as TextProps, ViewPrimitivePropsComplete as ViewProps, } from '@number10/jsx-core';
|
|
52
|
+
export * from './components/custom';
|
|
53
|
+
export { useColorMode } from './colors/use-color-mode';
|
|
54
|
+
export { useColors, useThemeSubscription } from './colors/use-colors';
|
|
55
|
+
export { useThemeTokens } from './design-tokens/use-theme-tokens';
|
|
56
|
+
export * from './animation';
|
|
57
|
+
export type { TooltipCallback, TooltipConfig, TooltipAnimation as TooltipNativeAnimation, TooltipPosition, } from '@number10/jsx-core';
|
|
58
|
+
export { DOMInputElement, type DOMInputConfig } from './utils/dom-input-manager';
|
|
59
|
+
export { KeyboardInputManager, type KeyboardInputManagerConfig } from './utils/KeyboardInputManager';
|
|
60
|
+
export { isPhaserContainer, isPhaserScene } from './utils/phaser-guards';
|
|
61
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
export * from "@number10/jsx-core";
|
|
2
|
+
import { DeferredLayoutQueue, Easing, LayoutBatchQueue, SPRING_PRESETS, SpringPhysics, animatedSignal, calculateLayout, computed, createTween, depsChanged, disposeCtx, getCurrentCtx, getCurrentOrThrow, isAnimatedSignal, setCurrentCtx, shallowEqual, shouldComponentUpdate, unwrapSignal, useAtlas, useCallback, useEffect, useForceRedraw, useLayoutEffect, useMemo, useRedraw, useRef, useSVGTexture, useSpring, useSprings, useState, useTexture, useTheme } from "@number10/jsx-core";
|
|
3
|
+
import { registerBuiltins } from "./components/index.js";
|
|
4
|
+
import "./effects/phaser-effects-bridge.js";
|
|
5
|
+
import { host, nodeRegistry, register } from "./host.js";
|
|
6
|
+
import { PhaserHostAdapter } from "./phaser-host-adapter.js";
|
|
7
|
+
import { PhaserSurfaceAdapter, createPhaserSurfaceContext, viewportRegistry } from "./phaser-surface-adapter.js";
|
|
8
|
+
import { PhaserVectorDrawContext } from "./vector/PhaserVectorDrawContext.js";
|
|
9
|
+
import { GestureManager, getGestureManager } from "./gestures/gesture-manager.js";
|
|
10
|
+
import { PhaserJSXPlugin, createPhaserJSXPlugin } from "./plugin.js";
|
|
11
|
+
import { RenderContext, getRenderContext } from "./render-context.js";
|
|
12
|
+
import { createElement, getHostAdapter, getMountStats, getSurfaceAdapter, mount, mountJSX, normalizeVNodeLike, patchVNode, remountAll, setHostAdapter, setSurfaceAdapter, unmount, unmountJSX } from "./vdom.js";
|
|
13
|
+
import { clearContainer, createDummyNode, deriveHostContext, extractScene, getParentContentSize, updateGestureHitAreaAfterLayout } from "./phaser-bridges.js";
|
|
14
|
+
import "./layout/phaser-layout-bridge.js";
|
|
15
|
+
import { Accordion, ActivityIndicator, AlertDialog, Badge, BottomSheet, BottomSheetDepth, BottomSheetHandle, Button, Checkbox, ColorPicker, ContextMenu, DebugPanel, Dialog, Divider, Dropdown, Icon, Image, Joystick, ListBox, MenuButton, Modal, NineSliceButton, NotificationStack, NumberInput, NumberInputIndicator, PalettePicker, Popover, Portal, ProgressBar, ProgressView, RadioButton, RadioGroup, RangeSlider, RatingBar, ScrollSlider, ScrollView, SegmentedControl, Sidebar, Slider, Tab, TabPanel, Tabs, Tag, Text, TextInput, Toast, Toggle, ToolButtonGroup, Toolbar, TransformOriginView, VectorDrawContent, View, WheelPicker, WrapText, calculateOverlayPosition, calculateSliderSize, chunkPalettePickerColors, createIconComponent, findListBoxItem, findSegmentedControlOption, formatBadgeCount, getBadgeText, getNextNumberInputValue, getNumberInputPrecision, getPalettePickerContrastColor, getToastAutoDismissDuration, getToolbarItemId, isSegmentedControlOptionSelectable, isToolbarMenuItem, isToolbarSeparatorItem, isToolbarToggleItem, normalizeNumberInputValue, normalizePalettePickerColor, normalizePalettePickerColors, resolveListBoxValue, resolveNotificationStackAlignment, resolvePalettePickerValue, resolveSegmentedControlValue, resolveToolbarActiveId, useIconPreload } from "@number10/jsx-components";
|
|
16
|
+
import { getCurrent, getLayoutProps, getLayoutRect, getLayoutSize, getWorldLayoutRect, useBackgroundGraphics, useLayoutRect, useLayoutSize, usePhaserTheme, useScene, useViewportSize, useWorldLayoutRect, withHooks } from "./hooks.js";
|
|
17
|
+
import { createDefaultTheme, createTheme, defaultTheme, getThemedProps, mergeThemes, themeRegistry } from "./theme.js";
|
|
18
|
+
import { useCameraFX } from "./camera/use-camera-fx.js";
|
|
19
|
+
import "./clip/index.js";
|
|
20
|
+
import { useGameObjectEffect } from "./effects/use-effect.js";
|
|
21
|
+
import { useFX } from "./fx/use-fx.js";
|
|
22
|
+
import { DEFAULT_FX, applyFXByName, FX_REGISTRY, resolveFX } from "./fx/fx-registry.js";
|
|
23
|
+
import { createBlurFX } from "./fx/fx-creators/blur.js";
|
|
24
|
+
import { createColorMatrixFX } from "./fx/fx-creators/color-matrix.js";
|
|
25
|
+
import { createGlowFX } from "./fx/fx-creators/glow.js";
|
|
26
|
+
import { createPixelateFX } from "./fx/fx-creators/pixelate.js";
|
|
27
|
+
import { createShadowFX } from "./fx/fx-creators/shadow.js";
|
|
28
|
+
import { createVignetteFX } from "./fx/fx-creators/vignette.js";
|
|
29
|
+
import { useBlur } from "./fx/convenience-hooks/use-blur.js";
|
|
30
|
+
import { useGlow } from "./fx/convenience-hooks/use-glow.js";
|
|
31
|
+
import { useShadow } from "./fx/convenience-hooks/use-shadow.js";
|
|
32
|
+
import { PARTICLE_PRESET_REGISTRY, resolveParticlePreset } from "./particles/preset-registry.js";
|
|
33
|
+
import { buildDeathZonesFromLayout, buildEmitZone, buildEmitZoneFromLayout } from "./particles/emit-zone.js";
|
|
34
|
+
import { useParticles } from "./particles/use-particles.js";
|
|
35
|
+
import { DEFAULT_BACKGROUND, addSceneBackground } from "./scene-backgrounds.js";
|
|
36
|
+
import { svgToTexture } from "./utils/svg-texture.js";
|
|
37
|
+
import { textCreator, textPatcher } from "./components/primitives/text.js";
|
|
38
|
+
import { viewCreator, viewPatcher } from "./components/primitives/view.js";
|
|
39
|
+
import { collectPhaserSnapshot, usePhaserDebugSnapshot } from "./components/DebugPanel.js";
|
|
40
|
+
import { Graphics } from "./components/custom/Graphics.js";
|
|
41
|
+
import { NineSlice } from "./components/custom/NineSlice.js";
|
|
42
|
+
import { Particles } from "./components/custom/Particles.js";
|
|
43
|
+
import { RefOriginView } from "./components/custom/RefOriginView.js";
|
|
44
|
+
import { Sprite } from "./components/custom/Sprite.js";
|
|
45
|
+
import { TileSprite } from "./components/custom/TileSprite.js";
|
|
46
|
+
import { useColorMode } from "./colors/use-color-mode.js";
|
|
47
|
+
import { useColors, useThemeSubscription } from "./colors/use-colors.js";
|
|
48
|
+
import { useThemeTokens } from "./design-tokens/use-theme-tokens.js";
|
|
49
|
+
import { DOMInputElement } from "./utils/dom-input-manager.js";
|
|
50
|
+
import { KeyboardInputManager } from "./utils/KeyboardInputManager.js";
|
|
51
|
+
import { isPhaserContainer, isPhaserScene } from "./utils/phaser-guards.js";
|
|
52
|
+
import { applyStencilClip, clearStencilClip, getStencilClipHandle } from "./clip/stencil-clip.js";
|
|
53
|
+
import { installStencilClipExtension, uninstallStencilClipExtension } from "./clip/stencil-clip-extension.js";
|
|
54
|
+
import { isBitmapStencilClipSource } from "./clip/stencil-clip-state.js";
|
|
55
|
+
registerBuiltins();
|
|
56
|
+
export {
|
|
57
|
+
Accordion,
|
|
58
|
+
ActivityIndicator,
|
|
59
|
+
AlertDialog,
|
|
60
|
+
Badge,
|
|
61
|
+
BottomSheet,
|
|
62
|
+
BottomSheetDepth,
|
|
63
|
+
BottomSheetHandle,
|
|
64
|
+
Button,
|
|
65
|
+
Checkbox,
|
|
66
|
+
ColorPicker,
|
|
67
|
+
ContextMenu,
|
|
68
|
+
DEFAULT_BACKGROUND,
|
|
69
|
+
DEFAULT_FX,
|
|
70
|
+
DOMInputElement,
|
|
71
|
+
DebugPanel,
|
|
72
|
+
DeferredLayoutQueue,
|
|
73
|
+
Dialog,
|
|
74
|
+
Divider,
|
|
75
|
+
Dropdown,
|
|
76
|
+
Easing,
|
|
77
|
+
GestureManager,
|
|
78
|
+
Graphics,
|
|
79
|
+
Icon,
|
|
80
|
+
Image,
|
|
81
|
+
Joystick,
|
|
82
|
+
KeyboardInputManager,
|
|
83
|
+
LayoutBatchQueue,
|
|
84
|
+
ListBox,
|
|
85
|
+
MenuButton,
|
|
86
|
+
Modal,
|
|
87
|
+
NineSlice,
|
|
88
|
+
NineSliceButton,
|
|
89
|
+
NotificationStack,
|
|
90
|
+
NumberInput,
|
|
91
|
+
NumberInputIndicator,
|
|
92
|
+
PARTICLE_PRESET_REGISTRY,
|
|
93
|
+
PalettePicker,
|
|
94
|
+
Particles,
|
|
95
|
+
PhaserHostAdapter,
|
|
96
|
+
PhaserJSXPlugin,
|
|
97
|
+
PhaserSurfaceAdapter,
|
|
98
|
+
PhaserVectorDrawContext,
|
|
99
|
+
Popover,
|
|
100
|
+
Portal,
|
|
101
|
+
ProgressBar,
|
|
102
|
+
ProgressView,
|
|
103
|
+
RadioButton,
|
|
104
|
+
RadioGroup,
|
|
105
|
+
RangeSlider,
|
|
106
|
+
RatingBar,
|
|
107
|
+
RefOriginView,
|
|
108
|
+
RenderContext,
|
|
109
|
+
SPRING_PRESETS,
|
|
110
|
+
ScrollSlider,
|
|
111
|
+
ScrollView,
|
|
112
|
+
SegmentedControl,
|
|
113
|
+
Sidebar,
|
|
114
|
+
Slider,
|
|
115
|
+
SpringPhysics,
|
|
116
|
+
Sprite,
|
|
117
|
+
Tab,
|
|
118
|
+
TabPanel,
|
|
119
|
+
Tabs,
|
|
120
|
+
Tag,
|
|
121
|
+
Text,
|
|
122
|
+
TextInput,
|
|
123
|
+
TileSprite,
|
|
124
|
+
Toast,
|
|
125
|
+
Toggle,
|
|
126
|
+
ToolButtonGroup,
|
|
127
|
+
Toolbar,
|
|
128
|
+
TransformOriginView,
|
|
129
|
+
VectorDrawContent,
|
|
130
|
+
View,
|
|
131
|
+
WheelPicker,
|
|
132
|
+
WrapText,
|
|
133
|
+
addSceneBackground,
|
|
134
|
+
animatedSignal,
|
|
135
|
+
applyFXByName,
|
|
136
|
+
applyStencilClip,
|
|
137
|
+
buildDeathZonesFromLayout,
|
|
138
|
+
buildEmitZone,
|
|
139
|
+
buildEmitZoneFromLayout,
|
|
140
|
+
calculateLayout,
|
|
141
|
+
calculateOverlayPosition,
|
|
142
|
+
calculateSliderSize,
|
|
143
|
+
chunkPalettePickerColors,
|
|
144
|
+
clearContainer,
|
|
145
|
+
clearStencilClip,
|
|
146
|
+
collectPhaserSnapshot,
|
|
147
|
+
computed,
|
|
148
|
+
createBlurFX,
|
|
149
|
+
createColorMatrixFX,
|
|
150
|
+
createDefaultTheme,
|
|
151
|
+
createDummyNode,
|
|
152
|
+
createElement,
|
|
153
|
+
createGlowFX,
|
|
154
|
+
createIconComponent,
|
|
155
|
+
createPhaserJSXPlugin,
|
|
156
|
+
createPhaserSurfaceContext,
|
|
157
|
+
createPixelateFX,
|
|
158
|
+
createShadowFX,
|
|
159
|
+
createTheme,
|
|
160
|
+
createTween,
|
|
161
|
+
createVignetteFX,
|
|
162
|
+
defaultTheme,
|
|
163
|
+
depsChanged,
|
|
164
|
+
deriveHostContext,
|
|
165
|
+
disposeCtx,
|
|
166
|
+
extractScene,
|
|
167
|
+
findListBoxItem,
|
|
168
|
+
findSegmentedControlOption,
|
|
169
|
+
formatBadgeCount,
|
|
170
|
+
FX_REGISTRY as fxRegistry,
|
|
171
|
+
getBadgeText,
|
|
172
|
+
getCurrent,
|
|
173
|
+
getCurrentCtx,
|
|
174
|
+
getCurrentOrThrow,
|
|
175
|
+
getGestureManager,
|
|
176
|
+
getHostAdapter,
|
|
177
|
+
getLayoutProps,
|
|
178
|
+
getLayoutRect,
|
|
179
|
+
getLayoutSize,
|
|
180
|
+
getMountStats,
|
|
181
|
+
getNextNumberInputValue,
|
|
182
|
+
getNumberInputPrecision,
|
|
183
|
+
getPalettePickerContrastColor,
|
|
184
|
+
getParentContentSize,
|
|
185
|
+
getRenderContext,
|
|
186
|
+
getStencilClipHandle,
|
|
187
|
+
getSurfaceAdapter,
|
|
188
|
+
getThemedProps,
|
|
189
|
+
getToastAutoDismissDuration,
|
|
190
|
+
getToolbarItemId,
|
|
191
|
+
getWorldLayoutRect,
|
|
192
|
+
host,
|
|
193
|
+
installStencilClipExtension,
|
|
194
|
+
isAnimatedSignal,
|
|
195
|
+
isBitmapStencilClipSource,
|
|
196
|
+
isPhaserContainer,
|
|
197
|
+
isPhaserScene,
|
|
198
|
+
isSegmentedControlOptionSelectable,
|
|
199
|
+
isToolbarMenuItem,
|
|
200
|
+
isToolbarSeparatorItem,
|
|
201
|
+
isToolbarToggleItem,
|
|
202
|
+
mergeThemes,
|
|
203
|
+
mount,
|
|
204
|
+
mountJSX,
|
|
205
|
+
nodeRegistry,
|
|
206
|
+
normalizeNumberInputValue,
|
|
207
|
+
normalizePalettePickerColor,
|
|
208
|
+
normalizePalettePickerColors,
|
|
209
|
+
normalizeVNodeLike,
|
|
210
|
+
patchVNode,
|
|
211
|
+
register,
|
|
212
|
+
remountAll,
|
|
213
|
+
resolveFX,
|
|
214
|
+
resolveListBoxValue,
|
|
215
|
+
resolveNotificationStackAlignment,
|
|
216
|
+
resolvePalettePickerValue,
|
|
217
|
+
resolveParticlePreset,
|
|
218
|
+
resolveSegmentedControlValue,
|
|
219
|
+
resolveToolbarActiveId,
|
|
220
|
+
setCurrentCtx,
|
|
221
|
+
setHostAdapter,
|
|
222
|
+
setSurfaceAdapter,
|
|
223
|
+
shallowEqual,
|
|
224
|
+
shouldComponentUpdate,
|
|
225
|
+
svgToTexture,
|
|
226
|
+
textCreator,
|
|
227
|
+
textPatcher,
|
|
228
|
+
themeRegistry,
|
|
229
|
+
uninstallStencilClipExtension,
|
|
230
|
+
unmount,
|
|
231
|
+
unmountJSX,
|
|
232
|
+
unwrapSignal,
|
|
233
|
+
updateGestureHitAreaAfterLayout,
|
|
234
|
+
useAtlas,
|
|
235
|
+
useBackgroundGraphics,
|
|
236
|
+
useBlur,
|
|
237
|
+
useCallback,
|
|
238
|
+
useCameraFX,
|
|
239
|
+
useColorMode,
|
|
240
|
+
useColors,
|
|
241
|
+
useEffect,
|
|
242
|
+
useFX,
|
|
243
|
+
useForceRedraw,
|
|
244
|
+
useGameObjectEffect,
|
|
245
|
+
useGlow,
|
|
246
|
+
useIconPreload,
|
|
247
|
+
useLayoutEffect,
|
|
248
|
+
useLayoutRect,
|
|
249
|
+
useLayoutSize,
|
|
250
|
+
useMemo,
|
|
251
|
+
useParticles,
|
|
252
|
+
usePhaserDebugSnapshot,
|
|
253
|
+
usePhaserTheme,
|
|
254
|
+
useRedraw,
|
|
255
|
+
useRef,
|
|
256
|
+
useSVGTexture,
|
|
257
|
+
useScene,
|
|
258
|
+
useShadow,
|
|
259
|
+
useSpring,
|
|
260
|
+
useSprings,
|
|
261
|
+
useState,
|
|
262
|
+
useTexture,
|
|
263
|
+
useTheme,
|
|
264
|
+
useThemeSubscription,
|
|
265
|
+
useThemeTokens,
|
|
266
|
+
useViewportSize,
|
|
267
|
+
useWorldLayoutRect,
|
|
268
|
+
viewCreator,
|
|
269
|
+
viewPatcher,
|
|
270
|
+
viewportRegistry,
|
|
271
|
+
withHooks
|
|
272
|
+
};
|
|
273
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @number10/jsx-phaser — Phaser 4 renderer.\n *\n * Canonical entry point for all Phaser-specific APIs.\n *\n * @migration(audit:phase-5f) Phase 5F — files moved here, local exports.\n */\n\n// Foundation: entire Core API\nexport * from '@number10/jsx-core'\n\n// Side-effect: register JSX intrinsic element types\nimport './jsx-types'\n\n// Side-effect: register built-in components (View, Text, etc.)\nimport { registerBuiltins } from './components'\nregisterBuiltins()\n\n// Side-effect: always register Phaser's Core effect runner, even when the app\n// only imports renderer runtime APIs and tree-shakes explicit effect exports.\nimport './effects/phaser-effects-bridge'\n\n// -- Phaser-specific props ------------------------------------------------\nexport { type GestureProps, type PhaserProps, type TextSpecificProps } from './core-props'\n\n// -- Gesture types --------------------------------------------------------\nexport type {\n FocusEventData,\n GestureEventData,\n InputEventData,\n KeyboardEventData,\n TouchMoveState,\n WheelEventData,\n} from './gestures/gesture-types'\n\n// -- Host system ----------------------------------------------------------\nexport { host, nodeRegistry, register } from './host'\nexport type { HostCreator, HostPatcher, NodeDescriptor } from './host'\nexport { PhaserHostAdapter } from './phaser-host-adapter'\nexport {\n createPhaserSurfaceContext,\n PhaserSurfaceAdapter,\n viewportRegistry,\n} from './phaser-surface-adapter'\nexport { PhaserVectorDrawContext } from './vector'\n\n// -- Core types -----------------------------------------------------------\nexport type { NodeInstance, NodeMap, NodeProps, NodePropsMap, NodeType } from './core-types'\n\n// -- Gesture system -------------------------------------------------------\nexport { GestureManager, getGestureManager } from './gestures/gesture-manager'\n\n// -- Render context + Plugin ----------------------------------------------\nexport { createPhaserJSXPlugin, PhaserJSXPlugin } from './plugin'\nexport type { PhaserJSXPluginConfig, PhaserJSXPluginEntry } from './plugin'\nexport { getRenderContext, RenderContext } from './render-context'\n\n// -- VDOM + Mounting ------------------------------------------------------\nexport {\n createElement,\n getHostAdapter,\n getMountStats,\n getSurfaceAdapter,\n mount,\n mountJSX,\n normalizeVNodeLike,\n patchVNode,\n remountAll,\n setHostAdapter,\n setSurfaceAdapter,\n unmount,\n unmountJSX,\n} from './vdom'\nexport type { MountComponentProps, MountHandle, MountProps } from './vdom'\n\n// -- Phaser bridges -------------------------------------------------------\nexport {\n clearContainer,\n createDummyNode,\n deriveHostContext,\n extractScene,\n getParentContentSize,\n updateGestureHitAreaAfterLayout,\n} from './phaser-bridges'\n\n// -- Layout engine --------------------------------------------------------\nexport { calculateLayout, DeferredLayoutQueue, LayoutBatchQueue } from './layout'\n\n// -- Hooks (Phaser-specific + re-exports from core) -----------------------\n// Phaser-specific: withHooks, useScene, useViewportSize, useLayoutEffect, layout helpers\n// Re-exports from core: useState, useRef, useEffect, useMemo, useCallback, etc.\n// Core's scheduleUpdate is injected with Phaser's VDOM patching via setUpdateHandler.\nexport { VectorDrawContent } from '@number10/jsx-components'\nexport { useAtlas, useSVGTexture, useTexture } from '@number10/jsx-core'\nexport type { VectorDrawContext } from '@number10/jsx-core'\nexport {\n depsChanged,\n disposeCtx,\n getCurrent,\n getCurrentCtx,\n getCurrentOrThrow,\n getLayoutProps,\n getLayoutRect,\n getLayoutSize,\n getWorldLayoutRect,\n setCurrentCtx,\n shallowEqual,\n shouldComponentUpdate,\n useBackgroundGraphics,\n useCallback,\n useEffect,\n useForceRedraw,\n useLayoutEffect,\n useLayoutRect,\n useLayoutSize,\n useMemo,\n usePhaserTheme,\n useRedraw,\n useRef,\n useScene,\n useState,\n useTheme,\n useViewportSize,\n useWorldLayoutRect,\n withHooks,\n} from './hooks'\nexport type { Ctx, VNode } from './hooks'\nexport type { NestedComponentThemes, PartialTheme, Theme }\n\n// -- Theme ----------------------------------------------------------------\n// Local imports to override generic types from @number10/jsx-core (export * above)\nimport type { NestedComponentThemes, PartialTheme, Theme } from './theme-base'\n\nexport {\n createDefaultTheme,\n createTheme,\n defaultTheme,\n getThemedProps,\n mergeThemes,\n themeRegistry,\n} from './theme'\nexport type { ComponentThemes, CustomComponentThemes, PhaserPartialTheme } from './theme-base'\n\n// -- Phaser-native features -----------------------------------------------\nexport { useCameraFX } from './camera'\nexport * from './clip'\nexport { useGameObjectEffect } from './effects'\nexport {\n applyFXByName,\n createBlurFX,\n createColorMatrixFX,\n createGlowFX,\n createPixelateFX,\n createShadowFX,\n createVignetteFX,\n DEFAULT_FX,\n FX_REGISTRY as fxRegistry,\n resolveFX,\n useBlur,\n useFX,\n useGlow,\n useShadow,\n} from './fx'\nexport type {\n BlurFXConfig,\n BuiltInFXName,\n ColorMatrixEffect,\n ColorMatrixFXConfig,\n FXCapableGameObject,\n FXConfig,\n FXCreatorFn,\n FXDefinition,\n FXName,\n FXNameExtensions,\n FXType,\n GlowFXConfig,\n PixelateFXConfig,\n ShadowFXConfig,\n VignetteFXConfig,\n} from './fx'\nexport * from './particles'\nexport * from './scene-backgrounds'\n\nexport { svgToTexture } from './utils/svg-texture'\n\n// -- Primitives -----------------------------------------------------------\nexport type { GraphicsBaseProps } from './components/primitives/graphics'\nexport type { ImageBaseProps } from './components/primitives/image'\nexport type { NineSliceBaseProps } from './components/primitives/nineslice'\nexport type { ParticlesBaseProps } from './components/primitives/particles'\nexport type { SpriteBaseProps } from './components/primitives/sprite'\nexport { textCreator, textPatcher, type TextBaseProps } from './components/primitives/text'\nexport type { TileSpriteBaseProps } from './components/primitives/tilesprite'\nexport { viewCreator, viewPatcher, type ViewBaseProps } from './components/primitives/view'\n\n// -- Custom Components (all) ----------------------------------------------\nexport { Text, View } from '@number10/jsx-components'\nexport type {\n TextPrimitivePropsComplete as TextProps,\n ViewPrimitivePropsComplete as ViewProps,\n} from '@number10/jsx-core'\nexport * from './components/custom'\n\n// -- Colors + Design Tokens (Phaser-specific) --------------------------------\nexport { useColorMode } from './colors/use-color-mode'\nexport { useColors, useThemeSubscription } from './colors/use-colors'\nexport { useThemeTokens } from './design-tokens/use-theme-tokens'\n\n// -- Animation (re-exports from @number10/jsx-core) -------------------------\nexport * from './animation'\n\n// -- Tooltip types --------------------------------------------------------\nexport type {\n TooltipCallback,\n TooltipConfig,\n TooltipAnimation as TooltipNativeAnimation,\n TooltipPosition,\n} from '@number10/jsx-core'\n\n// -- DOM Input utilities --------------------------------------------------\nexport { DOMInputElement, type DOMInputConfig } from './utils/dom-input-manager'\nexport { KeyboardInputManager, type KeyboardInputManagerConfig } from './utils/KeyboardInputManager'\n\n// -- Utilities ------------------------------------------------------------\nexport { isPhaserContainer, isPhaserScene } from './utils/phaser-guards'\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,iBAAA;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxDevRuntime = require("@number10/jsx-core/jsx-dev-runtime");
|
|
4
|
+
Object.defineProperty(exports, "Fragment", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => jsxDevRuntime.Fragment
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "jsx", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: () => jsxDevRuntime.jsx
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "jsxDEV", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: () => jsxDevRuntime.jsxDEV
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "jsxs", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: () => jsxDevRuntime.jsxs
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=jsx-dev-runtime.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-dev-runtime.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JSX dev runtime for @number10/jsx-phaser.
|
|
3
|
+
*
|
|
4
|
+
* Re-exported from @number10/jsx-core for Phase 3 package scaffolding.
|
|
5
|
+
*/
|
|
6
|
+
export type { VNode, VNodeLike } from '@number10/jsx-core';
|
|
7
|
+
export { Fragment, jsx, jsxDEV, jsxs } from '@number10/jsx-core/jsx-dev-runtime';
|
|
8
|
+
//# sourceMappingURL=jsx-dev-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-dev-runtime.d.ts","sourceRoot":"","sources":["../src/jsx-dev-runtime.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-dev-runtime.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("@number10/jsx-core/jsx-runtime");
|
|
4
|
+
Object.defineProperty(exports, "Fragment", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => jsxRuntime.Fragment
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "jsx", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: () => jsxRuntime.jsx
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "jsxs", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: () => jsxRuntime.jsxs
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=jsx-runtime.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JSX runtime for @number10/jsx-phaser.
|
|
3
|
+
*
|
|
4
|
+
* Phase 3 keeps the canonical runtime in @number10/jsx-core and exposes this
|
|
5
|
+
* subpath so consumers can use "jsxImportSource": "@number10/jsx-phaser".
|
|
6
|
+
*/
|
|
7
|
+
export { Fragment, jsx, jsxs } from '@number10/jsx-core/jsx-runtime';
|
|
8
|
+
export type { VNode, VNodeLike } from '@number10/jsx-core';
|
|
9
|
+
//# sourceMappingURL=jsx-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime.d.ts","sourceRoot":"","sources":["../src/jsx-runtime.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAA;AACpE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ButtonProps } from '@number10/jsx-components';
|
|
2
|
+
import { TextPrimitivePropsComplete, ViewPrimitivePropsComplete } from '@number10/jsx-core';
|
|
3
|
+
import { GraphicsProps } from './components/primitives/graphics';
|
|
4
|
+
import { ImagePrimitiveProps } from './components/primitives/image';
|
|
5
|
+
import { NineSlicePrimitiveProps } from './components/primitives/nineslice';
|
|
6
|
+
import { ParticlesPrimitiveProps } from './components/primitives/particles';
|
|
7
|
+
import { SpriteProps } from './components/primitives/sprite';
|
|
8
|
+
import { TextProps as PrimitiveTextProps } from './components/primitives/text';
|
|
9
|
+
import { TileSpriteProps } from './components/primitives/tilesprite';
|
|
10
|
+
import { ViewProps as PrimitiveViewProps } from './components/primitives/view';
|
|
11
|
+
import { VNodeLike } from './types';
|
|
12
|
+
declare global {
|
|
13
|
+
namespace JSX {
|
|
14
|
+
type Element = VNodeLike;
|
|
15
|
+
interface ElementChildrenAttribute {
|
|
16
|
+
children: {};
|
|
17
|
+
}
|
|
18
|
+
interface IntrinsicElements {
|
|
19
|
+
view: PrimitiveViewProps;
|
|
20
|
+
text: PrimitiveTextProps;
|
|
21
|
+
nineslice: NineSlicePrimitiveProps;
|
|
22
|
+
particles: ParticlesPrimitiveProps;
|
|
23
|
+
sprite: SpriteProps;
|
|
24
|
+
image: ImagePrimitiveProps;
|
|
25
|
+
graphics: GraphicsProps;
|
|
26
|
+
tilesprite: TileSpriteProps;
|
|
27
|
+
View: ViewPrimitivePropsComplete;
|
|
28
|
+
Text: TextPrimitivePropsComplete;
|
|
29
|
+
Button: ButtonProps;
|
|
30
|
+
NineSlice: NineSlicePrimitiveProps;
|
|
31
|
+
Particles: ParticlesPrimitiveProps;
|
|
32
|
+
Sprite: SpriteProps;
|
|
33
|
+
Image: ImagePrimitiveProps;
|
|
34
|
+
Graphics: GraphicsProps;
|
|
35
|
+
TileSprite: TileSpriteProps;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=jsx-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-types.d.ts","sourceRoot":"","sources":["../src/jsx-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,KAAK,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AACxE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAChF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAChF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AACjE,OAAO,KAAK,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AACnF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGxC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,KAAK,OAAO,GAAG,SAAS,CAAA;QACxB,UAAU,wBAAwB;YAEhC,QAAQ,EAAE,EAAE,CAAA;SACb;QACD,UAAU,iBAAiB;YAEzB,IAAI,EAAE,kBAAkB,CAAA;YACxB,IAAI,EAAE,kBAAkB,CAAA;YACxB,SAAS,EAAE,uBAAuB,CAAA;YAClC,SAAS,EAAE,uBAAuB,CAAA;YAClC,MAAM,EAAE,WAAW,CAAA;YACnB,KAAK,EAAE,mBAAmB,CAAA;YAC1B,QAAQ,EAAE,aAAa,CAAA;YACvB,UAAU,EAAE,eAAe,CAAA;YAE3B,IAAI,EAAE,0BAA0B,CAAA;YAChC,IAAI,EAAE,0BAA0B,CAAA;YAChC,MAAM,EAAE,WAAW,CAAA;YAEnB,SAAS,EAAE,uBAAuB,CAAA;YAClC,SAAS,EAAE,uBAAuB,CAAA;YAClC,MAAM,EAAE,WAAW,CAAA;YACnB,KAAK,EAAE,mBAAmB,CAAA;YAC1B,QAAQ,EAAE,aAAa,CAAA;YACvB,UAAU,EAAE,eAAe,CAAA;SAC5B;KACF;CACF;AAID,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxCore = require("@number10/jsx-core");
|
|
4
|
+
const backgroundImage = require("../../components/backgroundImage.cjs");
|
|
5
|
+
function updateBackground(container, width, height) {
|
|
6
|
+
const background = container.__background;
|
|
7
|
+
if (background) {
|
|
8
|
+
const layoutProps = container.__layoutProps;
|
|
9
|
+
if (layoutProps) {
|
|
10
|
+
const cacheKey = backgroundImage.getBackgroundImageCacheKey(layoutProps, width, height);
|
|
11
|
+
if (background.__backgroundCacheKey === cacheKey) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
const nextBackground = backgroundImage.createBackgroundImage(container.scene, layoutProps, width, height);
|
|
15
|
+
if (!nextBackground) return;
|
|
16
|
+
container.addAt(nextBackground, 0);
|
|
17
|
+
container.__background = nextBackground;
|
|
18
|
+
backgroundImage.destroyBackgroundImage(background);
|
|
19
|
+
jsxCore.DebugLogger.log("layout", "Background redrawn to:", { width, height });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function updateHitArea(container, width, height) {
|
|
24
|
+
if (container.input?.hitArea && "setSize" in container.input.hitArea) {
|
|
25
|
+
const hitArea = container.input.hitArea;
|
|
26
|
+
const oldWidth = hitArea.width;
|
|
27
|
+
const oldHeight = hitArea.height;
|
|
28
|
+
if (oldWidth !== width || oldHeight !== height) {
|
|
29
|
+
hitArea.setPosition(0, 0);
|
|
30
|
+
hitArea.setSize(width, height);
|
|
31
|
+
jsxCore.DebugLogger.log("layout", "Hit area resized:", {
|
|
32
|
+
from: { x: hitArea.x, y: hitArea.y, width: oldWidth, height: oldHeight },
|
|
33
|
+
to: { x: 0, y: 0, width, height }
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.updateBackground = updateBackground;
|
|
39
|
+
exports.updateHitArea = updateHitArea;
|
|
40
|
+
//# sourceMappingURL=background-applier.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"background-applier.cjs","sources":["../../../src/layout/appliers/background-applier.ts"],"sourcesContent":["/**\n * Background applier - updates background and hit area\n */\nimport { DebugLogger } from '@number10/jsx-core'\nimport type * as Phaser from 'phaser'\nimport {\n createBackgroundImage,\n destroyBackgroundImage,\n getBackgroundImageCacheKey,\n} from '../../components/backgroundImage'\nimport type { GameObjectWithLayout } from '../types'\n\n/**\n * Update background graphics size if present\n * @param container - Phaser container\n * @param width - Background width\n * @param height - Background height\n */\nexport function updateBackground(\n container: Phaser.GameObjects.Container,\n width: number,\n height: number\n): void {\n const background = (container as GameObjectWithLayout).__background\n if (background) {\n const layoutProps = (container as GameObjectWithLayout).__layoutProps\n if (layoutProps) {\n const cacheKey = getBackgroundImageCacheKey(layoutProps, width, height)\n\n if (background.__backgroundCacheKey === cacheKey) {\n return\n }\n\n const nextBackground = createBackgroundImage(container.scene, layoutProps, width, height)\n\n if (!nextBackground) return\n\n container.addAt(nextBackground, 0)\n ;(container as GameObjectWithLayout).__background = nextBackground\n destroyBackgroundImage(background)\n\n DebugLogger.log('layout', 'Background redrawn to:', { width, height })\n }\n }\n}\n\n/**\n * Update interactive hit area if present\n * @param container - Phaser container\n * @param width - Hit area width\n * @param height - Hit area height\n */\nexport function updateHitArea(\n container: Phaser.GameObjects.Container,\n width: number,\n height: number\n): void {\n if (container.input?.hitArea && 'setSize' in container.input.hitArea) {\n const hitArea = container.input.hitArea as Phaser.Geom.Rectangle\n const oldWidth = hitArea.width\n const oldHeight = hitArea.height\n\n // Only update if dimensions actually changed\n if (oldWidth !== width || oldHeight !== height) {\n // Position hit area centered around origin (container's local 0,0)\n // This is needed because Phaser containers treat hit areas relative to their center\n hitArea.setPosition(0, 0)\n hitArea.setSize(width, height)\n\n DebugLogger.log('layout', 'Hit area resized:', {\n from: { x: hitArea.x, y: hitArea.y, width: oldWidth, height: oldHeight },\n to: { x: 0, y: 0, width, height },\n })\n }\n }\n}\n"],"names":["getBackgroundImageCacheKey","createBackgroundImage","destroyBackgroundImage","DebugLogger"],"mappings":";;;;AAkBO,SAAS,iBACd,WACA,OACA,QACM;AACN,QAAM,aAAc,UAAmC;AACvD,MAAI,YAAY;AACd,UAAM,cAAe,UAAmC;AACxD,QAAI,aAAa;AACf,YAAM,WAAWA,gBAAAA,2BAA2B,aAAa,OAAO,MAAM;AAEtE,UAAI,WAAW,yBAAyB,UAAU;AAChD;AAAA,MACF;AAEA,YAAM,iBAAiBC,gBAAAA,sBAAsB,UAAU,OAAO,aAAa,OAAO,MAAM;AAExF,UAAI,CAAC,eAAgB;AAErB,gBAAU,MAAM,gBAAgB,CAAC;AAC/B,gBAAmC,eAAe;AACpDC,sBAAAA,uBAAuB,UAAU;AAEjCC,cAAAA,YAAY,IAAI,UAAU,0BAA0B,EAAE,OAAO,QAAQ;AAAA,IACvE;AAAA,EACF;AACF;AAQO,SAAS,cACd,WACA,OACA,QACM;AACN,MAAI,UAAU,OAAO,WAAW,aAAa,UAAU,MAAM,SAAS;AACpE,UAAM,UAAU,UAAU,MAAM;AAChC,UAAM,WAAW,QAAQ;AACzB,UAAM,YAAY,QAAQ;AAG1B,QAAI,aAAa,SAAS,cAAc,QAAQ;AAG9C,cAAQ,YAAY,GAAG,CAAC;AACxB,cAAQ,QAAQ,OAAO,MAAM;AAE7BA,0BAAY,IAAI,UAAU,qBAAqB;AAAA,QAC7C,MAAM,EAAE,GAAG,QAAQ,GAAG,GAAG,QAAQ,GAAG,OAAO,UAAU,QAAQ,UAAA;AAAA,QAC7D,IAAI,EAAE,GAAG,GAAG,GAAG,GAAG,OAAO,OAAA;AAAA,MAAO,CACjC;AAAA,IACH;AAAA,EACF;AACF;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Phaser from 'phaser';
|
|
2
|
+
/**
|
|
3
|
+
* Update background graphics size if present
|
|
4
|
+
* @param container - Phaser container
|
|
5
|
+
* @param width - Background width
|
|
6
|
+
* @param height - Background height
|
|
7
|
+
*/
|
|
8
|
+
export declare function updateBackground(container: Phaser.GameObjects.Container, width: number, height: number): void;
|
|
9
|
+
/**
|
|
10
|
+
* Update interactive hit area if present
|
|
11
|
+
* @param container - Phaser container
|
|
12
|
+
* @param width - Hit area width
|
|
13
|
+
* @param height - Hit area height
|
|
14
|
+
*/
|
|
15
|
+
export declare function updateHitArea(container: Phaser.GameObjects.Container, width: number, height: number): void;
|
|
16
|
+
//# sourceMappingURL=background-applier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"background-applier.d.ts","sourceRoot":"","sources":["../../../src/layout/appliers/background-applier.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,QAAQ,CAAA;AAQrC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,SAAS,EACvC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,IAAI,CAsBN;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,SAAS,EACvC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACb,IAAI,CAmBN"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DebugLogger } from "@number10/jsx-core";
|
|
2
|
+
import { getBackgroundImageCacheKey, createBackgroundImage, destroyBackgroundImage } from "../../components/backgroundImage.js";
|
|
3
|
+
function updateBackground(container, width, height) {
|
|
4
|
+
const background = container.__background;
|
|
5
|
+
if (background) {
|
|
6
|
+
const layoutProps = container.__layoutProps;
|
|
7
|
+
if (layoutProps) {
|
|
8
|
+
const cacheKey = getBackgroundImageCacheKey(layoutProps, width, height);
|
|
9
|
+
if (background.__backgroundCacheKey === cacheKey) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
const nextBackground = createBackgroundImage(container.scene, layoutProps, width, height);
|
|
13
|
+
if (!nextBackground) return;
|
|
14
|
+
container.addAt(nextBackground, 0);
|
|
15
|
+
container.__background = nextBackground;
|
|
16
|
+
destroyBackgroundImage(background);
|
|
17
|
+
DebugLogger.log("layout", "Background redrawn to:", { width, height });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function updateHitArea(container, width, height) {
|
|
22
|
+
if (container.input?.hitArea && "setSize" in container.input.hitArea) {
|
|
23
|
+
const hitArea = container.input.hitArea;
|
|
24
|
+
const oldWidth = hitArea.width;
|
|
25
|
+
const oldHeight = hitArea.height;
|
|
26
|
+
if (oldWidth !== width || oldHeight !== height) {
|
|
27
|
+
hitArea.setPosition(0, 0);
|
|
28
|
+
hitArea.setSize(width, height);
|
|
29
|
+
DebugLogger.log("layout", "Hit area resized:", {
|
|
30
|
+
from: { x: hitArea.x, y: hitArea.y, width: oldWidth, height: oldHeight },
|
|
31
|
+
to: { x: 0, y: 0, width, height }
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
updateBackground,
|
|
38
|
+
updateHitArea
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=background-applier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"background-applier.js","sources":["../../../src/layout/appliers/background-applier.ts"],"sourcesContent":["/**\n * Background applier - updates background and hit area\n */\nimport { DebugLogger } from '@number10/jsx-core'\nimport type * as Phaser from 'phaser'\nimport {\n createBackgroundImage,\n destroyBackgroundImage,\n getBackgroundImageCacheKey,\n} from '../../components/backgroundImage'\nimport type { GameObjectWithLayout } from '../types'\n\n/**\n * Update background graphics size if present\n * @param container - Phaser container\n * @param width - Background width\n * @param height - Background height\n */\nexport function updateBackground(\n container: Phaser.GameObjects.Container,\n width: number,\n height: number\n): void {\n const background = (container as GameObjectWithLayout).__background\n if (background) {\n const layoutProps = (container as GameObjectWithLayout).__layoutProps\n if (layoutProps) {\n const cacheKey = getBackgroundImageCacheKey(layoutProps, width, height)\n\n if (background.__backgroundCacheKey === cacheKey) {\n return\n }\n\n const nextBackground = createBackgroundImage(container.scene, layoutProps, width, height)\n\n if (!nextBackground) return\n\n container.addAt(nextBackground, 0)\n ;(container as GameObjectWithLayout).__background = nextBackground\n destroyBackgroundImage(background)\n\n DebugLogger.log('layout', 'Background redrawn to:', { width, height })\n }\n }\n}\n\n/**\n * Update interactive hit area if present\n * @param container - Phaser container\n * @param width - Hit area width\n * @param height - Hit area height\n */\nexport function updateHitArea(\n container: Phaser.GameObjects.Container,\n width: number,\n height: number\n): void {\n if (container.input?.hitArea && 'setSize' in container.input.hitArea) {\n const hitArea = container.input.hitArea as Phaser.Geom.Rectangle\n const oldWidth = hitArea.width\n const oldHeight = hitArea.height\n\n // Only update if dimensions actually changed\n if (oldWidth !== width || oldHeight !== height) {\n // Position hit area centered around origin (container's local 0,0)\n // This is needed because Phaser containers treat hit areas relative to their center\n hitArea.setPosition(0, 0)\n hitArea.setSize(width, height)\n\n DebugLogger.log('layout', 'Hit area resized:', {\n from: { x: hitArea.x, y: hitArea.y, width: oldWidth, height: oldHeight },\n to: { x: 0, y: 0, width, height },\n })\n }\n }\n}\n"],"names":[],"mappings":";;AAkBO,SAAS,iBACd,WACA,OACA,QACM;AACN,QAAM,aAAc,UAAmC;AACvD,MAAI,YAAY;AACd,UAAM,cAAe,UAAmC;AACxD,QAAI,aAAa;AACf,YAAM,WAAW,2BAA2B,aAAa,OAAO,MAAM;AAEtE,UAAI,WAAW,yBAAyB,UAAU;AAChD;AAAA,MACF;AAEA,YAAM,iBAAiB,sBAAsB,UAAU,OAAO,aAAa,OAAO,MAAM;AAExF,UAAI,CAAC,eAAgB;AAErB,gBAAU,MAAM,gBAAgB,CAAC;AAC/B,gBAAmC,eAAe;AACpD,6BAAuB,UAAU;AAEjC,kBAAY,IAAI,UAAU,0BAA0B,EAAE,OAAO,QAAQ;AAAA,IACvE;AAAA,EACF;AACF;AAQO,SAAS,cACd,WACA,OACA,QACM;AACN,MAAI,UAAU,OAAO,WAAW,aAAa,UAAU,MAAM,SAAS;AACpE,UAAM,UAAU,UAAU,MAAM;AAChC,UAAM,WAAW,QAAQ;AACzB,UAAM,YAAY,QAAQ;AAG1B,QAAI,aAAa,SAAS,cAAc,QAAQ;AAG9C,cAAQ,YAAY,GAAG,CAAC;AACxB,cAAQ,QAAQ,OAAO,MAAM;AAE7B,kBAAY,IAAI,UAAU,qBAAqB;AAAA,QAC7C,MAAM,EAAE,GAAG,QAAQ,GAAG,GAAG,QAAQ,GAAG,OAAO,UAAU,QAAQ,UAAA;AAAA,QAC7D,IAAI,EAAE,GAAG,GAAG,GAAG,GAAG,OAAO,OAAA;AAAA,MAAO,CACjC;AAAA,IACH;AAAA,EACF;AACF;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { calculateLayout, DeferredLayoutQueue, LayoutBatchQueue } from '@number10/jsx-core';
|
|
2
|
+
export { getChildSize, parseSize, resolveSize } from '@number10/jsx-core';
|
|
3
|
+
export type { LayoutSize } from '@number10/jsx-core';
|
|
4
|
+
export type { GameObjectWithLayout } from './types';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/layout/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,wBAAwB,CAAA;AAG/B,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAG3F,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACzE,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAGpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA"}
|