@flare-engine/react 0.2.1 → 0.3.1

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/index.d.ts CHANGED
@@ -1,97 +1,97 @@
1
- import * as React from 'react';
2
- import React__default from 'react';
3
- import { AssetManager, SkImageLike, AssetLoader } from '@flare-engine/assets';
4
- import { AudioManager } from '@flare-engine/audio';
5
- import { GameLoop } from '@flare-engine/core';
6
- import { World, Query } from '@flare-engine/ecs';
7
- import { InputManager, VirtualJoystickConfig, VirtualJoystickState, VirtualButtonState } from '@flare-engine/input';
8
- import { Camera2D, Renderer, SpriteBatch, FrameRendererCompiledPass, FrameRenderer, FrameRendererPostFxChain, FrameRendererPostFxRuntime, FrameRendererModule } from '@flare-engine/render';
9
- import { SceneManager } from '@flare-engine/scene';
10
- import { SkRuntimeEffect, SkImage, SkColor, SkImageFilter } from '@shopify/react-native-skia';
11
- import { ViewStyle } from 'react-native';
12
- import { Signal } from '@flare-engine/events';
13
-
1
+ import { AssetLoader, AssetManager, SkImageLike, SkiaAtlasModuleLike } from "@flare-engine/assets";
2
+ import { AudioManager } from "@flare-engine/audio";
3
+ import { GameLoop } from "@flare-engine/core";
4
+ import { Query, World } from "@flare-engine/ecs";
5
+ import { InputManager, VirtualButtonState, VirtualJoystickConfig, VirtualJoystickState } from "@flare-engine/input";
6
+ import { Camera2D, FrameRenderer, FrameRendererCompiledPass, FrameRendererModule, FrameRendererPostFxChain, FrameRendererPostFxRuntime, Renderer, SpriteBatch } from "@flare-engine/render";
7
+ import { SceneManager } from "@flare-engine/scene";
8
+ import { SkColor, SkImage, SkImageFilter, SkRuntimeEffect } from "@shopify/react-native-skia";
9
+ import React from "react";
10
+ import { ViewStyle } from "react-native";
11
+ import { Signal } from "@flare-engine/events";
12
+ //#region src/game-context.d.ts
14
13
  /** The value exposed via GameContext. */
15
14
  interface GameContextValue {
16
- /** ECS world. */
17
- world: World;
18
- /** Primary 2D camera. */
19
- camera: Camera2D;
20
- /** Input manager (pointer, touches). */
21
- input: InputManager;
22
- /** Audio manager. */
23
- audio: AudioManager;
24
- /** Asset manager. */
25
- assets: AssetManager;
26
- /** Scene manager. */
27
- scenes: SceneManager;
28
- /** Game loop. */
29
- loop: GameLoop;
30
- /** Frame renderer (owns the draw phase). */
31
- renderer: Renderer;
32
- /** Sprite batch — queue `draw()` calls from systems or custom logic. */
33
- batch: SpriteBatch;
15
+ /** ECS world. */
16
+ world: World;
17
+ /** Primary 2D camera. */
18
+ camera: Camera2D;
19
+ /** Input manager (pointer, touches). */
20
+ input: InputManager;
21
+ /** Audio manager. */
22
+ audio: AudioManager;
23
+ /** Asset manager. */
24
+ assets: AssetManager;
25
+ /** Scene manager. */
26
+ scenes: SceneManager;
27
+ /** Game loop. */
28
+ loop: GameLoop;
29
+ /** Frame renderer (owns the draw phase). */
30
+ renderer: Renderer;
31
+ /** Sprite batch — queue `draw()` calls from systems or custom logic. */
32
+ batch: SpriteBatch;
34
33
  }
35
34
  /**
36
35
  * React context that provides access to core game objects.
37
36
  * Null if accessed outside a <GameView>.
38
37
  */
39
- declare const GameContext: React.Context<GameContextValue | null>;
40
-
38
+ declare const GameContext: import("react").Context<GameContextValue | null>;
39
+ //#endregion
40
+ //#region src/skia-bridge.d.ts
41
41
  /** Structural canvas — minimal subset needed for offscreen rendering. */
42
42
  interface SkOffscreenCanvasLike {
43
- drawPicture(picture: unknown): void;
44
- drawImageRect(image: unknown, src: unknown, dst: unknown, paint: unknown): void;
45
- drawRect(rect: unknown, paint: unknown): void;
46
- clear(color: unknown): void;
43
+ drawPicture(picture: unknown): void;
44
+ drawImageRect(image: unknown, src: unknown, dst: unknown, paint: unknown): void;
45
+ drawRect(rect: unknown, paint: unknown): void;
46
+ clear(color: unknown): void;
47
47
  }
48
48
  /** Structural canvas surface — minimal subset needed for offscreen capture. */
49
49
  interface SkSurfaceLike {
50
- getCanvas(): SkOffscreenCanvasLike;
51
- makeImageSnapshot(): SkImageLike;
52
- /** Force queued draws to execute. Required for GPU-backed surfaces before
53
- * makeImageSnapshot is called, otherwise the snapshot may capture
54
- * uninitialized texture content. See Skia's SkSurface.flush docs. */
55
- flush(): void;
50
+ getCanvas(): SkOffscreenCanvasLike;
51
+ makeImageSnapshot(): SkImageLike;
52
+ /** Force queued draws to execute. Required for GPU-backed surfaces before
53
+ * makeImageSnapshot is called, otherwise the snapshot may capture
54
+ * uninitialized texture content. See Skia's SkSurface.flush docs. */
55
+ flush(): void;
56
56
  }
57
57
  /**
58
58
  * A single post-processing pass descriptor built by `buildPostFxPasses`.
59
59
  * GameView maps each descriptor to a `<RuntimeShader>` child of `<Image>`.
60
60
  */
61
61
  interface PostFxPassDescriptor {
62
- /** Stable id, used as React key. */
63
- readonly id: string;
64
- /** The compiled SkRuntimeEffect passed as `<RuntimeShader source={…}/>`. */
65
- readonly source: SkRuntimeEffect;
66
- /**
67
- * Uniform map keyed by SkSL uniform name. Vector uniforms are `number[]`
68
- * whose length equals `columns * rows`; scalar uniforms are `number`.
69
- * Built by zipping `shader.getUniformName(i)` → sliced Float32Array values.
70
- */
71
- readonly uniforms: Record<string, number | readonly number[]>;
72
- /**
73
- * Extra child shader slots beyond the implicit scene sampler. Empty for every
74
- * built-in PT effect; only color-grading-lut would populate it. Each entry
75
- * is an SkImage that GameView wraps in `<ImageShader>`.
76
- */
77
- readonly children: readonly SkImage[];
62
+ /** Stable id, used as React key. */
63
+ readonly id: string;
64
+ /** The compiled SkRuntimeEffect passed as `<RuntimeShader source={…}/>`. */
65
+ readonly source: SkRuntimeEffect;
66
+ /**
67
+ * Uniform map keyed by SkSL uniform name. Vector uniforms are `number[]`
68
+ * whose length equals `columns * rows`; scalar uniforms are `number`.
69
+ * Built by zipping `shader.getUniformName(i)` → sliced Float32Array values.
70
+ */
71
+ readonly uniforms: Record<string, number | readonly number[]>;
72
+ /**
73
+ * Extra child shader slots beyond the implicit scene sampler. Empty for every
74
+ * built-in PT effect; only color-grading-lut would populate it. Each entry
75
+ * is an SkImage that GameView wraps in `<ImageShader>`.
76
+ */
77
+ readonly children: readonly SkImage[];
78
78
  }
79
79
  /** A single axis-aligned rectangle shape to draw into an offscreen surface. */
80
80
  interface ShapeRect {
81
- readonly x: number;
82
- readonly y: number;
83
- readonly w: number;
84
- readonly h: number;
85
- /** ARGB packed integer: 0xAARRGGBB */
86
- readonly color: number;
81
+ readonly x: number;
82
+ readonly y: number;
83
+ readonly w: number;
84
+ readonly h: number;
85
+ /** ARGB packed integer: 0xAARRGGBB */
86
+ readonly color: number;
87
87
  }
88
88
  /** Options for `renderShapesToImage`. */
89
89
  interface RenderShapesOpts {
90
- readonly width: number;
91
- readonly height: number;
92
- /** ARGB packed integer: 0xAARRGGBB */
93
- readonly clearColor: number;
94
- readonly shapes: readonly ShapeRect[];
90
+ readonly width: number;
91
+ readonly height: number;
92
+ /** ARGB packed integer: 0xAARRGGBB */
93
+ readonly clearColor: number;
94
+ readonly shapes: readonly ShapeRect[];
95
95
  }
96
96
  /**
97
97
  * Narrow view of the Skia module — only the factories the bridge needs.
@@ -102,17 +102,17 @@ interface RenderShapesOpts {
102
102
  * native Surface and ImageFilter that are not needed in render-web.
103
103
  */
104
104
  type SkiaModuleLike = FrameRendererModule & {
105
- RuntimeEffect?: {
106
- Make(sksl: string): SkRuntimeEffect | null;
107
- };
108
- Surface?: {
109
- Make(width: number, height: number): SkSurfaceLike | null;
110
- MakeOffscreen?(width: number, height: number): SkSurfaceLike | null;
111
- };
112
- /** Optional — present on device builds; absent in CPU/test mocks (drop-shadow falls back to the default paint). */
113
- ImageFilter?: {
114
- MakeDropShadow(dx: number, dy: number, sigmaX: number, sigmaY: number, color: SkColor, input: SkImageFilter | null): SkImageFilter;
115
- };
105
+ RuntimeEffect?: {
106
+ Make(sksl: string): SkRuntimeEffect | null;
107
+ };
108
+ Surface?: {
109
+ Make(width: number, height: number): SkSurfaceLike | null;
110
+ MakeOffscreen?(width: number, height: number): SkSurfaceLike | null;
111
+ };
112
+ /** Optional — present on device builds; absent in CPU/test mocks (drop-shadow falls back to the default paint). */
113
+ ImageFilter?: {
114
+ MakeDropShadow(dx: number, dy: number, sigmaX: number, sigmaY: number, color: SkColor, input: SkImageFilter | null): SkImageFilter;
115
+ };
116
116
  };
117
117
  /**
118
118
  * A single compiled postfx pass descriptor produced by the runtime.
@@ -150,16 +150,18 @@ declare function createSkiaFrameRenderer(Skia: SkiaModuleLike): SkiaFrameRendere
150
150
  * returned image themselves.
151
151
  */
152
152
  declare function renderShapesToImage(skia: SkiaModuleLike, opts: RenderShapesOpts): SkImageLike | null;
153
-
153
+ //#endregion
154
+ //#region src/safe-area.d.ts
154
155
  interface SafeArea {
155
- top: number;
156
- right: number;
157
- bottom: number;
158
- left: number;
156
+ top: number;
157
+ right: number;
158
+ bottom: number;
159
+ left: number;
159
160
  }
160
- declare const SafeAreaContext: React.Context<SafeArea | null>;
161
+ declare const SafeAreaContext: import("react").Context<SafeArea | null>;
161
162
  declare function useSafeArea(): SafeArea;
162
-
163
+ //#endregion
164
+ //#region src/game-view.d.ts
163
165
  /** Render hook invoked during the frame — receives the game context and
164
166
  * the active Skia canvas for direct draw calls. Hooks run between
165
167
  * `renderer.applyCamera()` and `renderer.end()`, so the camera transform
@@ -174,52 +176,52 @@ type RenderHook = (ctx: GameContextValue, canvas: unknown) => void;
174
176
  type PostFxRenderHook = (ctx: GameContextValue, canvas: unknown, bridge: SkiaFrameRenderer | null) => void;
175
177
  /** Configuration passed to <GameView>. */
176
178
  interface GameConfig {
177
- /** Fixed timestep in seconds (default 1/60). */
178
- fixedDt?: number;
179
- /** Maximum dt cap in seconds (default 0.25). */
180
- maxDt?: number;
181
- /** Background clear color as 32-bit ARGB int (default 0xFF000000). */
182
- clearColor?: number;
183
- /** Asset loader function — injected into AssetManager at construction. */
184
- assetLoader?: AssetLoader;
185
- /** Called after camera transform and before the sprite render system.
186
- * Intended for tilemap / background layer rendering. */
187
- onRenderBackground?: RenderHook;
188
- /** Called after the sprite batch has been flushed, before `renderer.end()`.
189
- * Receives the bridge as 3rd arg so the hook can call
190
- * `bridge.setPostFxBinding(runtime, chain)` to register the postfx runtime
191
- * and chain for the current frame. */
192
- onRenderPostFx?: PostFxRenderHook;
193
- /**
194
- * Promote the underlying Skia surface from a TextureView (default) to a
195
- * SurfaceView on Android. With `opaque: true`, SurfaceView paints in a
196
- * separate compositing layer below the regular RN view tree, which lets
197
- * full-screen RN overlays (HUDs, menus) render on top without needing
198
- * elevation/zIndex tricks.
199
- *
200
- * Without this, RN-Skia's TextureView can clip overlapping full-screen
201
- * RN siblings on certain Android devices/Fabric configurations.
202
- *
203
- * Implies the canvas content is opaque — the clearColor's alpha must be
204
- * fully opaque (0xFF). Defaults to `false` to preserve the current
205
- * iOS-equivalent behavior.
206
- */
207
- opaque?: boolean;
179
+ /** Fixed timestep in seconds (default 1/60). */
180
+ fixedDt?: number;
181
+ /** Maximum dt cap in seconds (default 0.25). */
182
+ maxDt?: number;
183
+ /** Background clear color as 32-bit ARGB int (default 0xFF000000). */
184
+ clearColor?: number;
185
+ /** Asset loader function — injected into AssetManager at construction. */
186
+ assetLoader?: AssetLoader;
187
+ /** Called after camera transform and before the sprite render system.
188
+ * Intended for tilemap / background layer rendering. */
189
+ onRenderBackground?: RenderHook;
190
+ /** Called after the sprite batch has been flushed, before `renderer.end()`.
191
+ * Receives the bridge as 3rd arg so the hook can call
192
+ * `bridge.setPostFxBinding(runtime, chain)` to register the postfx runtime
193
+ * and chain for the current frame. */
194
+ onRenderPostFx?: PostFxRenderHook;
195
+ /**
196
+ * Promote the underlying Skia surface from a TextureView (default) to a
197
+ * SurfaceView on Android. With `opaque: true`, SurfaceView paints in a
198
+ * separate compositing layer below the regular RN view tree, which lets
199
+ * full-screen RN overlays (HUDs, menus) render on top without needing
200
+ * elevation/zIndex tricks.
201
+ *
202
+ * Without this, RN-Skia's TextureView can clip overlapping full-screen
203
+ * RN siblings on certain Android devices/Fabric configurations.
204
+ *
205
+ * Implies the canvas content is opaque — the clearColor's alpha must be
206
+ * fully opaque (0xFF). Defaults to `false` to preserve the current
207
+ * iOS-equivalent behavior.
208
+ */
209
+ opaque?: boolean;
208
210
  }
209
211
  /** Props for the <GameView> component. */
210
212
  interface GameViewProps {
211
- /** Game configuration. */
212
- config?: GameConfig;
213
- /** Called once the game context is ready (loop not yet started). */
214
- onReady?: (ctx: GameContextValue) => void;
215
- /** Style applied to the outer View container. */
216
- style?: ViewStyle;
217
- /** Optional overlay children (e.g. VirtualJoystick, VirtualButton). */
218
- children?: React__default.ReactNode;
219
- /** Explicit safe-area insets. If omitted, resolved from react-native-safe-area-context
220
- * via `useSafeAreaInsets()` (requires a `<SafeAreaProvider>` ancestor; falls back to
221
- * zero insets when no provider is mounted). */
222
- safeArea?: SafeArea;
213
+ /** Game configuration. */
214
+ config?: GameConfig;
215
+ /** Called once the game context is ready (loop not yet started). */
216
+ onReady?: (ctx: GameContextValue) => void;
217
+ /** Style applied to the outer View container. */
218
+ style?: ViewStyle;
219
+ /** Optional overlay children (e.g. VirtualJoystick, VirtualButton). */
220
+ children?: React.ReactNode;
221
+ /** Explicit safe-area insets. If omitted, resolved from react-native-safe-area-context
222
+ * via `useSafeAreaInsets()` (requires a `<SafeAreaProvider>` ancestor; falls back to
223
+ * zero insets when no provider is mounted). */
224
+ safeArea?: SafeArea;
223
225
  }
224
226
  /**
225
227
  * GameView — root component that sets up the Skia canvas, game loop,
@@ -228,8 +230,9 @@ interface GameViewProps {
228
230
  * Overlay controls (VirtualJoystick, VirtualButton) should be placed
229
231
  * as children; they render on top of the Skia canvas.
230
232
  */
231
- declare function GameView({ config, onReady, style, children, safeArea, }: GameViewProps): React__default.ReactElement;
232
-
233
+ declare function GameView({ config, onReady, style, children, safeArea }: GameViewProps): React.ReactElement;
234
+ //#endregion
235
+ //#region src/hooks.d.ts
233
236
  /**
234
237
  * useGame — returns the GameContextValue from the nearest <GameView>.
235
238
  * Throws if called outside a <GameView>.
@@ -250,71 +253,84 @@ declare function useEntity(query: Query): readonly number[];
250
253
  * @param callback Function called each frame with dt in seconds.
251
254
  */
252
255
  declare function useGameLoop(callback: (dt: number) => void): void;
253
-
254
- /** Props for the <VirtualJoystick> component. */
255
- interface VirtualJoystickProps {
256
- /** Joystick configuration (dead zone, max radius). */
257
- config?: VirtualJoystickConfig;
258
- /** Called on each state change. */
259
- onStateChange?: (state: VirtualJoystickState) => void;
260
- /** Style applied to the outer container. */
261
- style?: ViewStyle;
262
- /** Custom node rendered in place of the default base circle View. */
263
- base?: React__default.ReactNode;
264
- /** Custom node rendered in place of the default knob View. */
265
- thumb?: React__default.ReactNode;
256
+ //#endregion
257
+ //#region src/loading-screen.d.ts
258
+ /** Props for the <LoadingScreen> component. */
259
+ interface LoadingScreenProps {
260
+ /** Progress in [0, 1]. Values outside this range are clamped. */
261
+ progress: number;
262
+ /** Style applied to the outer container (covers parent by default). */
263
+ style?: ViewStyle;
264
+ /** Filled portion color. */
265
+ barColor?: string;
266
+ /** Track color. */
267
+ trackColor?: string;
268
+ /** Background color behind the track. */
269
+ backgroundColor?: string;
266
270
  }
267
271
  /**
268
- * VirtualJoystick — an on-screen joystick overlay component.
272
+ * LoadingScreen — full-screen asset-load overlay.
269
273
  *
270
- * Renders a base circle and a knob that follows the user's touch.
271
- * Claims the React Native touch responder so children of a parent that
272
- * also claims the responder (e.g. <GameView>) still receive move/end events.
274
+ * Renders before `<GameView>` mounts its Skia canvas (or alongside it
275
+ * while `AssetManager.load()` resolves). Pure RN Views so it works
276
+ * without a live Skia context. Consumers drive `progress` from the
277
+ * AssetManager progress callback.
278
+ */
279
+ declare function LoadingScreen({ progress, style, barColor, trackColor, backgroundColor }: LoadingScreenProps): React.ReactElement;
280
+ //#endregion
281
+ //#region src/overlay-hooks.d.ts
282
+ declare function useOverlayFade(visible: boolean, durationMs?: number): number;
283
+ declare function useCountUp(target: number, durationMs?: number): number;
284
+ declare function useSignalState<T>(signal: Signal<T>, initial: T): T;
285
+ //#endregion
286
+ //#region src/skia-atlas.d.ts
287
+ /**
288
+ * The RN-Skia module adapted to the engine's structural atlas interface.
289
+ * Centralises the one boundary assertion so template code stays cast-free.
273
290
  */
274
- declare function VirtualJoystick({ config, onStateChange, style, base, thumb, }: VirtualJoystickProps): React__default.ReactElement;
275
-
291
+ declare const skiaAtlasModule: SkiaAtlasModuleLike;
292
+ //#endregion
293
+ //#region src/virtual-button.d.ts
276
294
  /** Props for the <VirtualButton> component. */
277
295
  interface VirtualButtonProps {
278
- /** Called on each state change. */
279
- onStateChange?: (state: VirtualButtonState) => void;
280
- /** Style applied to the button. */
281
- style?: ViewStyle;
282
- /** Button label / overlay content. */
283
- children?: React__default.ReactNode;
296
+ /** Called on each state change. */
297
+ onStateChange?: (state: VirtualButtonState) => void;
298
+ /** Style applied to the button. */
299
+ style?: ViewStyle;
300
+ /** Button label / overlay content. */
301
+ children?: React.ReactNode;
284
302
  }
285
303
  /**
286
304
  * VirtualButton — an on-screen button overlay component.
287
305
  *
288
- * Claims the React Native touch responder so press/release fire reliably
289
- * even when an ancestor (e.g. <GameView>) also claims the responder.
306
+ * Uses raw `onTouchStart`/`onTouchEnd` so press and release fire regardless
307
+ * of which ancestor holds the RN responder — enabling simultaneous use with
308
+ * `<VirtualJoystick>` without responder conflicts.
290
309
  */
291
- declare function VirtualButton({ onStateChange, style, children, }: VirtualButtonProps): React__default.ReactElement;
292
-
293
- /** Props for the <LoadingScreen> component. */
294
- interface LoadingScreenProps {
295
- /** Progress in [0, 1]. Values outside this range are clamped. */
296
- progress: number;
297
- /** Style applied to the outer container (covers parent by default). */
298
- style?: ViewStyle;
299
- /** Filled portion color. */
300
- barColor?: string;
301
- /** Track color. */
302
- trackColor?: string;
303
- /** Background color behind the track. */
304
- backgroundColor?: string;
310
+ declare function VirtualButton({ onStateChange, style, children }: VirtualButtonProps): React.ReactElement;
311
+ //#endregion
312
+ //#region src/virtual-joystick.d.ts
313
+ /** Props for the <VirtualJoystick> component. */
314
+ interface VirtualJoystickProps {
315
+ /** Joystick configuration (dead zone, max radius). */
316
+ config?: VirtualJoystickConfig;
317
+ /** Called on each state change. */
318
+ onStateChange?: (state: VirtualJoystickState) => void;
319
+ /** Style applied to the outer container. */
320
+ style?: ViewStyle;
321
+ /** Custom node rendered in place of the default base circle View. */
322
+ base?: React.ReactNode;
323
+ /** Custom node rendered in place of the default knob View. */
324
+ thumb?: React.ReactNode;
305
325
  }
306
326
  /**
307
- * LoadingScreen — full-screen asset-load overlay.
327
+ * VirtualJoystick — an on-screen joystick overlay component.
308
328
  *
309
- * Renders before `<GameView>` mounts its Skia canvas (or alongside it
310
- * while `AssetManager.load()` resolves). Pure RN Views so it works
311
- * without a live Skia context. Consumers drive `progress` from the
312
- * AssetManager progress callback.
329
+ * Renders a base circle and a knob that follows the user's touch.
330
+ * Claims the React Native touch responder so children of a parent that
331
+ * also claims the responder (e.g. <GameView>) still receive move/end events.
313
332
  */
314
- declare function LoadingScreen({ progress, style, barColor, trackColor, backgroundColor, }: LoadingScreenProps): React__default.ReactElement;
315
-
316
- declare function useOverlayFade(visible: boolean, durationMs?: number): number;
317
- declare function useCountUp(target: number, durationMs?: number): number;
318
- declare function useSignalState<T>(signal: Signal<T>, initial: T): T;
319
-
320
- export { type CompiledPassLike, type GameConfig, GameContext, type GameContextValue, GameView, type GameViewProps, LoadingScreen, type LoadingScreenProps, type PostFxChainLike, type PostFxPassDescriptor, type PostFxRenderHook, type PostFxRuntimeLike, type RenderHook, type RenderShapesOpts, type SafeArea, SafeAreaContext, type ShapeRect, type SkOffscreenCanvasLike, type SkiaFrameRenderer, type SkiaModuleLike, VirtualButton, type VirtualButtonProps, VirtualJoystick, type VirtualJoystickProps, createSkiaFrameRenderer, renderShapesToImage, useCountUp, useEntity, useGame, useGameLoop, useOverlayFade, useSafeArea, useSignalState };
333
+ declare function VirtualJoystick({ config, onStateChange, style, base, thumb }: VirtualJoystickProps): React.ReactElement;
334
+ //#endregion
335
+ export { type CompiledPassLike, type GameConfig, GameContext, type GameContextValue, GameView, type GameViewProps, LoadingScreen, type LoadingScreenProps, type PostFxChainLike, type PostFxPassDescriptor, type PostFxRenderHook, type PostFxRuntimeLike, type RenderHook, type RenderShapesOpts, type SafeArea, SafeAreaContext, type ShapeRect, type SkOffscreenCanvasLike, type SkiaFrameRenderer, type SkiaModuleLike, VirtualButton, type VirtualButtonProps, VirtualJoystick, type VirtualJoystickProps, createSkiaFrameRenderer, renderShapesToImage, skiaAtlasModule, useCountUp, useEntity, useGame, useGameLoop, useOverlayFade, useSafeArea, useSignalState };
336
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/game-context.ts","../src/skia-bridge.ts","../src/safe-area.ts","../src/game-view.tsx","../src/hooks.ts","../src/loading-screen.tsx","../src/overlay-hooks.ts","../src/skia-atlas.ts","../src/virtual-button.tsx","../src/virtual-joystick.tsx"],"mappings":";;;;;;;;;;;;;UAUiB;;EAEf,OAAO;;EAEP,QAAQ;;EAER,OAAO;;EAEP,OAAO;;EAEP,QAAQ;;EAER,QAAQ;;EAER,MAAM;;EAEN,UAAU;;EAEV,OAAO;;;;;;cAOI,6BAAW,QAAA;;;;UCrBP;EACf,YAAY;EACZ,cAAc,gBAAgB,cAAc,cAAc;EAC1D,SAAS,eAAe;EACxB,MAAM;;;UAIS;EACf,aAAa;EACb,qBAAqB;;;;EAIrB;;;;;;UAOe;;WAEN;;WAEA,QAAQ;;;;;;WAMR,UAAU;;;;;;WAMV,mBAAmB;;;UAuBb;WACN;WACA;WACA;WACA;;WAEA;;;UAIM;WACN;WACA;;WAEA;WACA,iBAAiB;;;;;;;;;;KAWhB,iBAAiB;EAC3B;IAAkB,KAAK,eAAe;;EACtC;IACE,KAAK,eAAe,iBAAiB;IACrC,eAAe,eAAe,iBAAiB;;;EAGjD;IACE,eACE,YACA,YACA,gBACA,gBACA,OAAO,SACP,OAAO,uBACN;;;;;;;KAQK,mBAAmB;;;;;KAMnB,oBAAoB;;KAGpB,kBAAkB;;;;;;KAOlB,oBAAoB;;;;;;;;;;;iBAYhB,wBAAwB,MAAM,iBAAiB;;;;;;;iBAc/C,oBACd,MAAM,gBACN,MAAM,mBACL;;;UCtKc;EACf;EACA;EACA;EACA;;cAGW,iCAAe,QAAA;iBAEZ,eAAe;;;;;;;KCoBnB,cAAc,KAAK,kBAAkB;;;;;;;KAQrC,oBACV,KAAK,kBACL,iBACA,QAFK;;UAMU;;EAEf;;EAEA;;EAEA;;EAEA,cAAc;;;EAGd,qBAAqB;;;;;EAKrB,iBAAiB;;;;;;;;;;;;;;;EAejB;;;UAIe;;EAEf,SAAS;;EAET,WAAW,KAAK;;EAEhB,QAAQ;;EAER,WAAW,MAAM;;;;EAIjB,WAAW;;;;;;;;;iBAUG,WACd,QACA,SACA,OACA,UACA,YACC,gBAAgB,MAAM;;;;;;;iBCrGT,WAAW;;;;;;;iBAcX,UAAU,OAAO;;;;;;;;iBA4BjB,YAAY,WAAW;;;;UC7CtB;;EAEf;;EAEA,QAAQ;;EAER;;EAEA;;EAEA;;;;;;;;;;iBAWc,gBACd,UACA,OACA,UACA,YACA,mBACC,qBAAqB,MAAM;;;iBC5Bd,eAAe,kBAAkB;iBAoCjC,WAAW,gBAAgB;iBAmC3B,eAAe,GAAG,QAAQ,OAAO,IAAI,SAAS,IAAI;;;;;;;cCpErD,iBAAiB;;;;UCMb;;EAEf,iBAAiB,OAAO;;EAExB,QAAQ;;EAER,WAAW,MAAM;;;;;;;;;iBAUH,gBACd,eACA,OACA,YACC,qBAAqB,MAAM;;;;UCpBb;;EAEf,SAAS;;EAET,iBAAiB,OAAO;;EAExB,QAAQ;;EAER,OAAO,MAAM;;EAEb,QAAQ,MAAM;;;;;;;;;iBAUA,kBACd,QACA,eACA,OACA,MACA,SACC,uBAAuB,MAAM"}