@moku-labs/game 0.15.85 → 0.15.86
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/app/page.d.mts +1 -1
- package/dist/app/system.d.mts +3 -3
- package/dist/app.d.mts +3 -3
- package/dist/app.mjs +1 -1
- package/dist/assets.d.mts +1 -1
- package/dist/{commands-DKjkHK5b.d.mts → commands-CeBF2nRY.d.mts} +5 -5
- package/dist/control.d.mts +4 -4
- package/dist/{define-DcB9KOfh.d.mts → define-N-2nQNK_.d.mts} +2 -2
- package/dist/{headless-B8JIqsZk.d.mts → headless-DtDdn5gg.d.mts} +1 -1
- package/dist/{index-DTHVVLFB.d.mts → index-Bn0pFiae.d.mts} +3 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/inspect.d.mts +6 -6
- package/dist/jsx-dev-runtime.d.mts +1 -1
- package/dist/jsx-runtime.d.mts +1 -1
- package/dist/{runtime-B3CsJr_p.d.mts → runtime-DOvgFNLH.d.mts} +1 -1
- package/dist/{src-D1J2QlGK.mjs → src-BFa-zMmW.mjs} +1132 -89
- package/dist/testing.d.mts +4 -4
- package/dist/testing.mjs +1 -1
- package/dist/{types-DJCC9CAp.d.mts → types-C5gLBKbm.d.mts} +16 -6
- package/dist/{types-DfHytzox.d.mts → types-CbVXXqPs.d.mts} +130 -16
- package/dist/{types-DhECCgeT.d.mts → types-CyPbo757.d.mts} +4 -4
- package/dist/{types-DsRV-ph1.d.mts → types-DNWWlVky.d.mts} +2 -2
- package/dist/{types-CPWi_CLI.d.mts → types-OBpR0u05.d.mts} +1 -1
- package/dist/{visual-B76IxxTL.d.mts → visual-Di8ecxYD.d.mts} +6 -6
- package/dist/visual.d.mts +1 -1
- package/package.json +1 -1
package/dist/testing.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as createApp } from "./index-
|
|
3
|
-
import { b as memory, x as saveOf, y as WithGameState } from "./types-
|
|
4
|
-
import { a as createHeadless, i as ReproResult, n as HeadlessGame, o as runRepro, r as Repro, s as stepFrames, t as HeadlessApp } from "./headless-
|
|
1
|
+
import { Ar as ClockSource, Dn as FeaturePlugin, Fn as NodeTable, Mr as FakeClock, Rr as Json, Un as Hint, Wn as NodeFx, kn as AnyFlow, zn as Descriptor } from "./types-CbVXXqPs.mjs";
|
|
2
|
+
import { t as createApp } from "./index-Bn0pFiae.mjs";
|
|
3
|
+
import { b as memory, x as saveOf, y as WithGameState } from "./types-CyPbo757.mjs";
|
|
4
|
+
import { a as createHeadless, i as ReproResult, n as HeadlessGame, o as runRepro, r as Repro, s as stepFrames, t as HeadlessApp } from "./headless-DtDdn5gg.mjs";
|
|
5
5
|
import { AnyPluginInstance } from "@moku-labs/core";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/clock/fake.d.ts
|
package/dist/testing.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as flattenFeatures, on as type, rn as exit, t as createApp, tn as refuseStart } from "./src-
|
|
1
|
+
import { m as flattenFeatures, on as type, rn as exit, t as createApp, tn as refuseStart } from "./src-BFa-zMmW.mjs";
|
|
2
2
|
import { n as saveOf, t as memory } from "./memory-CWlqhS7l.mjs";
|
|
3
3
|
import { n as fakeClock } from "./fake-hnJcJeYf.mjs";
|
|
4
4
|
import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-CCiUwvlp.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { N as InputApi, R as I18nApi, X as StylesState, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, w as TextApi } from "./types-
|
|
1
|
+
import { $n as NumericFields, A as FilterSlotQuad, Fr as Api$6, Kn as AnchorTarget, Lr as Events$3, O as FilterSlot, Qn as MotionHandle, Rn as TypeTag, Rr as Json, Yn as Ease, Z as Api$4, ar as TrackSegment, at as PixiUniformGroup, b as Events$4, ei as Events$5, et as PixiFilter, fr as ComponentType, gt as FilterCache, ii as Api$1, ir as TrackOptions, it as PixiTexture, j as SyncApi, k as FilterSlotInputs, lr as AnyComponentValue, mi as Require, mr as Entity, mt as Point, nr as ReducedMotion, nt as PixiModule, pi as Events$2, rt as PixiSprite, s as Events$1, sr as AnyComponent, t as Api$5, tt as PixiGpuProgram, un as Api$2, ur as ComponentHandle, wr as Api$3, zn as Descriptor } from "./types-CbVXXqPs.mjs";
|
|
2
|
+
import { N as InputApi, R as I18nApi, X as StylesState, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, w as TextApi } from "./types-OBpR0u05.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
import { PluginCtx } from "@moku-labs/core";
|
|
5
5
|
|
|
@@ -1537,6 +1537,11 @@ type FilterDefinition = {
|
|
|
1537
1537
|
readonly id: string; /** The assembled WGSL: the engine's header, the uniform struct, the input bindings, the body. */
|
|
1538
1538
|
readonly source: string; /** The assembled GLSL ES 3.0: the engine's header, one `uniform` per uniform, the inputs, the body. */
|
|
1539
1539
|
readonly glsl: string;
|
|
1540
|
+
/**
|
|
1541
|
+
* The quad program: the same body on a mesh, in the pass that draws the canvas (renderer README, "Kept pictures").
|
|
1542
|
+
* `undefined` for a definition with inputs, a backdrop, or a body the rewrite does not fit.
|
|
1543
|
+
*/
|
|
1544
|
+
readonly quadSource: string | undefined;
|
|
1540
1545
|
readonly uniforms: readonly UniformSpec[];
|
|
1541
1546
|
readonly passes: number;
|
|
1542
1547
|
readonly padding: number | string; /** The second textures the body reads, in declaration order; empty for a filter with none. */
|
|
@@ -1851,7 +1856,7 @@ type UniformValues = Record<string, number | Float32Array>;
|
|
|
1851
1856
|
/**
|
|
1852
1857
|
* The uniform group of one of our filter instances, as the instance writes it.
|
|
1853
1858
|
*/
|
|
1854
|
-
type FilterUniforms = {
|
|
1859
|
+
type FilterUniforms = PixiUniformGroup & {
|
|
1855
1860
|
readonly uniforms: UniformValues;
|
|
1856
1861
|
};
|
|
1857
1862
|
/**
|
|
@@ -1868,7 +1873,8 @@ type FilterBody = {
|
|
|
1868
1873
|
inputs: InputsState | undefined; /** The dev mark drawn after the fallback by a stand-in (E5.4); `undefined` otherwise. */
|
|
1869
1874
|
readonly mark: OursBody | undefined; /** The definition's last area answer, filled in place; `some: false` for `undefined` (B4). */
|
|
1870
1875
|
readonly area: AreaBox; /** The value changed since the area was last asked: the next sync asks the definition again. */
|
|
1871
|
-
areaStale: boolean;
|
|
1876
|
+
areaStale: boolean; /** What the slot hands over for the quad, made once: the renderer compares it by identity. */
|
|
1877
|
+
quad: FilterSlotQuad | undefined;
|
|
1872
1878
|
} | {
|
|
1873
1879
|
readonly kind: "blur";
|
|
1874
1880
|
readonly filter: InstanceType<PixiModule["BlurFilter"]>; /** The fields the setters were last given; compared before a write. */
|
|
@@ -1908,10 +1914,12 @@ type FilterBody = {
|
|
|
1908
1914
|
calm: number;
|
|
1909
1915
|
};
|
|
1910
1916
|
/**
|
|
1911
|
-
* A probe of the warm-up (spec 27 F4): the Pixi filter handed to `renderer.sync.filters.warm`,
|
|
1917
|
+
* A probe of the warm-up (spec 27 F4): the Pixi filter handed to `renderer.sync.filters.warm`, the quad of a kind whose
|
|
1918
|
+
* body can run on one, and its teardown.
|
|
1912
1919
|
*/
|
|
1913
1920
|
type WarmProbe = {
|
|
1914
1921
|
readonly filter: PixiFilter;
|
|
1922
|
+
readonly quad: FilterSlotQuad | undefined;
|
|
1915
1923
|
destroy(): void;
|
|
1916
1924
|
};
|
|
1917
1925
|
/**
|
|
@@ -1988,7 +1996,9 @@ type InputsState = {
|
|
|
1988
1996
|
type CheckState = {
|
|
1989
1997
|
/** Bumped by `stopEffects`: an answer of an earlier run is ignored. */run: number; /** The checks were started on the running backend. */
|
|
1990
1998
|
started: boolean; /** Where each definition stands. */
|
|
1991
|
-
status: WeakMap<FilterDefinition, "pending" | "ok" | "broken">; /**
|
|
1999
|
+
status: WeakMap<FilterDefinition, "pending" | "ok" | "broken">; /** The definitions whose quad text compiled clean on this run's device: only they hand a quad over. */
|
|
2000
|
+
quads: WeakSet<FilterDefinition>; /** The program of each of them, built at the first ask: `GpuProgram.from` keys the whole source on every call. */
|
|
2001
|
+
programs: WeakMap<FilterDefinition, PixiGpuProgram>; /** Definitions still pending. */
|
|
1992
2002
|
waiting: number; /** Definitions started, for the `effects:checks` line. */
|
|
1993
2003
|
checked: number; /** Definitions that failed, for the `effects:checks` line. */
|
|
1994
2004
|
failed: number; /** GLSL compiles in flight under `KHR_parallel_shader_compile`. */
|
|
@@ -8725,6 +8725,17 @@ type HostInternal = {
|
|
|
8725
8725
|
onCanvasPass(fn: CanvasPassListener): void;
|
|
8726
8726
|
};
|
|
8727
8727
|
//#endregion
|
|
8728
|
+
//#region src/plugins/renderer/quad.d.ts
|
|
8729
|
+
/** The six vectors of the group, under the names Pixi's filter system fills. */
|
|
8730
|
+
type FilterGlobals = {
|
|
8731
|
+
uInputSize: Float32Array;
|
|
8732
|
+
uInputPixel: Float32Array;
|
|
8733
|
+
uInputClamp: Float32Array;
|
|
8734
|
+
uOutputFrame: Float32Array;
|
|
8735
|
+
uGlobalFrame: Float32Array;
|
|
8736
|
+
uOutputTexture: Float32Array;
|
|
8737
|
+
};
|
|
8738
|
+
//#endregion
|
|
8728
8739
|
//#region src/plugins/renderer/kept/types.d.ts
|
|
8729
8740
|
/**
|
|
8730
8741
|
* What a slot's filter lets the cache do with it: `"local"` (kept anywhere), `"placed"` (kept with its canvas origin
|
|
@@ -8845,6 +8856,24 @@ type KeptInternal = {
|
|
|
8845
8856
|
};
|
|
8846
8857
|
/** The two lives of a record. */
|
|
8847
8858
|
type KeptMode = "live" | "kept";
|
|
8859
|
+
/** What draws a kept picture beside its top: a sprite of the picture, or the mesh of a shaded record. */
|
|
8860
|
+
type KeptQuad = PixiSprite | PixiMesh;
|
|
8861
|
+
/**
|
|
8862
|
+
* What a shaded record draws through (F126 stage 2): made at its first entry and kept while the record lives, so an entry
|
|
8863
|
+
* after that makes nothing. While the record is not shaded the shader binds no texture of the record.
|
|
8864
|
+
*/
|
|
8865
|
+
type KeptShade = {
|
|
8866
|
+
/** Runs the filter's program over the padded picture, on the state's unit quad; destroyed with the record. */mesh: PixiMesh; /** The program of `quad` and what it binds: `gfu`, the padded picture, its sampler, and `quad.fu` when there is one. */
|
|
8867
|
+
shader: PixiShader; /** The global filter uniforms a filter pass would hand the body; static, uploaded only when a value changed. */
|
|
8868
|
+
readonly gfu: PixiUniformGroup; /** The arrays `gfu` reads, typed. */
|
|
8869
|
+
readonly vectors: FilterGlobals; /** The sprite of the record's picture, out of the tree while the mesh draws. */
|
|
8870
|
+
sprite: PixiSprite; /** The slot's quad the shader was built from. */
|
|
8871
|
+
quad: FilterSlotQuad; /** The texture source the shader binds. */
|
|
8872
|
+
source: PixiTextureSource; /** The `s1Version` the padded picture in `s3` was copied from; -1 when `s3` holds no copy. */
|
|
8873
|
+
copied: number; /** The device width of that copy: resizing `s3` in place blanks it without moving `s1Version`. */
|
|
8874
|
+
copiedWidth: number; /** The device height of that copy. */
|
|
8875
|
+
copiedHeight: number;
|
|
8876
|
+
};
|
|
8848
8877
|
/** One filtered view the cache watches. */
|
|
8849
8878
|
type KeptRecord = {
|
|
8850
8879
|
readonly entity: Entity; /** The view's top (`view.wrapper ?? view.object`) when the record was made; another top resets the record. */
|
|
@@ -8854,8 +8883,13 @@ type KeptRecord = {
|
|
|
8854
8883
|
slots: readonly FilterSlot[]; /** "local" or "placed": the worst category of the enabled slots; a "screen" slot makes no record (P4.1). */
|
|
8855
8884
|
category: "local" | "placed"; /** Sprite(stage 1): carries the filters while kept (P3.3). */
|
|
8856
8885
|
standIn: PixiSprite | undefined; /** A second Sprite(stage 1) whose filters are [keeper] only (P3.2). */
|
|
8857
|
-
keeperStandIn: PixiSprite | undefined; /** Sprite(stage 3), in the tree beside the top. */
|
|
8858
|
-
quad:
|
|
8886
|
+
keeperStandIn: PixiSprite | undefined; /** Sprite(stage 3), in the tree beside the top; the mesh of `shade` while the record is shaded. */
|
|
8887
|
+
quad: KeptQuad | undefined; /** What the record draws through while shaded; made at its first entry, kept while the record lives. */
|
|
8888
|
+
shade: KeptShade | undefined; /** The record draws through the mesh: `s3` holds the padded picture, not a filter output. */
|
|
8889
|
+
shaded: boolean; /** Drawn frames that owed stage 3 alone, without a gap of `CALM_AFTER` frames. */
|
|
8890
|
+
outputRuns: number; /** The `KeptState.frame` of the last of them. */
|
|
8891
|
+
outputAt: number; /** The `KeptState.frame` of the last shaded change. */
|
|
8892
|
+
shadedAt: number; /** The filter that runs stage 2 (P3.4). */
|
|
8859
8893
|
keeper: PixiFilter | undefined;
|
|
8860
8894
|
s1: PixiRenderTexture | undefined; /** One per input of the first enabled filter with inputs, else []. */
|
|
8861
8895
|
s2: PixiRenderTexture[];
|
|
@@ -8886,7 +8920,8 @@ type KeptRecord = {
|
|
|
8886
8920
|
* (P4.3), and the step must run also in a calm frame.
|
|
8887
8921
|
*/
|
|
8888
8922
|
coarse: boolean; /** This step's change of the record was a refining take and nothing else: read by `dirtyAbove`, cleared with the dirty flags. */
|
|
8889
|
-
refined: boolean; /**
|
|
8923
|
+
refined: boolean; /** This step changed what the mesh draws without a pass: read by `drawingChanged`, cleared with the dirty flags. */
|
|
8924
|
+
redrawn: boolean; /** Bytes a refused take asked for; the record is not offered again until they fit (P6.3). */
|
|
8890
8925
|
refused: number;
|
|
8891
8926
|
/**
|
|
8892
8927
|
* The picture was cut to the canvas at its take (F53): a move or another canvas size would show what it left out,
|
|
@@ -8952,7 +8987,9 @@ type KeptState = {
|
|
|
8952
8987
|
byEntity: Map<Entity, KeptRecord>;
|
|
8953
8988
|
byTop: Map<PixiContainer, KeptRecord>;
|
|
8954
8989
|
ranges: Map<Entity, RangeRecord>; /** A canvas-sized texture a released range left, reused by the next take of the same size (LRU-evictable, P6). */
|
|
8955
|
-
spare: PixiRenderTexture | undefined;
|
|
8990
|
+
spare: PixiRenderTexture | undefined; /** The one unit quad every mesh of the run draws on: 3 GPU buffers, not 3 per view. Made on demand. */
|
|
8991
|
+
quadGeometry: PixiMeshGeometry | undefined; /** The one sprite that copies every padded picture, its texture set before the render. Made on demand. */
|
|
8992
|
+
quadCopy: PixiSprite | undefined;
|
|
8956
8993
|
/**
|
|
8957
8994
|
* The textures of records whose views left, reused by the next take of the same size (F119); counted in `bytes`,
|
|
8958
8995
|
* destroyed first when a take needs room.
|
|
@@ -10082,7 +10119,7 @@ type PictureRequest = {
|
|
|
10082
10119
|
reject: (error: Error) => void;
|
|
10083
10120
|
};
|
|
10084
10121
|
declare namespace types_d_exports$2 {
|
|
10085
|
-
export { AdaptiveScale, Api$1 as Api, AspectRange, BitmapFontData, CanvasRestart, CaptureOptions, Captured, Config$2 as Config, CountingClasses, CoverFrame, CreateTextureOptions$1 as CreateTextureOptions, DebugApi, DebugSwitches, DemandFrame, DemandModule, DemandReason, DemandState, Deps$2 as Deps, DisplayAdapter, DisplayEntry, DisplaysApi, DrawCounter, Events$2 as Events, FilterCache, FilterSlot, FilterSlotInputs, FiltersApi, FontsApi, FrameColumns, FrameReadResult, FrameReadout, FrameRecord, FrameRing, HitBox, HostApi, HostInternal, HostModule, HostState, HudPartValue, KeptInternal, KeptModule, KeptRange, KeptState, KeptStats, KernelSlice$2 as KernelSlice, LayerEntry, LeaveApi, LeaveCover, LeaveLoader, LeaveLook, LegendEntry, LongFrameEntry, Modules, MonitorApi, MonitorConfig, MonitorCounts, MonitorDeps, MonitorInternal, MonitorModule, MonitorSections, MonitorState, NineBorders$1 as NineBorders, Orientation, OverlayEventDetail, OverlayLevelValue, OverlayMode, OverlayPhase, OverlayReport, OverlayValue, OverlayWhat, PassKind, PassRecord, PerfCause, PerfChange, PerfChangeEntry, PerfCollectorLine, PerfCounts, PerfDisplay, PerfEventLine, PerfEventName, PerfGapLine, PerfHeaderLine, PerfLogLine, PerfLongFrameLine, PerfMarkLine, PerfMeasured, PerfMonitorApi, PerfSampleLine, PerfSpikeLine, PerfStartupLine, PerfTelemetryLine, PerfThermalLine, PictureRect, PixiApplication, PixiBitmapFont, PixiBounds, PixiContainer, PixiFilter, PixiFilterManager, PixiGraphics, PixiMatrix, PixiMesh, PixiModule, PixiNineSliceSprite, PixiRectangle, PixiRenderTexture, PixiSprite, PixiTexture, PixiTextureSource, Point, PoolTrim, PoolTrimDetail, ProblemEventDetail, ProblemRule, Rect, RenderStats, RendererCtx, RendererKind, RetakeWhy, SafeArea, ShaderEventDetail, ShaderWhat, SliceFrame, State$2 as State, SyncApi, SyncCounts, SyncInternal, SyncModule, SyncState, TeardownScope, TextureProvider, TextureUsage, TexturesApi, Under, View, ViewKind, ViewportApi, ViewportInternal, ViewportModule, ViewportSize, ViewportState, WarmDetail, WhyEntry, WhyLive };
|
|
10122
|
+
export { AdaptiveScale, Api$1 as Api, AspectRange, BitmapFontData, CanvasRestart, CaptureOptions, Captured, Config$2 as Config, CountingClasses, CoverFrame, CreateTextureOptions$1 as CreateTextureOptions, DebugApi, DebugSwitches, DemandFrame, DemandModule, DemandReason, DemandState, Deps$2 as Deps, DisplayAdapter, DisplayEntry, DisplaysApi, DrawCounter, Events$2 as Events, FilterCache, FilterSlot, FilterSlotInputs, FilterSlotQuad, FiltersApi, FontsApi, FrameColumns, FrameReadResult, FrameReadout, FrameRecord, FrameRing, HitBox, HostApi, HostInternal, HostModule, HostState, HudPartValue, KeptInternal, KeptModule, KeptRange, KeptState, KeptStats, KernelSlice$2 as KernelSlice, LayerEntry, LeaveApi, LeaveCover, LeaveLoader, LeaveLook, LegendEntry, LongFrameEntry, Modules, MonitorApi, MonitorConfig, MonitorCounts, MonitorDeps, MonitorInternal, MonitorModule, MonitorSections, MonitorState, NineBorders$1 as NineBorders, Orientation, OverlayEventDetail, OverlayLevelValue, OverlayMode, OverlayPhase, OverlayReport, OverlayValue, OverlayWhat, PassKind, PassRecord, PerfCause, PerfChange, PerfChangeEntry, PerfCollectorLine, PerfCounts, PerfDisplay, PerfEventLine, PerfEventName, PerfGapLine, PerfHeaderLine, PerfLogLine, PerfLongFrameLine, PerfMarkLine, PerfMeasured, PerfMonitorApi, PerfSampleLine, PerfSpikeLine, PerfStartupLine, PerfTelemetryLine, PerfThermalLine, PictureRect, PixiApplication, PixiBitmapFont, PixiBounds, PixiContainer, PixiFilter, PixiFilterManager, PixiGpuProgram, PixiGraphics, PixiMatrix, PixiMesh, PixiMeshGeometry, PixiModule, PixiNineSliceSprite, PixiRectangle, PixiRenderTexture, PixiShader, PixiSprite, PixiTexture, PixiTextureSource, PixiUniformGroup, Point, PoolTrim, PoolTrimDetail, ProblemEventDetail, ProblemRule, Rect, RenderStats, RendererCtx, RendererKind, RetakeWhy, SafeArea, ShaderEventDetail, ShaderWhat, SliceFrame, State$2 as State, SyncApi, SyncCounts, SyncInternal, SyncModule, SyncState, TeardownScope, TextureProvider, TextureUsage, TexturesApi, Under, View, ViewKind, ViewportApi, ViewportInternal, ViewportModule, ViewportSize, ViewportState, WarmDetail, WhyEntry, WhyLive };
|
|
10086
10123
|
}
|
|
10087
10124
|
/**
|
|
10088
10125
|
* The part of Pixi the engine uses: the classes `sync` builds views from (a `Rectangle` frames the
|
|
@@ -10139,6 +10176,22 @@ type PixiNineSliceSprite = InstanceType<PixiModule["NineSliceSprite"]>;
|
|
|
10139
10176
|
* A Pixi mesh: what the rim-only nine-slice of a `NineSlice` with `hollow: true` is drawn with.
|
|
10140
10177
|
*/
|
|
10141
10178
|
type PixiMesh = InstanceType<PixiModule["Mesh"]>;
|
|
10179
|
+
/**
|
|
10180
|
+
* A Pixi GPU program: the WebGPU half of a shader. `effects` builds the one a filter's body runs on its quad.
|
|
10181
|
+
*/
|
|
10182
|
+
type PixiGpuProgram = InstanceType<PixiModule["GpuProgram"]>;
|
|
10183
|
+
/**
|
|
10184
|
+
* A Pixi uniform group: what a shader binds its numbers from.
|
|
10185
|
+
*/
|
|
10186
|
+
type PixiUniformGroup = InstanceType<PixiModule["UniformGroup"]>;
|
|
10187
|
+
/**
|
|
10188
|
+
* The geometry of a Pixi mesh: every shaded view of the kept cache draws through one unit quad of it.
|
|
10189
|
+
*/
|
|
10190
|
+
type PixiMeshGeometry = InstanceType<PixiModule["MeshGeometry"]>;
|
|
10191
|
+
/**
|
|
10192
|
+
* A Pixi shader: a program and what it binds, on a mesh. A shaded view of the kept cache holds one.
|
|
10193
|
+
*/
|
|
10194
|
+
type PixiShader = InstanceType<PixiModule["Shader"]>;
|
|
10142
10195
|
/**
|
|
10143
10196
|
* A Pixi graphics object: what a `Shape` component is drawn with, and what clips its children.
|
|
10144
10197
|
*/
|
|
@@ -11376,7 +11429,25 @@ type FilterSlot = {
|
|
|
11376
11429
|
* The filter shows a blurred copy of what is under it (the built-in `Blur`, a filter with inputs); an overlay over
|
|
11377
11430
|
* it holds the loops under it (spec 22).
|
|
11378
11431
|
*/
|
|
11379
|
-
blurs?: boolean;
|
|
11432
|
+
blurs?: boolean; /** The filter's own body as a program for its quad, for a kept view whose numbers change; filled by effects. */
|
|
11433
|
+
quad?: FilterSlotQuad;
|
|
11434
|
+
};
|
|
11435
|
+
/**
|
|
11436
|
+
* What the kept cache needs to draw a filter's own body on its quad; effects fills it, a game's own slot leaves it out.
|
|
11437
|
+
* The renderer holds no WGSL: it gets the built program and binds its own global filter uniforms and texture beside `fu`.
|
|
11438
|
+
* The object stands for the instance's life, so a list handed over again does not build a shader again.
|
|
11439
|
+
*
|
|
11440
|
+
* @example
|
|
11441
|
+
* ```ts
|
|
11442
|
+
* // `effects` hands a Tint on a kept row: 8 rows of the kind share the program, each binds its own numbers.
|
|
11443
|
+
* const quad: FilterSlotQuad = { program: tintProgram, fu: tintOfRow.group };
|
|
11444
|
+
* ctx.require(rendererPlugin).sync.filters.set(row, [{ filter: tintOfRow.filter, passes: 1, cache: "local", quad }]);
|
|
11445
|
+
* quad.program.vertex?.entryPoint; // "mainVertex"
|
|
11446
|
+
* ```
|
|
11447
|
+
*/
|
|
11448
|
+
type FilterSlotQuad = {
|
|
11449
|
+
/** The filter's body behind Pixi's mesh groups; `GpuProgram.from` of the text effects assembles and checks. */readonly program: PixiGpuProgram; /** The uniform group of the filter's instance; `undefined` for a filter that binds none. */
|
|
11450
|
+
readonly fu: PixiUniformGroup | undefined;
|
|
11380
11451
|
};
|
|
11381
11452
|
/**
|
|
11382
11453
|
* The stages of a filter's inputs and the seam of the kept-picture cache, on the filter's slot. `effects` fills it;
|
|
@@ -11510,18 +11581,27 @@ type FiltersApi = {
|
|
|
11510
11581
|
* frame. Answers `true` once every draw was made, `false` at once when there is nothing to warm (no device, a headless
|
|
11511
11582
|
* app, `warm: 0`), and `false` when the renderer stops first or a probe's render threw, which ends the warm-up of the
|
|
11512
11583
|
* application (`renderer:warm-failed`). A filter handed over again on the same device answers `true` at once when its
|
|
11513
|
-
* draws were made. The renderer never destroys the filter.
|
|
11584
|
+
* draws were made. The renderer never destroys the filter. On WebGPU a `quad` asks for the pipelines of the filter's body
|
|
11585
|
+
* on its mesh too, once, after the filter, so a kept view that later draws through it compiles
|
|
11586
|
+
* nothing in play; each of those draws runs in an error scope, and a program that does not fit logs
|
|
11587
|
+
* `renderer:warm-invalid` while the warm-up goes on. WebGL ignores it.
|
|
11514
11588
|
*
|
|
11515
11589
|
* @param filter - A filter the caller built and keeps alive while it waits.
|
|
11590
|
+
* @param quad - The filter's quad, for a kind whose body can run on one; `effects` leaves it out for a stage or a
|
|
11591
|
+
* fallback, and for a body the mesh cannot carry.
|
|
11516
11592
|
* @returns Whether the filter's pipelines were created.
|
|
11517
11593
|
* @example
|
|
11518
11594
|
* ```ts
|
|
11519
11595
|
* // `effects`, during the splash: a probe of the Frost's body, before the shop is ever opened.
|
|
11520
11596
|
* const renderer = ctx.require(rendererPlugin);
|
|
11521
|
-
*
|
|
11597
|
+
* // Four drawn frames later on WebGPU at `warm: 1` with a cleared canvas:
|
|
11598
|
+
* const warmed = await renderer.sync.filters.warm(frostProbe.filter); // true
|
|
11599
|
+
*
|
|
11600
|
+
* // A Tint's probe, whose body can also run on a kept view's quad: its pipelines are made with the filter's.
|
|
11601
|
+
* await renderer.sync.filters.warm(tintProbe.filter, tintProbe.quad); // true, one drawn frame after those four
|
|
11522
11602
|
* ```
|
|
11523
11603
|
*/
|
|
11524
|
-
warm(filter: PixiFilter): Promise<boolean>;
|
|
11604
|
+
warm(filter: PixiFilter, quad?: FilterSlotQuad): Promise<boolean>;
|
|
11525
11605
|
};
|
|
11526
11606
|
/**
|
|
11527
11607
|
* The debug switches of the renderer: the nine-slice outline, the pixel check of skipped frames, the kept pictures and
|
|
@@ -11541,7 +11621,8 @@ type DebugSwitches = {
|
|
|
11541
11621
|
/**
|
|
11542
11622
|
* One view of `sync.debug.why()`: the label the monitor names its view by; how it is drawn (`"direct"` is a stack of
|
|
11543
11623
|
* `AlphaFilter`s drawn by its quad, F54); why it is live, `null` when it is not; the still frames left before a take, 0
|
|
11544
|
-
* when it waits for none;
|
|
11624
|
+
* when it waits for none; the last take in the last full second, with the view whose mark caused it; and `quad` on a
|
|
11625
|
+
* kept view that runs on its filter's own shader.
|
|
11545
11626
|
*
|
|
11546
11627
|
* @example
|
|
11547
11628
|
* ```ts
|
|
@@ -11564,6 +11645,19 @@ type WhyEntry = {
|
|
|
11564
11645
|
why: RetakeWhy;
|
|
11565
11646
|
by: string | null;
|
|
11566
11647
|
} | null;
|
|
11648
|
+
/**
|
|
11649
|
+
* Present on a kept view drawn through its filter's own shader: its numbers change, and a change costs no pass.
|
|
11650
|
+
* The field is absent on every other view, a kept sprite included.
|
|
11651
|
+
*
|
|
11652
|
+
* @example
|
|
11653
|
+
* ```ts
|
|
11654
|
+
* // A lens whose angle a tween writes every frame: from its third write on, it runs on the canvas pass.
|
|
11655
|
+
* app.renderer.sync.debug.why()[0];
|
|
11656
|
+
* // { view: "Shape#1048590 shop:lens", mode: "kept", reason: null, calmIn: 0, retake: { why: "filter", by: null }, quad: true }
|
|
11657
|
+
* // A full second on: no take is left in the last one, `retake` is null and `quad` stays true.
|
|
11658
|
+
* ```
|
|
11659
|
+
*/
|
|
11660
|
+
quad?: true;
|
|
11567
11661
|
};
|
|
11568
11662
|
/**
|
|
11569
11663
|
* The debug drawing of the renderer, `app.renderer.sync.debug`. The switch outlines every
|
|
@@ -12218,10 +12312,18 @@ type AreaEntry = {
|
|
|
12218
12312
|
};
|
|
12219
12313
|
/**
|
|
12220
12314
|
* What one probe draw of the warm-up draws: a content subject of the renderer (the batch pipeline of sprites, with the
|
|
12221
|
-
* normal, the add and the screen blend, the graphics pipe's own, particles with either blend, distance-field text),
|
|
12222
|
-
*
|
|
12315
|
+
* normal, the add and the screen blend, the graphics pipe's own, particles with either blend, distance-field text), a
|
|
12316
|
+
* filter handed to `filters.warm`, or its body on its quad.
|
|
12317
|
+
*/
|
|
12318
|
+
type WarmSubject = "sprite" | "sprite-add" | "sprite-screen" | "graphics" | "particles-normal" | "particles-add" | "text" | PixiFilter | WarmQuad;
|
|
12319
|
+
/**
|
|
12320
|
+
* A filter's body on its quad, as a probe of the warm-up draws it: on WebGPU, once, after the filter, in the first of
|
|
12321
|
+
* the device's variants, so a kept view's first frame on its shader compiles nothing.
|
|
12223
12322
|
*/
|
|
12224
|
-
type
|
|
12323
|
+
type WarmQuad = {
|
|
12324
|
+
readonly filter: PixiFilter;
|
|
12325
|
+
readonly quad: FilterSlotQuad;
|
|
12326
|
+
};
|
|
12225
12327
|
/**
|
|
12226
12328
|
* Where a probe draws: straight onto the canvas, or into a texture under a filter of the module's own, each with or
|
|
12227
12329
|
* without a stencil clip. A WebGPU pipeline is keyed by all four.
|
|
@@ -12258,7 +12360,18 @@ type WarmObjects = {
|
|
|
12258
12360
|
graphics: PixiGraphics;
|
|
12259
12361
|
particlesNormal: PixiContainer;
|
|
12260
12362
|
particlesAdd: PixiContainer; /** A `BitmapText` of "0" in `WarmState.textFont`; made at its first draw. */
|
|
12261
|
-
text: PixiContainer | undefined;
|
|
12363
|
+
text: PixiContainer | undefined; /** The mesh a quad subject draws on; made at its first draw. */
|
|
12364
|
+
quad: WarmMesh | undefined;
|
|
12365
|
+
};
|
|
12366
|
+
/**
|
|
12367
|
+
* What a quad subject draws on. The module's own geometry, with the attributes of `kept`'s: a pipeline is keyed by the
|
|
12368
|
+
* layout, so it hits the same pipeline, and a probe over `kept`'s geometry would throw after a lost device.
|
|
12369
|
+
*/
|
|
12370
|
+
type WarmMesh = {
|
|
12371
|
+
mesh: PixiMesh;
|
|
12372
|
+
geometry: PixiMeshGeometry; /** The global filter uniforms of the probes: nothing reads what they draw. */
|
|
12373
|
+
gfu: PixiUniformGroup; /** The shader of the draw being made; destroyed with its draw. */
|
|
12374
|
+
shader: PixiShader | undefined;
|
|
12262
12375
|
};
|
|
12263
12376
|
/**
|
|
12264
12377
|
* The pipeline warm-up (F4): the queue of probe draws, the filters handed over and the promises waiting on them, the
|
|
@@ -12267,7 +12380,8 @@ type WarmObjects = {
|
|
|
12267
12380
|
type WarmState = {
|
|
12268
12381
|
/** The draws not yet drawn, from `head` on; emptied when the head reaches the end. */queue: WarmDraw[];
|
|
12269
12382
|
head: number; /** Every filter handed over on any device: queued again after a restore. */
|
|
12270
|
-
filters: Set<PixiFilter>; /** The
|
|
12383
|
+
filters: Set<PixiFilter>; /** The quad a filter was handed over with: queued with it, on WebGPU. */
|
|
12384
|
+
quads: Map<PixiFilter, FilterSlotQuad>; /** The filters whose draws are not all made yet: the draws left, and the promises to answer. */
|
|
12271
12385
|
waiting: Map<PixiFilter, {
|
|
12272
12386
|
left: number;
|
|
12273
12387
|
resolve: Array<(warmed: boolean) => void>;
|
|
@@ -14250,4 +14364,4 @@ type BundleCompanion = {
|
|
|
14250
14364
|
unload(bundle: string): void;
|
|
14251
14365
|
};
|
|
14252
14366
|
//#endregion
|
|
14253
|
-
export {
|
|
14367
|
+
export { MonitorConfig as $, NumericFields as $n, Config$7 as $r, PerfThermalLine as $t, FilterSlotQuad as A, Bookmark as An, ClockSource as Ar, PERF_GAP_BUCKETS as At, Parent as B, Effect as Bn, State$6 as Br, PerfDisplay as Bt, SceneSpec as C, slot as Cn, TagType as Cr, FrameRing as Ct, DebugSwitches as D, FeaturePlugin as Dn, State$4 as Dr, OverlayEventDetail as Dt, types_d_exports$1 as E, FeatureDescription as En, Explained as Er, MonitorSections as Et, HudPartValue as F, NodeTable as Fn, Api$5 as Fr, PerfCause as Ft, SpriteOptions as G, Answer as Gn, SaveDoc as Gr, PerfLogLine as Gt, ShapeValue as H, GuideOptions as Hn, Patch as Hr, PerfEventName as Ht, NineSlice$1 as I, RouteStep as In, Config$6 as Ir, PerfChange as It, TransformValue as J, DescriptionNode as Jn, SnapshotOf as Jr, PerfMeasured as Jt, SpriteValue as K, AnchorTarget as Kn, SaveUnreadableError as Kr, PerfLongFrameLine as Kt, NineSliceValue as L, SceneIdOf as Ln, Events$5 as Lr, PerfChangeEntry as Lt, WhyEntry as M, FlowGraph as Mn, FakeClock as Mr, PROBLEM_RULES as Mt, Display as N, FlowState as Nn, State$5 as Nr, PassKind as Nt, FilterSlot as O, FeatureTree as On, types_d_exports$4 as Or, OverlayWhat as Ot, HudPart as P, JournalEntry as Pn, types_d_exports$5 as Pr, PassRecord as Pt, Config$2 as Q, MotionHandle as Qn, Api$6 as Qr, PerfTelemetryLine as Qt, Overlay as R, TypeTag as Rn, Json as Rr, PerfCollectorLine as Rt, SceneDefinition as S, exit as Sn, SystemFor as Sr, FrameRecord as St, State$1 as T, type as Tn, Config$4 as Tr, MONITOR_SECTIONS as Tt, Sprite as U, Hint as Un, PlayerStateProvider as Ur, PerfGapLine as Ut, Shape as V, EffectOptions as Vn, types_d_exports$6 as Vr, PerfEventLine as Vt, SpriteBlend as W, NodeFx as Wn, ProviderCall as Wr, PerfHeaderLine as Wt, AdaptiveScale as X, Motion as Xn, RngApi as Xr, PerfSpikeLine as Xt, sprite as Y, Ease as Yn, StoreApi as Yr, PerfSampleLine as Yt, Api$1 as Z, MotionCause as Zn, RngState as Zr, PerfStartupLine as Zt, AnySceneProjection as _, State$3 as _n, Mut as _r, RetakeWhy as _t, Config as a, Config$8 as ai, ShaderWhat as an, TrackSegment as ar, PixiUniformGroup as at, Events$1 as b, contribution as bn, ResourceType as br, FrameReadResult as bt, LoadBundles as c, State$8 as ci, CanvasRestart as cn, AnyComponentType as cr, Under as ct, Manifest as d, types_d_exports$8 as di, BundlesOf as dn, ComponentSchema as dr, MonitorCounts as dt, Events$6 as ei, PoolTrimDetail as en, ProjectionMotion as er, PixiFilter as et, ReadyBundles as f, Config$9 as fi, Config$3 as fn, ComponentType as fr, RenderStats as ft, types_d_exports as g, Position as gn, FrameDiff as gr, FilterCache as gt, Usage as h, HudKeysOf as hn, EntitySnapshot as hr, ViewportSize as ht, BundleSpec as i, Api$7 as ii, ShaderEventDetail as in, TrackOptions as ir, PixiTexture as it, SyncApi as j, DefineNode as jn, Config$5 as jr, PERF_LOG_VERSION as jt, FilterSlotInputs as k, AnyFlow as kn, Api$4 as kr, PERF_CAUSES as kt, LoadReason as l, ThermalReading as li, DEMAND_REASONS as ln, AnyComponentValue as lr, types_d_exports$2 as lt, Tier as m, Require as mi, GameTypes as mn, Entity as mr, Point as mt, AssetsIo as n, State$7 as ni, ProblemRule as nn, ReducedMotion as nr, PixiModule as nt, DefineBundles as o, FrameRate as oi, WarmDetail as on, ViewHandle as or, PoolTrim as ot, State as p, Events$8 as pi, EmitterIdOf as pn, ComponentValue as pr, Orientation as pt, Transform as q, ChangeHook as qn, Snapshot as qr, PerfMarkLine as qt, BundleMap as r, types_d_exports$7 as ri, SHADER_WHATS as rn, SceneSwitch as rr, PixiSprite as rt, Events as s, RateChange as si, CANVAS_RESTARTS as sn, AnyComponent as sr, State$2 as st, Api as t, PauseReason as ti, ProblemEventDetail as tn, ProjectionSpec as tr, PixiGpuProgram as tt, LoadResult as u, Time as ui, Api$2 as un, ComponentHandle as ur, Captured as ut, Config$1 as v, TextStylesOf as vn, Narrowed as vr, WhyLive as vt, ScenesApi as w, to as wn, Api$3 as wr, LongFrameEntry as wt, LayerMap as x, defineFlow as xn, SystemDefinition as xr, FrameReadout as xt, DefineScene as y, types_d_exports$3 as yn, QueryTerm as yr, FrameColumns as yt, OverlayValue as z, Descriptor as zn, Root as zr, PerfCounts as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as AudioContextLike, s as Config$4 } from "./types-
|
|
3
|
-
import { R as I18nApi, U as StringTable, W as TextKey } from "./types-
|
|
4
|
-
import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-
|
|
1
|
+
import { Ar as ClockSource, Dn as FeaturePlugin, Gr as SaveDoc, Ir as Config, Jr as SnapshotOf, Mr as FakeClock, Q as Config$2, Rn as TypeTag, Rr as Json, Ur as PlayerStateProvider, Wr as ProviderCall, a as Config$3, d as Manifest, fn as Config$1, kn as AnyFlow, n as AssetsIo, nt as PixiModule, pt as Orientation } from "./types-CbVXXqPs.mjs";
|
|
2
|
+
import { o as AudioContextLike, s as Config$4 } from "./types-C5gLBKbm.mjs";
|
|
3
|
+
import { R as I18nApi, U as StringTable, W as TextKey } from "./types-OBpR0u05.mjs";
|
|
4
|
+
import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-Bn0pFiae.mjs";
|
|
5
5
|
import { AnyPluginInstance } from "@moku-labs/core";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/model/store/providers/memory.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as HeadlessApp } from "./headless-
|
|
1
|
+
import { Rr as Json, qr as Snapshot } from "./types-CbVXXqPs.mjs";
|
|
2
|
+
import { t as HeadlessApp } from "./headless-DtDdn5gg.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
|
|
5
5
|
//#region src/plugins/flow/doors/types.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as
|
|
1
|
+
import { $n as NumericFields, Cr as TagType, Gn as Answer, J as TransformValue, Kn as AnchorTarget, Qn as MotionHandle, Rr as Json, Un as Hint, Xn as Motion, Yn as Ease, Z as Api$3, Zn as MotionCause, cr as AnyComponentType, er as ProjectionMotion, fr as ComponentType, ht as ViewportSize, ii as Api, kr as Api$5, lr as AnyComponentValue, mi as Require, mr as Entity, nr as ReducedMotion, or as ViewHandle, qn as ChangeHook, s as Events$1, sr as AnyComponent, t as Api$4, un as Api$1, wr as Api$2, zn as Descriptor } from "./types-CbVXXqPs.mjs";
|
|
2
2
|
import { Log } from "@moku-labs/common/browser";
|
|
3
3
|
import { PluginCtx } from "@moku-labs/core";
|
|
4
4
|
import { Node, Yoga } from "yoga-layout/load";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { P as AnimApi, r as UiApi } from "./types-
|
|
3
|
-
import { N as InputApi } from "./types-
|
|
4
|
-
import { r as Repro } from "./headless-
|
|
5
|
-
import { a as InputOf, r as ControlApp } from "./types-
|
|
6
|
-
import { t as commands } from "./commands-
|
|
1
|
+
import { Fr as Api$2, Qr as Api$3, Z as Api, kr as Api$4, wr as Api$1 } from "./types-CbVXXqPs.mjs";
|
|
2
|
+
import { P as AnimApi, r as UiApi } from "./types-C5gLBKbm.mjs";
|
|
3
|
+
import { N as InputApi } from "./types-OBpR0u05.mjs";
|
|
4
|
+
import { r as Repro } from "./headless-DtDdn5gg.mjs";
|
|
5
|
+
import { a as InputOf, r as ControlApp } from "./types-DNWWlVky.mjs";
|
|
6
|
+
import { t as commands } from "./commands-CeBF2nRY.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/visual/types.d.ts
|
|
9
9
|
/** The base commands of the `/control` door, keyed by their short names. */
|
package/dist/visual.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as VisualApp, c as VisualRenderer, d as VisualStart, f as VisualStep, h as VisualTolerance, i as CheckpointResult, l as VisualReport, m as VisualTestResult, n as runVisualTests, o as VisualOptions, p as VisualTest, r as defineVisualTest, s as VisualPage, t as parseVisualArgv, u as VisualSetup } from "./visual-
|
|
1
|
+
import { a as VisualApp, c as VisualRenderer, d as VisualStart, f as VisualStep, h as VisualTolerance, i as CheckpointResult, l as VisualReport, m as VisualTestResult, n as runVisualTests, o as VisualOptions, p as VisualTest, r as defineVisualTest, s as VisualPage, t as parseVisualArgv, u as VisualSetup } from "./visual-Di8ecxYD.mjs";
|
|
2
2
|
export { type CheckpointResult, type VisualApp, type VisualOptions, type VisualPage, type VisualRenderer, type VisualReport, type VisualSetup, type VisualStart, type VisualStep, type VisualTest, type VisualTestResult, type VisualTolerance, defineVisualTest, parseVisualArgv, runVisualTests };
|