@moku-labs/game 0.15.152 → 0.15.154

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/README.md CHANGED
@@ -236,7 +236,7 @@ createApp({ plugins: [...screen, effectsPlugin, audioPlugin, platformPlugin] });
236
236
  | [`i18n`](./src/plugins/i18n/README.md) | screen | Strings as data, ICU messages, compiled per locale; a sub-feature's strings travel with its bundle |
237
237
  | [`text`](./src/plugins/text/README.md) | screen | MSDF text, styles, inline tags and icons |
238
238
  | [`ui`](./src/plugins/ui/README.md) | screen | Screens in JSX, Yoga layout, popups, styles |
239
- | [`effects`](./src/plugins/effects/README.md) | opt-in | Particles and filters as components, WGSL and GLSL; the effect set `Flash`, `Grade`, `Vignette`, `RevealLine`, `RevealRound`, `Dissolve`, `Shine`, `Aura`, `Fold`, `Bloom` ready to list ([set](./src/plugins/effects/set/README.md)) |
239
+ | [`effects`](./src/plugins/effects/README.md) | opt-in | Particles and filters as components, WGSL and GLSL; the effect set `Flash`, `Grade`, `Vignette`, `RevealLine`, `RevealRound`, `Dissolve`, `Shine`, `Aura`, `Fold`, `Bloom`, `Pixelate`, `GradientMap`, `Wave`, `Mirror`, `Shadow` ready to list ([set](./src/plugins/effects/set/README.md)) |
240
240
  | [`audio`](./src/plugins/audio/README.md) | opt-in | Music and sound effects on three buses |
241
241
  | [`platform`](./src/plugins/platform/README.md) | opt-in | The phone: Back button, haptics, keep-awake |
242
242
 
@@ -1,4 +1,4 @@
1
- import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-Chv5YFWw.mjs";
1
+ import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-CEuTMLxR.mjs";
2
2
 
3
3
  //#region src/app/page.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  import { Yr as PlayerStateProvider } from "../types-VJcIdmHU.mjs";
2
- import { Et as PlatformProvider } from "../index-DbmGsQgB.mjs";
3
- import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-Chv5YFWw.mjs";
2
+ import { jt as PlatformProvider } from "../index-pi4DqEyw.mjs";
3
+ import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-CEuTMLxR.mjs";
4
4
  import { Back, Haptics, KeepAwake, Lifecycle, Store } from "@moku-labs/system";
5
5
 
6
6
  //#region src/app/system.d.ts
package/dist/app.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Wr as Json } from "./types-VJcIdmHU.mjs";
2
2
  import { J as StringTable } from "./types-BaarAgv8.mjs";
3
- import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-Chv5YFWw.mjs";
3
+ import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-CEuTMLxR.mjs";
4
4
  import { AnyPluginInstance } from "@moku-labs/core";
5
5
 
6
6
  //#region src/app/define.d.ts
package/dist/app.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { Gt as audioPlugin, Pt as effectsPlugin, Q as platformPlugin, i as screen, t as createApp, w as flattenFeatures } from "./src-nsjSGfQQ.mjs";
1
+ import { Xt as audioPlugin, i as screen, k as flattenFeatures, rt as platformPlugin, t as createApp, zt as effectsPlugin } from "./src-CAvbU88U.mjs";
2
2
  import { t as memory } from "./memory-DeD9wis6.mjs";
3
3
  import { n as fakeClock, r as isFakeClock } from "./fake-hnJcJeYf.mjs";
4
4
  //#region src/app/define.ts
@@ -1,5 +1,5 @@
1
1
  import { $r as Snapshot, Ar as Api$4, Fn as Bookmark, Fr as Api$1, O as DebugSwitches, Q as Api$3, Rn as FlowState, fi as FrameRate, gi as Time, ii as Api$2, mt as Captured, t as Api, ti as StoreApi, w as ScenesApi } from "./types-VJcIdmHU.mjs";
2
- import { W as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-CtcQGXWl.mjs";
2
+ import { Y as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-BW8Ml4o2.mjs";
3
3
  import { R as InputApi } from "./types-BaarAgv8.mjs";
4
4
  import { t as HeadlessApp } from "./headless-CO19o31k.mjs";
5
5
  import { i as ControlApp, r as Command } from "./types-CbSTnp8T.mjs";
@@ -1,6 +1,6 @@
1
1
  import { t as HeadlessApp } from "./headless-CO19o31k.mjs";
2
2
  import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-CbSTnp8T.mjs";
3
- import { t as commands } from "./commands-BjKkbgWs.mjs";
3
+ import { t as commands } from "./commands-1pXMU61X.mjs";
4
4
  import { t as defineCommand } from "./define-DoJN_Ctu.mjs";
5
5
 
6
6
  //#region src/plugins/flow/doors/dev.d.ts
@@ -1,5 +1,5 @@
1
1
  import { $ as Config$6, Ar as Api$6, B as OverlayValue, C as SceneSpec, Cn as TextStylesOf, Cr as Mut, Dr as SystemDefinition, Dt as FrameRing, En as defineFlow, Er as ResourceType, Et as FrameRecord, Fr as Api$1, Gn as Effect, Gr as Root, Hn as SceneIdOf, Hr as Config$5, I as HudPartValue, In as DefineNode, Jn as Hint, Jr as Patch, K as SpriteOptions, Kn as EffectOptions, Kr as State$5, Lr as Config$2, Lt as PassKind, Mn as FeaturePlugin, Nn as FeatureTree, Nr as State$9, Or as SystemFor, Q as Api$4, R as NineSliceValue, S as SceneDefinition, Sn as TextFormatsOf, T as State$7, Tr as QueryTerm, U as ShapeValue, Wn as Descriptor, Wr as Json, X as sprite, Y as TransformValue, Zn as Answered, _ as AnySceneProjection, _n as EmitterIdOf, a as Config$1, ai as Config$4, ar as NumericFields, bi as Require, c as LoadBundles, ci as State$4, cr as ReducedMotion, di as Config$8, er as DescriptionNode, f as ReadyBundles, gn as Config$3, gr as ComponentHandle, hi as ThermalReading, hn as BundlesOf, i as BundleSpec, ii as Api$3, jn as FeatureDescription, jr as Config$9, kr as TagType, l as LoadReason, lt as State$6, m as Tier, mi as State$8, mn as Api$2, ni as RngApi, o as DefineBundles, oi as Events, or as ProjectionMotion, p as State$1, pi as RateChange, q as SpriteValue, qn as GuideOptions, r as BundleMap, si as PauseReason, sr as ProjectionSpec, t as Api, ti as StoreApi, tr as Ease, u as LoadResult, ui as Api$5, v as Config$7, vi as Config$10, vn as GameTypes, vr as ComponentType, w as ScenesApi, wr as Narrowed, x as LayerMap, xn as State$3, y as DefineScene, yi as Events$1, yn as HudKeysOf, yr as ComponentValue, yt as ViewportSize, zr as State$2 } from "./types-VJcIdmHU.mjs";
2
- import { $ as HapticKind, A as EmitterDefinition, B as GlowValue, C as FoldValue, D as ShineValue, E as RevealRoundValue, F as DisplacementValue, G as AnimPlayerValue, H as OutlineValue, J as MotionKeyframe, K as Config$11, L as FilterComponent, M as AlphaValue, N as BlurValue, O as VignetteValue, P as ColorMatrixValue, R as FilterSpec, S as FlashValue, T as RevealLineValue, U as UniformDeclaration, V as NoiseValue, W as AnimApi, X as Target, Y as State$10, _ as State$12, a as AudioApi, b as BloomValue, bt as OverlayApi, c as MusicDescriptor, d as State$11, et as SfxDescriptor, f as VolumesFor, h as EffectsApi, j as EmitterValue, k as EmitterConfig, l as MusicOptions, lt as play, m as Config$13, n as State$13, q as FramesValue, r as UiApi, rt as defineAnimation, s as Config$12, t as Config$14, tt as Step, w as GradeValue, x as DissolveValue, y as AuraValue, z as FilterValueOf } from "./types-CtcQGXWl.mjs";
2
+ import { $ as MotionKeyframe, A as ShadowValue, B as DisplacementValue, C as FoldValue, D as PixelateValue, E as MirrorValue, F as EmitterDefinition, G as GlowValue, H as FilterComponent, I as EmitterValue, J as UniformDeclaration, K as NoiseValue, L as AlphaValue, M as VignetteValue, N as WaveValue, O as RevealLineValue, P as EmitterConfig, Q as FramesValue, R as BlurValue, S as FlashValue, T as GradientMapValue, Tt as OverlayApi, U as FilterSpec, W as FilterValueOf, X as AnimPlayerValue, Y as AnimApi, Z as Config$11, _ as State$12, a as AudioApi, at as SfxDescriptor, b as BloomValue, c as MusicDescriptor, ct as defineAnimation, d as State$11, et as State$10, f as VolumesFor, h as EffectsApi, it as HapticKind, j as ShineValue, k as RevealRoundValue, l as MusicOptions, m as Config$13, mt as play, n as State$13, ot as Step, q as OutlineValue, r as UiApi, s as Config$12, t as Config$14, tt as Target, w as GradeValue, x as DissolveValue, y as AuraValue, z as ColorMatrixValue } from "./types-BW8Ml4o2.mjs";
3
3
  import { $ as ResolvedStyle, A as TextFormats, C as Point, E as TextBind, G as Message, H as Config$15, I as defineComponent, K as Part, L as Config$16, M as TextStyleInput, N as TextStyles, P as TextValue, Q as IsFlags, R as InputApi, T as TextApi, U as I18nApi, V as Argument, W as IntlKit, X as TypedTr, Y as TextKey, b as Config$17, et as Style, g as IntrinsicElementsFor, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, nt as TextTagStyle, q as State$14, rt as WhenFlags, s as PopupComponent, v as BindField, w as State$16, x as CountdownValue, y as BindOptions, z as State$15 } from "./types-BaarAgv8.mjs";
4
4
  import { Log } from "@moku-labs/common/browser";
5
5
  import { PluginCtx } from "@moku-labs/core";
@@ -1694,8 +1694,10 @@ declare function music(key: string | null, options?: MusicOptions): Descriptor<v
1694
1694
  */
1695
1695
  declare const Glow: FilterComponent<GlowValue>;
1696
1696
  /**
1697
- * A ring of `thickness` pixels in `color` around the opaque pixels of a view and its subtree; the
1698
- * view is padded by its live `thickness`. One render pass per apply.
1697
+ * A hard ring of `thickness` CSS px in `color` around the opaque pixels of a view and its subtree,
1698
+ * the largest alpha of 12 probes on that ring; the view is padded by its live `thickness`. One
1699
+ * render pass per apply; on WebGPU a tween of `alpha` draws on the view's own quad, no pass, from
1700
+ * its third frame.
1699
1701
  *
1700
1702
  * @example
1701
1703
  * ```ts
@@ -1910,6 +1912,55 @@ declare const Fold: FilterComponent<FoldValue>;
1910
1912
  */
1911
1913
  declare const Grade: FilterComponent<GradeValue>;
1912
1914
  //#endregion
1915
+ //#region src/plugins/effects/set/gradient-map.d.ts
1916
+ /**
1917
+ * A view recoloured by its light: its Rec. 709 luma maps black to `dark`, a half to `middle` and white to `light`,
1918
+ * mixed straight between them, and `amount` (0..1) mixes the view's own colour to the mapped one. The alpha is kept.
1919
+ * For a sepia memory, a night tint, a duotone. List it in a feature's `filters`, as a game's own filter. One render
1920
+ * pass, one sample; on WebGPU a tween of `amount` draws on the view's own quad, no pass, from its third frame.
1921
+ *
1922
+ * @example
1923
+ * ```ts
1924
+ * // An old memory turns sepia, then its colour comes back.
1925
+ * GradientMap({ dark: 0x2b1a0e, middle: 0x9c6b3c, light: 0xf5e6c8 }).value.amount; // 1
1926
+ * view.tween(GradientMap, { amount: 0 }, { ms: 400 });
1927
+ * ```
1928
+ */
1929
+ declare const GradientMap: FilterComponent<GradientMapValue>;
1930
+ //#endregion
1931
+ //#region src/plugins/effects/set/mirror.d.ts
1932
+ /**
1933
+ * A view flipped in place: `axis: 1` top to bottom, `axis: 0` left to right, as `Fold`'s axes. `alpha` (0..1) fades
1934
+ * it; `fade` above 0 eases it out to nothing at that share of the view from its mirror line, the top edge for axis 1
1935
+ * and the left edge for axis 0; 0 keeps it whole. It draws inside its own view, no padding: put it on a copy of a view
1936
+ * placed under the original for a reflection on a floor or water. List it in a feature's `filters`, as a game's own
1937
+ * filter. One render pass, one sample; on WebGPU a tween draws on the view's own quad, no pass, from its third frame.
1938
+ *
1939
+ * @example
1940
+ * ```ts
1941
+ * // The copy of a vase under it is its reflection on the polished floor, gone at half its height.
1942
+ * Mirror({ alpha: 0.4, fade: 0.5 }).value.axis; // 1
1943
+ * view.tween(Mirror, { alpha: 0 }, { ms: 300 });
1944
+ * ```
1945
+ */
1946
+ declare const Mirror: FilterComponent<MirrorValue>;
1947
+ //#endregion
1948
+ //#region src/plugins/effects/set/pixelate.d.ts
1949
+ /**
1950
+ * A view drawn in square blocks `size` CSS px wide, counted from its top-left, each the colour of the view at the
1951
+ * block's centre; a `size` of 1 or less draws the view as it is. For a memory that breaks up, a picture that sharpens
1952
+ * as it loads. List it in a feature's `filters`, as a game's own filter. One render pass, one sample; on WebGPU a tween
1953
+ * draws on the view's own quad, no pass, from its third frame.
1954
+ *
1955
+ * @example
1956
+ * ```ts
1957
+ * // A blurred memory sharpens: its blocks shrink from 8 px to none.
1958
+ * Pixelate().value.size; // 8
1959
+ * view.tween(Pixelate, { size: 1 }, { ms: 600 });
1960
+ * ```
1961
+ */
1962
+ declare const Pixelate: FilterComponent<PixelateValue>;
1963
+ //#endregion
1913
1964
  //#region src/plugins/effects/set/reveal-line.d.ts
1914
1965
  /**
1915
1966
  * A view shown up to a straight line that sweeps across it: `progress` 0 hides all of it, 1 shows all of it, the line
@@ -1945,6 +1996,25 @@ declare const RevealLine: FilterComponent<RevealLineValue>;
1945
1996
  */
1946
1997
  declare const RevealRound: FilterComponent<RevealRoundValue>;
1947
1998
  //#endregion
1999
+ //#region src/plugins/effects/set/shadow.d.ts
2000
+ /**
2001
+ * A drop shadow of `color` at `alpha` (0..1) under the shape of a view and its subtree, moved by `x`, `y` CSS px and
2002
+ * blurred `soft` CSS px wide; the view is drawn over it. The view is padded by 8 px, the shadow's reach: `soft` is at
2003
+ * most 8, and `x` and `y` are clamped so `|x| + soft` and `|y| + soft` stay within 8. 9 samples of the shape on a
2004
+ * ring, where a blurred copy takes a chain, so a wide `soft` bands a little. For a card lifted off the table, a piece being dragged. List it
2005
+ * in a feature's `filters`, as a game's own filter. One render pass; on WebGPU a tween draws on the view's own quad,
2006
+ * no pass, from its third frame.
2007
+ *
2008
+ * @example
2009
+ * ```ts
2010
+ * // A picked card lifts: its shadow drops further and softens.
2011
+ * Shadow().value.y; // 4
2012
+ * Shadow.filter.padding; // 8
2013
+ * view.tween(Shadow, { y: 5, soft: 3 }, { ms: 160 });
2014
+ * ```
2015
+ */
2016
+ declare const Shadow: FilterComponent<ShadowValue>;
2017
+ //#endregion
1948
2018
  //#region src/plugins/effects/set/shine.d.ts
1949
2019
  /**
1950
2020
  * A band of light across a view: `position` is where the band stands along its sweep, -0.5 before the view and 1.5 past
@@ -1979,6 +2049,23 @@ declare const Shine: FilterComponent<ShineValue>;
1979
2049
  */
1980
2050
  declare const Vignette: FilterComponent<VignetteValue>;
1981
2051
  //#endregion
2052
+ //#region src/plugins/effects/set/wave.d.ts
2053
+ /**
2054
+ * A view swaying in a sine wave: at `angle` 0 its rows move left and right, at `π / 2` its columns move up and down,
2055
+ * by up to `amplitude` CSS px, one wave every `wavelength` CSS px, shifted by `phase` (radians). What would come from
2056
+ * outside the view is transparent. There is no time in the shader: a tween of `phase` by a full turn, repeated, makes
2057
+ * it flow. For water, heat, a dream. List it in a feature's `filters`, as a game's own filter. One render pass, one
2058
+ * sample; on WebGPU a tween draws on the view's own quad, no pass, from its third frame.
2059
+ *
2060
+ * @example
2061
+ * ```ts
2062
+ * // A reflection in a pond ripples for as long as the scene is open.
2063
+ * Wave({ amplitude: 3 }).value.wavelength; // 48
2064
+ * view.tween(Wave, { phase: Math.PI * 2 }, { ms: 1200, ease: "linear", repeat: "forever" });
2065
+ * ```
2066
+ */
2067
+ declare const Wave: FilterComponent<WaveValue>;
2068
+ //#endregion
1982
2069
  //#region src/plugins/effects/particles/component.d.ts
1983
2070
  /**
1984
2071
  * A particle effect on an entity. A `burst` effect emits when the component appears or its
@@ -2310,4 +2397,4 @@ declare const screen: readonly [import("@moku-labs/core").PluginInstance<"world"
2310
2397
  };
2311
2398
  }> & Record<never, never>, import("@moku-labs/core").PluginInstance<"text", Config$17, State$16, TextApi, {}> & Record<never, never>, import("@moku-labs/core").PluginInstance<"ui", Config$14, State$13, UiApi, {}> & Record<never, never>];
2312
2399
  //#endregion
2313
- export { Traced as $, messageDuration as A, inputPlugin as At, Draggable as B, Countdown as Bt, Noise as C, rendererPlugin as Ct, defineStyle as D, types_d_exports as Dt, resolve as E, PlatformProvider as Et, Frames as F, clockPlugin as Ft, PointerOver as G, label as Gt, Held as H, bind as Ht, defineScene as I, audioPlugin as It, Swipeable as J, Pressable as K, defineBundles as L, assetsPlugin as Lt, defineMotion as M, flowPlugin as Mt, AnimPlayer as N, effectsPlugin as Nt, tr as O, modelPlugin as Ot, Animation as P, debugPlugin as Pt, Traceable as Q, load as R, animPlugin as Rt, Glow as S, scenesPlugin as St, music as T, BackResult as Tt, Hovered as U, defineTextFormats as Ut, DropTarget as V, Text as Vt, Pointer as W, defineTextStyles as Wt, Tappable as X, TapValue as Y, Touchable as Z, defineFilter as _, flattenFeatures as _t, defineEmitter as a, Order as at, ColorMatrix as b, timePlugin as bt, Shine as c, mut as ct, Grade as d, tag as dt, PASS_KINDS as et, Fold as f, defineEffect as ft, Aura as g, defineFeature as gt, Bloom as h, schedule as ht, screen as i, Now as it, cubicBezier as j, i18nPlugin as jt, messageArgument as k, lifecyclePlugin as kt, RevealRound as l, resource as lt, Dissolve as m, hint as mt, createPlugin as n, Exiting as nt, Emitter as o, Tree as ot, Flash as p, guide as pt, Pressed as q, defineGame as r, Layer as rt, Vignette as s, component as st, createApp as t, frameAt as tt, RevealLine as u, system as ut, Alpha as v, worldPlugin as vt, Outline as w, platformPlugin as wt, Displacement as x, textPlugin as xt, Blur as y, uiPlugin as yt, ready as z, projection as zt };
2400
+ export { Swipeable as $, music as A, BackResult as At, Frames as B, clockPlugin as Bt, Alpha as C, worldPlugin as Ct, Glow as D, scenesPlugin as Dt, Displacement as E, textPlugin as Et, messageDuration as F, inputPlugin as Ft, Draggable as G, Countdown as Gt, defineBundles as H, assetsPlugin as Ht, cubicBezier as I, i18nPlugin as It, Hovered as J, defineTextFormats as Jt, DropTarget as K, Text as Kt, defineMotion as L, flowPlugin as Lt, defineStyle as M, types_d_exports as Mt, tr as N, modelPlugin as Nt, Noise as O, rendererPlugin as Ot, messageArgument as P, lifecyclePlugin as Pt, Pressed as Q, AnimPlayer as R, effectsPlugin as Rt, defineFilter as S, flattenFeatures as St, ColorMatrix as T, timePlugin as Tt, load as U, animPlugin as Ut, defineScene as V, audioPlugin as Vt, ready as W, projection as Wt, PointerOver as X, label as Xt, Pointer as Y, defineTextStyles as Yt, Pressable as Z, Fold as _, defineEffect as _t, defineEmitter as a, PASS_KINDS as at, Bloom as b, schedule as bt, Vignette as c, Layer as ct, RevealRound as d, Tree as dt, TapValue as et, RevealLine as f, component as ft, Grade as g, tag as gt, GradientMap as h, system as ht, screen as i, Traced as it, resolve as j, PlatformProvider as jt, Outline as k, platformPlugin as kt, Shine as l, Now as lt, Mirror as m, resource as mt, createPlugin as n, Touchable as nt, Emitter as o, frameAt as ot, Pixelate as p, mut as pt, Held as q, bind as qt, defineGame as r, Traceable as rt, Wave as s, Exiting as st, createApp as t, Tappable as tt, Shadow as u, Order as ut, Flash as v, guide as vt, Blur as w, uiPlugin as wt, Aura as x, defineFeature as xt, Dissolve as y, hint as yt, Animation as z, debugPlugin as zt };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { $t as PerfSampleLine, An as type, At as MonitorSections, B as OverlayValue, Br as types_d_exports$3, Bt as PerfChange, Ct as FrameColumns, Dn as exit, Dt as FrameRing, E as types_d_exports$13, Et as FrameRecord, F as HudPart, Ft as PERF_LOG_VERSION, G as SpriteBlend, Gt as PerfEventLine, H as Shape, Ht as PerfCollectorLine, I as HudPartValue, It as PROBLEM_RULES, J as Transform, Jt as PerfHeaderLine, Kt as PerfEventName, L as NineSlice, Lt as PassKind, Mt as OverlayWhat, N as WhyEntry, Nt as PERF_CAUSES, On as slot, Ot as LongFrameEntry, P as Display, Pr as types_d_exports$17, Pt as PERF_GAP_BUCKETS, Qn as AnchorTarget, Qr as SaveUnreadableError, Qt as PerfMeasured, Rt as PassRecord, St as WhyLive, Tn as contribution, Tt as FrameReadout, Ut as PerfCounts, V as Parent, Vt as PerfChangeEntry, W as Sprite, Wt as PerfDisplay, X as sprite, Xt as PerfLongFrameLine, Yt as PerfLogLine, Z as AdaptiveScale, Zt as PerfMarkLine, _i as types_d_exports$15, an as ProblemEventDetail, cn as ShaderEventDetail, ct as PoolTrim, dn as CANVAS_RESTARTS, dt as types_d_exports$12, en as PerfSpikeLine, er as DescriptionNode, et as MonitorConfig, fn as CanvasRestart, ft as ShotsApi, g as types_d_exports$1, ht as MonitorCounts, in as PoolTrimDetail, jt as OverlayEventDetail, kn as to, kt as MONITOR_SECTIONS, li as types_d_exports$9, ln as ShaderWhat, lr as SceneSwitch, nn as PerfTelemetryLine, on as ProblemRule, pn as DEMAND_REASONS, pt as ShotsConfig, qr as types_d_exports$10, qt as PerfGapLine, rn as PerfThermalLine, sn as SHADER_WHATS, tn as PerfStartupLine, un as WarmDetail, wn as types_d_exports$6, wt as FrameReadResult, xt as RetakeWhy, z as Overlay, zt as PerfCause } from "./types-VJcIdmHU.mjs";
2
- import { $ as HapticKind, C as FoldValue, D as ShineValue, E as RevealRoundValue, I as FilterArea, O as VignetteValue, Q as types_d_exports, S as FlashValue, T as RevealLineValue, _t as tween, at as frames, b as BloomValue, ct as parallel, dt as set, ft as sfx, gt as stopSfx, ht as stagger, i as types_d_exports$16, it as external, lt as play, mt as spawned, nt as HAPTIC_KINDS, ot as haptic, p as types_d_exports$2, pt as spawn, rt as defineAnimation, st as mark, ut as sequence, v as types_d_exports$5, vt as use, w as GradeValue, x as DissolveValue, xt as types_d_exports$4, y as AuraValue, yt as wait } from "./types-CtcQGXWl.mjs";
2
+ import { A as ShadowValue, C as FoldValue, Ct as use, D as PixelateValue, E as MirrorValue, Et as types_d_exports$4, M as VignetteValue, N as WaveValue, O as RevealLineValue, S as FlashValue, St as tween, T as GradientMapValue, V as FilterArea, _t as sfx, b as BloomValue, bt as stagger, ct as defineAnimation, dt as haptic, ft as mark, gt as set, ht as sequence, i as types_d_exports$16, it as HapticKind, j as ShineValue, k as RevealRoundValue, lt as external, mt as play, p as types_d_exports$2, pt as parallel, rt as types_d_exports, st as HAPTIC_KINDS, ut as frames, v as types_d_exports$5, vt as spawn, w as GradeValue, wt as wait, x as DissolveValue, xt as stopSfx, y as AuraValue, yt as spawned } from "./types-BW8Ml4o2.mjs";
3
3
  import { A as TextFormats, B as types_d_exports$8, D as TextFormat, F as types_d_exports$14, I as defineComponent, O as TextFormatAnswer, S as FormattedNumber, Z as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, m as popup, nt as TextTagStyle, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-BaarAgv8.mjs";
4
- import { $ as Traced, A as messageDuration, At as inputPlugin, B as Draggable, Bt as Countdown, C as Noise, Ct as rendererPlugin, D as defineStyle, Dt as types_d_exports$11, E as resolve, Et as PlatformProvider, F as Frames, Ft as clockPlugin, G as PointerOver, Gt as label, H as Held, Ht as bind, I as defineScene, It as audioPlugin, J as Swipeable, K as Pressable, L as defineBundles, Lt as assetsPlugin, M as defineMotion, Mt as flowPlugin, N as AnimPlayer, Nt as effectsPlugin, O as tr, Ot as modelPlugin, P as Animation, Pt as debugPlugin, Q as Traceable, R as load, Rt as animPlugin, S as Glow, St as scenesPlugin, T as music, Tt as BackResult, U as Hovered, Ut as defineTextFormats, V as DropTarget, Vt as Text, W as Pointer, Wt as defineTextStyles, X as Tappable, Y as TapValue, Z as Touchable, _ as defineFilter, _t as flattenFeatures, a as defineEmitter, at as Order, b as ColorMatrix, bt as timePlugin, c as Shine, ct as mut, d as Grade, dt as tag, et as PASS_KINDS, f as Fold, ft as defineEffect, g as Aura, gt as defineFeature, h as Bloom, ht as schedule, i as screen, it as Now, j as cubicBezier, jt as i18nPlugin, k as messageArgument, kt as lifecyclePlugin, l as RevealRound, lt as resource, m as Dissolve, mt as hint, n as createPlugin, nt as Exiting, o as Emitter, ot as Tree, p as Flash, pt as guide, q as Pressed, r as defineGame, rt as Layer, s as Vignette, st as component, t as createApp, tt as frameAt, u as RevealLine, ut as system, v as Alpha, vt as worldPlugin, w as Outline, wt as platformPlugin, x as Displacement, xt as textPlugin, y as Blur, yt as uiPlugin, z as ready, zt as projection } from "./index-DbmGsQgB.mjs";
5
- export { type AdaptiveScale, Alpha, type AnchorTarget, types_d_exports as Anim, AnimPlayer, Animation, types_d_exports$1 as Assets, types_d_exports$2 as Audio, Aura, type AuraValue, type BackResult, type BindOptions, Bloom, type BloomValue, Blur, Box, CANVAS_RESTARTS, type CanvasRestart, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, Dissolve, type DissolveValue, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, Flash, type FlashValue, types_d_exports$6 as Flow, Fold, type FoldValue, type FormattedNumber, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, Grade, type GradeValue, HAPTIC_KINDS, type HapticKind, Held, Hovered, HudPart, type HudPartValue, types_d_exports$7 as I18n, types_d_exports$8 as Input, Layer, types_d_exports$9 as Lifecycle, LocalWrite, type LongFrameEntry, MONITOR_SECTIONS, types_d_exports$10 as Model, type MonitorConfig, type MonitorCounts, type MonitorSections, NineSlice, Noise, Now, Order, Outline, Overlay, type OverlayEventDetail, type OverlayValue, type OverlayWhat, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, type PassKind, type PassRecord, type PerfCause, type PerfChange, type PerfChangeEntry, type PerfCollectorLine, type PerfCounts, type PerfDisplay, type PerfEventLine, type PerfEventName, type PerfGapLine, type PerfHeaderLine, type PerfLogLine, type PerfLongFrameLine, type PerfMarkLine, type PerfMeasured, type PerfSampleLine, type PerfSpikeLine, type PerfStartupLine, type PerfTelemetryLine, type PerfThermalLine, types_d_exports$11 as Platform, type PlatformProvider, Pointer, PointerOver, type PoolTrim, type PoolTrimDetail, Pressable, Pressed, type ProblemEventDetail, type ProblemRule, types_d_exports$12 as Renderer, type RetakeWhy, RevealLine, type RevealLineValue, RevealRound, type RevealRoundValue, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shape, Shine, type ShineValue, type ShotsApi, type ShotsConfig, Sprite, type SpriteBlend, Swipeable, type TapValue, Tappable, Text, type TextFormat, type TextFormatAnswer, type TextFormatFunction, type TextFormats, type TextRunStyle, type TextTagStyle, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, Vignette, type VignetteValue, type WarmDetail, type WhyEntry, type WhyLive, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
4
+ import { $ as Swipeable, A as music, At as BackResult, B as Frames, Bt as clockPlugin, C as Alpha, Ct as worldPlugin, D as Glow, Dt as scenesPlugin, E as Displacement, Et as textPlugin, F as messageDuration, Ft as inputPlugin, G as Draggable, Gt as Countdown, H as defineBundles, Ht as assetsPlugin, I as cubicBezier, It as i18nPlugin, J as Hovered, Jt as defineTextFormats, K as DropTarget, Kt as Text, L as defineMotion, Lt as flowPlugin, M as defineStyle, Mt as types_d_exports$11, N as tr, Nt as modelPlugin, O as Noise, Ot as rendererPlugin, P as messageArgument, Pt as lifecyclePlugin, Q as Pressed, R as AnimPlayer, Rt as effectsPlugin, S as defineFilter, St as flattenFeatures, T as ColorMatrix, Tt as timePlugin, U as load, Ut as animPlugin, V as defineScene, Vt as audioPlugin, W as ready, Wt as projection, X as PointerOver, Xt as label, Y as Pointer, Yt as defineTextStyles, Z as Pressable, _ as Fold, _t as defineEffect, a as defineEmitter, at as PASS_KINDS, b as Bloom, bt as schedule, c as Vignette, ct as Layer, d as RevealRound, dt as Tree, et as TapValue, f as RevealLine, ft as component, g as Grade, gt as tag, h as GradientMap, ht as system, i as screen, it as Traced, j as resolve, jt as PlatformProvider, k as Outline, kt as platformPlugin, l as Shine, lt as Now, m as Mirror, mt as resource, n as createPlugin, nt as Touchable, o as Emitter, ot as frameAt, p as Pixelate, pt as mut, q as Held, qt as bind, r as defineGame, rt as Traceable, s as Wave, st as Exiting, t as createApp, tt as Tappable, u as Shadow, ut as Order, v as Flash, vt as guide, w as Blur, wt as uiPlugin, x as Aura, xt as defineFeature, y as Dissolve, yt as hint, z as Animation, zt as debugPlugin } from "./index-pi4DqEyw.mjs";
5
+ export { type AdaptiveScale, Alpha, type AnchorTarget, types_d_exports as Anim, AnimPlayer, Animation, types_d_exports$1 as Assets, types_d_exports$2 as Audio, Aura, type AuraValue, type BackResult, type BindOptions, Bloom, type BloomValue, Blur, Box, CANVAS_RESTARTS, type CanvasRestart, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, Dissolve, type DissolveValue, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, Flash, type FlashValue, types_d_exports$6 as Flow, Fold, type FoldValue, type FormattedNumber, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, Grade, type GradeValue, GradientMap, type GradientMapValue, HAPTIC_KINDS, type HapticKind, Held, Hovered, HudPart, type HudPartValue, types_d_exports$7 as I18n, types_d_exports$8 as Input, Layer, types_d_exports$9 as Lifecycle, LocalWrite, type LongFrameEntry, MONITOR_SECTIONS, Mirror, type MirrorValue, types_d_exports$10 as Model, type MonitorConfig, type MonitorCounts, type MonitorSections, NineSlice, Noise, Now, Order, Outline, Overlay, type OverlayEventDetail, type OverlayValue, type OverlayWhat, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, type PassKind, type PassRecord, type PerfCause, type PerfChange, type PerfChangeEntry, type PerfCollectorLine, type PerfCounts, type PerfDisplay, type PerfEventLine, type PerfEventName, type PerfGapLine, type PerfHeaderLine, type PerfLogLine, type PerfLongFrameLine, type PerfMarkLine, type PerfMeasured, type PerfSampleLine, type PerfSpikeLine, type PerfStartupLine, type PerfTelemetryLine, type PerfThermalLine, Pixelate, type PixelateValue, types_d_exports$11 as Platform, type PlatformProvider, Pointer, PointerOver, type PoolTrim, type PoolTrimDetail, Pressable, Pressed, type ProblemEventDetail, type ProblemRule, types_d_exports$12 as Renderer, type RetakeWhy, RevealLine, type RevealLineValue, RevealRound, type RevealRoundValue, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shadow, type ShadowValue, Shape, Shine, type ShineValue, type ShotsApi, type ShotsConfig, Sprite, type SpriteBlend, Swipeable, type TapValue, Tappable, Text, type TextFormat, type TextFormatAnswer, type TextFormatFunction, type TextFormats, type TextRunStyle, type TextTagStyle, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, Vignette, type VignetteValue, type WarmDetail, Wave, type WaveValue, type WhyEntry, type WhyLive, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as HAPTIC_KINDS, $t as PASS_KINDS, A as types_exports$17, At as Traced, B as types_exports$7, Bt as Glow, C as defineFeature, Ct as PointerOver, D as defineBundles, Dt as Tappable, E as music, Et as Swipeable, F as types_exports$12, Ft as Emitter, G as types_exports$2, Gt as audioPlugin, H as types_exports$5, Ht as Outline, I as types_exports$11, It as Alpha, J as uiPlugin, Jt as animPlugin, K as types_exports$1, Kt as scenesPlugin, L as types_exports$10, Lt as Blur, M as types_exports$15, Mt as messageArgument, N as types_exports$14, Nt as messageDuration, O as load, Ot as Touchable, P as types_exports$13, Pt as effectsPlugin, Q as platformPlugin, Qt as rendererPlugin, R as types_exports$9, Rt as ColorMatrix, S as tr, St as Pointer, T as defineEmitter, Tt as Pressed, U as types_exports$4, Ut as defineFilter, V as types_exports$6, Vt as Noise, W as types_exports$3, Wt as debugPlugin, X as defineMotion, Xt as Animation, Y as resolve, Yt as AnimPlayer, Z as textPlugin, Zt as Frames, _ as guide, _n as modelPlugin, _t as inputPlugin, a as Vignette, an as PROBLEM_RULES, at as parallel, b as projection, bn as lifecyclePlugin, bt as Held, c as RevealLine, cn as DEMAND_REASONS, ct as set, d as Flash, dt as spawned, en as frameAt, et as defineAnimation, f as Dissolve, fn as contribution, ft as stagger, g as defineEffect, gn as type, gt as wait, h as cubicBezier, hn as to, ht as use, i as screen, in as PERF_LOG_VERSION, it as mark, j as types_exports$16, jt as i18nPlugin, k as ready, kt as Traceable, l as Grade, ln as worldPlugin, lt as sfx, m as Aura, mn as slot, mt as tween, n as createPlugin, nn as PERF_CAUSES, nt as frames, o as Shine, on as SHADER_WHATS, ot as play, p as Bloom, pn as exit, pt as stopSfx, q as types_exports, qt as assetsPlugin, r as defineGame, rn as PERF_GAP_BUCKETS, rt as haptic, s as RevealRound, sn as CANVAS_RESTARTS, st as sequence, t as createApp, tn as MONITOR_SECTIONS, tt as external, u as Fold, un as flowPlugin, ut as spawn, v as hint, vn as SaveUnreadableError, vt as Draggable, w as flattenFeatures, wt as Pressable, x as defineScene, xn as timePlugin, xt as Hovered, y as schedule, yn as clockPlugin, yt as DropTarget, z as types_exports$8, zt as Displacement } from "./src-nsjSGfQQ.mjs";
1
+ import { $ as uiPlugin, $t as animPlugin, A as defineEmitter, At as Pressed, B as types_exports$12, Bt as Emitter, C as hint, Cn as SaveUnreadableError, Ct as Draggable, D as tr, Dt as Pointer, E as defineScene, En as timePlugin, Et as Hovered, F as types_exports$17, Ft as Traced, G as types_exports$7, Gt as Glow, H as types_exports$10, Ht as Blur, I as types_exports$16, It as i18nPlugin, J as types_exports$4, Jt as defineFilter, K as types_exports$6, Kt as Noise, L as types_exports$15, Lt as messageArgument, M as defineBundles, Mt as Tappable, N as load, Nt as Touchable, O as defineFeature, Ot as PointerOver, P as ready, Pt as Traceable, Q as types_exports, Qt as assetsPlugin, R as types_exports$14, Rt as messageDuration, S as guide, Sn as modelPlugin, St as inputPlugin, T as projection, Tn as lifecyclePlugin, Tt as Held, U as types_exports$9, Ut as ColorMatrix, V as types_exports$11, Vt as Alpha, W as types_exports$8, Wt as Displacement, X as types_exports$2, Xt as audioPlugin, Y as types_exports$3, Yt as debugPlugin, Z as types_exports$1, Zt as scenesPlugin, _ as Dissolve, _n as contribution, _t as stagger, a as Wave, an as frameAt, at as defineAnimation, b as cubicBezier, bn as to, bt as use, c as Shadow, cn as PERF_GAP_BUCKETS, ct as haptic, d as Pixelate, dn as SHADER_WHATS, dt as play, en as AnimPlayer, et as resolve, f as Mirror, fn as CANVAS_RESTARTS, ft as sequence, g as Flash, gt as spawned, h as Fold, hn as flowPlugin, ht as spawn, i as screen, in as PASS_KINDS, it as HAPTIC_KINDS, j as music, jt as Swipeable, k as flattenFeatures, kt as Pressable, l as RevealRound, ln as PERF_LOG_VERSION, lt as mark, m as Grade, mn as worldPlugin, mt as sfx, n as createPlugin, nn as Frames, nt as textPlugin, o as Vignette, on as MONITOR_SECTIONS, ot as external, p as GradientMap, pn as DEMAND_REASONS, pt as set, q as types_exports$5, qt as Outline, r as defineGame, rn as rendererPlugin, rt as platformPlugin, s as Shine, sn as PERF_CAUSES, st as frames, t as createApp, tn as Animation, tt as defineMotion, u as RevealLine, un as PROBLEM_RULES, ut as parallel, v as Bloom, vn as exit, vt as stopSfx, w as schedule, wn as clockPlugin, wt as DropTarget, x as defineEffect, xn as type, xt as wait, y as Aura, yn as slot, yt as tween, z as types_exports$13, zt as effectsPlugin } from "./src-CAvbU88U.mjs";
2
2
  import { $ as Overlay, D as defineStyle, E as defineTokens, L as defineTextFormats, M as Countdown, N as Text, P as bind, Q as NineSlice, R as defineTextStyles, X as Display, Z as HudPart, _ as DebugTrigger, ct as Exiting, dt as Order, ft as Tree, gt as system, h as Box, ht as resource, it as Transform, lt as Layer, mt as mut, nt as Shape, pt as component, rt as Sprite, st as sprite, tt as Parent, ut as Now, vt as tag, w as popup, x as ScrollState, y as LocalWrite, z as label } from "./visual-x0TPowBE.mjs";
3
3
  import { t as defineComponent } from "./component-DGg5DqKK.mjs";
4
- export { Alpha, types_exports as Anim, AnimPlayer, Animation, types_exports$1 as Assets, types_exports$2 as Audio, Aura, Bloom, Blur, Box, CANVAS_RESTARTS, types_exports$3 as Clock, ColorMatrix, Countdown, DEMAND_REASONS, types_exports$4 as Debug, DebugTrigger, Displacement, Display, Dissolve, Draggable, DropTarget, types_exports$5 as Effects, Emitter, Exiting, Flash, types_exports$6 as Flow, Fold, Frames, Glow, Grade, HAPTIC_KINDS, Held, Hovered, HudPart, types_exports$7 as I18n, types_exports$8 as Input, Layer, types_exports$9 as Lifecycle, LocalWrite, MONITOR_SECTIONS, types_exports$10 as Model, NineSlice, Noise, Now, Order, Outline, Overlay, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, types_exports$11 as Platform, Pointer, PointerOver, Pressable, Pressed, types_exports$12 as Renderer, RevealLine, RevealRound, SHADER_WHATS, SaveUnreadableError, types_exports$13 as Scenes, ScrollState, Shape, Shine, Sprite, Swipeable, Tappable, Text, types_exports$14 as TextTypes, types_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_exports$16 as Ui, Vignette, types_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
4
+ export { Alpha, types_exports as Anim, AnimPlayer, Animation, types_exports$1 as Assets, types_exports$2 as Audio, Aura, Bloom, Blur, Box, CANVAS_RESTARTS, types_exports$3 as Clock, ColorMatrix, Countdown, DEMAND_REASONS, types_exports$4 as Debug, DebugTrigger, Displacement, Display, Dissolve, Draggable, DropTarget, types_exports$5 as Effects, Emitter, Exiting, Flash, types_exports$6 as Flow, Fold, Frames, Glow, Grade, GradientMap, HAPTIC_KINDS, Held, Hovered, HudPart, types_exports$7 as I18n, types_exports$8 as Input, Layer, types_exports$9 as Lifecycle, LocalWrite, MONITOR_SECTIONS, Mirror, types_exports$10 as Model, NineSlice, Noise, Now, Order, Outline, Overlay, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, Pixelate, types_exports$11 as Platform, Pointer, PointerOver, Pressable, Pressed, types_exports$12 as Renderer, RevealLine, RevealRound, SHADER_WHATS, SaveUnreadableError, types_exports$13 as Scenes, ScrollState, Shadow, Shape, Shine, Sprite, Swipeable, Tappable, Text, types_exports$14 as TextTypes, types_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_exports$16 as Ui, Vignette, Wave, types_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
@@ -1,5 +1,5 @@
1
1
  import { $r as Snapshot, Ar as Api$1, Ln as FlowGraph, Mr as Explained, Q as Api$2, Sr as FrameDiff, Vr as Api, _r as ComponentSchema, bn as Position, gt as RenderStats, h as Usage, t as Api$3, ut as Under, xr as EntitySnapshot, zn as JournalEntry } from "./types-VJcIdmHU.mjs";
2
- import { W as AnimApi, Z as TimelinesSnapshot, a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-CtcQGXWl.mjs";
2
+ import { Y as AnimApi, a as AudioApi, g as EffectsStats, h as EffectsApi, nt as TimelinesSnapshot, r as UiApi, u as SoundEntry } from "./types-BW8Ml4o2.mjs";
3
3
  import { c as UiNode } from "./types-BaarAgv8.mjs";
4
4
  import { t as HeadlessApp } from "./headless-CO19o31k.mjs";
5
5
  import { a as InputArguments, d as WatchApp, f as WatchInput, l as Source, o as InputOf, s as InputSchema, t as CheatEntry } from "./types-CbSTnp8T.mjs";
@@ -50615,6 +50615,140 @@ function createEffectsApi(ctx) {
50615
50615
  };
50616
50616
  }
50617
50617
  //#endregion
50618
+ //#region src/plugins/effects/set/head.ts
50619
+ /**
50620
+ * @file effects/set — the set head: the WGSL and GLSL the engine's effect set puts before every member's body. Four
50621
+ * helpers: `inputPlace(uv)`, where the pixel is in its input frame (0..1 on each axis, the padded frame Pixi hands the
50622
+ * filter), and `sampleInput(n)`, the input read at such a place, inside the clamp; `inputFrame()`, the size of that
50623
+ * frame in CSS px, for a padded member that maps its content box; and `setHash(cell)`, the integer hash of `Dissolve`.
50624
+ * They read the input's own uniforms (`uInputClamp`, `uInputPixel`, `uInputSize`), never the screen, so a member stays
50625
+ * `"local"`; and the clamp is half a texel in from the frame in a live pass and from the whole picture on the quad of
50626
+ * stage 2 (`shade.ts`), so one body draws the same in both. The first three are the place part, which the built-in
50627
+ * `Outline` draws on too (`withPlaceWgsl`); the hash is the members' alone. A game's body does not get them. Pure
50628
+ * strings.
50629
+ */
50630
+ /**
50631
+ * The place part of the WGSL head: `inputPlace(uv)` and `sampleInput(n)` over the filter's input, and `inputFrame()`.
50632
+ * `textureSampleLevel`, so a member may read its input inside a branch. `inputFrame()` is the clamp's span plus one
50633
+ * texel, times the texture's CSS size: live the frame is a share of a pooled texture and `uInputSize` is the texture's,
50634
+ * on the quad the frame is the whole picture; both give the frame. The built-in `Outline` draws on it alone
50635
+ * (`withPlaceWgsl`), so every game that composes `effectsPlugin` carries these three and no hash.
50636
+ */
50637
+ const PLACE_WGSL = `fn inputPlace(uv: vec2<f32>) -> vec2<f32> {
50638
+ return (uv - gfu.uInputClamp.xy) / (gfu.uInputClamp.zw - gfu.uInputClamp.xy);
50639
+ }
50640
+
50641
+ fn sampleInput(n: vec2<f32>) -> vec4<f32> {
50642
+ return textureSampleLevel(uTexture, uSampler, mix(gfu.uInputClamp.xy, gfu.uInputClamp.zw, clamp(n, vec2<f32>(0.0), vec2<f32>(1.0))), 0.0);
50643
+ }
50644
+
50645
+ fn inputFrame() -> vec2<f32> {
50646
+ return (gfu.uInputClamp.zw - gfu.uInputClamp.xy + gfu.uInputPixel.zw) * gfu.uInputSize.xy;
50647
+ }
50648
+
50649
+ `;
50650
+ /**
50651
+ * The hash part of the WGSL head: `setHash(cell)`, a 32-bit integer hash of a cell, 0 up to 1 (24 bits). Integers wrap
50652
+ * the same on every GPU, so WebGL and WebGPU dissolve the same cells.
50653
+ */
50654
+ const HASH_WGSL = `fn setHash(cell: vec2<f32>) -> f32 {
50655
+ let q = vec2<u32>(vec2<i32>(cell));
50656
+ var h = (q.x * 1597334677u) ^ (q.y * 3812015801u);
50657
+ h = (h ^ (h >> 16u)) * 2246822519u;
50658
+ h = h ^ (h >> 13u);
50659
+ return f32(h >> 8u) / 16777216.0;
50660
+ }
50661
+
50662
+ `;
50663
+ /** The GLSL twin of `PLACE_WGSL`, over `uInputClamp`, `uInputPixel`, `uInputSize` and `uTexture` of the GLSL header. */
50664
+ const PLACE_GLSL = `vec2 inputPlace(vec2 uv) {
50665
+ return (uv - uInputClamp.xy) / (uInputClamp.zw - uInputClamp.xy);
50666
+ }
50667
+
50668
+ vec4 sampleInput(vec2 n) {
50669
+ return textureLod(uTexture, mix(uInputClamp.xy, uInputClamp.zw, clamp(n, 0.0, 1.0)), 0.0);
50670
+ }
50671
+
50672
+ vec2 inputFrame() {
50673
+ return (uInputClamp.zw - uInputClamp.xy + uInputPixel.zw) * uInputSize.xy;
50674
+ }
50675
+
50676
+ `;
50677
+ /**
50678
+ * The GLSL twin of `HASH_WGSL`. The hash's integers are `highp`: the default of a fragment stage is `mediump`, 16 bits
50679
+ * on a phone.
50680
+ */
50681
+ const HASH_GLSL = `float setHash(vec2 cell) {
50682
+ highp uvec2 q = uvec2(ivec2(cell));
50683
+ highp uint h = (q.x * 1597334677u) ^ (q.y * 3812015801u);
50684
+ h = (h ^ (h >> 16u)) * 2246822519u;
50685
+ h = h ^ (h >> 13u);
50686
+ return float(h >> 8u) / 16777216.0;
50687
+ }
50688
+
50689
+ `;
50690
+ /**
50691
+ * A body with the place part of the head before it, and no hash: the built-in `Outline`'s source. A call, so a bundle
50692
+ * that drops the body drops the text too: a concatenation at module scope would stay, its strings with it.
50693
+ *
50694
+ * @param body - The WGSL body.
50695
+ * @returns The place helpers, then the body.
50696
+ * @example
50697
+ * ```ts
50698
+ * withPlaceWgsl("@fragment fn mainFragment").includes("fn setHash("); // false
50699
+ * ```
50700
+ */
50701
+ function withPlaceWgsl(body) {
50702
+ return PLACE_WGSL + body;
50703
+ }
50704
+ /**
50705
+ * The GLSL twin of `withPlaceWgsl`.
50706
+ *
50707
+ * @param body - The GLSL body.
50708
+ * @returns The place helpers, then the body.
50709
+ * @example
50710
+ * ```ts
50711
+ * withPlaceGlsl("void main() {}").startsWith("vec2 inputPlace("); // true
50712
+ * ```
50713
+ */
50714
+ function withPlaceGlsl(body) {
50715
+ return PLACE_GLSL + body;
50716
+ }
50717
+ /**
50718
+ * The WGSL head of every member: the place part, then the hash part, `inputPlace(uv)`, `sampleInput(n)`,
50719
+ * `inputFrame()` and `setHash(cell)`. Made by a call, so a game that lists no member carries neither part's hash.
50720
+ */
50721
+ const SET_WGSL = /*#__PURE__*/ withPlaceWgsl(HASH_WGSL);
50722
+ /** The GLSL twin of `SET_WGSL`: the same four helpers. */
50723
+ const SET_GLSL = /*#__PURE__*/ withPlaceGlsl(HASH_GLSL);
50724
+ /**
50725
+ * A member's WGSL body with the set head before it. A call, so a bundle that drops the member drops the text too: a
50726
+ * concatenation at module scope would stay, its strings with it.
50727
+ *
50728
+ * @param body - The member's WGSL body.
50729
+ * @returns The head, then the body.
50730
+ * @example
50731
+ * ```ts
50732
+ * withSetWgsl("@fragment fn mainFragment").startsWith("fn inputPlace("); // true
50733
+ * ```
50734
+ */
50735
+ function withSetWgsl(body) {
50736
+ return SET_WGSL + body;
50737
+ }
50738
+ /**
50739
+ * A member's GLSL body with the set head before it, for the same reason as `withSetWgsl`.
50740
+ *
50741
+ * @param body - The member's GLSL body.
50742
+ * @returns The head, then the body.
50743
+ * @example
50744
+ * ```ts
50745
+ * withSetGlsl("void main() {}").startsWith("vec2 inputPlace("); // true
50746
+ * ```
50747
+ */
50748
+ function withSetGlsl(body) {
50749
+ return SET_GLSL + body;
50750
+ }
50751
+ //#endregion
50618
50752
  //#region src/plugins/effects/filters/wgsl.ts
50619
50753
  /**
50620
50754
  * The head of every filter shader: the global filter uniforms and the input texture and sampler
@@ -51703,71 +51837,60 @@ fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
51703
51837
  //#endregion
51704
51838
  //#region src/plugins/effects/filters/outline-glsl.ts
51705
51839
  /**
51706
- * @file effects/filters — the GLSL twin of the `Outline` fragment, the same math as
51707
- * `outline-wgsl.ts` for the WebGL fallback: the source drawn over a ring of `thickness` pixels in
51708
- * `color × alpha`, sampled in 8 directions, 12 from 6 px.
51840
+ * @file effects/filters — the GLSL twin of the `Outline` fragment, the same math as `outline-wgsl.ts` for the WebGL
51841
+ * fallback: the source drawn over a hard ring of `thickness` CSS px in `color × alpha`, 12 probes.
51709
51842
  */
51710
51843
  /**
51711
- * The GLSL ES 3.0 fragment body of `Outline`. Reads the uniforms `thickness`, `color` and `alpha`
51712
- * under their bare names.
51844
+ * The GLSL ES 3.0 fragment body of `Outline`. Reads the uniforms `thickness`, `color` and `alpha` under their bare
51845
+ * names, and the place helpers of the effect set's head.
51713
51846
  */
51714
51847
  const OUTLINE_GLSL = `const float OUTLINE_TAU = 6.283185307179586;
51715
51848
 
51716
51849
  void main() {
51717
- vec4 source = texture(uTexture, vTextureCoord);
51718
- vec2 texel = uInputSize.zw;
51719
- int spokes = thickness >= 6.0 ? 12 : 8;
51720
- float edge = 0.0;
51721
-
51722
- for (int spoke = 0; spoke < spokes; spoke++) {
51723
- float turn = OUTLINE_TAU * float(spoke) / float(spokes);
51724
- vec2 probe = clamp(
51725
- vTextureCoord + vec2(cos(turn), sin(turn)) * texel * thickness,
51726
- uInputClamp.xy,
51727
- uInputClamp.zw
51728
- );
51850
+ vec2 n = inputPlace(vTextureCoord);
51851
+ vec4 c = sampleInput(n);
51852
+ vec2 reach = thickness / inputFrame();
51853
+ float ring = 0.0;
51729
51854
 
51730
- edge = max(edge, texture(uTexture, probe).a);
51855
+ for (int i = 0; i < 12; i++) {
51856
+ float turn = OUTLINE_TAU * float(i) / 12.0;
51857
+ ring = max(ring, sampleInput(n + vec2(cos(turn), sin(turn)) * reach).a);
51731
51858
  }
51732
51859
 
51733
- float line = edge * alpha;
51860
+ float line = ring * alpha;
51734
51861
 
51735
- finalColor = source + vec4(color * line, line) * (1.0 - source.a);
51862
+ finalColor = c + vec4(color * line, line) * (1.0 - c.a);
51736
51863
  }
51737
51864
  `;
51738
51865
  //#endregion
51739
51866
  //#region src/plugins/effects/filters/outline-wgsl.ts
51740
51867
  /**
51741
- * @file effects/filters — the fragment body of `Outline`: the source drawn over a ring of
51742
- * `thickness` pixels in `color × alpha`, sampled in 8 directions, 12 from 6 px, as the `text`
51743
- * outline does.
51868
+ * @file effects/filters — the fragment body of `Outline`: the source drawn over a hard ring of `thickness` CSS px in
51869
+ * `color × alpha`, the largest alpha of 12 probes on that ring, over the place helpers of the effect set's head.
51744
51870
  */
51745
51871
  /**
51746
- * The WGSL fragment body of `Outline`. Reads `fu.thickness`, `fu.color`, `fu.alpha`.
51872
+ * The WGSL fragment body of `Outline`. Reads `fu.thickness`, `fu.color`, `fu.alpha`. The probes stand on a ring of
51873
+ * `thickness` CSS px around the pixel: `thickness / inputFrame()` is that radius in 0..1 of the padded frame, as
51874
+ * `Aura`'s ring, so the line is as wide as the padding at any resolution. The ring is hard: the largest alpha of the
51875
+ * 12 probes, not their mean. The line is drawn in `color` under the source.
51747
51876
  */
51748
51877
  const OUTLINE_WGSL = `const OUTLINE_TAU: f32 = 6.283185307179586;
51749
51878
 
51750
51879
  @fragment
51751
51880
  fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
51752
- let source = textureSample(uTexture, uSampler, uv);
51753
- let texel = gfu.uInputSize.zw;
51754
- let spokes = select(8, 12, fu.thickness >= 6.0);
51755
- var edge = 0.0;
51756
-
51757
- for (var spoke = 0; spoke < spokes; spoke++) {
51758
- let turn = OUTLINE_TAU * f32(spoke) / f32(spokes);
51759
- let probe = clamp(
51760
- uv + vec2<f32>(cos(turn), sin(turn)) * texel * fu.thickness,
51761
- gfu.uInputClamp.xy,
51762
- gfu.uInputClamp.zw
51763
- );
51881
+ let n = inputPlace(uv);
51882
+ let c = sampleInput(n);
51883
+ let reach = fu.thickness / inputFrame();
51884
+ var ring = 0.0;
51764
51885
 
51765
- edge = max(edge, textureSample(uTexture, uSampler, probe).a);
51886
+ for (var i = 0; i < 12; i++) {
51887
+ let turn = OUTLINE_TAU * f32(i) / 12.0;
51888
+ ring = max(ring, sampleInput(n + vec2<f32>(cos(turn), sin(turn)) * reach).a);
51766
51889
  }
51767
51890
 
51768
- let line = edge * fu.alpha;
51891
+ let line = ring * fu.alpha;
51769
51892
 
51770
- return source + vec4<f32>(fu.color * line, line) * (1.0 - source.a);
51893
+ return c + vec4<f32>(fu.color * line, line) * (1.0 - c.a);
51771
51894
  }
51772
51895
  `;
51773
51896
  //#endregion
@@ -51836,8 +51959,10 @@ const Glow = /*#__PURE__*/ defineFilter("effects.glow", {
51836
51959
  padding: "distance"
51837
51960
  });
51838
51961
  /**
51839
- * A ring of `thickness` pixels in `color` around the opaque pixels of a view and its subtree; the
51840
- * view is padded by its live `thickness`. One render pass per apply.
51962
+ * A hard ring of `thickness` CSS px in `color` around the opaque pixels of a view and its subtree,
51963
+ * the largest alpha of 12 probes on that ring; the view is padded by its live `thickness`. One
51964
+ * render pass per apply; on WebGPU a tween of `alpha` draws on the view's own quad, no pass, from
51965
+ * its third frame.
51841
51966
  *
51842
51967
  * @example
51843
51968
  * ```ts
@@ -51846,8 +51971,8 @@ const Glow = /*#__PURE__*/ defineFilter("effects.glow", {
51846
51971
  * ```
51847
51972
  */
51848
51973
  const Outline = /*#__PURE__*/ defineFilter("effects.outline", {
51849
- wgsl: OUTLINE_WGSL,
51850
- glsl: OUTLINE_GLSL,
51974
+ wgsl: /* @__PURE__ */ withPlaceWgsl(OUTLINE_WGSL),
51975
+ glsl: /* @__PURE__ */ withPlaceGlsl(OUTLINE_GLSL),
51851
51976
  uniforms: {
51852
51977
  thickness: 2,
51853
51978
  color: { color: 0 },
@@ -52168,6 +52293,27 @@ function startValue(uniform, value) {
52168
52293
  return vector;
52169
52294
  }
52170
52295
  /**
52296
+ * Moves the number fields the sync reads by a uniform's name to V8's tagged form, once, as an instance is built. V8 may
52297
+ * keep a number field as a raw double, by the history of the object's shape: a `Pixelate`'s one `size` came out so,
52298
+ * `Wave`'s `phase` did not. A read by a name the code learns only at run time, as every read of the sync is
52299
+ * (`value[uniform.name]`, `uniforms[name]`), then hands back a new box of that double: 16 B per read, two reads per
52300
+ * sync of a tweened view. A field that held a non-number once stays tagged for every object of its shape, and a read
52301
+ * hands its number as it is. The number is written back at once; a frozen object (the defaults, a probe's value) is
52302
+ * left alone.
52303
+ *
52304
+ * @param target - The stored filter value, or the values of the uniform group. Written in place.
52305
+ * @param uniforms - The uniforms of the definition.
52306
+ */
52307
+ function tagNumbers(target, uniforms) {
52308
+ if (Object.isFrozen(target)) return;
52309
+ for (const { name } of uniforms) {
52310
+ const held = target[name];
52311
+ if (typeof held !== "number") continue;
52312
+ Reflect.set(target, name, false);
52313
+ Reflect.set(target, name, held);
52314
+ }
52315
+ }
52316
+ /**
52171
52317
  * The padding of an instance of ours: a fixed number, or the live value of a number uniform.
52172
52318
  *
52173
52319
  * @param definition - The filter definition.
@@ -52236,6 +52382,8 @@ function createOurs(pixi, definition, value) {
52236
52382
  type: definition.origin.type
52237
52383
  };
52238
52384
  const group = definition.uniforms.length > 0 || definition.inputs.length > 0 || definition.backdrop || definition.origin !== void 0 ? new pixi.UniformGroup(structures) : void 0;
52385
+ tagNumbers(value, definition.uniforms);
52386
+ if (group !== void 0) tagNumbers(group.uniforms, definition.uniforms);
52239
52387
  const resources = group === void 0 ? {} : { fu: group };
52240
52388
  const empty = pixi.Texture.EMPTY.source;
52241
52389
  for (const input of definition.inputs) {
@@ -78473,97 +78621,6 @@ function cubicBezier(x1, y1, x2, y2) {
78473
78621
  const table = solveTable(Float64Array.of(x1, y1, x2, y2));
78474
78622
  return (t) => progressAt(table, t);
78475
78623
  }
78476
- //#endregion
78477
- //#region src/plugins/effects/set/head.ts
78478
- /**
78479
- * @file effects/set — the set head: the WGSL and GLSL the engine's effect set puts before every member's body. Four
78480
- * helpers: `inputPlace(uv)`, where the pixel is in its input frame (0..1 on each axis, the padded frame Pixi hands the
78481
- * filter), and `sampleInput(n)`, the input read at such a place, inside the clamp; `inputFrame()`, the size of that
78482
- * frame in CSS px, for a padded member that maps its content box; and `setHash(cell)`, the integer hash of `Dissolve`.
78483
- * They read the input's own uniforms (`uInputClamp`, `uInputPixel`, `uInputSize`), never the screen, so a member stays
78484
- * `"local"`; and the clamp is half a texel in from the frame in a live pass and from the whole picture on the quad of
78485
- * stage 2 (`shade.ts`), so one body draws the same in both. A game's body does not get them. Pure strings.
78486
- */
78487
- /**
78488
- * The WGSL head of every member: `inputPlace(uv)` and `sampleInput(n)` over the filter's input, `inputFrame()` and
78489
- * `setHash(cell)`. `textureSampleLevel`, so a member may read its input inside a branch. `inputFrame()` is the clamp's
78490
- * span plus one texel, times the texture's CSS size: live the frame is a share of a pooled texture and `uInputSize` is
78491
- * the texture's, on the quad the frame is the whole picture; both give the frame. `setHash` is a 32-bit integer hash of
78492
- * a cell, 0 up to 1 (24 bits): integers wrap the same on every GPU, so WebGL and WebGPU dissolve the same cells.
78493
- */
78494
- const SET_WGSL = `fn inputPlace(uv: vec2<f32>) -> vec2<f32> {
78495
- return (uv - gfu.uInputClamp.xy) / (gfu.uInputClamp.zw - gfu.uInputClamp.xy);
78496
- }
78497
-
78498
- fn sampleInput(n: vec2<f32>) -> vec4<f32> {
78499
- return textureSampleLevel(uTexture, uSampler, mix(gfu.uInputClamp.xy, gfu.uInputClamp.zw, clamp(n, vec2<f32>(0.0), vec2<f32>(1.0))), 0.0);
78500
- }
78501
-
78502
- fn inputFrame() -> vec2<f32> {
78503
- return (gfu.uInputClamp.zw - gfu.uInputClamp.xy + gfu.uInputPixel.zw) * gfu.uInputSize.xy;
78504
- }
78505
-
78506
- fn setHash(cell: vec2<f32>) -> f32 {
78507
- let q = vec2<u32>(vec2<i32>(cell));
78508
- var h = (q.x * 1597334677u) ^ (q.y * 3812015801u);
78509
- h = (h ^ (h >> 16u)) * 2246822519u;
78510
- h = h ^ (h >> 13u);
78511
- return f32(h >> 8u) / 16777216.0;
78512
- }
78513
-
78514
- `;
78515
- /**
78516
- * The GLSL twin of `SET_WGSL`: the same four helpers over `uInputClamp`, `uInputPixel`, `uInputSize` and `uTexture` of
78517
- * the GLSL header. The hash's integers are `highp`: the default of a fragment stage is `mediump`, 16 bits on a phone.
78518
- */
78519
- const SET_GLSL = `vec2 inputPlace(vec2 uv) {
78520
- return (uv - uInputClamp.xy) / (uInputClamp.zw - uInputClamp.xy);
78521
- }
78522
-
78523
- vec4 sampleInput(vec2 n) {
78524
- return textureLod(uTexture, mix(uInputClamp.xy, uInputClamp.zw, clamp(n, 0.0, 1.0)), 0.0);
78525
- }
78526
-
78527
- vec2 inputFrame() {
78528
- return (uInputClamp.zw - uInputClamp.xy + uInputPixel.zw) * uInputSize.xy;
78529
- }
78530
-
78531
- float setHash(vec2 cell) {
78532
- highp uvec2 q = uvec2(ivec2(cell));
78533
- highp uint h = (q.x * 1597334677u) ^ (q.y * 3812015801u);
78534
- h = (h ^ (h >> 16u)) * 2246822519u;
78535
- h = h ^ (h >> 13u);
78536
- return float(h >> 8u) / 16777216.0;
78537
- }
78538
-
78539
- `;
78540
- /**
78541
- * A member's WGSL body with the set head before it. A call, so a bundle that drops the member drops the text too: a
78542
- * concatenation at module scope would stay, its strings with it.
78543
- *
78544
- * @param body - The member's WGSL body.
78545
- * @returns The head, then the body.
78546
- * @example
78547
- * ```ts
78548
- * withSetWgsl("@fragment fn mainFragment").startsWith("fn inputPlace("); // true
78549
- * ```
78550
- */
78551
- function withSetWgsl(body) {
78552
- return SET_WGSL + body;
78553
- }
78554
- /**
78555
- * A member's GLSL body with the set head before it, for the same reason as `withSetWgsl`.
78556
- *
78557
- * @param body - The member's GLSL body.
78558
- * @returns The head, then the body.
78559
- * @example
78560
- * ```ts
78561
- * withSetGlsl("void main() {}").startsWith("vec2 inputPlace("); // true
78562
- * ```
78563
- */
78564
- function withSetGlsl(body) {
78565
- return SET_GLSL + body;
78566
- }
78567
78624
  /**
78568
78625
  * A soft halo of `color` around the shape of a view and its subtree, `spread` CSS px wide and as strong as `strength`
78569
78626
  * (0..2; 1 is full next to a straight edge, 2 widens the full part). The view is padded by its live `spread`, so the
@@ -79119,6 +79176,135 @@ void main() {
79119
79176
  }
79120
79177
  });
79121
79178
  /**
79179
+ * A view recoloured by its light: its Rec. 709 luma maps black to `dark`, a half to `middle` and white to `light`,
79180
+ * mixed straight between them, and `amount` (0..1) mixes the view's own colour to the mapped one. The alpha is kept.
79181
+ * For a sepia memory, a night tint, a duotone. List it in a feature's `filters`, as a game's own filter. One render
79182
+ * pass, one sample; on WebGPU a tween of `amount` draws on the view's own quad, no pass, from its third frame.
79183
+ *
79184
+ * @example
79185
+ * ```ts
79186
+ * // An old memory turns sepia, then its colour comes back.
79187
+ * GradientMap({ dark: 0x2b1a0e, middle: 0x9c6b3c, light: 0xf5e6c8 }).value.amount; // 1
79188
+ * view.tween(GradientMap, { amount: 0 }, { ms: 400 });
79189
+ * ```
79190
+ */
79191
+ const GradientMap = /*#__PURE__*/ defineFilter("effects.gradientMap", {
79192
+ wgsl: /* @__PURE__ */ withSetWgsl(`@fragment
79193
+ fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
79194
+ let n = inputPlace(uv);
79195
+ let c = sampleInput(n);
79196
+ let s = c.rgb / max(c.a, 1e-5);
79197
+ let l = clamp(dot(s, vec3<f32>(0.2126, 0.7152, 0.0722)), 0.0, 1.0);
79198
+ let m = mix(mix(fu.dark, fu.middle, l * 2.0), mix(fu.middle, fu.light, l * 2.0 - 1.0), step(0.5, l));
79199
+ let o = mix(s, m, clamp(fu.amount, 0.0, 1.0));
79200
+
79201
+ return vec4<f32>(o * c.a, c.a);
79202
+ }
79203
+ `),
79204
+ glsl: /* @__PURE__ */ withSetGlsl(`void main() {
79205
+ vec2 n = inputPlace(vTextureCoord);
79206
+ vec4 c = sampleInput(n);
79207
+ vec3 s = c.rgb / max(c.a, 1e-5);
79208
+ float l = clamp(dot(s, vec3(0.2126, 0.7152, 0.0722)), 0.0, 1.0);
79209
+ vec3 m = mix(mix(dark, middle, l * 2.0), mix(middle, light, l * 2.0 - 1.0), step(0.5, l));
79210
+ vec3 o = mix(s, m, clamp(amount, 0.0, 1.0));
79211
+
79212
+ finalColor = vec4(o * c.a, c.a);
79213
+ }
79214
+ `),
79215
+ uniforms: {
79216
+ dark: { color: 0 },
79217
+ middle: { color: 8421504 },
79218
+ light: { color: 16777215 },
79219
+ amount: 1
79220
+ }
79221
+ });
79222
+ /**
79223
+ * A view flipped in place: `axis: 1` top to bottom, `axis: 0` left to right, as `Fold`'s axes. `alpha` (0..1) fades
79224
+ * it; `fade` above 0 eases it out to nothing at that share of the view from its mirror line, the top edge for axis 1
79225
+ * and the left edge for axis 0; 0 keeps it whole. It draws inside its own view, no padding: put it on a copy of a view
79226
+ * placed under the original for a reflection on a floor or water. List it in a feature's `filters`, as a game's own
79227
+ * filter. One render pass, one sample; on WebGPU a tween draws on the view's own quad, no pass, from its third frame.
79228
+ *
79229
+ * @example
79230
+ * ```ts
79231
+ * // The copy of a vase under it is its reflection on the polished floor, gone at half its height.
79232
+ * Mirror({ alpha: 0.4, fade: 0.5 }).value.axis; // 1
79233
+ * view.tween(Mirror, { alpha: 0 }, { ms: 300 });
79234
+ * ```
79235
+ */
79236
+ const Mirror = /*#__PURE__*/ defineFilter("effects.mirror", {
79237
+ wgsl: /* @__PURE__ */ withSetWgsl(`@fragment
79238
+ fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
79239
+ let n = inputPlace(uv);
79240
+ let a = step(0.5, fu.axis);
79241
+ let q = vec2<f32>(mix(1.0 - n.x, n.x, a), mix(n.y, 1.0 - n.y, a));
79242
+ let t = mix(n.x, n.y, a);
79243
+ let fading = 1.0 - step(fu.fade, 0.0);
79244
+ let keep = 1.0 - fading * smoothstep(0.0, max(fu.fade, 1e-4), t);
79245
+
79246
+ return sampleInput(q) * (clamp(fu.alpha, 0.0, 1.0) * keep);
79247
+ }
79248
+ `),
79249
+ glsl: /* @__PURE__ */ withSetGlsl(`void main() {
79250
+ vec2 n = inputPlace(vTextureCoord);
79251
+ float a = step(0.5, axis);
79252
+ vec2 q = vec2(mix(1.0 - n.x, n.x, a), mix(n.y, 1.0 - n.y, a));
79253
+ float t = mix(n.x, n.y, a);
79254
+ float fading = 1.0 - step(fade, 0.0);
79255
+ float keep = 1.0 - fading * smoothstep(0.0, max(fade, 1e-4), t);
79256
+
79257
+ finalColor = sampleInput(q) * (clamp(alpha, 0.0, 1.0) * keep);
79258
+ }
79259
+ `),
79260
+ uniforms: {
79261
+ axis: 1,
79262
+ alpha: 1,
79263
+ fade: 0
79264
+ }
79265
+ });
79266
+ /**
79267
+ * A view drawn in square blocks `size` CSS px wide, counted from its top-left, each the colour of the view at the
79268
+ * block's centre; a `size` of 1 or less draws the view as it is. For a memory that breaks up, a picture that sharpens
79269
+ * as it loads. List it in a feature's `filters`, as a game's own filter. One render pass, one sample; on WebGPU a tween
79270
+ * draws on the view's own quad, no pass, from its third frame.
79271
+ *
79272
+ * @example
79273
+ * ```ts
79274
+ * // A blurred memory sharpens: its blocks shrink from 8 px to none.
79275
+ * Pixelate().value.size; // 8
79276
+ * view.tween(Pixelate, { size: 1 }, { ms: 600 });
79277
+ * ```
79278
+ */
79279
+ const Pixelate = /*#__PURE__*/ defineFilter("effects.pixelate", {
79280
+ wgsl: /* @__PURE__ */ withSetWgsl(`@fragment
79281
+ fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
79282
+ let n = inputPlace(uv);
79283
+ let s = inputFrame();
79284
+ let px = clamp(n * s, vec2<f32>(0.0), s - 0.5);
79285
+ let side = max(fu.size, 1.0);
79286
+ let cell = (floor(px / side) + 0.5) * side;
79287
+ let blocky = 1.0 - step(fu.size, 1.0);
79288
+ let q = mix(n, cell / s, blocky);
79289
+
79290
+ return sampleInput(q);
79291
+ }
79292
+ `),
79293
+ glsl: /* @__PURE__ */ withSetGlsl(`void main() {
79294
+ vec2 n = inputPlace(vTextureCoord);
79295
+ vec2 s = inputFrame();
79296
+ vec2 px = clamp(n * s, vec2(0.0), s - 0.5);
79297
+ float side = max(size, 1.0);
79298
+ vec2 cell = (floor(px / side) + 0.5) * side;
79299
+ float blocky = 1.0 - step(size, 1.0);
79300
+ vec2 q = mix(n, cell / s, blocky);
79301
+
79302
+ finalColor = sampleInput(q);
79303
+ }
79304
+ `),
79305
+ uniforms: { size: 8 }
79306
+ });
79307
+ /**
79122
79308
  * A view shown up to a straight line that sweeps across it: `progress` 0 hides all of it, 1 shows all of it, the line
79123
79309
  * at `angle` radians (0 sweeps from the left, `Math.PI / 2` from the top) with an edge `soft` wide. The angle is in the
79124
79310
  * view's own 0..1 frame, so `Math.PI / 4` sweeps from one corner to the opposite one on a view of any shape. For a wipe
@@ -79210,6 +79396,81 @@ fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
79210
79396
  }
79211
79397
  });
79212
79398
  /**
79399
+ * A drop shadow of `color` at `alpha` (0..1) under the shape of a view and its subtree, moved by `x`, `y` CSS px and
79400
+ * blurred `soft` CSS px wide; the view is drawn over it. The view is padded by 8 px, the shadow's reach: `soft` is at
79401
+ * most 8, and `x` and `y` are clamped so `|x| + soft` and `|y| + soft` stay within 8. 9 samples of the shape on a
79402
+ * ring, where a blurred copy takes a chain, so a wide `soft` bands a little. For a card lifted off the table, a piece being dragged. List it
79403
+ * in a feature's `filters`, as a game's own filter. One render pass; on WebGPU a tween draws on the view's own quad,
79404
+ * no pass, from its third frame.
79405
+ *
79406
+ * @example
79407
+ * ```ts
79408
+ * // A picked card lifts: its shadow drops further and softens.
79409
+ * Shadow().value.y; // 4
79410
+ * Shadow.filter.padding; // 8
79411
+ * view.tween(Shadow, { y: 5, soft: 3 }, { ms: 160 });
79412
+ * ```
79413
+ */
79414
+ const Shadow = /*#__PURE__*/ defineFilter("effects.shadow", {
79415
+ wgsl: /* @__PURE__ */ withSetWgsl(`const SHADOW_TAU: f32 = 6.283185307179586;
79416
+ const SHADOW_REACH: f32 = 8.0;
79417
+
79418
+ @fragment
79419
+ fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
79420
+ let n = inputPlace(uv);
79421
+ let c = sampleInput(n);
79422
+ let f = inputFrame();
79423
+ let radius = clamp(fu.soft, 0.0, SHADOW_REACH);
79424
+ let room = SHADOW_REACH - radius;
79425
+ let off = vec2<f32>(clamp(fu.x, -room, room), clamp(fu.y, -room, room));
79426
+ let base = n - off / f;
79427
+ let reach = radius / f;
79428
+ var cover = sampleInput(base).a;
79429
+
79430
+ for (var i = 0; i < 8; i++) {
79431
+ let turn = SHADOW_TAU * f32(i) / 8.0;
79432
+ cover += sampleInput(base + vec2<f32>(cos(turn), sin(turn)) * reach).a;
79433
+ }
79434
+
79435
+ let shade = clamp(cover / 9.0 * fu.alpha, 0.0, 1.0);
79436
+
79437
+ return c + vec4<f32>(fu.color * shade, shade) * (1.0 - c.a);
79438
+ }
79439
+ `),
79440
+ glsl: /* @__PURE__ */ withSetGlsl(`const float SHADOW_TAU = 6.283185307179586;
79441
+ const float SHADOW_REACH = 8.0;
79442
+
79443
+ void main() {
79444
+ vec2 n = inputPlace(vTextureCoord);
79445
+ vec4 c = sampleInput(n);
79446
+ vec2 f = inputFrame();
79447
+ float radius = clamp(soft, 0.0, SHADOW_REACH);
79448
+ float room = SHADOW_REACH - radius;
79449
+ vec2 off = vec2(clamp(x, -room, room), clamp(y, -room, room));
79450
+ vec2 base = n - off / f;
79451
+ vec2 reach = radius / f;
79452
+ float cover = sampleInput(base).a;
79453
+
79454
+ for (int i = 0; i < 8; i++) {
79455
+ float turn = SHADOW_TAU * float(i) / 8.0;
79456
+ cover += sampleInput(base + vec2(cos(turn), sin(turn)) * reach).a;
79457
+ }
79458
+
79459
+ float shade = clamp(cover / 9.0 * alpha, 0.0, 1.0);
79460
+
79461
+ finalColor = c + vec4(color * shade, shade) * (1.0 - c.a);
79462
+ }
79463
+ `),
79464
+ uniforms: {
79465
+ x: 0,
79466
+ y: 4,
79467
+ soft: 4,
79468
+ color: { color: 0 },
79469
+ alpha: .5
79470
+ },
79471
+ padding: 8
79472
+ });
79473
+ /**
79213
79474
  * A band of light across a view: `position` is where the band stands along its sweep, -0.5 before the view and 1.5 past
79214
79475
  * it, so a tween from one to the other sweeps it across once; `width` is how far from its line the band reaches (0..1
79215
79476
  * of the sweep), `angle` its direction in radians in the view's own 0..1 frame, `strength` how much light it adds. Light
@@ -79299,6 +79560,61 @@ fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
79299
79560
  amount: 1
79300
79561
  }
79301
79562
  });
79563
+ /**
79564
+ * A view swaying in a sine wave: at `angle` 0 its rows move left and right, at `π / 2` its columns move up and down,
79565
+ * by up to `amplitude` CSS px, one wave every `wavelength` CSS px, shifted by `phase` (radians). What would come from
79566
+ * outside the view is transparent. There is no time in the shader: a tween of `phase` by a full turn, repeated, makes
79567
+ * it flow. For water, heat, a dream. List it in a feature's `filters`, as a game's own filter. One render pass, one
79568
+ * sample; on WebGPU a tween draws on the view's own quad, no pass, from its third frame.
79569
+ *
79570
+ * @example
79571
+ * ```ts
79572
+ * // A reflection in a pond ripples for as long as the scene is open.
79573
+ * Wave({ amplitude: 3 }).value.wavelength; // 48
79574
+ * view.tween(Wave, { phase: Math.PI * 2 }, { ms: 1200, ease: "linear", repeat: "forever" });
79575
+ * ```
79576
+ */
79577
+ const Wave = /*#__PURE__*/ defineFilter("effects.wave", {
79578
+ wgsl: /* @__PURE__ */ withSetWgsl(`const WAVE_TAU: f32 = 6.283185307179586;
79579
+
79580
+ @fragment
79581
+ fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
79582
+ let n = inputPlace(uv);
79583
+ let f = inputFrame();
79584
+ let px = n * f;
79585
+ let dir = vec2<f32>(cos(fu.angle), sin(fu.angle));
79586
+ let along = dot(px, vec2<f32>(-dir.y, dir.x));
79587
+ let o = fu.amplitude * sin(WAVE_TAU * along / max(fu.wavelength, 1.0) + fu.phase);
79588
+ let q = (px - dir * o) / f;
79589
+ let away = max(abs(q.x - clamp(q.x, 0.0, 1.0)), abs(q.y - clamp(q.y, 0.0, 1.0)));
79590
+ let inside = step(away, 1e-4);
79591
+
79592
+ return sampleInput(q) * inside;
79593
+ }
79594
+ `),
79595
+ glsl: /* @__PURE__ */ withSetGlsl(`const float WAVE_TAU = 6.283185307179586;
79596
+
79597
+ void main() {
79598
+ vec2 n = inputPlace(vTextureCoord);
79599
+ vec2 f = inputFrame();
79600
+ vec2 px = n * f;
79601
+ vec2 dir = vec2(cos(angle), sin(angle));
79602
+ float along = dot(px, vec2(-dir.y, dir.x));
79603
+ float o = amplitude * sin(WAVE_TAU * along / max(wavelength, 1.0) + phase);
79604
+ vec2 q = (px - dir * o) / f;
79605
+ float away = max(abs(q.x - clamp(q.x, 0.0, 1.0)), abs(q.y - clamp(q.y, 0.0, 1.0)));
79606
+ float inside = step(away, 1e-4);
79607
+
79608
+ finalColor = sampleInput(q) * inside;
79609
+ }
79610
+ `),
79611
+ uniforms: {
79612
+ amplitude: 4,
79613
+ wavelength: 48,
79614
+ phase: 0,
79615
+ angle: 0
79616
+ }
79617
+ });
79302
79618
  //#endregion
79303
79619
  //#region src/index.ts
79304
79620
  /**
@@ -79516,4 +79832,4 @@ const screen = [
79516
79832
  uiPlugin
79517
79833
  ];
79518
79834
  //#endregion
79519
- export { HAPTIC_KINDS as $, PASS_KINDS as $t, types_exports as A, Traced as At, types_exports$10 as B, Glow as Bt, defineFeature as C, PointerOver as Ct, defineBundles as D, Tappable as Dt, music as E, Swipeable as Et, types_exports$5 as F, Emitter as Ft, types_exports$15 as G, audioPlugin as Gt, types_exports$12 as H, Outline as Ht, types_exports$6 as I, Alpha as It, uiPlugin as J, animPlugin as Jt, types_exports$16 as K, scenesPlugin as Kt, types_exports$7 as L, Blur as Lt, types_exports$2 as M, messageArgument as Mt, types_exports$3 as N, messageDuration as Nt, load as O, Touchable as Ot, types_exports$4 as P, effectsPlugin as Pt, platformPlugin as Q, rendererPlugin as Qt, types_exports$8 as R, ColorMatrix as Rt, tr as S, Pointer as St, defineEmitter as T, Pressed as Tt, types_exports$13 as U, defineFilter as Ut, types_exports$11 as V, Noise as Vt, types_exports$14 as W, debugPlugin as Wt, defineMotion as X, Animation as Xt, resolve as Y, AnimPlayer as Yt, textPlugin as Z, Frames as Zt, guide as _, modelPlugin as _n, inputPlugin as _t, Vignette as a, PROBLEM_RULES as an, parallel as at, projection as b, lifecyclePlugin as bn, Held as bt, RevealLine as c, DEMAND_REASONS as cn, set as ct, Flash as d, refuseStart as dn, spawned as dt, frameAt as en, defineAnimation as et, Dissolve as f, contribution as fn, stagger as ft, defineEffect as g, type as gn, wait as gt, cubicBezier as h, to as hn, use as ht, screen as i, PERF_LOG_VERSION as in, mark as it, types_exports$1 as j, i18nPlugin as jt, ready as k, Traceable as kt, Grade as l, worldPlugin as ln, sfx as lt, Aura as m, slot as mn, tween as mt, createPlugin as n, PERF_CAUSES as nn, frames as nt, Shine as o, SHADER_WHATS as on, play$1 as ot, Bloom as p, exit as pn, stopSfx as pt, types_exports$17 as q, assetsPlugin as qt, defineGame as r, PERF_GAP_BUCKETS as rn, haptic as rt, RevealRound as s, CANVAS_RESTARTS as sn, sequence as st, createApp as t, MONITOR_SECTIONS as tn, external as tt, Fold as u, flowPlugin as un, spawn as ut, hint as v, SaveUnreadableError as vn, Draggable as vt, flattenFeatures as w, Pressable as wt, defineScene as x, timePlugin as xn, Hovered as xt, schedule as y, clockPlugin as yn, DropTarget as yt, types_exports$9 as z, Displacement as zt };
79835
+ export { uiPlugin as $, animPlugin as $t, defineEmitter as A, Pressed as At, types_exports$5 as B, Emitter as Bt, hint as C, SaveUnreadableError as Cn, Draggable as Ct, tr as D, Pointer as Dt, defineScene as E, timePlugin as En, Hovered as Et, types_exports as F, Traced as Ft, types_exports$10 as G, Glow as Gt, types_exports$7 as H, Blur as Ht, types_exports$1 as I, i18nPlugin as It, types_exports$13 as J, defineFilter as Jt, types_exports$11 as K, Noise as Kt, types_exports$2 as L, messageArgument as Lt, defineBundles as M, Tappable as Mt, load as N, Touchable as Nt, defineFeature as O, PointerOver as Ot, ready as P, Traceable as Pt, types_exports$17 as Q, assetsPlugin as Qt, types_exports$3 as R, messageDuration as Rt, guide as S, modelPlugin as Sn, inputPlugin as St, projection as T, lifecyclePlugin as Tn, Held as Tt, types_exports$8 as U, ColorMatrix as Ut, types_exports$6 as V, Alpha as Vt, types_exports$9 as W, Displacement as Wt, types_exports$15 as X, audioPlugin as Xt, types_exports$14 as Y, debugPlugin as Yt, types_exports$16 as Z, scenesPlugin as Zt, Dissolve as _, contribution as _n, stagger as _t, Wave as a, frameAt as an, defineAnimation as at, cubicBezier as b, to as bn, use as bt, Shadow as c, PERF_GAP_BUCKETS as cn, haptic as ct, Pixelate as d, SHADER_WHATS as dn, play$1 as dt, AnimPlayer as en, resolve as et, Mirror as f, CANVAS_RESTARTS as fn, sequence as ft, Flash as g, refuseStart as gn, spawned as gt, Fold as h, flowPlugin as hn, spawn as ht, screen as i, PASS_KINDS as in, HAPTIC_KINDS as it, music as j, Swipeable as jt, flattenFeatures as k, Pressable as kt, RevealRound as l, PERF_LOG_VERSION as ln, mark as lt, Grade as m, worldPlugin as mn, sfx as mt, createPlugin as n, Frames as nn, textPlugin as nt, Vignette as o, MONITOR_SECTIONS as on, external as ot, GradientMap as p, DEMAND_REASONS as pn, set as pt, types_exports$12 as q, Outline as qt, defineGame as r, rendererPlugin as rn, platformPlugin as rt, Shine as s, PERF_CAUSES as sn, frames as st, createApp as t, Animation as tn, defineMotion as tt, RevealLine as u, PROBLEM_RULES as un, parallel as ut, Bloom as v, exit as vn, stopSfx as vt, schedule as w, clockPlugin as wn, DropTarget as wt, defineEffect as x, type as xn, wait as xt, Aura as y, slot as yn, tween as yt, types_exports$4 as z, effectsPlugin as zt };
@@ -1,6 +1,6 @@
1
1
  import { Bn as NodeTable, Ir as ClockSource, Jn as Hint, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Wn as Descriptor, Wr as Json, Yn as NodeFx } from "./types-VJcIdmHU.mjs";
2
- import { t as createApp } from "./index-DbmGsQgB.mjs";
3
- import { b as memory, x as saveOf, y as WithGameState } from "./types-Chv5YFWw.mjs";
2
+ import { t as createApp } from "./index-pi4DqEyw.mjs";
3
+ import { b as memory, x as saveOf, y as WithGameState } from "./types-CEuTMLxR.mjs";
4
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-CO19o31k.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
package/dist/testing.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { dn as refuseStart, gn as type, pn as exit, t as createApp, w as flattenFeatures } from "./src-nsjSGfQQ.mjs";
1
+ import { gn as refuseStart, k as flattenFeatures, t as createApp, vn as exit, xn as type } from "./src-CAvbU88U.mjs";
2
2
  import { n as saveOf, t as memory } from "./memory-DeD9wis6.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-yi2XmYWC.mjs";
@@ -2561,8 +2561,88 @@ type BloomValue = {
2561
2561
  enabled: boolean;
2562
2562
  order: number;
2563
2563
  };
2564
+ /**
2565
+ * `Pixelate`: the view drawn in square blocks `size` CSS px wide, from its top-left; 1 or less draws it as it is.
2566
+ *
2567
+ * @example
2568
+ * ```ts
2569
+ * const value: PixelateValue = { size: 8, enabled: true, order: 0 };
2570
+ * ```
2571
+ */
2572
+ type PixelateValue = {
2573
+ size: number;
2574
+ enabled: boolean;
2575
+ order: number;
2576
+ };
2577
+ /**
2578
+ * `GradientMap`: the view's light mapped from `dark` through `middle` to `light`, mixed in by `amount` (0..1).
2579
+ *
2580
+ * @example
2581
+ * ```ts
2582
+ * const value: GradientMapValue = { dark: 0x2b1a0e, middle: 0x9c6b3c, light: 0xf5e6c8, amount: 1, enabled: true, order: 0 };
2583
+ * ```
2584
+ */
2585
+ type GradientMapValue = {
2586
+ dark: number;
2587
+ middle: number;
2588
+ light: number;
2589
+ amount: number;
2590
+ enabled: boolean;
2591
+ order: number;
2592
+ };
2593
+ /**
2594
+ * `Wave`: the view swaying by `amplitude` CSS px, one wave every `wavelength` CSS px, shifted by `phase` (radians);
2595
+ * at `angle` 0 its rows sway left and right, at `π / 2` its columns up and down.
2596
+ *
2597
+ * @example
2598
+ * ```ts
2599
+ * const value: WaveValue = { amplitude: 4, wavelength: 48, phase: Math.PI, angle: 0, enabled: true, order: 0 };
2600
+ * ```
2601
+ */
2602
+ type WaveValue = {
2603
+ amplitude: number;
2604
+ wavelength: number;
2605
+ phase: number;
2606
+ angle: number;
2607
+ enabled: boolean;
2608
+ order: number;
2609
+ };
2610
+ /**
2611
+ * `Mirror`: the view flipped top to bottom (`axis: 1`) or left to right (`axis: 0`), at `alpha` (0..1), fading out to
2612
+ * nothing at `fade` of its size from the mirror line; `fade: 0` keeps it whole.
2613
+ *
2614
+ * @example
2615
+ * ```ts
2616
+ * const value: MirrorValue = { axis: 1, alpha: 0.4, fade: 0.5, enabled: true, order: 0 };
2617
+ * ```
2618
+ */
2619
+ type MirrorValue = {
2620
+ axis: number;
2621
+ alpha: number;
2622
+ fade: number;
2623
+ enabled: boolean;
2624
+ order: number;
2625
+ };
2626
+ /**
2627
+ * `Shadow`: a shadow of `color` at `alpha` (0..1) under the view, moved by `x`, `y` CSS px and `soft` CSS px wide;
2628
+ * `|x| + soft` and `|y| + soft` are held within the padding of 8.
2629
+ *
2630
+ * @example
2631
+ * ```ts
2632
+ * const value: ShadowValue = { x: 0, y: 4, soft: 4, color: 0x000000, alpha: 0.5, enabled: true, order: 0 };
2633
+ * ```
2634
+ */
2635
+ type ShadowValue = {
2636
+ x: number;
2637
+ y: number;
2638
+ soft: number;
2639
+ color: number;
2640
+ alpha: number;
2641
+ enabled: boolean;
2642
+ order: number;
2643
+ };
2564
2644
  declare namespace types_d_exports$2 {
2565
- export { AlphaValue, AssetsReplaced$1 as AssetsReplaced, AuraValue, BloomValue, BlurValue, BundleUnloaded$1 as BundleUnloaded, ColorMatrixValue, Config$2 as Config, CoreKind, Curve, Deps$2 as Deps, DisplacementValue, DissolveValue, EffectsApi, EffectsCtx, EffectsDiagnostics, EffectsStats, EmitterConfig, EmitterDefinition, EmitterValue, FilterArea, FilterCache, FilterChainContext, FilterComponent, FilterDefinition, FilterInput, FilterInputDefinition, FilterSpec, FilterStage, FilterStep, FilterValueOf, FlashValue, FoldValue, GlowValue, GradeValue, HotSwap, KernelSlice$2 as KernelSlice, NoiseValue, OutlineValue, Range, ResolvedEmitterConfig, RevealLineValue, RevealRoundValue, Shape, ShineValue, State$2 as State, UniformDeclaration, UniformSpec, UniformValue, VignetteValue };
2645
+ export { AlphaValue, AssetsReplaced$1 as AssetsReplaced, AuraValue, BloomValue, BlurValue, BundleUnloaded$1 as BundleUnloaded, ColorMatrixValue, Config$2 as Config, CoreKind, Curve, Deps$2 as Deps, DisplacementValue, DissolveValue, EffectsApi, EffectsCtx, EffectsDiagnostics, EffectsStats, EmitterConfig, EmitterDefinition, EmitterValue, FilterArea, FilterCache, FilterChainContext, FilterComponent, FilterDefinition, FilterInput, FilterInputDefinition, FilterSpec, FilterStage, FilterStep, FilterValueOf, FlashValue, FoldValue, GlowValue, GradeValue, GradientMapValue, HotSwap, KernelSlice$2 as KernelSlice, MirrorValue, NoiseValue, OutlineValue, PixelateValue, Range, ResolvedEmitterConfig, RevealLineValue, RevealRoundValue, ShadowValue, Shape, ShineValue, State$2 as State, UniformDeclaration, UniformSpec, UniformValue, VignetteValue, WaveValue };
2566
2646
  }
2567
2647
  /**
2568
2648
  * effects plugin config. `maxParticles` here is the global warning line; the `maxParticles` of an
@@ -3549,4 +3629,4 @@ type UiApi = {
3549
3629
  }> | undefined;
3550
3630
  };
3551
3631
  //#endregion
3552
- export { HapticKind as $, EmitterDefinition as A, GlowValue as B, FoldValue as C, ShineValue as D, RevealRoundValue as E, DisplacementValue as F, AnimPlayerValue as G, OutlineValue as H, FilterArea as I, MotionKeyframe as J, Config$3 as K, FilterComponent as L, AlphaValue as M, BlurValue as N, VignetteValue as O, ColorMatrixValue as P, types_d_exports$3 as Q, FilterSpec as R, FlashValue as S, RevealLineValue as T, UniformDeclaration as U, NoiseValue as V, AnimApi as W, Target as X, State$3 as Y, TimelinesSnapshot as Z, State$2 as _, tween as _t, AudioApi as a, frames as at, BloomValue as b, OverlayApi as bt, MusicDescriptor as c, parallel as ct, State$1 as d, set as dt, SfxDescriptor as et, VolumesFor as f, sfx as ft, EffectsStats as g, stopSfx as gt, EffectsApi as h, stagger as ht, types_d_exports as i, external as it, EmitterValue as j, EmitterConfig as k, MusicOptions as l, play as lt, Config$2 as m, spawned as mt, State as n, HAPTIC_KINDS as nt, AudioContextLike as o, haptic as ot, types_d_exports$1 as p, spawn as pt, FramesValue as q, UiApi as r, defineAnimation as rt, Config$1 as s, mark as st, Config as t, Step as tt, SoundEntry as u, sequence as ut, types_d_exports$2 as v, use as vt, GradeValue as w, DissolveValue as x, types_d_exports$4 as xt, AuraValue as y, wait as yt, FilterValueOf as z };
3632
+ export { MotionKeyframe as $, ShadowValue as A, DisplacementValue as B, FoldValue as C, use as Ct, PixelateValue as D, MirrorValue as E, types_d_exports$4 as Et, EmitterDefinition as F, GlowValue as G, FilterComponent as H, EmitterValue as I, UniformDeclaration as J, NoiseValue as K, AlphaValue as L, VignetteValue as M, WaveValue as N, RevealLineValue as O, EmitterConfig as P, FramesValue as Q, BlurValue as R, FlashValue as S, tween as St, GradientMapValue as T, OverlayApi as Tt, FilterSpec as U, FilterArea as V, FilterValueOf as W, AnimPlayerValue as X, AnimApi as Y, Config$3 as Z, State$2 as _, sfx as _t, AudioApi as a, SfxDescriptor as at, BloomValue as b, stagger as bt, MusicDescriptor as c, defineAnimation as ct, State$1 as d, haptic as dt, State$3 as et, VolumesFor as f, mark as ft, EffectsStats as g, set as gt, EffectsApi as h, sequence as ht, types_d_exports as i, HapticKind as it, ShineValue as j, RevealRoundValue as k, MusicOptions as l, external as lt, Config$2 as m, play as mt, State as n, TimelinesSnapshot as nt, AudioContextLike as o, Step as ot, types_d_exports$1 as p, parallel as pt, OutlineValue as q, UiApi as r, types_d_exports$3 as rt, Config$1 as s, HAPTIC_KINDS as st, Config as t, Target as tt, SoundEntry as u, frames as ut, types_d_exports$2 as v, spawn as vt, GradeValue as w, wait as wt, DissolveValue as x, stopSfx as xt, AuraValue as y, spawned as yt, ColorMatrixValue as z };
@@ -1,7 +1,7 @@
1
1
  import { $ as Config$2, Hr as Config, Ir as ClockSource, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Un as TypeTag, Wr as Json, Xr as ProviderCall, Yr as PlayerStateProvider, Zr as SaveDoc, _t as Orientation, a as Config$3, d as Manifest, ei as SnapshotOf, gn as Config$1, it as PixiModule, n as AssetsIo } from "./types-VJcIdmHU.mjs";
2
- import { o as AudioContextLike, s as Config$4 } from "./types-CtcQGXWl.mjs";
2
+ import { o as AudioContextLike, s as Config$4 } from "./types-BW8Ml4o2.mjs";
3
3
  import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-BaarAgv8.mjs";
4
- import { Et as PlatformProvider, It as audioPlugin, Nt as effectsPlugin, i as screen, t as createApp, wt as platformPlugin } from "./index-DbmGsQgB.mjs";
4
+ import { Rt as effectsPlugin, Vt as audioPlugin, i as screen, jt as PlatformProvider, kt as platformPlugin, t as createApp } from "./index-pi4DqEyw.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
7
7
  //#region src/plugins/model/store/providers/memory.d.ts
@@ -1,9 +1,9 @@
1
1
  import { Ar as Api$1, Fr as Api$4, Q as Api, Vr as Api$2, ii as Api$3 } from "./types-VJcIdmHU.mjs";
2
- import { W as AnimApi, r as UiApi } from "./types-CtcQGXWl.mjs";
2
+ import { Y as AnimApi, r as UiApi } from "./types-BW8Ml4o2.mjs";
3
3
  import { R as InputApi } from "./types-BaarAgv8.mjs";
4
4
  import { r as Repro } from "./headless-CO19o31k.mjs";
5
5
  import { i as ControlApp, o as InputOf } from "./types-CbSTnp8T.mjs";
6
- import { t as commands } from "./commands-BjKkbgWs.mjs";
6
+ import { t as commands } from "./commands-1pXMU61X.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-DubaCpDs.mjs";
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-CFkE25fP.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 };
package/llms.txt CHANGED
@@ -28,7 +28,7 @@ Root exports:
28
28
  - Plugin instances: `timePlugin`, `lifecyclePlugin`, `modelPlugin`, `clockPlugin`, `flowPlugin`, `worldPlugin`, `rendererPlugin`, `inputPlugin`, `assetsPlugin`, `scenesPlugin`, `animPlugin`, `i18nPlugin`, `textPlugin`, `uiPlugin`, `audioPlugin`, `effectsPlugin`, `platformPlugin`; the list `screen` = `world`, `renderer`, `input`, `assets`, `scenes`, `anim`, `i18n`, `text`, `ui`. `effects`, `audio` and `platform` are opt-in: `plugins: [...screen, effectsPlugin, audioPlugin, platformPlugin]`, `platform` last.
29
29
  - Screen helpers from the root: `component`, `tag`, `resource`, `mut`, `system`, `projection`, `Layer`, `Order`, `Exiting`, `Tree`, `Now`, `Transform`, `Sprite`, `NineSlice`, `Shape`, `Parent`, `Display`, `Overlay`, `HudPart`, `sprite`, `Tappable`, `Pressable`, `Draggable`, `DropTarget`, `Swipeable`, `Traceable`, `Touchable`, `Held`, `Hovered`, `PointerOver`, `Pressed`, `Pointer`, `Traced`, `defineBundles`, `load`, `defineScene`.
30
30
  - Interface helpers from the root (V3): `defineAnimation`, `sequence`, `parallel`, `stagger`, `tween`, `set`, `wait`, `mark`, `frames`, `sfx`, `haptic`, `use`, `spawn`, `spawned`, `play`, `external`, `defineMotion`, `Animation`, `Frames`, the resource `AnimPlayer`; `tr`, `messageArgument`, `messageDuration`; `Text`, `label`, `defineTextStyles`, `defineTextFormats`, `bind`, `Countdown` and the types `BindOptions`, `CountdownValue`, `TextFormat`, `TextFormats`, `TextFormatAnswer`, `TextFormatFunction`, `FormattedNumber`; `defineComponent`, `popup`, `defineStyle` and the type `TextTagStyle`, `defineTokens`, `resolve`, `Box`, `LocalWrite`, `DebugTrigger`, `ScrollState`; `music`. Also `stopSfx(id, { fadeMs? })` (ends a named sound, see audio) and `cubicBezier(x1, y1, x2, y2)` (a CSS-style easing curve for `tween`'s `ease`).
31
- - Effects helpers from the root (V5): `defineEmitter`, `Emitter`, `defineFilter`, `Glow`, `Outline`, `Blur`, `ColorMatrix`, `Noise`, `Displacement`, `Alpha`; the effect set `Flash`, `Grade`, `Vignette`, `RevealLine`, `RevealRound`, `Dissolve`, `Shine`, `Aura`, `Fold`, `Bloom` and their value types `FlashValue`, `GradeValue`, `VignetteValue`, `RevealLineValue`, `RevealRoundValue`, `DissolveValue`, `ShineValue`, `AuraValue`, `FoldValue`, `BloomValue`.
31
+ - Effects helpers from the root (V5): `defineEmitter`, `Emitter`, `defineFilter`, `Glow`, `Outline`, `Blur`, `ColorMatrix`, `Noise`, `Displacement`, `Alpha`; the effect set `Flash`, `Grade`, `Vignette`, `RevealLine`, `RevealRound`, `Dissolve`, `Shine`, `Aura`, `Fold`, `Bloom`, `Pixelate`, `GradientMap`, `Wave`, `Mirror`, `Shadow` and their value types `FlashValue`, `GradeValue`, `VignetteValue`, `RevealLineValue`, `RevealRoundValue`, `DissolveValue`, `ShineValue`, `AuraValue`, `FoldValue`, `BloomValue`, `PixelateValue`, `GradientMapValue`, `WaveValue`, `MirrorValue`, `ShadowValue`.
32
32
  - Platform from the root (V6): the types `PlatformProvider`, `BackResult`, `HapticKind` and the frozen list `HAPTIC_KINDS`.
33
33
  - `defineGame<Types>()` returns, typed by the game's `player`, `session`, `assets`, `bundles`, `scenes`, `strings`, `textStyles` and `textFormats`: `defineNode`, `defineFlow`, `defineFeature`, `projection`, `sprite`, `Sprite`, `NineSlice`, `defineBundles`, `load`, `defineScene`, `defineAnimation`, `frames`, `sfx`, `play`, `tr`, `label`, `bind`, `defineTextStyles`, `defineTextFormats`, `defineComponent`, `defineStyle`, `defineTokens`, `popup`, `music`, `Frames`, `defineEmitter`, `Emitter`, `Displacement`, and `system` (its `ctx.snapshot` typed by `player` and `session`), `volumes` (the `audio` config's reader of the typed player), `key` (string keys from data, below). `Types` is `{ player; session; assets: string; bundles?: string; scenes?: string; strings: Record<string, unknown>; textStyles?: string; textFormats?: string; emitters?: string }`.
34
34
  - `@moku-labs/game/assets`: `scanAssets(options)`, `emitKeys`, `emitManifest`, `compileStrings(root, out, options?)`, `checkStrings`, `packAssets(options)`, `exportStrings`, `importStrings`, `runCli(argv, strings)` with `strings: StringsTools` = `{ compile: compileStrings, exportStrings, importStrings }`. Audio files are `.mp3` or `.m4a`. Asset key = feature (or layer name) + "." + path inside `assets/`; a sub-feature's own name, `features/episodes/ep01/assets/ward/room.png` → `ep01.ward.room`. `runCli` (a game's `bun run assets:keys`) scans the assets and compiles the `strings/<locale>.json` of every feature and sub-feature, and the `strings/` of every layer, into `generated/strings.ts` (the `Strings` type for `defineGame`), one `generated/strings.<locale>.ts` per locale for the top-level features and the layers, and `generated/strings.<feature>.<locale>.ts` per sub-feature with string files, its keys only, each starting with `<feature>.` (it imports `messageArgument` and `messageDuration` from `@moku-labs/game` when a message needs them, no helper is copied in); `--check` fails when any output is out of date; `--pack <dir>` writes the production build. `--layer <folder>[=<name>]`, repeatable and good with every mode, scans `<root>/<folder>/` like one more feature under `<name>` (`<folder>` alone maps to itself): its `assets.ts`, `assets/` and `strings/<locale>.json`. A game on the layered layout passes `--layer shared=ui`, so `shared/assets/*` keeps the `ui.*` keys. A missing layer folder is a warning. `scanAssets`, `compileStrings`, `exportStrings` and `importStrings` take the same map as `layers: { shared: "ui" }`. `--pseudo` also writes the pseudo-locale `en-XA`. `--export <dir>` and `--import <dir>` exchange strings with translators; `--source <locale>` names the locale they read from, `"en"` by default. The package bin `moku-game-assets` is this CLI: a script is `"assets:keys": "moku-game-assets --root src --manifest public/assets/manifest.json --keys src/generated/assets.ts"`. A game with `config.ts` runs `moku-game keys` and `moku-game pack` instead: they pass its paths and its layers.
@@ -679,7 +679,7 @@ Cosmetic rendering extras as data, drawn by `effectsPlugin`: `plugins: [...scree
679
679
  - Filter inputs: `inputs: { blur: { stages: [FrostBox4, FrostGauss], chain: (value, { resolution }) => [{ stage, scale, uniforms? }] } }` gives the body `sampleBlur(uv)` in both languages: the last texture of a chain of stages (each a `defineFilter`, drawing alone) drawn from the view's input into pooled textures at `resolution × scale`. The chain runs only when a uniform or the resolution changed; a step naming a stage not in `stages` breaks the filter. The engine counts the passes (leave `passes` out). `fallback: OtherFilter` (a subset of the uniforms) draws when the filter is broken.
680
680
  - Shader checks run in every build: every body, stage and fallback compiles once on the device when the renderer first draws, and the first scene mounts after the checks (`effects:mount-waited`). A broken filter (`effects:broken` with reason `compile`, `apply` or `chain`) draws its fallback or the view unfiltered, never a blank frame; a dev build also draws magenta stripes over it.
681
681
  - Built-in filters: `Glow`, `Outline`, `Blur`, `ColorMatrix`, `Noise`, `Displacement` (`map` is an asset key), `Alpha`. A motion hook tweens them like any component: `view.tween(Glow, { strength: 0 }, { ms: 200 })`.
682
- - The effect set: ready filters a feature lists in `filters`, as a game's own (`filters: [Flash]`; two features may list the same one): `Flash({ amount: 0..1, color })` washes the view with a colour, `Grade({ brightness, contrast, saturation, tint })` grades it (each 1 for none, 0..2), `Vignette({ x, y, radius, soft, color, amount })` darkens it outside a disc in 0..1 of the view, `RevealLine({ progress: 0..1, angle, soft })` shows it up to a line that sweeps across at `angle` (0 hides all, 1 shows all), `RevealRound({ x, y, radius: 0..1.5, soft, wobble: 0..0.2 })` shows it inside a disc (radius 0 hides all), `Dissolve({ progress: 0..1, scale, edge, edgeColor })` eats it away by a fixed noise of `scale` cells with a rim in `edgeColor`, `Shine({ position: -0.5..1.5, width, angle, strength })` sweeps a band of light across it (light on the colour only, the alpha kept), `Aura({ color, strength: 0..2, spread })` puts a halo `spread` px wide around its shape (padded by `spread`, 13 samples), `Fold({ angle, axis: 0 | 1, perspective: 0..1, shade: 0..1 })` turns it about its vertical (`axis: 0`) or horizontal (`axis: 1`) axis, padded by 8 px. Each is one pass and one sample (`Aura` 13), `cache: "local"`, and on WebGPU a tween draws on the view's own quad from its third frame: `view.tween(Flash, { amount: 0 }, { ms: 160 })`. `Bloom({ strength: 0..2, threshold: 0..1, radius })` adds light around what is above `threshold`, blurred `radius` CSS px wide: it reads a chain of two engine stages (cut and boxed down, then blurred), 3 passes with its body at any radius and resolution (`Bloom.filter.inputs[0]?.chain({ ...Bloom().value }, { resolution: 2 }).length` is 2 steps), so it is for an object, not the screen; it is kept as a picture at rest and never draws on the quad: a tween of it runs its chain and redraws its picture's filter in every frame, 3 passes a frame for `strength`. A view that carries a filter no feature lists draws unfiltered; a dev build warns `effects:filter-unlisted` once per id.
682
+ - The effect set: ready filters a feature lists in `filters`, as a game's own (`filters: [Flash]`; two features may list the same one): `Flash({ amount: 0..1, color })` washes the view with a colour, `Grade({ brightness, contrast, saturation, tint })` grades it (each 1 for none, 0..2), `Vignette({ x, y, radius, soft, color, amount })` darkens it outside a disc in 0..1 of the view, `RevealLine({ progress: 0..1, angle, soft })` shows it up to a line that sweeps across at `angle` (0 hides all, 1 shows all), `RevealRound({ x, y, radius: 0..1.5, soft, wobble: 0..0.2 })` shows it inside a disc (radius 0 hides all), `Dissolve({ progress: 0..1, scale, edge, edgeColor })` eats it away by a fixed noise of `scale` cells with a rim in `edgeColor`, `Shine({ position: -0.5..1.5, width, angle, strength })` sweeps a band of light across it (light on the colour only, the alpha kept), `Aura({ color, strength: 0..2, spread })` puts a halo `spread` px wide around its shape (padded by `spread`, 13 samples), `Fold({ angle, axis: 0 | 1, perspective: 0..1, shade: 0..1 })` turns it about its vertical (`axis: 0`) or horizontal (`axis: 1`) axis, padded by 8 px. `Pixelate({ size })` draws it in blocks of `size` CSS px (1 or less: unchanged), `GradientMap({ dark, middle, light, amount: 0..1 })` maps its luma onto three colours, `Wave({ amplitude, wavelength, phase, angle })` sways its rows (angle 0) or columns (angle π/2) by a sine in CSS px (loop it with `view.tween(Wave, { phase: Math.PI * 2 }, { ms: 1200, ease: "linear", repeat: "forever" })`), `Mirror({ axis: 0 | 1, alpha: 0..1, fade: 0..1 })` flips it in place (for a reflection on a copy view; `fade` is where it is gone, from the mirror line), `Shadow({ x, y, soft, color, alpha })` draws a soft drop shadow under it (padded by 8 px; `|x| + soft` and `|y| + soft` held to 8; 10 samples). Each is one pass and one sample (`Aura` 13, `Shadow` 10), `cache: "local"`, and on WebGPU a tween draws on the view's own quad from its third frame: `view.tween(Flash, { amount: 0 }, { ms: 160 })`. `Bloom({ strength: 0..2, threshold: 0..1, radius })` adds light around what is above `threshold`, blurred `radius` CSS px wide: it reads a chain of two engine stages (cut and boxed down, then blurred), 3 passes with its body at any radius and resolution (`Bloom.filter.inputs[0]?.chain({ ...Bloom().value }, { resolution: 2 }).length` is 2 steps), so it is for an object, not the screen; it is kept as a picture at rest and never draws on the quad: a tween of it runs its chain and redraws its picture's filter in every frame, 3 passes a frame for `strength`. A view that carries a filter no feature lists draws unfiltered; a dev build warns `effects:filter-unlisted` once per id.
683
683
  - API: `app.effects.stats()` returns `{ particles, emitters, filters, renderPasses }`; headless every number is 0.
684
684
  - `app.effects.diagnostics`: `kinds()` (built-ins, then feature filters, after start), `disable(kind)`, `enable(kind)`, `disabled()` (the off kinds in registration order). A switch acts on a dev or agent page only and answers `false` elsewhere or for an unknown kind (`effects:diagnostics-unknown`, once per id); an off kind keeps its instances and is left out of what the renderer draws from the next frame (`stats().filters` stays, `renderPasses` drops); a switch logs `effects:diagnostics` and writes a `switch` event to the performance log.
685
685
  - Config: `maxParticles: 3000` and `maxPasses: 24`, each warns once per crossing; `phone: "auto"`; `blur: { quality: 2, phoneResolution: 0.5 }`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moku-labs/game",
3
- "version": "0.15.152",
3
+ "version": "0.15.154",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [