@holtjs/stage 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist/{game-CfUZiazr.d.ts → game-Blm49zGH.d.ts} +195 -19
- package/dist/{game-C5za2LGl.js → game-Ds-cn2YI.js} +545 -323
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +2 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.js +5 -4
- package/dist/joystick.d.ts +1 -1
- package/dist/joystick.js +1 -1
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +4 -0
- package/dist/lighting.d.ts +1 -1
- package/dist/lighting.js +4 -9
- package/dist/projection.d.ts +1 -1
- package/dist/{renderer-webgpu-BE6fTBzo.js → renderer-webgpu-DJVQHR70.js} +1003 -83
- package/dist/renderer-webgpu.d.ts +1 -1
- package/dist/renderer-webgpu.js +1 -1
- package/dist/rig2d.d.ts +1 -1
- package/dist/rig2d.js +1 -1
- package/dist/tilemap.d.ts +1 -1
- package/dist/tilemap.js +1 -1
- package/dist/trace.d.ts +1 -1
- package/dist/trace.js +1 -1
- package/dist/{types-DRFB0Klc.js → types-CXsCvp1p.js} +5 -1
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/skills/stage/SKILL.md +19 -5
- package/skills/stage/references/subpaths.md +6 -6
package/dist/headless.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as StagePlugin, L as SceneDigestOptions, N as SceneDigest, f as SceneInput, n as EngineClockSnapshot, r as Game, u as Scene } from "./game-Blm49zGH.js";
|
|
2
2
|
/** Minimal Canvas2D surface compatible with `@napi-rs/canvas`, `node-canvas`, and browser `<canvas>`. */
|
|
3
3
|
export interface HeadlessCanvasLike {
|
|
4
4
|
width: number;
|
package/dist/headless.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { n as Game } from "./game-
|
|
1
|
+
import "./types-CXsCvp1p.js";
|
|
2
|
+
import { n as Game } from "./game-Ds-cn2YI.js";
|
|
3
3
|
import { buildSceneDigest } from "./trace.js";
|
|
4
4
|
// src/headless.ts
|
|
5
5
|
function createVirtualDomHost(createCanvas, width, height) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as WebGpuBootstrapResult, $t as BLACK_RGB, A as createInputRecorder, At as RectClipMask, B as SceneDigestSurfaceEntry, Bt as CameraFollowOptions, C as RecordedInputEntry, Ct as InstancedColumns, D as TimelineClickOptions, Dt as PanelObject, E as StagePlugin, Et as NineSliceObject, F as SceneDigestEngineSandbox, Ft as ShapeBatchStyleDefaults, G as InputConfig, Gt as GlTextureHost, H as SceneDigestSurfaces, Ht as HiDpiScaleLike, I as SceneDigestNode, It as TextObject, J as Pointer, Jt as TextureImageOptions, K as InputPlugin, Kt as SpriteSheetConfig, L as SceneDigestOptions, Lt as TextStyleConfig, M as createInputTimeline, Mt as SceneHostLike, N as SceneDigest, Nt as ShapeBatchColumns, O as TimelineDragOptions, Ot as PanelOpenSide, P as SceneDigestActiveFocus, Pt as ShapeBatchObject, Q as RequestWebGpuOptions, Qt as AUTO, R as SceneDigestOverlayStats, Rt as TileSpriteObject, S as InputTimelinePlugin, Sn as rgbToCss, St as InstancedBatchObject, T as StageKernel, Tt as MsdfIconObject, U as buildSceneDigest, Ut as CanvasTexture, V as SceneDigestSurfaceSource, Vt as HiDpiConfigureOptions, W as sanitizeTrackToken, Wt as Frame, X as RendererWebGpu, Xt as TextureManager, Y as PointerSample, Yt as TextureImageSource, Z as RendererWebGpuOptions, Zt as TextureSource, _ as ActionMap, _n as WHITE_RGB, _t as DisplayObject, a as GameLoop, an as FilterModeValue, at as RendererGlOptions, b as InputTargetSpec, bn as packColorAbgr, bt as Graphics, c as LoaderPlugin, cn as Rect2D, ct as StageRenderTarget, d as SceneCtor, dn as ScaleMode, dt as Container, en as BlendMode, et as WebGpuCanvasContextLike, f as SceneInput, fn as Scenes, ft as ContainerFiltersShim, g as ViewportFitResult, gn as WEBGPU, gt as DisplayList, h as StageRenderer, hn as WEBGL, ht as CustomPassOptions, i as GameConfig$1, in as FilterMode, it as RendererGl, j as createInputReplay, jt as RectangleObject, k as TimelineKeyOptions, kt as PanelStyleConfig, l as ScaleManager, ln as RgbaColor, lt as BlitterObject, m as SceneManager, mn as TintModes, mt as CustomPassObject, n as EngineClockSnapshot, nn as CANVAS, nt as requestWebGpuDevice, o as GameObjectFactory, on as HEX_MASK, ot as RendererStats, p as SceneLifecycleStats, pn as TintMode, pt as CustomPassCallback, q as KeyboardPlugin, qt as Texture, r as Game, rn as EventEmitter, rt as Renderer2D, s as JsonCache, sn as Matrix2D, st as Stage2DCustomImageHandler, t as EngineClock, tn as BlendModes, tt as WebGpuDeviceLike, u as Scene, un as Scale, ut as Bob$1, v as InputProvider, vn as WorldView2D, vt as DisplayObjectType, w as StageInputEvent, wt as MsdfIconConfig, x as InputTimelineOptions, xn as parseColor, xt as ImageObject, y as InputRecorderPlugin, yn as createMatrix2D, yt as DisplaySemantics, z as SceneDigestSandbox, zt as Camera } from "./game-Blm49zGH.js";
|
|
2
2
|
import { FlexAlign, FlexContainerSpec, FlexDir, FlexItemRect, FlexItemSpec, FlexJustify, FlexPadding, FlexResult, WrapContainerSpec, WrapItemRect, WrapItemSpec, WrapJustify, WrapResult, computeFlexLayout, computeWrapLayout, resolvePadding } from "./flex.js";
|
|
3
3
|
import { a as SpringHandle, c as TweenManager, i as Easings, l as TweenOptions, n as EasingFn, o as SpringOptions, r as EasingName, s as TweenHandle, t as DisposableOwner, u as TweenStats } from "./tween-BiF1FUvc.js";
|
|
4
4
|
import { JoystickDpad, JoystickDpadOptions, JoystickState, JoystickVector, JoystickViewport, JoystickZone, JoystickZonePredicate, JoystickZoneRect, VirtualJoystick, VirtualJoystickMode, VirtualJoystickOptions, VirtualJoystickStyle, clampJoystickOrigin, computeJoystickVector, isInJoystickZone, pullJoystickOrigin, quantizeJoystickDpad } from "./joystick.js";
|
|
@@ -25,6 +25,11 @@ export declare class SdfPanelBatcher {
|
|
|
25
25
|
initGl(sharedQuadIbo: WebGLBuffer): void;
|
|
26
26
|
private setupAttribs;
|
|
27
27
|
push(m: Matrix2D, ox: number, oy: number, w: number, h: number, rTL: number, rTR: number, rBR: number, rBL: number, fillColor: number, fillAlpha: number, borderColor: number, borderAlpha: number, borderWidth: number, pixelStep: number, openSide: number, topGlintColor: number, topGlintAlpha: number, topGlintHeight: number, resW: number, resH: number): void;
|
|
28
|
+
/**
|
|
29
|
+
* Fast-path SDF quad emitter for symmetric-radius shapes (`Graphics` circles/rounded-rects & `ShapeBatchObject`)
|
|
30
|
+
* with `pxScale` precomputed once per node/matrix. Caller ensures `pending < MAX_SDF_BATCH_QUADS` before calling.
|
|
31
|
+
*/
|
|
32
|
+
pushSimple(m: Matrix2D, pxScale: number, rx: number, ry: number, w: number, h: number, radius: number, fillAbgr: number, borderAbgr: number, borderWidth: number, pixelStep?: number): void;
|
|
28
33
|
flush(resW: number, resH: number): boolean;
|
|
29
34
|
onContextLost(): void;
|
|
30
35
|
destroy(contextLost: boolean): void;
|
|
@@ -123,6 +128,8 @@ export declare namespace Stage2D {
|
|
|
123
128
|
type Text = TextObject;
|
|
124
129
|
type Graphics = Stage2DGraphicsType;
|
|
125
130
|
type Blitter = BlitterObject;
|
|
131
|
+
type InstancedBatch = InstancedBatchObject;
|
|
132
|
+
type ShapeBatch = ShapeBatchObject;
|
|
126
133
|
type Bob = Bob$1;
|
|
127
134
|
type Container = Stage2DContainerType;
|
|
128
135
|
type CustomPass = CustomPassObject;
|
|
@@ -148,6 +155,8 @@ export declare const Stage2D: {
|
|
|
148
155
|
};
|
|
149
156
|
readonly Scale: {
|
|
150
157
|
readonly NONE: 0;
|
|
158
|
+
readonly FIT: 1;
|
|
159
|
+
readonly RESIZE: 2;
|
|
151
160
|
};
|
|
152
161
|
readonly Scenes: {
|
|
153
162
|
readonly PENDING: 0;
|
|
@@ -190,6 +199,7 @@ export declare const Stage2D: {
|
|
|
190
199
|
readonly Graphics: typeof Graphics;
|
|
191
200
|
readonly Blitter: typeof BlitterObject;
|
|
192
201
|
readonly InstancedBatch: typeof InstancedBatchObject;
|
|
202
|
+
readonly ShapeBatch: typeof ShapeBatchObject;
|
|
193
203
|
readonly Container: typeof Container;
|
|
194
204
|
readonly CustomPass: typeof CustomPassObject;
|
|
195
205
|
};
|
|
@@ -230,6 +240,8 @@ export declare namespace Stage {
|
|
|
230
240
|
type Text = TextObject;
|
|
231
241
|
type Graphics = Stage2DGraphicsType;
|
|
232
242
|
type Blitter = BlitterObject;
|
|
243
|
+
type InstancedBatch = InstancedBatchObject;
|
|
244
|
+
type ShapeBatch = ShapeBatchObject;
|
|
233
245
|
type Bob = Bob$1;
|
|
234
246
|
type Container = Stage2DContainerType;
|
|
235
247
|
type CustomPass = CustomPassObject;
|
|
@@ -255,6 +267,8 @@ export declare const Stage: {
|
|
|
255
267
|
};
|
|
256
268
|
readonly Scale: {
|
|
257
269
|
readonly NONE: 0;
|
|
270
|
+
readonly FIT: 1;
|
|
271
|
+
readonly RESIZE: 2;
|
|
258
272
|
};
|
|
259
273
|
readonly Scenes: {
|
|
260
274
|
readonly PENDING: 0;
|
|
@@ -297,6 +311,7 @@ export declare const Stage: {
|
|
|
297
311
|
readonly Graphics: typeof Graphics;
|
|
298
312
|
readonly Blitter: typeof BlitterObject;
|
|
299
313
|
readonly InstancedBatch: typeof InstancedBatchObject;
|
|
314
|
+
readonly ShapeBatch: typeof ShapeBatchObject;
|
|
300
315
|
readonly Container: typeof Container;
|
|
301
316
|
readonly CustomPass: typeof CustomPassObject;
|
|
302
317
|
};
|
|
@@ -311,4 +326,4 @@ export declare const Stage: {
|
|
|
311
326
|
};
|
|
312
327
|
};
|
|
313
328
|
};
|
|
314
|
-
export { AUTO, ActionMap, BLACK_RGB, type BlendMode, BlendModes, BlitterObject, type Bob$1 as Bob, CANVAS, Camera, type CameraFollowOptions, CanvasTexture, Container, type ContainerFiltersShim, type CustomPassCallback, CustomPassObject, type CustomPassOptions, DisplayList, DisplayObject, type DisplayObjectType, type DisplaySemantics, type DisposableOwner, type EasingFn, type EasingName, Easings, EngineClock, type EngineClockSnapshot, EventEmitter, FilterMode, type FilterModeValue, type FlexAlign, type FlexContainerSpec, type FlexDir, type FlexItemRect, type FlexItemSpec, type FlexJustify, type FlexPadding, type FlexResult, Frame, Game, type GameConfig$1 as GameConfig, GameLoop, GameObjectFactory, type GlTextureHost, Graphics, HEX_MASK, type HiDpiScaleLike, ImageObject, type InputConfig, InputPlugin, type InputProvider, type InputRecorderPlugin, type InputTargetSpec, type InputTimelineOptions, type InputTimelinePlugin, InstancedBatchObject, type InstancedColumns, type JoystickDpad, type JoystickDpadOptions, type JoystickState, type JoystickVector, type JoystickViewport, type JoystickZone, type JoystickZonePredicate, type JoystickZoneRect, JsonCache, KeyboardPlugin, LoaderPlugin, type Matrix2D, type MsdfIconConfig, MsdfIconObject, NineSliceObject, PanelObject, type PanelOpenSide, type PanelStyleConfig, Pointer, type PointerSample, type RecordedInputEntry, type Rect2D, type RectClipMask, RectangleObject, Renderer2D, RendererGl, type RendererGlOptions, type RendererStats, RendererWebGpu, type RendererWebGpuOptions, type RequestWebGpuOptions, type RgbaColor, SURFACE_BAND, Scale, ScaleManager, Scene, type SceneCtor, type SceneDigest, type SceneDigestActiveFocus, type SceneDigestEngineSandbox, type SceneDigestNode, type SceneDigestOptions, type SceneDigestOverlayStats, type SceneDigestSandbox, type SceneDigestSurfaceEntry, type SceneDigestSurfaceSource, type SceneDigestSurfaces, type SceneHostLike, type SceneInput, type SceneLifecycleStats, SceneManager, Scenes, type SpringHandle, type SpringOptions, type SpriteSheetConfig, Stage as default, type Stage2DCustomImageHandler, type StageInputEvent, StageKernel, type StagePlugin, type StageRenderTarget, type StageRenderer, type SurfaceBand, type SurfaceBandName, type SurfaceBarrier, type SurfaceCancelContext, type SurfaceCancelDispatchResult, type SurfaceCancelResult, type SurfaceDomEntry, type SurfaceFocusContext, type SurfaceFocusDispatchResult, type SurfaceFocusResult, type SurfaceKeyContext, type SurfaceKeyDispatchResult, type SurfaceKeyResult, type SurfaceNodeInfo, type SurfaceNodeInput, type SurfaceScope, type SurfaceTree, TextObject, type TextStyleConfig, Texture, type TextureImageOptions, type TextureImageSource, TextureManager, TextureSource, TileSpriteObject, type TimelineClickOptions, type TimelineDragOptions, type TimelineKeyOptions, type TintMode, TintModes, type TweenHandle, TweenManager, type TweenOptions, type TweenStats, VirtualJoystick, type VirtualJoystickMode, type VirtualJoystickOptions, type VirtualJoystickStyle, WEBGL, WEBGPU, WHITE_RGB, type WebGpuBootstrapResult, type WebGpuCanvasContextLike, type WebGpuDeviceLike, type WorldView2D, type WrapContainerSpec, type WrapItemRect, type WrapItemSpec, type WrapJustify, type WrapResult, buildSceneDigest, clampJoystickOrigin, computeFlexLayout, computeJoystickVector, computeSurfaceDomZ, computeWrapLayout, createInputRecorder, createInputReplay, createInputTimeline, createMatrix2D, createSurfaceTree, isInJoystickZone, packColorAbgr, parseColor, pullJoystickOrigin, quantizeJoystickDpad, requestWebGpuDevice, resolvePadding, resolveSurfacePriority, rgbToCss, sanitizeTrackToken, surfacePriorityToDomZ };
|
|
329
|
+
export { AUTO, ActionMap, BLACK_RGB, type BlendMode, BlendModes, BlitterObject, type Bob$1 as Bob, CANVAS, Camera, type CameraFollowOptions, CanvasTexture, Container, type ContainerFiltersShim, type CustomPassCallback, CustomPassObject, type CustomPassOptions, DisplayList, DisplayObject, type DisplayObjectType, type DisplaySemantics, type DisposableOwner, type EasingFn, type EasingName, Easings, EngineClock, type EngineClockSnapshot, EventEmitter, FilterMode, type FilterModeValue, type FlexAlign, type FlexContainerSpec, type FlexDir, type FlexItemRect, type FlexItemSpec, type FlexJustify, type FlexPadding, type FlexResult, Frame, Game, type GameConfig$1 as GameConfig, GameLoop, GameObjectFactory, type GlTextureHost, Graphics, HEX_MASK, type HiDpiConfigureOptions, type HiDpiScaleLike, ImageObject, type InputConfig, InputPlugin, type InputProvider, type InputRecorderPlugin, type InputTargetSpec, type InputTimelineOptions, type InputTimelinePlugin, InstancedBatchObject, type InstancedColumns, type JoystickDpad, type JoystickDpadOptions, type JoystickState, type JoystickVector, type JoystickViewport, type JoystickZone, type JoystickZonePredicate, type JoystickZoneRect, JsonCache, KeyboardPlugin, LoaderPlugin, type Matrix2D, type MsdfIconConfig, MsdfIconObject, NineSliceObject, PanelObject, type PanelOpenSide, type PanelStyleConfig, Pointer, type PointerSample, type RecordedInputEntry, type Rect2D, type RectClipMask, RectangleObject, Renderer2D, RendererGl, type RendererGlOptions, type RendererStats, RendererWebGpu, type RendererWebGpuOptions, type RequestWebGpuOptions, type RgbaColor, SURFACE_BAND, Scale, ScaleManager, type ScaleMode, Scene, type SceneCtor, type SceneDigest, type SceneDigestActiveFocus, type SceneDigestEngineSandbox, type SceneDigestNode, type SceneDigestOptions, type SceneDigestOverlayStats, type SceneDigestSandbox, type SceneDigestSurfaceEntry, type SceneDigestSurfaceSource, type SceneDigestSurfaces, type SceneHostLike, type SceneInput, type SceneLifecycleStats, SceneManager, Scenes, type ShapeBatchColumns, ShapeBatchObject, type ShapeBatchStyleDefaults, type SpringHandle, type SpringOptions, type SpriteSheetConfig, Stage as default, type Stage2DCustomImageHandler, type StageInputEvent, StageKernel, type StagePlugin, type StageRenderTarget, type StageRenderer, type SurfaceBand, type SurfaceBandName, type SurfaceBarrier, type SurfaceCancelContext, type SurfaceCancelDispatchResult, type SurfaceCancelResult, type SurfaceDomEntry, type SurfaceFocusContext, type SurfaceFocusDispatchResult, type SurfaceFocusResult, type SurfaceKeyContext, type SurfaceKeyDispatchResult, type SurfaceKeyResult, type SurfaceNodeInfo, type SurfaceNodeInput, type SurfaceScope, type SurfaceTree, TextObject, type TextStyleConfig, Texture, type TextureImageOptions, type TextureImageSource, TextureManager, TextureSource, TileSpriteObject, type TimelineClickOptions, type TimelineDragOptions, type TimelineKeyOptions, type TintMode, TintModes, type TweenHandle, TweenManager, type TweenOptions, type TweenStats, type ViewportFitResult, VirtualJoystick, type VirtualJoystickMode, type VirtualJoystickOptions, type VirtualJoystickStyle, WEBGL, WEBGPU, WHITE_RGB, type WebGpuBootstrapResult, type WebGpuCanvasContextLike, type WebGpuDeviceLike, type WorldView2D, type WrapContainerSpec, type WrapItemRect, type WrapItemSpec, type WrapJustify, type WrapResult, buildSceneDigest, clampJoystickOrigin, computeFlexLayout, computeJoystickVector, computeSurfaceDomZ, computeWrapLayout, createInputRecorder, createInputReplay, createInputTimeline, createMatrix2D, createSurfaceTree, isInJoystickZone, packColorAbgr, parseColor, pullJoystickOrigin, quantizeJoystickDpad, requestWebGpuDevice, resolvePadding, resolveSurfacePriority, rgbToCss, sanitizeTrackToken, surfacePriorityToDomZ };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as rgbToCss, a as EventEmitter, c as Scale, d as WEBGL, f as WEBGPU, g as parseColor, h as packColorAbgr, i as CANVAS, l as Scenes, m as createMatrix2D, n as BLACK_RGB, o as FilterMode, p as WHITE_RGB, r as BlendModes, s as HEX_MASK, t as AUTO, u as TintModes } from "./types-
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
1
|
+
import { _ as rgbToCss, a as EventEmitter, c as Scale, d as WEBGL, f as WEBGPU, g as parseColor, h as packColorAbgr, i as CANVAS, l as Scenes, m as createMatrix2D, n as BLACK_RGB, o as FilterMode, p as WHITE_RGB, r as BlendModes, s as HEX_MASK, t as AUTO, u as TintModes } from "./types-CXsCvp1p.js";
|
|
2
|
+
import { _ as CanvasTexture, a as JsonCache, b as TextureManager, c as Scene, d as KeyboardPlugin, f as Pointer, g as SdfPanelBatcher, h as MsdfIconBatcher, i as GameObjectFactory, l as SceneManager, m as PixelAaBatcher, n as Game, o as LoaderPlugin, p as RendererGl, r as GameLoop, s as ScaleManager, t as EngineClock, u as InputPlugin, v as Frame, x as TextureSource, y as Texture } from "./game-Ds-cn2YI.js";
|
|
3
|
+
import { _ as TextObject, a as Container, c as DisplayObject, d as InstancedBatchObject, f as MsdfIconObject, g as ShapeBatchObject, h as RectangleObject, i as BlitterObject, l as Graphics, m as PanelObject, n as requestWebGpuDevice, o as CustomPassObject, p as NineSliceObject, r as Renderer2D, s as DisplayList, t as RendererWebGpu, u as ImageObject, v as TileSpriteObject, y as Camera } from "./renderer-webgpu-DJVQHR70.js";
|
|
4
4
|
import { ActionMap, StageKernel, createInputRecorder, createInputReplay, createInputTimeline } from "./kernel.js";
|
|
5
5
|
import { buildSceneDigest, sanitizeTrackToken } from "./trace.js";
|
|
6
6
|
import { computeFlexLayout, computeWrapLayout, resolvePadding } from "./flex.js";
|
|
@@ -39,6 +39,7 @@ const Stage2D = {
|
|
|
39
39
|
Graphics,
|
|
40
40
|
Blitter: BlitterObject,
|
|
41
41
|
InstancedBatch: InstancedBatchObject,
|
|
42
|
+
ShapeBatch: ShapeBatchObject,
|
|
42
43
|
Container,
|
|
43
44
|
CustomPass: CustomPassObject
|
|
44
45
|
},
|
|
@@ -46,4 +47,4 @@ const Stage2D = {
|
|
|
46
47
|
Display: { Canvas: { CanvasPool: { enableSmoothing() {} } } }
|
|
47
48
|
};
|
|
48
49
|
const Stage = Stage2D;
|
|
49
|
-
export { AUTO, ActionMap, BLACK_RGB, BlendModes, BlitterObject, CANVAS, Camera, CanvasTexture, Container, CustomPassObject, DisplayList, DisplayObject, Easings, EngineClock, EventEmitter, FilterMode, Frame, Game, GameLoop, GameObjectFactory, Graphics, HEX_MASK, ImageObject, InputPlugin, InstancedBatchObject, JsonCache, KeyboardPlugin, LoaderPlugin, MsdfIconBatcher, MsdfIconObject, NineSliceObject, PanelObject, PixelAaBatcher, Pointer, RectangleObject, Renderer2D, RendererGl, RendererWebGpu, SURFACE_BAND, Scale, ScaleManager, Scene, SceneManager, Scenes, SdfPanelBatcher, Stage, Stage as default, Stage2D, StageKernel, TextObject, Texture, TextureManager, TextureSource, TileSpriteObject, TintModes, TweenManager, VirtualJoystick, WEBGL, WEBGPU, WHITE_RGB, buildSceneDigest, clampJoystickOrigin, computeFlexLayout, computeJoystickVector, computeSurfaceDomZ, computeWrapLayout, createInputRecorder, createInputReplay, createInputTimeline, createMatrix2D, createSurfaceTree, isInJoystickZone, packColorAbgr, parseColor, pullJoystickOrigin, quantizeJoystickDpad, requestWebGpuDevice, resolvePadding, resolveSurfacePriority, rgbToCss, sanitizeTrackToken, surfacePriorityToDomZ };
|
|
50
|
+
export { AUTO, ActionMap, BLACK_RGB, BlendModes, BlitterObject, CANVAS, Camera, CanvasTexture, Container, CustomPassObject, DisplayList, DisplayObject, Easings, EngineClock, EventEmitter, FilterMode, Frame, Game, GameLoop, GameObjectFactory, Graphics, HEX_MASK, ImageObject, InputPlugin, InstancedBatchObject, JsonCache, KeyboardPlugin, LoaderPlugin, MsdfIconBatcher, MsdfIconObject, NineSliceObject, PanelObject, PixelAaBatcher, Pointer, RectangleObject, Renderer2D, RendererGl, RendererWebGpu, SURFACE_BAND, Scale, ScaleManager, Scene, SceneManager, Scenes, SdfPanelBatcher, ShapeBatchObject, Stage, Stage as default, Stage2D, StageKernel, TextObject, Texture, TextureManager, TextureSource, TileSpriteObject, TintModes, TweenManager, VirtualJoystick, WEBGL, WEBGPU, WHITE_RGB, buildSceneDigest, clampJoystickOrigin, computeFlexLayout, computeJoystickVector, computeSurfaceDomZ, computeWrapLayout, createInputRecorder, createInputReplay, createInputTimeline, createMatrix2D, createSurfaceTree, isInJoystickZone, packColorAbgr, parseColor, pullJoystickOrigin, quantizeJoystickDpad, requestWebGpuDevice, resolvePadding, resolveSurfacePriority, rgbToCss, sanitizeTrackToken, surfacePriorityToDomZ };
|
package/dist/joystick.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dt as PanelObject, J as Pointer, dt as Container, u as Scene } from "./game-Blm49zGH.js";
|
|
2
2
|
export type VirtualJoystickMode = 'floating' | 'fixed';
|
|
3
3
|
export interface JoystickVector {
|
|
4
4
|
/** Normalized X axis in [-1, 1] after deadzone remapping. */
|
package/dist/joystick.js
CHANGED
package/dist/kernel.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as createInputRecorder, C as RecordedInputEntry, D as TimelineClickOptions, E as StagePlugin, M as createInputTimeline, O as TimelineDragOptions, S as InputTimelinePlugin, T as StageKernel, _ as ActionMap, b as InputTargetSpec, j as createInputReplay, k as TimelineKeyOptions, v as InputProvider, w as StageInputEvent, x as InputTimelineOptions, y as InputRecorderPlugin } from "./game-Blm49zGH.js";
|
|
2
2
|
export { ActionMap, InputProvider, InputRecorderPlugin, InputTargetSpec, InputTimelineOptions, InputTimelinePlugin, RecordedInputEntry, StageInputEvent, StageKernel, StagePlugin, TimelineClickOptions, TimelineDragOptions, TimelineKeyOptions, createInputRecorder, createInputReplay, createInputTimeline };
|
package/dist/kernel.js
CHANGED
|
@@ -197,6 +197,10 @@ var StageKernel = class {
|
|
|
197
197
|
_updateScene(scene, timeMs, deltaMs) {
|
|
198
198
|
for (let i = 0; i < this.pluginOrder.length; i++) this.pluginOrder[i].plugin.update?.(scene, timeMs, deltaMs);
|
|
199
199
|
}
|
|
200
|
+
/** Internal per-scene prerender hook invoked ONLY by `Game.step()` (skipped during `stepSimOnly` / `fastForward`). */
|
|
201
|
+
_prerenderScene(scene, renderer, timeMs, deltaMs) {
|
|
202
|
+
for (let i = 0; i < this.pluginOrder.length; i++) this.pluginOrder[i].plugin.prerender?.(scene, renderer, timeMs, deltaMs);
|
|
203
|
+
}
|
|
200
204
|
/** Internal postrender hook invoked by `Game.step()`. */
|
|
201
205
|
_postrender(renderer) {
|
|
202
206
|
for (let i = 0; i < this.pluginOrder.length; i++) this.pluginOrder[i].plugin.postrender?.(renderer);
|
package/dist/lighting.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Mt as SceneHostLike, mt as CustomPassObject, xt as ImageObject } from "./game-Blm49zGH.js";
|
|
2
2
|
export type DayPhase = 'day' | 'dusk' | 'night';
|
|
3
3
|
export interface DayNightConfig {
|
|
4
4
|
dayLengthMs?: number;
|
package/dist/lighting.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as FilterMode, r as BlendModes } from "./types-
|
|
1
|
+
import { o as FilterMode, r as BlendModes } from "./types-CXsCvp1p.js";
|
|
2
2
|
// src/lighting.ts
|
|
3
3
|
function lerpChannel(a, b, t) {
|
|
4
4
|
return Math.round(a + (b - a) * t) & 255;
|
|
@@ -347,14 +347,9 @@ var Lighting2DSystem = class {
|
|
|
347
347
|
g.fillCircle(sx, sy, rad * frac);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
const
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
cam.transparent = false;
|
|
354
|
-
cam.setBackgroundColor(amb);
|
|
355
|
-
this.scene.renderer.renderToTarget(this.renderTarget, { sorted: () => [g] }, cam);
|
|
356
|
-
cam.transparent = prevTrans;
|
|
357
|
-
cam.backgroundColor = prevBg;
|
|
350
|
+
const rtCam = this.renderTarget.camera;
|
|
351
|
+
rtCam.setBackgroundColor(amb);
|
|
352
|
+
this.scene.renderer.renderToTarget(this.renderTarget, { sorted: () => [g] }, rtCam);
|
|
358
353
|
this.overlayImage.setDisplaySize(this.viewportW, this.viewportH);
|
|
359
354
|
return state;
|
|
360
355
|
}
|
package/dist/projection.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Mt as SceneHostLike, _t as DisplayObject, dt as Container } from "./game-Blm49zGH.js";
|
|
2
2
|
export interface Camera25DConfig {
|
|
3
3
|
viewportWidth: number;
|
|
4
4
|
viewportHeight: number;
|