@holtjs/stage 0.3.0 → 0.4.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/CHANGELOG.md +27 -0
- package/dist/{game-BHDcwovp.js → game-Cu1G9xgW.js} +616 -1429
- package/dist/{game-NqFMKsuL.d.ts → game-GdPaQUqH.d.ts} +605 -10
- package/dist/headless.d.ts +10 -3
- package/dist/headless.js +45 -16
- package/dist/index.d.ts +11 -4
- package/dist/index.js +7 -3
- package/dist/joystick.d.ts +1 -1
- package/dist/joystick.js +1 -1
- package/dist/kernel.d.ts +2 -0
- package/dist/kernel.js +639 -0
- package/dist/renderer-webgpu-BorAD6Kk.js +2619 -0
- package/dist/renderer-webgpu.d.ts +2 -0
- package/dist/renderer-webgpu.js +1 -0
- package/dist/trace.d.ts +2 -143
- package/dist/trace.js +3 -2
- package/dist/{tween-D3Ztppuz.d.ts → tween-BiF1FUvc.d.ts} +2 -0
- package/dist/tween.d.ts +1 -1
- package/dist/tween.js +4 -0
- package/dist/{types-ChGhuDNX.js → types-DRFB0Klc.js} +5 -2
- package/package.json +11 -2
- package/skills/stage/SKILL.md +11 -21
- package/skills/stage/references/subpaths.md +17 -9
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { c as TweenManager, u as TweenStats } from "./tween-
|
|
1
|
+
import { c as TweenManager, u as TweenStats } from "./tween-BiF1FUvc.js";
|
|
2
2
|
declare const AUTO = 0;
|
|
3
3
|
declare const CANVAS = 1;
|
|
4
4
|
declare const WEBGL = 2;
|
|
5
|
+
declare const WEBGPU = 3;
|
|
5
6
|
declare const BlendModes: {
|
|
6
7
|
readonly NORMAL: 0;
|
|
7
8
|
readonly ADD: 1;
|
|
9
|
+
readonly MULTIPLY: 2;
|
|
10
|
+
readonly SCREEN: 3;
|
|
8
11
|
};
|
|
9
12
|
type BlendMode = (typeof BlendModes)[keyof typeof BlendModes];
|
|
10
13
|
declare const TintModes: {
|
|
@@ -185,6 +188,30 @@ declare class TextureManager {
|
|
|
185
188
|
invalidateAllGl(): void;
|
|
186
189
|
destroy(): void;
|
|
187
190
|
}
|
|
191
|
+
interface CameraFollowOptions {
|
|
192
|
+
/** Horizontal smoothing factor in `(0, 1]` (`1` = instant lock; default `1`). */
|
|
193
|
+
lerpX?: number;
|
|
194
|
+
/** Vertical smoothing factor in `(0, 1]` (`1` = instant lock; default `1`). */
|
|
195
|
+
lerpY?: number;
|
|
196
|
+
/** World-space horizontal offset added to `target.x` (default `0`). */
|
|
197
|
+
offsetX?: number;
|
|
198
|
+
/** World-space vertical offset added to `target.y` (default `0`). */
|
|
199
|
+
offsetY?: number;
|
|
200
|
+
/** Optional centered deadzone width in world units (camera only scrolls when target exits deadzone). */
|
|
201
|
+
deadzoneWidth?: number;
|
|
202
|
+
/** Optional centered deadzone height in world units. */
|
|
203
|
+
deadzoneHeight?: number;
|
|
204
|
+
}
|
|
205
|
+
interface HiDpiScaleLike {
|
|
206
|
+
zoom: number;
|
|
207
|
+
resize(width: number, height: number): unknown;
|
|
208
|
+
canvas?: {
|
|
209
|
+
style?: {
|
|
210
|
+
width?: string;
|
|
211
|
+
height?: string;
|
|
212
|
+
};
|
|
213
|
+
} | null;
|
|
214
|
+
}
|
|
188
215
|
declare class Camera {
|
|
189
216
|
x: number;
|
|
190
217
|
y: number;
|
|
@@ -206,6 +233,13 @@ declare class Camera {
|
|
|
206
233
|
transparent: boolean;
|
|
207
234
|
readonly worldView: WorldView2D;
|
|
208
235
|
readonly matrixCombined: Matrix2D;
|
|
236
|
+
private followTarget;
|
|
237
|
+
private followLerpX;
|
|
238
|
+
private followLerpY;
|
|
239
|
+
private followOffsetX;
|
|
240
|
+
private followOffsetY;
|
|
241
|
+
private deadzoneW;
|
|
242
|
+
private deadzoneH;
|
|
209
243
|
constructor(width: number, height: number, transparent?: boolean, backgroundColor?: string | number);
|
|
210
244
|
get displayWidth(): number;
|
|
211
245
|
get displayHeight(): number;
|
|
@@ -221,10 +255,40 @@ declare class Camera {
|
|
|
221
255
|
clampX(sx: number): number;
|
|
222
256
|
clampY(sy: number): number;
|
|
223
257
|
centerOn(x: number, y: number): this;
|
|
258
|
+
/**
|
|
259
|
+
* One-line HiDPI camera + backing-buffer configurator: maps logical `(0, 0)..(viewportW, viewportH)`
|
|
260
|
+
* 1:1 onto crisp physical `viewportW * dpr` pixels without copy-pasting origin/scroll math.
|
|
261
|
+
* Returns the clamped `dpr` applied.
|
|
262
|
+
*/
|
|
263
|
+
configureHiDpi(scale: HiDpiScaleLike, viewportWidth: number, viewportHeight: number, dpr?: number, maxDpr?: number): number;
|
|
264
|
+
/** Convert canvas/backing-buffer coordinates `(screenX, screenY)` into world coordinates. */
|
|
265
|
+
screenToWorld(screenX: number, screenY: number, out?: {
|
|
266
|
+
x: number;
|
|
267
|
+
y: number;
|
|
268
|
+
}): {
|
|
269
|
+
x: number;
|
|
270
|
+
y: number;
|
|
271
|
+
};
|
|
272
|
+
/** Convert world coordinates `(worldX, worldY)` into canvas/backing-buffer coordinates. */
|
|
273
|
+
worldToScreen(worldX: number, worldY: number, out?: {
|
|
274
|
+
x: number;
|
|
275
|
+
y: number;
|
|
276
|
+
}): {
|
|
277
|
+
x: number;
|
|
278
|
+
y: number;
|
|
279
|
+
};
|
|
280
|
+
/** Lock or smoothly follow any `{ x, y }` actor/point (frame-rate independent lerp + optional deadzone). */
|
|
281
|
+
startFollow(target: {
|
|
282
|
+
x: number;
|
|
283
|
+
y: number;
|
|
284
|
+
}, options?: CameraFollowOptions): this;
|
|
285
|
+
stopFollow(): this;
|
|
286
|
+
/** Internal per-step follow update invoked automatically by `Game.step()` before rendering. */
|
|
287
|
+
stepFollow(deltaMs: number): void;
|
|
224
288
|
/** Recompute `worldView` and world->canvas `matrixCombined`. */
|
|
225
289
|
syncMetrics(): void;
|
|
226
290
|
}
|
|
227
|
-
type DisplayObjectType = 'Image' | 'NineSlice' | 'TileSprite' | 'Rectangle' | 'Panel' | 'MsdfIcon' | 'Text' | 'Graphics' | 'Blitter' | 'Container' | 'CustomPass';
|
|
291
|
+
type DisplayObjectType = 'Image' | 'NineSlice' | 'TileSprite' | 'Rectangle' | 'Panel' | 'MsdfIcon' | 'Text' | 'Graphics' | 'Blitter' | 'InstancedBatch' | 'Container' | 'CustomPass';
|
|
228
292
|
type SceneHostLike = Scene;
|
|
229
293
|
declare class DisplayList {
|
|
230
294
|
readonly list: DisplayObject[];
|
|
@@ -681,10 +745,55 @@ declare class Container extends DisplayObject {
|
|
|
681
745
|
enableFilters(): this;
|
|
682
746
|
destroy(destroyChildren?: boolean): void;
|
|
683
747
|
}
|
|
684
|
-
type CustomPassCallback = (node: CustomPassObject, renderer:
|
|
748
|
+
type CustomPassCallback = (node: CustomPassObject, renderer: StageRenderer, camera: Camera) => void;
|
|
749
|
+
interface CustomPassOptions {
|
|
750
|
+
/** Automatically restore WebGL program/VAO/texture/blend caches after `onRender` (default `true`). */
|
|
751
|
+
restoreState?: boolean;
|
|
752
|
+
}
|
|
685
753
|
declare class CustomPassObject extends DisplayObject {
|
|
686
754
|
readonly onRender: CustomPassCallback;
|
|
687
|
-
|
|
755
|
+
restoreState: boolean;
|
|
756
|
+
constructor(scene: SceneHostLike, onRender: CustomPassCallback, options?: CustomPassOptions);
|
|
757
|
+
}
|
|
758
|
+
interface InstancedColumns {
|
|
759
|
+
/** Active instance count to draw (`0 .. capacity`). */
|
|
760
|
+
count: number;
|
|
761
|
+
/** World X positions (`Float32Array`). */
|
|
762
|
+
x: Float32Array;
|
|
763
|
+
/** World Y positions (`Float32Array`). */
|
|
764
|
+
y: Float32Array;
|
|
765
|
+
/** Optional uniform or X scale per instance (`Float32Array`; defaults to `1`). */
|
|
766
|
+
scaleX?: Float32Array | null;
|
|
767
|
+
/** Optional Y scale per instance (`Float32Array`; defaults to `scaleX` or `1`). */
|
|
768
|
+
scaleY?: Float32Array | null;
|
|
769
|
+
/** Optional rotation in radians per instance (`Float32Array`; defaults to `0`). */
|
|
770
|
+
rotation?: Float32Array | null;
|
|
771
|
+
/** Optional alpha `[0..1]` per instance (`Float32Array`; defaults to `1`). */
|
|
772
|
+
alpha?: Float32Array | null;
|
|
773
|
+
/** Optional `0xRRGGBB` multiply tint per instance (`Uint32Array`; defaults to `0xffffff`). */
|
|
774
|
+
tint?: Uint32Array | null;
|
|
775
|
+
/** Optional sprite-sheet frame index per instance (`Int32Array | Uint16Array`; defaults to `defaultFrame`). */
|
|
776
|
+
frameIndex?: Int32Array | Uint16Array | null;
|
|
777
|
+
/** Optional draw-order indirection indices (e.g. from `sortSlotsByDepth` / `partitionDepthBands`). */
|
|
778
|
+
order?: Int32Array | null;
|
|
779
|
+
}
|
|
780
|
+
/**
|
|
781
|
+
* High-throughput SoA instanced sprite/quad batch (`scene.add.instancedBatch(key, maxCount)`).
|
|
782
|
+
* Consumes `SoaWorld` `Float32Array` columns directly: renders via hardware `drawElementsInstanced`
|
|
783
|
+
* in WebGL2, instanced storage/vertex buffer in WebGPU, and zero-alloc loop in Canvas2D / Headless Node.
|
|
784
|
+
*/
|
|
785
|
+
declare class InstancedBatchObject extends DisplayObject {
|
|
786
|
+
texture: Texture;
|
|
787
|
+
defaultFrame: Frame;
|
|
788
|
+
maxCount: number;
|
|
789
|
+
columns: InstancedColumns | null;
|
|
790
|
+
/** Renderer-owned GPU instance buffer cache (opaque to user code). */
|
|
791
|
+
_gpuCache: any;
|
|
792
|
+
constructor(scene: SceneHostLike, key: string, maxCount?: number, frame?: string | number);
|
|
793
|
+
setTexture(key: string, frame?: string | number): this;
|
|
794
|
+
/** Bind or update the SoA column views read on each render pass (zero copying on caller side). */
|
|
795
|
+
setColumns(columns: InstancedColumns): this;
|
|
796
|
+
destroy(fromScene?: boolean): void;
|
|
688
797
|
}
|
|
689
798
|
interface RendererGlOptions {
|
|
690
799
|
transparent?: boolean;
|
|
@@ -712,6 +821,13 @@ interface Stage2DCustomImageHandler {
|
|
|
712
821
|
renderStage2DImage(renderer: RendererGl, img: ImageObject, camera: Camera, mat: Matrix2D, alpha: number): void;
|
|
713
822
|
flushStage2D?(renderer: RendererGl): void;
|
|
714
823
|
}
|
|
824
|
+
interface StageRenderTarget {
|
|
825
|
+
readonly key: string;
|
|
826
|
+
readonly width: number;
|
|
827
|
+
readonly height: number;
|
|
828
|
+
readonly texture: Texture;
|
|
829
|
+
destroy(): void;
|
|
830
|
+
}
|
|
715
831
|
declare class RendererGl extends EventEmitter implements GlTextureHost {
|
|
716
832
|
readonly type = 2;
|
|
717
833
|
readonly canvas: HTMLCanvasElement;
|
|
@@ -785,6 +901,15 @@ declare class RendererGl extends EventEmitter implements GlTextureHost {
|
|
|
785
901
|
private readonly sfMat;
|
|
786
902
|
private readonly maskWorldMat;
|
|
787
903
|
private readonly bindTextSlot0;
|
|
904
|
+
private activeFbo;
|
|
905
|
+
private instProgram;
|
|
906
|
+
private instUres;
|
|
907
|
+
private instVao;
|
|
908
|
+
private instCornerVbo;
|
|
909
|
+
private instDataVbo;
|
|
910
|
+
private instStagingBuf;
|
|
911
|
+
private instF32;
|
|
912
|
+
private instU32;
|
|
788
913
|
private readonly onLostDom;
|
|
789
914
|
private readonly onRestoredDom;
|
|
790
915
|
constructor(canvas: HTMLCanvasElement, width: number, height: number, opts?: RendererGlOptions);
|
|
@@ -808,7 +933,7 @@ declare class RendererGl extends EventEmitter implements GlTextureHost {
|
|
|
808
933
|
ensureGlTexture(src: TextureSource): WebGLTexture | null;
|
|
809
934
|
getDummyGlTexture(): WebGLTexture | null;
|
|
810
935
|
private ensureBatchState;
|
|
811
|
-
/** Full state restore for external callers that may have mutated viewport/blend/textures directly. */
|
|
936
|
+
/** Full state restore for external callers that may have mutated viewport/blend/textures/pixelStore/FBO directly. */
|
|
812
937
|
restoreState(): void;
|
|
813
938
|
private setBlend;
|
|
814
939
|
private assignTextureUnit;
|
|
@@ -836,6 +961,12 @@ declare class RendererGl extends EventEmitter implements GlTextureHost {
|
|
|
836
961
|
private renderGraphics;
|
|
837
962
|
private renderPanel;
|
|
838
963
|
private renderMsdfIcon;
|
|
964
|
+
private ensureInstancedResources;
|
|
965
|
+
private renderInstancedBatch;
|
|
966
|
+
/** Create an offscreen WebGL framebuffer target backed by a registered Stage `Texture` (`key`). */
|
|
967
|
+
createRenderTarget(key: string, width: number, height: number, textures: TextureManager, filterMode?: 0 | 1): StageRenderTarget;
|
|
968
|
+
/** Render a `DisplayList` (or custom pass callback) into an offscreen `StageRenderTarget` FBO. */
|
|
969
|
+
renderToTarget(target: StageRenderTarget, content: DisplayList | ((renderer: RendererGl, camera: Camera) => void), camera: Camera): void;
|
|
839
970
|
private renderBlitter;
|
|
840
971
|
private renderNode;
|
|
841
972
|
render(displayList: DisplayList, camera: Camera): void;
|
|
@@ -880,11 +1011,137 @@ declare class Renderer2D extends EventEmitter {
|
|
|
880
1011
|
private renderMsdfIcon;
|
|
881
1012
|
private renderText;
|
|
882
1013
|
private renderGraphics;
|
|
1014
|
+
private renderInstancedBatch;
|
|
1015
|
+
/** Create an offscreen Canvas2D render target backed by a registered Stage `Texture` (`key`). */
|
|
1016
|
+
createRenderTarget(key: string, width: number, height: number, textures: TextureManager, filterMode?: 0 | 1): StageRenderTarget;
|
|
1017
|
+
/** Render a `DisplayList` (or callback) into an offscreen `StageRenderTarget` in Canvas2D / Headless Node. */
|
|
1018
|
+
renderToTarget(target: StageRenderTarget, content: DisplayList | ((renderer: Renderer2D, camera: Camera) => void), camera: Camera): void;
|
|
883
1019
|
private renderBlitter;
|
|
884
1020
|
private renderNode;
|
|
885
1021
|
render(displayList: DisplayList, camera: Camera): void;
|
|
886
1022
|
destroy(): void;
|
|
887
1023
|
}
|
|
1024
|
+
interface WebGpuDeviceLike {
|
|
1025
|
+
readonly queue: {
|
|
1026
|
+
writeBuffer(buffer: any, bufferOffset: number, data: BufferSource, dataOffset?: number, size?: number): void;
|
|
1027
|
+
copyExternalImageToTexture(source: any, destination: any, copySize: any): void;
|
|
1028
|
+
submit(commandBuffers: any[]): void;
|
|
1029
|
+
};
|
|
1030
|
+
createShaderModule(descriptor: {
|
|
1031
|
+
code: string;
|
|
1032
|
+
}): any;
|
|
1033
|
+
createBuffer(descriptor: {
|
|
1034
|
+
size: number;
|
|
1035
|
+
usage: number;
|
|
1036
|
+
mappedAtCreation?: boolean;
|
|
1037
|
+
}): any;
|
|
1038
|
+
createTexture(descriptor: any): any;
|
|
1039
|
+
createSampler(descriptor?: any): any;
|
|
1040
|
+
createBindGroupLayout(descriptor: any): any;
|
|
1041
|
+
createPipelineLayout(descriptor: any): any;
|
|
1042
|
+
createRenderPipeline(descriptor: any): any;
|
|
1043
|
+
createBindGroup(descriptor: any): any;
|
|
1044
|
+
createCommandEncoder(descriptor?: any): any;
|
|
1045
|
+
destroy?(): void;
|
|
1046
|
+
}
|
|
1047
|
+
interface WebGpuCanvasContextLike {
|
|
1048
|
+
configure(config: {
|
|
1049
|
+
device: WebGpuDeviceLike;
|
|
1050
|
+
format: string;
|
|
1051
|
+
alphaMode?: 'opaque' | 'premultiplied';
|
|
1052
|
+
}): void;
|
|
1053
|
+
getCurrentTexture(): {
|
|
1054
|
+
createView(): any;
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
interface RendererWebGpuOptions {
|
|
1058
|
+
device: WebGpuDeviceLike;
|
|
1059
|
+
context?: WebGpuCanvasContextLike | null;
|
|
1060
|
+
format?: string;
|
|
1061
|
+
transparent?: boolean;
|
|
1062
|
+
}
|
|
1063
|
+
interface RequestWebGpuOptions {
|
|
1064
|
+
powerPreference?: 'low-power' | 'high-performance';
|
|
1065
|
+
transparent?: boolean;
|
|
1066
|
+
}
|
|
1067
|
+
interface WebGpuBootstrapResult {
|
|
1068
|
+
readonly device: WebGpuDeviceLike;
|
|
1069
|
+
readonly context: WebGpuCanvasContextLike;
|
|
1070
|
+
readonly format: string;
|
|
1071
|
+
}
|
|
1072
|
+
/**
|
|
1073
|
+
* Asynchronously acquire a browser `GPUDevice` + configured `GPUCanvasContext` ready to pass directly into
|
|
1074
|
+
* `new Game({ type: WEBGPU, gpuDevice: gpu.device, gpuContext: gpu.context, gpuFormat: gpu.format })`.
|
|
1075
|
+
* Returns `null` cleanly when WebGPU is unsupported on the current browser/OS.
|
|
1076
|
+
*/
|
|
1077
|
+
declare function requestWebGpuDevice(canvas: HTMLCanvasElement, options?: RequestWebGpuOptions): Promise<WebGpuBootstrapResult | null>;
|
|
1078
|
+
declare class RendererWebGpu extends EventEmitter {
|
|
1079
|
+
readonly type = 3;
|
|
1080
|
+
readonly isWebGL2 = false;
|
|
1081
|
+
readonly isWebGPU = true;
|
|
1082
|
+
readonly gl: null;
|
|
1083
|
+
readonly contextLost = false;
|
|
1084
|
+
readonly maxTextures = 16;
|
|
1085
|
+
readonly canvas: HTMLCanvasElement;
|
|
1086
|
+
readonly device: WebGpuDeviceLike;
|
|
1087
|
+
readonly gpuContext: WebGpuCanvasContextLike;
|
|
1088
|
+
readonly format: string;
|
|
1089
|
+
width: number;
|
|
1090
|
+
height: number;
|
|
1091
|
+
private readonly globalsBuf;
|
|
1092
|
+
private readonly vbo;
|
|
1093
|
+
private readonly ibo;
|
|
1094
|
+
private readonly sdfCornerVbo;
|
|
1095
|
+
private readonly sdfInstVbo;
|
|
1096
|
+
private readonly sdfQuadIbo;
|
|
1097
|
+
private readonly samplerLinear;
|
|
1098
|
+
private readonly samplerNearest;
|
|
1099
|
+
private readonly batchBgl;
|
|
1100
|
+
private readonly sdfBgl;
|
|
1101
|
+
private readonly sdfBindGroup;
|
|
1102
|
+
private readonly batchPipelines;
|
|
1103
|
+
private readonly sdfPipelines;
|
|
1104
|
+
private readonly texCache;
|
|
1105
|
+
private dummyEntry;
|
|
1106
|
+
private readonly vertRaw;
|
|
1107
|
+
private readonly f32;
|
|
1108
|
+
private readonly u32;
|
|
1109
|
+
private readonly indices;
|
|
1110
|
+
private readonly sdfRaw;
|
|
1111
|
+
private readonly sdfF32;
|
|
1112
|
+
private readonly sdfU32;
|
|
1113
|
+
private vertCount;
|
|
1114
|
+
private indexCount;
|
|
1115
|
+
private cmdStartIndex;
|
|
1116
|
+
private sdfCount;
|
|
1117
|
+
private sdfCmdStart;
|
|
1118
|
+
private curBlend;
|
|
1119
|
+
private curBindGroup;
|
|
1120
|
+
private readonly cmds;
|
|
1121
|
+
private readonly scissorStack;
|
|
1122
|
+
private readonly matPool;
|
|
1123
|
+
private readonly sfMat;
|
|
1124
|
+
private readonly maskWorldMat;
|
|
1125
|
+
private lastStats;
|
|
1126
|
+
constructor(canvas: HTMLCanvasElement, width: number, height: number, opts: RendererWebGpuOptions);
|
|
1127
|
+
private makeBatchBindGroup;
|
|
1128
|
+
stats(): RendererStats;
|
|
1129
|
+
resize(width: number, height: number): void;
|
|
1130
|
+
private ensureGpuTexture;
|
|
1131
|
+
private ensureSourceBindGroup;
|
|
1132
|
+
private currentScissor;
|
|
1133
|
+
private flushPendingBatch;
|
|
1134
|
+
private flushPendingSdf;
|
|
1135
|
+
private flushAllPending;
|
|
1136
|
+
private bindBatch;
|
|
1137
|
+
private pushQuad;
|
|
1138
|
+
private pushTri;
|
|
1139
|
+
private renderPanel;
|
|
1140
|
+
private renderGraphics;
|
|
1141
|
+
private renderNode;
|
|
1142
|
+
render(displayList: DisplayList, camera: Camera): void;
|
|
1143
|
+
destroy(): void;
|
|
1144
|
+
}
|
|
888
1145
|
interface PointerSample {
|
|
889
1146
|
x: number;
|
|
890
1147
|
y: number;
|
|
@@ -931,9 +1188,24 @@ declare class Pointer {
|
|
|
931
1188
|
}
|
|
932
1189
|
declare class KeyboardPlugin extends EventEmitter {
|
|
933
1190
|
private readonly win;
|
|
1191
|
+
private readonly getFrameSeq;
|
|
1192
|
+
private readonly downCodes;
|
|
1193
|
+
private readonly pressedFrame;
|
|
1194
|
+
private readonly releasedFrame;
|
|
934
1195
|
private readonly onKeyDown;
|
|
935
1196
|
private readonly onKeyUp;
|
|
936
|
-
|
|
1197
|
+
private readonly onBlur;
|
|
1198
|
+
constructor(win: Window, getFrameSeq?: () => number);
|
|
1199
|
+
/** Returns `true` while `codeOrKey` (e.g. `'KeyW'`, `'W'`, `'ArrowLeft'`, `'Space'`) is held down. */
|
|
1200
|
+
isDown(codeOrKey: string): boolean;
|
|
1201
|
+
/** Returns `true` only on the simulation frame during which `codeOrKey` transitioned up -> down. */
|
|
1202
|
+
justPressed(codeOrKey: string): boolean;
|
|
1203
|
+
/** Returns `true` only on the simulation frame during which `codeOrKey` transitioned down -> up. */
|
|
1204
|
+
justReleased(codeOrKey: string): boolean;
|
|
1205
|
+
/** Synthesize a deterministic key event from an `InputProvider` (headless timeline, replay, or Mod controller). */
|
|
1206
|
+
injectKey(type: 'keydown' | 'keyup', codeOrKey: string, key?: string): void;
|
|
1207
|
+
/** Release all currently held keys (called automatically on window blur). */
|
|
1208
|
+
resetKeys(): void;
|
|
937
1209
|
destroy(): void;
|
|
938
1210
|
}
|
|
939
1211
|
declare class InputPlugin extends EventEmitter {
|
|
@@ -954,11 +1226,322 @@ declare class InputPlugin extends EventEmitter {
|
|
|
954
1226
|
private readonly coalescedScratch;
|
|
955
1227
|
private resizeObserver;
|
|
956
1228
|
private lastTouchMs;
|
|
957
|
-
constructor(canvas: HTMLCanvasElement, win: Window, getCamera: () => Camera | null, config?: InputConfig);
|
|
1229
|
+
constructor(canvas: HTMLCanvasElement, win: Window, getCamera: () => Camera | null, config?: InputConfig, getFrameSeq?: () => number);
|
|
958
1230
|
setPollAlways(): this;
|
|
959
1231
|
destroy(): void;
|
|
960
1232
|
}
|
|
961
|
-
|
|
1233
|
+
interface SceneDigestNode {
|
|
1234
|
+
trackId: string | null;
|
|
1235
|
+
role: string | null;
|
|
1236
|
+
alt: string | null;
|
|
1237
|
+
surface: string | null;
|
|
1238
|
+
type: string;
|
|
1239
|
+
visible: boolean;
|
|
1240
|
+
enabled: boolean;
|
|
1241
|
+
zIndex: number;
|
|
1242
|
+
depth: number;
|
|
1243
|
+
alpha: number;
|
|
1244
|
+
bounds: [number, number, number, number];
|
|
1245
|
+
}
|
|
1246
|
+
interface SceneDigestOverlayStats {
|
|
1247
|
+
popovers: number;
|
|
1248
|
+
dropdowns: number;
|
|
1249
|
+
tooltipVisible: boolean;
|
|
1250
|
+
toasts: number;
|
|
1251
|
+
queuedToasts: number;
|
|
1252
|
+
}
|
|
1253
|
+
interface SceneDigestSurfaceEntry {
|
|
1254
|
+
id: string;
|
|
1255
|
+
priority: number;
|
|
1256
|
+
seq: number;
|
|
1257
|
+
scope: string;
|
|
1258
|
+
barrier: string;
|
|
1259
|
+
parent: string | null;
|
|
1260
|
+
}
|
|
1261
|
+
interface SceneDigestActiveFocus {
|
|
1262
|
+
tag: string;
|
|
1263
|
+
ui: string | null;
|
|
1264
|
+
role: string | null;
|
|
1265
|
+
}
|
|
1266
|
+
interface SceneDigestSurfaces {
|
|
1267
|
+
active: SceneDigestSurfaceEntry[];
|
|
1268
|
+
topBarrier: SceneDigestSurfaceEntry | null;
|
|
1269
|
+
worldBlocked: boolean;
|
|
1270
|
+
domZ: Record<string, number> | null;
|
|
1271
|
+
activeFocus: SceneDigestActiveFocus | null;
|
|
1272
|
+
}
|
|
1273
|
+
interface SceneDigestEngineSandbox {
|
|
1274
|
+
modId: string;
|
|
1275
|
+
ready: boolean;
|
|
1276
|
+
uptimeMs: number;
|
|
1277
|
+
renderer: string | null;
|
|
1278
|
+
apps: number;
|
|
1279
|
+
frames: number;
|
|
1280
|
+
longFrames: number;
|
|
1281
|
+
drawCalls: number;
|
|
1282
|
+
texBinds: number;
|
|
1283
|
+
errors: number;
|
|
1284
|
+
violations: number;
|
|
1285
|
+
lastHeartbeatMs: number | null;
|
|
1286
|
+
}
|
|
1287
|
+
interface SceneDigestSandbox {
|
|
1288
|
+
engine: SceneDigestEngineSandbox | null;
|
|
1289
|
+
mountedWorkers: number;
|
|
1290
|
+
}
|
|
1291
|
+
interface SceneDigest {
|
|
1292
|
+
clock: EngineClockSnapshot | null;
|
|
1293
|
+
traceId: string | null;
|
|
1294
|
+
viewport: {
|
|
1295
|
+
w: number;
|
|
1296
|
+
h: number;
|
|
1297
|
+
dpr: number;
|
|
1298
|
+
};
|
|
1299
|
+
renderer: {
|
|
1300
|
+
type: string;
|
|
1301
|
+
drawCalls?: number;
|
|
1302
|
+
flushes?: number;
|
|
1303
|
+
tris?: number;
|
|
1304
|
+
culled?: number;
|
|
1305
|
+
texBinds?: number;
|
|
1306
|
+
sdfPanels?: number;
|
|
1307
|
+
sdfDraws?: number;
|
|
1308
|
+
msdfIcons?: number;
|
|
1309
|
+
msdfDraws?: number;
|
|
1310
|
+
pixelAaIcons?: number;
|
|
1311
|
+
pixelAaDraws?: number;
|
|
1312
|
+
};
|
|
1313
|
+
lifecycle: SceneLifecycleStats | null;
|
|
1314
|
+
tweens: TweenStats | null;
|
|
1315
|
+
overlays: SceneDigestOverlayStats | null;
|
|
1316
|
+
surfaces: SceneDigestSurfaces | null;
|
|
1317
|
+
sandbox: SceneDigestSandbox | null;
|
|
1318
|
+
plugins: Record<string, Record<string, number | string | boolean | null>> | null;
|
|
1319
|
+
displayListCount: number;
|
|
1320
|
+
uiCount: number;
|
|
1321
|
+
truncated: boolean;
|
|
1322
|
+
nodes: SceneDigestNode[];
|
|
1323
|
+
}
|
|
1324
|
+
interface SceneDigestSurfaceSource {
|
|
1325
|
+
active?: () => ReadonlyArray<{
|
|
1326
|
+
id: string;
|
|
1327
|
+
priority: number;
|
|
1328
|
+
seq: number;
|
|
1329
|
+
scope: string;
|
|
1330
|
+
barrier: string;
|
|
1331
|
+
parent: string | null;
|
|
1332
|
+
}>;
|
|
1333
|
+
topBarrier?: () => {
|
|
1334
|
+
id: string;
|
|
1335
|
+
priority: number;
|
|
1336
|
+
seq: number;
|
|
1337
|
+
scope: string;
|
|
1338
|
+
barrier: string;
|
|
1339
|
+
parent: string | null;
|
|
1340
|
+
} | null;
|
|
1341
|
+
isWorldBlocked?: () => boolean;
|
|
1342
|
+
domZ?: () => Record<string, number>;
|
|
1343
|
+
activeFocus?: () => SceneDigestActiveFocus | null;
|
|
1344
|
+
}
|
|
1345
|
+
interface SceneDigestOptions {
|
|
1346
|
+
ui?: {
|
|
1347
|
+
view?: {
|
|
1348
|
+
w: number;
|
|
1349
|
+
h: number;
|
|
1350
|
+
};
|
|
1351
|
+
dpr?: number;
|
|
1352
|
+
registry?: {
|
|
1353
|
+
api?: {
|
|
1354
|
+
list?: () => Array<Record<string, any>>;
|
|
1355
|
+
};
|
|
1356
|
+
};
|
|
1357
|
+
__overlays?: {
|
|
1358
|
+
stats?: () => SceneDigestOverlayStats;
|
|
1359
|
+
} | null;
|
|
1360
|
+
} | null;
|
|
1361
|
+
surfaces?: SceneDigestSurfaceSource | null;
|
|
1362
|
+
sandbox?: SceneDigestSandbox | (() => SceneDigestSandbox | null) | null;
|
|
1363
|
+
traceId?: string | null;
|
|
1364
|
+
dpr?: number;
|
|
1365
|
+
maxNodes?: number;
|
|
1366
|
+
}
|
|
1367
|
+
/** Sanitize a privacy-safe semantic identifier (`trackId`, `role`, `surface`). Returns null if invalid or empty. */
|
|
1368
|
+
declare function sanitizeTrackToken(raw: unknown, maxLen?: number): string | null;
|
|
1369
|
+
/**
|
|
1370
|
+
* Build a privacy-safe structural snapshot of a Stage2D scene and optional UiRoot.
|
|
1371
|
+
* Never reads arbitrary `TextObject.text` or user-typed strings; only emits sanitized `trackId`/`role`/`surface`
|
|
1372
|
+
* tokens and explicitly declared semantic `alt` labels.
|
|
1373
|
+
*/
|
|
1374
|
+
declare function buildSceneDigest(scene: Scene, opts?: SceneDigestOptions): SceneDigest;
|
|
1375
|
+
type StageInputEvent = {
|
|
1376
|
+
readonly kind: 'pointerdown' | 'pointermove' | 'pointerup';
|
|
1377
|
+
readonly x: number;
|
|
1378
|
+
readonly y: number;
|
|
1379
|
+
readonly button?: number;
|
|
1380
|
+
readonly source?: string;
|
|
1381
|
+
} | {
|
|
1382
|
+
readonly kind: 'wheel';
|
|
1383
|
+
readonly x: number;
|
|
1384
|
+
readonly y: number;
|
|
1385
|
+
readonly deltaX: number;
|
|
1386
|
+
readonly deltaY: number;
|
|
1387
|
+
readonly deltaZ?: number;
|
|
1388
|
+
readonly source?: string;
|
|
1389
|
+
} | {
|
|
1390
|
+
readonly kind: 'keydown' | 'keyup';
|
|
1391
|
+
readonly code: string;
|
|
1392
|
+
readonly key?: string;
|
|
1393
|
+
readonly source?: string;
|
|
1394
|
+
};
|
|
1395
|
+
/**
|
|
1396
|
+
* Pluggable input source feeding `StageKernel` — physical DOM mouse/keyboard/touch,
|
|
1397
|
+
* headless `InputTimeline` choreography, frame-exact `InputReplay`, or sandboxed Mod controllers
|
|
1398
|
+
* all share this exact contract.
|
|
1399
|
+
*/
|
|
1400
|
+
interface InputProvider {
|
|
1401
|
+
readonly id: string;
|
|
1402
|
+
attach?(kernel: StageKernel): void | (() => void);
|
|
1403
|
+
poll?(kernel: StageKernel, simTimeMs: number, deltaMs: number): void;
|
|
1404
|
+
dispose?(): void;
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
* Composable kernel extension contract (`game.kernel.use(plugin)`).
|
|
1408
|
+
* Plugins participate in deterministic simulation ticks, post-render hooks, LIFO disposal,
|
|
1409
|
+
* and automatically contribute sanitized telemetry to `buildSceneDigest()`.
|
|
1410
|
+
*/
|
|
1411
|
+
interface StagePlugin {
|
|
1412
|
+
readonly id: string;
|
|
1413
|
+
setup?(kernel: StageKernel): void | (() => void);
|
|
1414
|
+
prestep?(timeMs: number, deltaMs: number): void;
|
|
1415
|
+
update?(scene: Scene, timeMs: number, deltaMs: number): void;
|
|
1416
|
+
postrender?(renderer: StageRenderer): void;
|
|
1417
|
+
/** Optional privacy-safe key/value metrics merged into `SceneDigest.plugins[id]`. */
|
|
1418
|
+
digest?(): Record<string, number | string | boolean | null>;
|
|
1419
|
+
dispose?(): void;
|
|
1420
|
+
}
|
|
1421
|
+
/** Godot-inspired semantic action map binding logical game verbs (`'jump'`, `'interact'`) to key codes. */
|
|
1422
|
+
declare class ActionMap {
|
|
1423
|
+
private readonly bindings;
|
|
1424
|
+
private readonly game;
|
|
1425
|
+
constructor(game: Game);
|
|
1426
|
+
bind(action: string, codes: readonly string[]): this;
|
|
1427
|
+
unbind(action: string): this;
|
|
1428
|
+
codesFor(action: string): readonly string[];
|
|
1429
|
+
isDown(action: string): boolean;
|
|
1430
|
+
justPressed(action: string): boolean;
|
|
1431
|
+
justReleased(action: string): boolean;
|
|
1432
|
+
/** Compute signed `[-1, 0, +1]` axis from negative/positive action names or key codes. */
|
|
1433
|
+
axis(negativeActionOrCode: string, positiveActionOrCode: string): number;
|
|
1434
|
+
}
|
|
1435
|
+
declare class StageKernel {
|
|
1436
|
+
readonly game: Game;
|
|
1437
|
+
readonly actions: ActionMap;
|
|
1438
|
+
private readonly plugins;
|
|
1439
|
+
private readonly pluginOrder;
|
|
1440
|
+
private readonly providers;
|
|
1441
|
+
private readonly providerOrder;
|
|
1442
|
+
private readonly inputListeners;
|
|
1443
|
+
private inputGuard;
|
|
1444
|
+
private disposed;
|
|
1445
|
+
constructor(game: Game);
|
|
1446
|
+
/** Optional input barrier predicate (e.g. `() => !surfaces.isWorldBlocked()`). */
|
|
1447
|
+
setInputGuard(guard: ((ev: StageInputEvent) => boolean) | null): this;
|
|
1448
|
+
/** Subscribe to every normalized `StageInputEvent` flowing through the kernel (used by recorders/mods). */
|
|
1449
|
+
onInput(listener: (ev: StageInputEvent, frameSeq: number, simTimeMs: number) => void): () => void;
|
|
1450
|
+
/** Mount a `StagePlugin` (idempotent per `plugin.id`; LIFO-disposed on `remove` or `game.destroy()`). */
|
|
1451
|
+
use<T extends StagePlugin>(plugin: T): T;
|
|
1452
|
+
getPlugin<T extends StagePlugin = StagePlugin>(id: string): T | null;
|
|
1453
|
+
removePlugin(id: string): boolean;
|
|
1454
|
+
/** Register an `InputProvider` (DOM, headless timeline, replay, or Mod controller). */
|
|
1455
|
+
addInputProvider<T extends InputProvider>(provider: T): T;
|
|
1456
|
+
removeInputProvider(id: string): boolean;
|
|
1457
|
+
/** Dispatch a normalized input event into `Game.input` + `KeyboardPlugin` and notify listeners. */
|
|
1458
|
+
dispatchInput(event: StageInputEvent): boolean;
|
|
1459
|
+
/** Internal per-tick prestep invoked by `Game.step()` / `Game.stepSimOnly()`. */
|
|
1460
|
+
_prestep(timeMs: number, deltaMs: number): void;
|
|
1461
|
+
/** Internal per-scene update hook invoked by `Game.step()` / `Game.stepSimOnly()`. */
|
|
1462
|
+
_updateScene(scene: Scene, timeMs: number, deltaMs: number): void;
|
|
1463
|
+
/** Internal postrender hook invoked by `Game.step()`. */
|
|
1464
|
+
_postrender(renderer: StageRenderer): void;
|
|
1465
|
+
/** Collect sanitized plugin digests for `buildSceneDigest()`. */
|
|
1466
|
+
collectPluginDigests(): Record<string, Record<string, number | string | boolean | null>> | null;
|
|
1467
|
+
/** LIFO teardown of all mounted input providers and plugins. */
|
|
1468
|
+
dispose(): void;
|
|
1469
|
+
}
|
|
1470
|
+
type InputTargetSpec = string | {
|
|
1471
|
+
readonly x: number;
|
|
1472
|
+
readonly y: number;
|
|
1473
|
+
};
|
|
1474
|
+
interface TimelineClickOptions {
|
|
1475
|
+
readonly atMs: number;
|
|
1476
|
+
/** Duration in ms to smoothly glide virtual cursor before pressing (default `180`). */
|
|
1477
|
+
readonly moveDurationMs?: number;
|
|
1478
|
+
/** Hold duration in ms between pointerdown and pointerup (default `50`). */
|
|
1479
|
+
readonly holdMs?: number;
|
|
1480
|
+
readonly button?: number;
|
|
1481
|
+
}
|
|
1482
|
+
interface TimelineDragOptions {
|
|
1483
|
+
readonly from: InputTargetSpec;
|
|
1484
|
+
readonly to: InputTargetSpec;
|
|
1485
|
+
readonly atMs: number;
|
|
1486
|
+
readonly durationMs?: number;
|
|
1487
|
+
readonly button?: number;
|
|
1488
|
+
}
|
|
1489
|
+
interface TimelineKeyOptions {
|
|
1490
|
+
readonly atMs: number;
|
|
1491
|
+
readonly durationMs?: number;
|
|
1492
|
+
}
|
|
1493
|
+
interface InputTimelineOptions {
|
|
1494
|
+
readonly id?: string;
|
|
1495
|
+
/** Render a crisp virtual cursor & click ripple overlay on the active scene (default `false`). */
|
|
1496
|
+
readonly showCursor?: boolean;
|
|
1497
|
+
/** Initial cursor X position (default `64`). */
|
|
1498
|
+
readonly initialX?: number;
|
|
1499
|
+
/** Initial cursor Y position (default `64`). */
|
|
1500
|
+
readonly initialY?: number;
|
|
1501
|
+
/** Optional `SceneDigestOptions` used when resolving `trackId` targets. */
|
|
1502
|
+
readonly digestOptions?: SceneDigestOptions;
|
|
1503
|
+
/** Optional callback fired on every click/keypress (`simTimeMs`, `kind`) — handy for auto-scheduling SFX on `AudioTimeline`! */
|
|
1504
|
+
readonly onCue?: (simTimeMs: number, kind: 'click' | 'key', detail: string) => void;
|
|
1505
|
+
}
|
|
1506
|
+
interface InputTimelinePlugin extends StagePlugin, InputProvider {
|
|
1507
|
+
readonly cursor: {
|
|
1508
|
+
x: number;
|
|
1509
|
+
y: number;
|
|
1510
|
+
isDown: boolean;
|
|
1511
|
+
};
|
|
1512
|
+
moveTo(target: InputTargetSpec, options: {
|
|
1513
|
+
atMs: number;
|
|
1514
|
+
durationMs?: number;
|
|
1515
|
+
}): this;
|
|
1516
|
+
click(target: InputTargetSpec, options: TimelineClickOptions): this;
|
|
1517
|
+
drag(options: TimelineDragOptions): this;
|
|
1518
|
+
pressKey(code: string, options: TimelineKeyOptions): this;
|
|
1519
|
+
typeText(text: string, options: {
|
|
1520
|
+
atMs: number;
|
|
1521
|
+
intervalMs?: number;
|
|
1522
|
+
}): this;
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* Programmable input choreography plugin & `InputProvider` for AI agents, automated gameplay tests,
|
|
1526
|
+
* and 60 FPS product demo videos. Supports clicking directly by `trackId` (`timeline.click('shop.buy', { atMs: 400 })`)
|
|
1527
|
+
* via `buildSceneDigest()` as well as coordinates, drags, key holds, typing, and optional visual cursor ripples!
|
|
1528
|
+
*/
|
|
1529
|
+
declare function createInputTimeline(options?: InputTimelineOptions): InputTimelinePlugin;
|
|
1530
|
+
interface RecordedInputEntry {
|
|
1531
|
+
readonly frameSeq: number;
|
|
1532
|
+
readonly simTimeMs: number;
|
|
1533
|
+
readonly event: StageInputEvent;
|
|
1534
|
+
}
|
|
1535
|
+
interface InputRecorderPlugin extends StagePlugin {
|
|
1536
|
+
readonly entries: ReadonlyArray<RecordedInputEntry>;
|
|
1537
|
+
clear(): void;
|
|
1538
|
+
toJSON(): RecordedInputEntry[];
|
|
1539
|
+
}
|
|
1540
|
+
/** Records frame-stamped `StageInputEvent`s for deterministic headless replay or bug repro bundles. */
|
|
1541
|
+
declare function createInputRecorder(id?: string): InputRecorderPlugin;
|
|
1542
|
+
/** Replays a recorded `RecordedInputEntry[]` log deterministically on matching simulation timestamps. */
|
|
1543
|
+
declare function createInputReplay(log: ReadonlyArray<RecordedInputEntry>, id?: string): StagePlugin & InputProvider;
|
|
1544
|
+
type StageRenderer = RendererGl | Renderer2D | RendererWebGpu;
|
|
962
1545
|
interface EngineClockSnapshot {
|
|
963
1546
|
readonly frameSeq: number;
|
|
964
1547
|
readonly simTimeMs: number;
|
|
@@ -987,6 +1570,14 @@ interface GameConfig {
|
|
|
987
1570
|
parent?: HTMLElement | string | null;
|
|
988
1571
|
canvas?: HTMLCanvasElement;
|
|
989
1572
|
context?: WebGL2RenderingContext | WebGLRenderingContext | CanvasRenderingContext2D | null;
|
|
1573
|
+
/** Pre-acquired WebGPU `GPUDevice` (from `await requestWebGpuDevice(canvas)`) when `type === WEBGPU`. */
|
|
1574
|
+
gpuDevice?: WebGpuDeviceLike | null;
|
|
1575
|
+
/** Optional pre-configured `GPUCanvasContext` when `type === WEBGPU`. */
|
|
1576
|
+
gpuContext?: WebGpuCanvasContextLike | null;
|
|
1577
|
+
/** Preferred WebGPU swapchain texture format (default `'bgra8unorm'`). */
|
|
1578
|
+
gpuFormat?: string;
|
|
1579
|
+
/** Kernel plugins mounted synchronously at boot (`StagePlugin[]`). */
|
|
1580
|
+
plugins?: StagePlugin[];
|
|
990
1581
|
canvasStyle?: string;
|
|
991
1582
|
width?: number;
|
|
992
1583
|
height?: number;
|
|
@@ -1063,8 +1654,9 @@ declare class GameObjectFactory {
|
|
|
1063
1654
|
add?: boolean;
|
|
1064
1655
|
}): Graphics;
|
|
1065
1656
|
blitter(x: number, y: number, key: string): BlitterObject;
|
|
1657
|
+
instancedBatch(key: string, maxCount?: number, frame?: string | number): InstancedBatchObject;
|
|
1066
1658
|
container(x?: number, y?: number, children?: DisplayObject[]): Container;
|
|
1067
|
-
customPass(onRender: CustomPassCallback): CustomPassObject;
|
|
1659
|
+
customPass(onRender: CustomPassCallback, options?: CustomPassOptions): CustomPassObject;
|
|
1068
1660
|
}
|
|
1069
1661
|
declare class ScaleManager extends EventEmitter {
|
|
1070
1662
|
readonly canvas: HTMLCanvasElement;
|
|
@@ -1190,6 +1782,7 @@ declare class Game {
|
|
|
1190
1782
|
};
|
|
1191
1783
|
readonly events: EventEmitter;
|
|
1192
1784
|
readonly clock: EngineClock;
|
|
1785
|
+
readonly kernel: StageKernel;
|
|
1193
1786
|
readonly scene: SceneManager;
|
|
1194
1787
|
readonly loop: GameLoop;
|
|
1195
1788
|
readonly transparent: boolean;
|
|
@@ -1199,7 +1792,9 @@ declare class Game {
|
|
|
1199
1792
|
private destroyed;
|
|
1200
1793
|
private ownedCanvas;
|
|
1201
1794
|
constructor(config?: GameConfig);
|
|
1795
|
+
/** Advance simulation, tweens, kernel plugins, and camera follow by one deterministic tick WITHOUT rendering pixels. */
|
|
1796
|
+
stepSimOnly(time: number, delta: number): boolean;
|
|
1202
1797
|
step(time: number, delta: number): void;
|
|
1203
1798
|
destroy(removeCanvas?: boolean): void;
|
|
1204
1799
|
}
|
|
1205
|
-
export {
|
|
1800
|
+
export { WebGpuCanvasContextLike as $, FilterMode as $t, createInputReplay as A, RectangleObject as At, SceneDigestSurfaceSource as B, GlTextureHost as Bt, StageInputEvent as C, MsdfIconConfig as Ct, TimelineDragOptions as D, PanelOpenSide as Dt, TimelineClickOptions as E, PanelObject as Et, SceneDigestNode as F, Camera as Ft, InputPlugin as G, TextureManager as Gt, buildSceneDigest as H, Texture as Ht, SceneDigestOptions as I, CameraFollowOptions as It, PointerSample as J, BLACK_RGB as Jt, KeyboardPlugin as K, TextureSource as Kt, SceneDigestOverlayStats as L, HiDpiScaleLike as Lt, SceneDigest as M, TextObject as Mt, SceneDigestActiveFocus as N, TextStyleConfig as Nt, TimelineKeyOptions as O, PanelStyleConfig as Ot, SceneDigestEngineSandbox as P, TileSpriteObject as Pt, WebGpuBootstrapResult as Q, EventEmitter as Qt, SceneDigestSandbox as R, CanvasTexture as Rt, RecordedInputEntry as S, InstancedColumns as St, StagePlugin as T, NineSliceObject as Tt, sanitizeTrackToken as U, TextureImageOptions as Ut, SceneDigestSurfaces as V, SpriteSheetConfig as Vt, InputConfig as W, TextureImageSource as Wt, RendererWebGpuOptions as X, BlendModes as Xt, RendererWebGpu as Y, BlendMode as Yt, RequestWebGpuOptions as Z, CANVAS as Zt, InputProvider as _, DisplayObjectType as _t, GameLoop as a, Scale as an, RendererStats as at, InputTimelineOptions as b, ImageObject as bt, LoaderPlugin as c, TintModes as cn, BlitterObject as ct, SceneCtor as d, WHITE_RGB as dn, ContainerFiltersShim as dt, FilterModeValue as en, WebGpuDeviceLike as et, SceneInput as f, WorldView2D as fn, CustomPassCallback as ft, ActionMap as g, rgbToCss as gn, DisplayObject as gt, StageRenderer as h, parseColor as hn, DisplayList as ht, GameConfig as i, RgbaColor as in, RendererGlOptions as it, createInputTimeline as j, SceneHostLike as jt, createInputRecorder as k, RectClipMask as kt, ScaleManager as l, WEBGL as ln, Bob as lt, SceneManager as m, packColorAbgr as mn, CustomPassOptions as mt, EngineClockSnapshot as n, Matrix2D as nn, Renderer2D as nt, GameObjectFactory as o, Scenes as on, Stage2DCustomImageHandler as ot, SceneLifecycleStats as p, createMatrix2D as pn, CustomPassObject as pt, Pointer as q, AUTO as qt, Game as r, Rect2D as rn, RendererGl as rt, JsonCache as s, TintMode as sn, StageRenderTarget as st, EngineClock as t, HEX_MASK as tn, requestWebGpuDevice as tt, Scene as u, WEBGPU as un, Container as ut, InputRecorderPlugin as v, DisplaySemantics as vt, StageKernel as w, MsdfIconObject as wt, InputTimelinePlugin as x, InstancedBatchObject as xt, InputTargetSpec as y, Graphics as yt, SceneDigestSurfaceEntry as z, Frame as zt };
|