@moku-labs/game 0.15.98 → 0.15.100

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` 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` 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-Ddezbux2.mjs";
1
+ import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-D0lN1gFj.mjs";
2
2
 
3
3
  //#region src/app/page.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  import { qr as PlayerStateProvider } from "../types-qCcSw8YI.mjs";
2
- import { yt as PlatformProvider } from "../index-E62NqrO6.mjs";
3
- import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-Ddezbux2.mjs";
2
+ import { Tt as PlatformProvider } from "../index-D5w2xQz0.mjs";
3
+ import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-D0lN1gFj.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 { Hr as Json } from "./types-qCcSw8YI.mjs";
2
2
  import { q as StringTable } from "./types-L3E-YS4N.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-Ddezbux2.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-D0lN1gFj.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 { Dt as effectsPlugin, G as platformPlugin, Rt as audioPlugin, _ as flattenFeatures, i as screen, t as createApp } from "./src-GFqUAdoU.mjs";
1
+ import { C as flattenFeatures, Nt as effectsPlugin, Wt as audioPlugin, Z as platformPlugin, i as screen, t as createApp } from "./src-tL_KNZE7.mjs";
2
2
  import { t as memory } from "./memory-CWlqhS7l.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 StoreApi, D as DebugSwitches, In as FlowState, Nn as Bookmark, Or as Api$2, Z as Api$1, Zr as Snapshot, ft as Captured, mi as Time, ni as Api, ui as FrameRate, w as ScenesApi } from "./types-qCcSw8YI.mjs";
2
- import { L as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-DeybZgVT.mjs";
2
+ import { U as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-BVrpb6HD.mjs";
3
3
  import { L as InputApi } from "./types-L3E-YS4N.mjs";
4
4
  import { t as HeadlessApp } from "./headless-Co3SEFi5.mjs";
5
5
  import { i as ControlApp, r as Command } from "./types-BE6tcAFX.mjs";
@@ -1,6 +1,6 @@
1
1
  import { t as HeadlessApp } from "./headless-Co3SEFi5.mjs";
2
2
  import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-BE6tcAFX.mjs";
3
- import { t as commands } from "./commands-CnGF1AfS.mjs";
3
+ import { t as commands } from "./commands-Da3AUaKC.mjs";
4
4
  import { t as defineCommand } from "./define-hPbGjPAY.mjs";
5
5
 
6
6
  //#region src/plugins/flow/doors/dev.d.ts
@@ -1,5 +1,5 @@
1
1
  import { $n as Ease, $r as StoreApi, An as FeaturePlugin, Bn as SceneIdOf, Br as Config$5, C as SceneSpec, Cr as QueryTerm, Dr as TagType, Er as SystemFor, F as HudPartValue, Fr as Config$2, Ft as PassKind, G as SpriteOptions, Gn as GuideOptions, H as ShapeValue, Hn as Descriptor, Hr as Json, J as TransformValue, K as SpriteValue, Kn as Hint, Kr as Patch, L as NineSliceValue, Lr as State$2, Nr as Api$1, Or as Api$6, Pn as DefineNode, Q as Config$6, Qn as DescriptionNode, S as SceneDefinition, Sr as Narrowed, T as State$7, Tr as SystemDefinition, Tt as FrameRing, Un as Effect, Ur as Root, Wn as EffectOptions, Wr as State$5, Y as sprite, Yn as Answered, Z as Api$4, _ as AnySceneProjection, _i as Events$1, _n as HudKeysOf, _r as ComponentValue, _t as ViewportSize, a as Config$1, ai as PauseReason, ar as ProjectionSpec, bn as TextFormatsOf, c as LoadBundles, ci as Api$5, di as RateChange, ei as RngApi, f as ReadyBundles, fi as State$8, fn as Api$2, gi as Config$10, gn as GameTypes, gr as ComponentType, hn as EmitterIdOf, i as BundleSpec, ii as Events, ir as ProjectionMotion, jn as FeatureTree, jr as State$9, kn as FeatureDescription, kr as Config$9, l as LoadReason, li as Config$8, m as Tier, mn as Config$3, mr as ComponentHandle, ni as Api$3, o as DefineBundles, oi as State$4, or as ReducedMotion, p as State$1, pi as ThermalReading, pn as BundlesOf, r as BundleMap, ri as Config$4, rr as NumericFields, st as State$6, t as Api, u as LoadResult, v as Config$7, vi as Require, w as ScenesApi, wn as defineFlow, wr as ResourceType, wt as FrameRecord, x as LayerMap, xn as TextStylesOf, xr as Mut, y as DefineScene, yn as State$3, z as OverlayValue } from "./types-qCcSw8YI.mjs";
2
- import { A as FilterComponent, B as FramesValue, C as EmitterDefinition, D as ColorMatrixValue, E as BlurValue, F as OutlineValue, G as HapticKind, H as State$10, I as UniformDeclaration, K as SfxDescriptor, L as AnimApi, M as FilterValueOf, N as GlowValue, O as DisplacementValue, P as NoiseValue, R as AnimPlayerValue, S as EmitterConfig, T as AlphaValue, U as Target, V as MotionKeyframe, Y as defineAnimation, _ as State$12, a as AudioApi, b as GradeValue, c as MusicDescriptor, d as State$11, f as VolumesFor, ft as OverlayApi, h as EffectsApi, j as FilterSpec, l as MusicOptions, m as Config$13, n as State$13, q as Step, r as UiApi, s as Config$12, t as Config$14, tt as play, w as EmitterValue, x as VignetteValue, y as FlashValue, z as Config$11 } from "./types-DeybZgVT.mjs";
2
+ import { $ as Step, A as EmitterValue, B as NoiseValue, C as GradeValue, D as VignetteValue, E as ShineValue, G as Config$11, H as UniformDeclaration, I as FilterComponent, J as State$10, K as FramesValue, L as FilterSpec, M as BlurValue, N as ColorMatrixValue, O as EmitterConfig, P as DisplacementValue, Q as SfxDescriptor, R as FilterValueOf, S as FoldValue, T as RevealRoundValue, U as AnimApi, V as OutlineValue, W as AnimPlayerValue, Y as Target, Z as HapticKind, _ as State$12, a as AudioApi, b as DissolveValue, c as MusicDescriptor, d as State$11, f as VolumesFor, h as EffectsApi, j as AlphaValue, k as EmitterDefinition, l as MusicOptions, m as Config$13, n as State$13, q as MotionKeyframe, r as UiApi, s as Config$12, st as play, t as Config$14, tt as defineAnimation, vt as OverlayApi, w as RevealLineValue, x as FlashValue, y as AuraValue, z as GlowValue } from "./types-BVrpb6HD.mjs";
3
3
  import { $ as Style, A as TextFormats, B as Argument, C as Point, E as TextBind, F as defineComponent, G as Part, H as I18nApi, I as Config$16, J as TextKey, K as State$14, L as InputApi, M as TextStyles, N as TextValue, Q as ResolvedStyle, R as State$15, T as TextApi, U as IntlKit, V as Config$15, W as Message, Y as TypedTr, Z as IsFlags, b as Config$17, g as IntrinsicElementsFor, h as defineTokens, j as TextStyleInput, k as TextFormatFunction, s as PopupComponent, tt as WhenFlags, v as BindField, w as State$16, x as CountdownValue, y as BindOptions } from "./types-L3E-YS4N.mjs";
4
4
  import { Log } from "@moku-labs/common/browser";
5
5
  import { PluginCtx } from "@moku-labs/core";
@@ -1758,6 +1758,41 @@ declare const Alpha: ComponentType<AlphaValue>;
1758
1758
  */
1759
1759
  declare function defineFilter<Uniforms extends Record<string, UniformDeclaration> = Record<never, never>>(id: string, spec: FilterSpec<Uniforms>): FilterComponent<FilterValueOf<Uniforms>>;
1760
1760
  //#endregion
1761
+ //#region src/plugins/effects/set/aura.d.ts
1762
+ /**
1763
+ * A soft halo of `color` around the shape of a view and its subtree, `spread` CSS px wide and as strong as `strength`
1764
+ * (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
1765
+ * halo has room. A cheap glow: 13 samples where `Glow` takes 64 to 256, so it bands a little where `Glow` is smooth.
1766
+ * For a picked tile, a hint, a selected card. List it in a feature's `filters`, as a game's own filter. One render
1767
+ * pass; on WebGPU a tween of `strength` draws on the view's own quad, no pass, from its third frame.
1768
+ *
1769
+ * @example
1770
+ * ```ts
1771
+ * // A hinted tile glows gold, twelve pixels wide; the view is padded by the live spread.
1772
+ * Aura({ color: 0xffd700, spread: 12 }).value.spread; // 12
1773
+ * Aura.filter.padding; // "spread"
1774
+ * view.tween(Aura, { strength: 0 }, { ms: 300 });
1775
+ * ```
1776
+ */
1777
+ declare const Aura: FilterComponent<AuraValue>;
1778
+ //#endregion
1779
+ //#region src/plugins/effects/set/dissolve.d.ts
1780
+ /**
1781
+ * A view eaten away by a noise of `scale` cells across: `progress` 0 keeps all of it, 1 none, and the edge of what is
1782
+ * left glows in `edgeColor` over `edge` (0..1 of the noise). The noise has no time: the same cells go first at every
1783
+ * run, on WebGPU and WebGL alike. For a piece that burns away, a card that crumbles. List it in a feature's
1784
+ * `filters`, as a game's own filter. One render pass, one sample of the input; on WebGPU a tween draws on the view's
1785
+ * own quad, no pass, from its third frame.
1786
+ *
1787
+ * @example
1788
+ * ```ts
1789
+ * // A cleared piece burns away with a white rim.
1790
+ * Dissolve({ progress: 0.5 }).value.edge; // 0.08
1791
+ * view.tween(Dissolve, { progress: 1 }, { ms: 600 });
1792
+ * ```
1793
+ */
1794
+ declare const Dissolve: FilterComponent<DissolveValue>;
1795
+ //#endregion
1761
1796
  //#region src/plugins/effects/set/flash.d.ts
1762
1797
  /**
1763
1798
  * A view washed with `color` by `amount`: 0 draws the view as it is, 1 draws its shape in `color`, its alpha kept.
@@ -1773,6 +1808,24 @@ declare function defineFilter<Uniforms extends Record<string, UniformDeclaration
1773
1808
  */
1774
1809
  declare const Flash: FilterComponent<FlashValue>;
1775
1810
  //#endregion
1811
+ //#region src/plugins/effects/set/fold.d.ts
1812
+ /**
1813
+ * A view turned by `angle` radians about its vertical axis (`axis: 0`) or its horizontal one (`axis: 1`), as a card or
1814
+ * an order row flips: at a quarter turn it is edge-on, at a half turn it shows its back, unmirrored and darkened by
1815
+ * `shade` (0..1). `perspective` (0..1) leans it: the side that goes away shrinks, to `1 − perspective` of its height at
1816
+ * a quarter turn, while the near side keeps its size, so the view never grows past its box. The view is padded by 8 px.
1817
+ * For a card flip, a row that turns to its next order. List it in a feature's `filters`, as a game's own filter. One
1818
+ * render pass, one sample; on WebGPU a tween draws on the view's own quad, no pass, from its third frame.
1819
+ *
1820
+ * @example
1821
+ * ```ts
1822
+ * // An order row flips about its horizontal axis to show its next order.
1823
+ * Fold({ axis: 1 }).value.axis; // 1
1824
+ * view.tween(Fold, { angle: Math.PI }, { ms: 320 });
1825
+ * ```
1826
+ */
1827
+ declare const Fold: FilterComponent<FoldValue>;
1828
+ //#endregion
1776
1829
  //#region src/plugins/effects/set/grade.d.ts
1777
1830
  /**
1778
1831
  * A colour grade of a view: `contrast` about the middle grey, then `brightness`, then `saturation` against the luma,
@@ -1789,6 +1842,59 @@ declare const Flash: FilterComponent<FlashValue>;
1789
1842
  */
1790
1843
  declare const Grade: FilterComponent<GradeValue>;
1791
1844
  //#endregion
1845
+ //#region src/plugins/effects/set/reveal-line.d.ts
1846
+ /**
1847
+ * 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
1848
+ * at `angle` radians (0 sweeps from the left, `Math.PI / 2` from the top) with an edge `soft` wide. The angle is in the
1849
+ * 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
1850
+ * in or out of a card, a panel, a picture. List it in a feature's `filters`, as a game's own filter. One render pass,
1851
+ * one sample; on WebGPU a tween draws on the view's own quad, no pass, from its third frame.
1852
+ *
1853
+ * @example
1854
+ * ```ts
1855
+ * // A level card wipes in from the top: it starts hidden, and a motion tweens progress to 1.
1856
+ * RevealLine({ angle: Math.PI / 2 }).value.progress; // 0
1857
+ * view.tween(RevealLine, { progress: 1 }, { ms: 400 });
1858
+ * ```
1859
+ */
1860
+ declare const RevealLine: FilterComponent<RevealLineValue>;
1861
+ //#endregion
1862
+ //#region src/plugins/effects/set/reveal-round.d.ts
1863
+ /**
1864
+ * A view shown inside a disc around the point `x`, `y`: `radius: 0` hides all of it, and from about 0.75 a disc at the
1865
+ * centre shows every corner (1.5 shows all of it from any point). The edge fades over `soft` and waves by `wobble`
1866
+ * (0..0.2). The point and the lengths are in 0..1 of the view on each axis, so on a view twice as wide as tall the disc
1867
+ * is an ellipse. It hides the outside by alpha and declares no `area`: the view's fill is still paid. List it in a
1868
+ * feature's `filters`, as a game's own filter. One render pass, one sample; on WebGPU a tween draws on the view's own
1869
+ * quad, no pass, from its third frame.
1870
+ *
1871
+ * @example
1872
+ * ```ts
1873
+ * // A lens opens over the map: the window starts closed and grows to show the whole view.
1874
+ * RevealRound({ wobble: 0.04 }).value.radius; // 0
1875
+ * view.tween(RevealRound, { radius: 1.2 }, { ms: 640 });
1876
+ * ```
1877
+ */
1878
+ declare const RevealRound: FilterComponent<RevealRoundValue>;
1879
+ //#endregion
1880
+ //#region src/plugins/effects/set/shine.d.ts
1881
+ /**
1882
+ * 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
1883
+ * 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
1884
+ * of the sweep), `angle` its direction in radians in the view's own 0..1 frame, `strength` how much light it adds. Light
1885
+ * is added to the colour only: the transparent pixels around the view's shape stay transparent. For a glint on a
1886
+ * reward, a card, a button. List it in a feature's `filters`, as a game's own filter. One render pass, one sample; on
1887
+ * WebGPU a tween draws on the view's own quad, no pass, from its third frame.
1888
+ *
1889
+ * @example
1890
+ * ```ts
1891
+ * // A new reward glints once: the band sweeps across it in half a second.
1892
+ * Shine().value.position; // -0.5
1893
+ * view.tween(Shine, { position: 1.5 }, { ms: 500 });
1894
+ * ```
1895
+ */
1896
+ declare const Shine: FilterComponent<ShineValue>;
1897
+ //#endregion
1792
1898
  //#region src/plugins/effects/set/vignette.d.ts
1793
1899
  /**
1794
1900
  * A view darkened outside a disc: inside `radius` of the point `x`, `y` it is drawn as it is, from there over `soft` it
@@ -2123,4 +2229,4 @@ declare const screen: readonly [import("@moku-labs/core").PluginInstance<"world"
2123
2229
  };
2124
2230
  }> & 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>];
2125
2231
  //#endregion
2126
- export { Tree as $, defineBundles as A, assetsPlugin as At, Pressed as B, messageDuration as C, inputPlugin as Ct, Animation as D, debugPlugin as Dt, AnimPlayer as E, effectsPlugin as Et, Held as F, bind as Ft, Traceable as G, TapValue as H, Hovered as I, defineTextFormats as It, frameAt as J, Traced as K, Pointer as L, defineTextStyles as Lt, ready as M, projection as Mt, Draggable as N, Countdown as Nt, Frames as O, clockPlugin as Ot, DropTarget as P, Text as Pt, Order as Q, PointerOver as R, label as Rt, messageArgument as S, lifecyclePlugin as St, defineMotion as T, flowPlugin as Tt, Tappable as U, Swipeable as V, Touchable as W, Layer as X, Exiting as Y, Now as Z, Outline as _, platformPlugin as _t, defineEmitter as a, defineEffect as at, defineStyle as b, types_d_exports as bt, Grade as c, schedule as ct, Alpha as d, worldPlugin as dt, component as et, Blur as f, uiPlugin as ft, Noise as g, rendererPlugin as gt, Glow as h, scenesPlugin as ht, screen as i, tag as it, load as j, animPlugin as jt, defineScene as k, audioPlugin as kt, Flash as l, defineFeature as lt, Displacement as m, textPlugin as mt, createPlugin as n, resource as nt, Emitter as o, guide as ot, ColorMatrix as p, timePlugin as pt, PASS_KINDS as q, defineGame as r, system as rt, Vignette as s, hint as st, createApp as t, mut as tt, defineFilter as u, flattenFeatures as ut, music as v, BackResult as vt, cubicBezier as w, i18nPlugin as wt, tr as x, modelPlugin as xt, resolve as y, PlatformProvider as yt, Pressable as z };
2232
+ export { PASS_KINDS as $, cubicBezier as A, i18nPlugin as At, DropTarget as B, Text as Bt, Outline as C, platformPlugin as Ct, tr as D, modelPlugin as Dt, defineStyle as E, types_d_exports as Et, defineScene as F, audioPlugin as Ft, Pressable as G, Hovered as H, defineTextFormats as Ht, defineBundles as I, assetsPlugin as It, TapValue as J, Pressed as K, load as L, animPlugin as Lt, AnimPlayer as M, effectsPlugin as Mt, Animation as N, debugPlugin as Nt, messageArgument as O, lifecyclePlugin as Ot, Frames as P, clockPlugin as Pt, Traced as Q, ready as R, projection as Rt, Noise as S, rendererPlugin as St, resolve as T, PlatformProvider as Tt, Pointer as U, defineTextStyles as Ut, Held as V, bind as Vt, PointerOver as W, label as Wt, Touchable as X, Tappable as Y, Traceable as Z, Alpha as _, worldPlugin as _t, defineEmitter as a, Tree as at, Displacement as b, textPlugin as bt, Shine as c, resource as ct, Grade as d, defineEffect as dt, frameAt as et, Fold as f, guide as ft, defineFilter as g, flattenFeatures as gt, Aura as h, defineFeature as ht, screen as i, Order as it, defineMotion as j, flowPlugin as jt, messageDuration as k, inputPlugin as kt, RevealRound as l, system as lt, Dissolve as m, schedule as mt, createPlugin as n, Layer as nt, Emitter as o, component as ot, Flash as p, hint as pt, Swipeable as q, defineGame as r, Now as rt, Vignette as s, mut as st, createApp as t, Exiting as tt, RevealLine as u, tag as ut, Blur as v, uiPlugin as vt, music as w, BackResult as wt, Glow as x, scenesPlugin as xt, ColorMatrix as y, timePlugin as yt, Draggable as z, Countdown as zt };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { $ as MonitorConfig, $t as PerfStartupLine, At as OverlayWhat, B as Parent, Bt as PerfCollectorLine, Cn as contribution, Ct as FrameReadout, Dn as to, Dt as MONITOR_SECTIONS, E as types_d_exports$13, En as slot, Et as LongFrameEntry, F as HudPartValue, Ft as PassKind, Gr as types_d_exports$10, Gt as PerfGapLine, Ht as PerfDisplay, I as NineSlice, It as PassRecord, Jt as PerfLongFrameLine, Kt as PerfHeaderLine, Lt as PerfCause, M as WhyEntry, Mr as types_d_exports$17, Mt as PERF_GAP_BUCKETS, N as Display, Nt as PERF_LOG_VERSION, On as type, Ot as MonitorSections, P as HudPart, Pt as PROBLEM_RULES, Qn as DescriptionNode, Qt as PerfSpikeLine, R as Overlay, Rr as types_d_exports$3, Rt as PerfChange, Sn as types_d_exports$6, St as FrameReadResult, Tn as exit, Tt as FrameRing, U as Sprite, Ut as PerfEventLine, V as Shape, Vt as PerfCounts, W as SpriteBlend, Wt as PerfEventName, X as AdaptiveScale, Xn as AnchorTarget, Xr as SaveUnreadableError, Xt as PerfMeasured, Y as sprite, Yt as PerfMarkLine, Zt as PerfSampleLine, an as SHADER_WHATS, bt as WhyLive, cn as WarmDetail, dn as DEMAND_REASONS, dt as ShotsConfig, en as PerfTelemetryLine, g as types_d_exports$1, hi as types_d_exports$15, in as ProblemRule, jt as PERF_CAUSES, kt as OverlayEventDetail, ln as CANVAS_RESTARTS, lt as types_d_exports$12, nn as PoolTrimDetail, on as ShaderEventDetail, ot as PoolTrim, pt as MonitorCounts, q as Transform, qt as PerfLogLine, rn as ProblemEventDetail, si as types_d_exports$9, sn as ShaderWhat, sr as SceneSwitch, tn as PerfThermalLine, un as CanvasRestart, ut as ShotsApi, wt as FrameRecord, xt as FrameColumns, yt as RetakeWhy, z as OverlayValue, zt as PerfChangeEntry } from "./types-qCcSw8YI.mjs";
2
- import { $ as mark, G as HapticKind, J as HAPTIC_KINDS, Q as haptic, W as types_d_exports, X as external, Y as defineAnimation, Z as frames, at as spawn, b as GradeValue, ct as stopSfx, dt as wait, et as parallel, i as types_d_exports$16, it as sfx, k as FilterArea, lt as tween, nt as sequence, ot as spawned, p as types_d_exports$2, pt as types_d_exports$4, rt as set, st as stagger, tt as play, ut as use, v as types_d_exports$5, x as VignetteValue, y as FlashValue } from "./types-DeybZgVT.mjs";
2
+ import { C as GradeValue, D as VignetteValue, E as ShineValue, F as FilterArea, S as FoldValue, T as RevealRoundValue, X as types_d_exports, Z as HapticKind, _t as wait, at as mark, b as DissolveValue, ct as sequence, dt as spawn, et as HAPTIC_KINDS, ft as spawned, gt as use, ht as tween, i as types_d_exports$16, it as haptic, lt as set, mt as stopSfx, nt as external, ot as parallel, p as types_d_exports$2, pt as stagger, rt as frames, st as play, tt as defineAnimation, ut as sfx, v as types_d_exports$5, w as RevealLineValue, x as FlashValue, y as AuraValue, yt as types_d_exports$4 } from "./types-BVrpb6HD.mjs";
3
3
  import { A as TextFormats, D as TextFormat, F as defineComponent, O as TextFormatAnswer, P as types_d_exports$14, S as FormattedNumber, X as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, k as TextFormatFunction, m as popup, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions, z as types_d_exports$8 } from "./types-L3E-YS4N.mjs";
4
- import { $ as Tree, A as defineBundles, At as assetsPlugin, B as Pressed, C as messageDuration, Ct as inputPlugin, D as Animation, Dt as debugPlugin, E as AnimPlayer, Et as effectsPlugin, F as Held, Ft as bind, G as Traceable, H as TapValue, I as Hovered, It as defineTextFormats, J as frameAt, K as Traced, L as Pointer, Lt as defineTextStyles, M as ready, Mt as projection, N as Draggable, Nt as Countdown, O as Frames, Ot as clockPlugin, P as DropTarget, Pt as Text, Q as Order, R as PointerOver, Rt as label, S as messageArgument, St as lifecyclePlugin, T as defineMotion, Tt as flowPlugin, U as Tappable, V as Swipeable, W as Touchable, X as Layer, Y as Exiting, Z as Now, _ as Outline, _t as platformPlugin, a as defineEmitter, at as defineEffect, b as defineStyle, bt as types_d_exports$11, c as Grade, ct as schedule, d as Alpha, dt as worldPlugin, et as component, f as Blur, ft as uiPlugin, g as Noise, gt as rendererPlugin, h as Glow, ht as scenesPlugin, i as screen, it as tag, j as load, jt as animPlugin, k as defineScene, kt as audioPlugin, l as Flash, lt as defineFeature, m as Displacement, mt as textPlugin, n as createPlugin, nt as resource, o as Emitter, ot as guide, p as ColorMatrix, pt as timePlugin, q as PASS_KINDS, r as defineGame, rt as system, s as Vignette, st as hint, t as createApp, tt as mut, u as defineFilter, ut as flattenFeatures, v as music, vt as BackResult, w as cubicBezier, wt as i18nPlugin, x as tr, xt as modelPlugin, y as resolve, yt as PlatformProvider, z as Pressable } from "./index-E62NqrO6.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, type BackResult, type BindOptions, 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, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, Flash, type FlashValue, types_d_exports$6 as Flow, 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, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shape, type ShotsApi, type ShotsConfig, Sprite, type SpriteBlend, Swipeable, type TapValue, Tappable, Text, type TextFormat, type TextFormatAnswer, type TextFormatFunction, type TextFormats, 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 PASS_KINDS, A as cubicBezier, At as i18nPlugin, B as DropTarget, Bt as Text, C as Outline, Ct as platformPlugin, D as tr, Dt as modelPlugin, E as defineStyle, Et as types_d_exports$11, F as defineScene, Ft as audioPlugin, G as Pressable, H as Hovered, Ht as defineTextFormats, I as defineBundles, It as assetsPlugin, J as TapValue, K as Pressed, L as load, Lt as animPlugin, M as AnimPlayer, Mt as effectsPlugin, N as Animation, Nt as debugPlugin, O as messageArgument, Ot as lifecyclePlugin, P as Frames, Pt as clockPlugin, Q as Traced, R as ready, Rt as projection, S as Noise, St as rendererPlugin, T as resolve, Tt as PlatformProvider, U as Pointer, Ut as defineTextStyles, V as Held, Vt as bind, W as PointerOver, Wt as label, X as Touchable, Y as Tappable, Z as Traceable, _ as Alpha, _t as worldPlugin, a as defineEmitter, at as Tree, b as Displacement, bt as textPlugin, c as Shine, ct as resource, d as Grade, dt as defineEffect, et as frameAt, f as Fold, ft as guide, g as defineFilter, gt as flattenFeatures, h as Aura, ht as defineFeature, i as screen, it as Order, j as defineMotion, jt as flowPlugin, k as messageDuration, kt as inputPlugin, l as RevealRound, lt as system, m as Dissolve, mt as schedule, n as createPlugin, nt as Layer, o as Emitter, ot as component, p as Flash, pt as hint, q as Swipeable, r as defineGame, rt as Now, s as Vignette, st as mut, t as createApp, tt as Exiting, u as RevealLine, ut as tag, v as Blur, vt as uiPlugin, w as music, wt as BackResult, x as Glow, xt as scenesPlugin, y as ColorMatrix, yt as timePlugin, z as Draggable, zt as Countdown } from "./index-D5w2xQz0.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, 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, 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 };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as play, $t as SHADER_WHATS, A as types_exports$10, At as Blur, B as types_exports, Bt as assetsPlugin, C as types_exports$17, Ct as Traced, D as types_exports$13, Dt as effectsPlugin, E as types_exports$14, Et as messageDuration, F as types_exports$5, Ft as Outline, G as platformPlugin, Gt as rendererPlugin, H as resolve, Ht as AnimPlayer, I as types_exports$4, It as defineFilter, J as external, Jt as MONITOR_SECTIONS, K as HAPTIC_KINDS, Kt as PASS_KINDS, L as types_exports$3, Lt as debugPlugin, M as types_exports$8, Mt as Displacement, N as types_exports$7, Nt as Glow, O as types_exports$12, Ot as Emitter, P as types_exports$6, Pt as Noise, Q as parallel, Qt as PROBLEM_RULES, R as types_exports$2, Rt as audioPlugin, S as ready, St as Traceable, T as types_exports$15, Tt as messageArgument, U as defineMotion, Ut as Animation, V as uiPlugin, Vt as animPlugin, W as textPlugin, Wt as Frames, X as haptic, Xt as PERF_GAP_BUCKETS, Y as frames, Yt as PERF_CAUSES, Z as mark, Zt as PERF_LOG_VERSION, _ as flattenFeatures, _t as Pressable, a as Vignette, an as contribution, at as stagger, b as defineBundles, bt as Tappable, c as cubicBezier, cn as to, ct as use, d as hint, dn as SaveUnreadableError, dt as Draggable, en as CANVAS_RESTARTS, et as sequence, f as schedule, fn as lifecyclePlugin, ft as DropTarget, g as defineFeature, gt as PointerOver, h as tr, ht as Pointer, i as screen, it as spawned, j as types_exports$9, jt as ColorMatrix, k as types_exports$11, kt as Alpha, l as defineEffect, ln as type, lt as wait, m as defineScene, mn as clockPlugin, mt as Hovered, n as createPlugin, nn as worldPlugin, nt as sfx, o as Grade, on as exit, ot as stopSfx, p as projection, pn as timePlugin, pt as Held, q as defineAnimation, qt as frameAt, r as defineGame, rn as flowPlugin, rt as spawn, s as Flash, sn as slot, st as tween, t as createApp, tn as DEMAND_REASONS, tt as set, u as guide, un as modelPlugin, ut as inputPlugin, v as defineEmitter, vt as Pressed, w as types_exports$16, wt as i18nPlugin, x as load, xt as Touchable, y as music, yt as Swipeable, z as types_exports$1, zt as scenesPlugin } from "./src-GFqUAdoU.mjs";
1
+ import { $ as defineAnimation, $t as frameAt, A as types_exports$16, At as i18nPlugin, B as types_exports$6, Bt as Noise, C as flattenFeatures, Ct as Pressable, D as load, Dt as Touchable, E as defineBundles, Et as Tappable, F as types_exports$11, Ft as Alpha, G as types_exports$1, Gt as scenesPlugin, H as types_exports$4, Ht as defineFilter, I as types_exports$10, It as Blur, J as resolve, Jt as AnimPlayer, K as types_exports, Kt as assetsPlugin, L as types_exports$9, Lt as ColorMatrix, M as types_exports$14, Mt as messageDuration, N as types_exports$13, Nt as effectsPlugin, O as ready, Ot as Traceable, P as types_exports$12, Pt as Emitter, Q as HAPTIC_KINDS, Qt as PASS_KINDS, R as types_exports$8, Rt as Displacement, S as defineFeature, St as PointerOver, T as music, Tt as Swipeable, U as types_exports$3, Ut as debugPlugin, V as types_exports$5, Vt as Outline, W as types_exports$2, Wt as audioPlugin, X as textPlugin, Xt as Frames, Y as defineMotion, Yt as Animation, Z as platformPlugin, Zt as rendererPlugin, _ as hint, _n as SaveUnreadableError, _t as Draggable, a as Vignette, an as SHADER_WHATS, at as play, b as defineScene, bn as clockPlugin, bt as Hovered, c as RevealLine, cn as worldPlugin, ct as sfx, d as Flash, dn as contribution, dt as stagger, en as MONITOR_SECTIONS, et as external, f as Dissolve, fn as exit, ft as stopSfx, g as guide, gn as modelPlugin, gt as inputPlugin, h as defineEffect, hn as type, ht as wait, i as screen, in as PROBLEM_RULES, it as parallel, j as types_exports$15, jt as messageArgument, k as types_exports$17, kt as Traced, l as Grade, ln as flowPlugin, lt as spawn, m as cubicBezier, mn as to, mt as use, n as createPlugin, nn as PERF_GAP_BUCKETS, nt as haptic, o as Shine, on as CANVAS_RESTARTS, ot as sequence, p as Aura, pn as slot, pt as tween, q as uiPlugin, qt as animPlugin, r as defineGame, rn as PERF_LOG_VERSION, rt as mark, s as RevealRound, sn as DEMAND_REASONS, st as set, t as createApp, tn as PERF_CAUSES, tt as frames, u as Fold, ut as spawned, v as schedule, vn as lifecyclePlugin, vt as DropTarget, w as defineEmitter, wt as Pressed, x as tr, xt as Pointer, y as projection, yn as timePlugin, yt as Held, z as types_exports$7, zt as Glow } from "./src-tL_KNZE7.mjs";
2
2
  import { $ as Shape, A as Countdown, F as defineTextStyles, I as label, J as HudPart, M as bind, P as defineTextFormats, Q as Parent, S as popup, T as defineStyle, X as Overlay, Y as NineSlice, _ as LocalWrite, at as Exiting, ct as Order, dt as mut, et as Sprite, ft as resource, h as DebugTrigger, ht as tag, it as sprite, j as Text, lt as Tree, ot as Layer, p as Box, pt as system, q as Display, st as Now, tt as Transform, ut as component, w as defineTokens, y as ScrollState } from "./visual-DhqD6W3v.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, Blur, Box, CANVAS_RESTARTS, types_exports$3 as Clock, ColorMatrix, Countdown, DEMAND_REASONS, types_exports$4 as Debug, DebugTrigger, Displacement, Display, Draggable, DropTarget, types_exports$5 as Effects, Emitter, Exiting, Flash, types_exports$6 as Flow, 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, SHADER_WHATS, SaveUnreadableError, types_exports$13 as Scenes, ScrollState, Shape, 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, 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 };
@@ -1,5 +1,5 @@
1
1
  import { Ar as Explained, Fn as FlowGraph, Ln as JournalEntry, Or as Api$1, Z as Api$2, Zr as Snapshot, br as FrameDiff, ct as Under, h as Usage, hr as ComponentSchema, mt as RenderStats, t as Api$3, vn as Position, yr as EntitySnapshot, zr as Api } from "./types-qCcSw8YI.mjs";
2
- import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-DeybZgVT.mjs";
2
+ import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-BVrpb6HD.mjs";
3
3
  import { c as UiNode } from "./types-L3E-YS4N.mjs";
4
4
  import { t as HeadlessApp } from "./headless-Co3SEFi5.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-BE6tcAFX.mjs";
@@ -74363,16 +74363,20 @@ function cubicBezier(x1, y1, x2, y2) {
74363
74363
  //#endregion
74364
74364
  //#region src/plugins/effects/set/head.ts
74365
74365
  /**
74366
- * @file effects/set — the set head: the WGSL and GLSL the engine's effect set puts before every member's body. Two
74366
+ * @file effects/set — the set head: the WGSL and GLSL the engine's effect set puts before every member's body. Four
74367
74367
  * helpers: `inputPlace(uv)`, where the pixel is in its input frame (0..1 on each axis, the padded frame Pixi hands the
74368
- * filter), and `sampleInput(n)`, the input read at such a place, inside the clamp. Both read `uInputClamp` only, never
74369
- * the screen, so a member stays `"local"`; and the clamp is half a texel in from the frame in a live pass and from the
74370
- * whole picture on the quad of stage 2 (`shade.ts`), so one body draws the same in both. A game's body does not get
74371
- * them. Pure strings.
74368
+ * filter), and `sampleInput(n)`, the input read at such a place, inside the clamp; `inputFrame()`, the size of that
74369
+ * frame in CSS px, for a padded member that maps its content box; and `setHash(cell)`, the integer hash of `Dissolve`.
74370
+ * They read the input's own uniforms (`uInputClamp`, `uInputPixel`, `uInputSize`), never the screen, so a member stays
74371
+ * `"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
74372
+ * stage 2 (`shade.ts`), so one body draws the same in both. A game's body does not get them. Pure strings.
74372
74373
  */
74373
74374
  /**
74374
- * The WGSL head of every member: `inputPlace(uv)` and `sampleInput(n)` over the filter's input. `textureSampleLevel`,
74375
- * so a member may read its input inside a branch.
74375
+ * The WGSL head of every member: `inputPlace(uv)` and `sampleInput(n)` over the filter's input, `inputFrame()` and
74376
+ * `setHash(cell)`. `textureSampleLevel`, so a member may read its input inside a branch. `inputFrame()` is the clamp's
74377
+ * span plus one texel, times the texture's CSS size: live the frame is a share of a pooled texture and `uInputSize` is
74378
+ * the texture's, on the quad the frame is the whole picture; both give the frame. `setHash` is a 32-bit integer hash of
74379
+ * a cell, 0 up to 1 (24 bits): integers wrap the same on every GPU, so WebGL and WebGPU dissolve the same cells.
74376
74380
  */
74377
74381
  const SET_WGSL = `fn inputPlace(uv: vec2<f32>) -> vec2<f32> {
74378
74382
  return (uv - gfu.uInputClamp.xy) / (gfu.uInputClamp.zw - gfu.uInputClamp.xy);
@@ -74382,8 +74386,23 @@ fn sampleInput(n: vec2<f32>) -> vec4<f32> {
74382
74386
  return textureSampleLevel(uTexture, uSampler, mix(gfu.uInputClamp.xy, gfu.uInputClamp.zw, clamp(n, vec2<f32>(0.0), vec2<f32>(1.0))), 0.0);
74383
74387
  }
74384
74388
 
74389
+ fn inputFrame() -> vec2<f32> {
74390
+ return (gfu.uInputClamp.zw - gfu.uInputClamp.xy + gfu.uInputPixel.zw) * gfu.uInputSize.xy;
74391
+ }
74392
+
74393
+ fn setHash(cell: vec2<f32>) -> f32 {
74394
+ let q = vec2<u32>(vec2<i32>(cell));
74395
+ var h = (q.x * 1597334677u) ^ (q.y * 3812015801u);
74396
+ h = (h ^ (h >> 16u)) * 2246822519u;
74397
+ h = h ^ (h >> 13u);
74398
+ return f32(h >> 8u) / 16777216.0;
74399
+ }
74400
+
74385
74401
  `;
74386
- /** The GLSL twin of `SET_WGSL`: the same two helpers over `uInputClamp` and `uTexture` of the GLSL header. */
74402
+ /**
74403
+ * The GLSL twin of `SET_WGSL`: the same four helpers over `uInputClamp`, `uInputPixel`, `uInputSize` and `uTexture` of
74404
+ * the GLSL header. The hash's integers are `highp`: the default of a fragment stage is `mediump`, 16 bits on a phone.
74405
+ */
74387
74406
  const SET_GLSL = `vec2 inputPlace(vec2 uv) {
74388
74407
  return (uv - uInputClamp.xy) / (uInputClamp.zw - uInputClamp.xy);
74389
74408
  }
@@ -74392,6 +74411,18 @@ vec4 sampleInput(vec2 n) {
74392
74411
  return textureLod(uTexture, mix(uInputClamp.xy, uInputClamp.zw, clamp(n, 0.0, 1.0)), 0.0);
74393
74412
  }
74394
74413
 
74414
+ vec2 inputFrame() {
74415
+ return (uInputClamp.zw - uInputClamp.xy + uInputPixel.zw) * uInputSize.xy;
74416
+ }
74417
+
74418
+ float setHash(vec2 cell) {
74419
+ highp uvec2 q = uvec2(ivec2(cell));
74420
+ highp uint h = (q.x * 1597334677u) ^ (q.y * 3812015801u);
74421
+ h = (h ^ (h >> 16u)) * 2246822519u;
74422
+ h = h ^ (h >> 13u);
74423
+ return float(h >> 8u) / 16777216.0;
74424
+ }
74425
+
74395
74426
  `;
74396
74427
  /**
74397
74428
  * 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
@@ -74421,6 +74452,123 @@ function withSetGlsl(body) {
74421
74452
  return SET_GLSL + body;
74422
74453
  }
74423
74454
  /**
74455
+ * A soft halo of `color` around the shape of a view and its subtree, `spread` CSS px wide and as strong as `strength`
74456
+ * (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
74457
+ * halo has room. A cheap glow: 13 samples where `Glow` takes 64 to 256, so it bands a little where `Glow` is smooth.
74458
+ * For a picked tile, a hint, a selected card. List it in a feature's `filters`, as a game's own filter. One render
74459
+ * pass; on WebGPU a tween of `strength` draws on the view's own quad, no pass, from its third frame.
74460
+ *
74461
+ * @example
74462
+ * ```ts
74463
+ * // A hinted tile glows gold, twelve pixels wide; the view is padded by the live spread.
74464
+ * Aura({ color: 0xffd700, spread: 12 }).value.spread; // 12
74465
+ * Aura.filter.padding; // "spread"
74466
+ * view.tween(Aura, { strength: 0 }, { ms: 300 });
74467
+ * ```
74468
+ */
74469
+ const Aura = /*#__PURE__*/ defineFilter("effects.aura", {
74470
+ wgsl: /* @__PURE__ */ withSetWgsl(`const AURA_TAU: f32 = 6.283185307179586;
74471
+
74472
+ @fragment
74473
+ fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
74474
+ let n = inputPlace(uv);
74475
+ let c = sampleInput(n);
74476
+ let reach = fu.spread / inputFrame();
74477
+ var ring = 0.0;
74478
+
74479
+ for (var i = 0; i < 12; i++) {
74480
+ let turn = AURA_TAU * f32(i) / 12.0;
74481
+ ring += sampleInput(n + vec2<f32>(cos(turn), sin(turn)) * reach).a;
74482
+ }
74483
+
74484
+ let halo = min(smoothstep(0.0, 0.5, ring / 12.0) * max(fu.strength, 0.0), 1.0);
74485
+
74486
+ return c + vec4<f32>(fu.color * halo, halo) * (1.0 - c.a);
74487
+ }
74488
+ `),
74489
+ glsl: /* @__PURE__ */ withSetGlsl(`const float AURA_TAU = 6.283185307179586;
74490
+
74491
+ void main() {
74492
+ vec2 n = inputPlace(vTextureCoord);
74493
+ vec4 c = sampleInput(n);
74494
+ vec2 reach = spread / inputFrame();
74495
+ float ring = 0.0;
74496
+
74497
+ for (int i = 0; i < 12; i++) {
74498
+ float turn = AURA_TAU * float(i) / 12.0;
74499
+ ring += sampleInput(n + vec2(cos(turn), sin(turn)) * reach).a;
74500
+ }
74501
+
74502
+ float halo = min(smoothstep(0.0, 0.5, ring / 12.0) * max(strength, 0.0), 1.0);
74503
+
74504
+ finalColor = c + vec4(color * halo, halo) * (1.0 - c.a);
74505
+ }
74506
+ `),
74507
+ uniforms: {
74508
+ color: { color: 16777215 },
74509
+ strength: 1,
74510
+ spread: 8
74511
+ },
74512
+ padding: "spread"
74513
+ });
74514
+ /**
74515
+ * A view eaten away by a noise of `scale` cells across: `progress` 0 keeps all of it, 1 none, and the edge of what is
74516
+ * left glows in `edgeColor` over `edge` (0..1 of the noise). The noise has no time: the same cells go first at every
74517
+ * run, on WebGPU and WebGL alike. For a piece that burns away, a card that crumbles. List it in a feature's
74518
+ * `filters`, as a game's own filter. One render pass, one sample of the input; on WebGPU a tween draws on the view's
74519
+ * own quad, no pass, from its third frame.
74520
+ *
74521
+ * @example
74522
+ * ```ts
74523
+ * // A cleared piece burns away with a white rim.
74524
+ * Dissolve({ progress: 0.5 }).value.edge; // 0.08
74525
+ * view.tween(Dissolve, { progress: 1 }, { ms: 600 });
74526
+ * ```
74527
+ */
74528
+ const Dissolve = /*#__PURE__*/ defineFilter("effects.dissolve", {
74529
+ wgsl: /* @__PURE__ */ withSetWgsl(`@fragment
74530
+ fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
74531
+ let n = inputPlace(uv);
74532
+ let c = sampleInput(n);
74533
+ let g = n * max(fu.scale, 1.0);
74534
+ let cell = floor(g);
74535
+ let w = smoothstep(vec2<f32>(0.0), vec2<f32>(1.0), fract(g));
74536
+ let top = mix(setHash(cell), setHash(cell + vec2<f32>(1.0, 0.0)), w.x);
74537
+ let bottom = mix(setHash(cell + vec2<f32>(0.0, 1.0)), setHash(cell + vec2<f32>(1.0, 1.0)), w.x);
74538
+ let grain = mix(top, bottom, w.y);
74539
+ let rim = max(fu.edge, 1e-4);
74540
+ let e = mix(-rim, 1.0 + rim, clamp(fu.progress, 0.0, 1.0));
74541
+ let keep = smoothstep(e - rim, e, grain);
74542
+ let glow = 1.0 - smoothstep(e, e + rim, grain);
74543
+
74544
+ return vec4<f32>(mix(c.rgb, fu.edgeColor * c.a, glow), c.a) * keep;
74545
+ }
74546
+ `),
74547
+ glsl: /* @__PURE__ */ withSetGlsl(`void main() {
74548
+ vec2 n = inputPlace(vTextureCoord);
74549
+ vec4 c = sampleInput(n);
74550
+ vec2 g = n * max(scale, 1.0);
74551
+ vec2 cell = floor(g);
74552
+ vec2 w = smoothstep(vec2(0.0), vec2(1.0), fract(g));
74553
+ float top = mix(setHash(cell), setHash(cell + vec2(1.0, 0.0)), w.x);
74554
+ float bottom = mix(setHash(cell + vec2(0.0, 1.0)), setHash(cell + vec2(1.0, 1.0)), w.x);
74555
+ float grain = mix(top, bottom, w.y);
74556
+ float rim = max(edge, 1e-4);
74557
+ float e = mix(-rim, 1.0 + rim, clamp(progress, 0.0, 1.0));
74558
+ float keep = smoothstep(e - rim, e, grain);
74559
+ float glow = 1.0 - smoothstep(e, e + rim, grain);
74560
+
74561
+ finalColor = vec4(mix(c.rgb, edgeColor * c.a, glow), c.a) * keep;
74562
+ }
74563
+ `),
74564
+ uniforms: {
74565
+ progress: 0,
74566
+ scale: 8,
74567
+ edge: .08,
74568
+ edgeColor: { color: 16777215 }
74569
+ }
74570
+ });
74571
+ /**
74424
74572
  * A view washed with `color` by `amount`: 0 draws the view as it is, 1 draws its shape in `color`, its alpha kept.
74425
74573
  * For a hit, a pick, a merge: tween `amount` up and down. List it in a feature's `filters`, as a game's own filter.
74426
74574
  * One render pass, one sample; on WebGPU a tween draws on the view's own quad, no pass, from its third frame.
@@ -74452,6 +74600,71 @@ fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
74452
74600
  }
74453
74601
  });
74454
74602
  /**
74603
+ * A view turned by `angle` radians about its vertical axis (`axis: 0`) or its horizontal one (`axis: 1`), as a card or
74604
+ * an order row flips: at a quarter turn it is edge-on, at a half turn it shows its back, unmirrored and darkened by
74605
+ * `shade` (0..1). `perspective` (0..1) leans it: the side that goes away shrinks, to `1 − perspective` of its height at
74606
+ * a quarter turn, while the near side keeps its size, so the view never grows past its box. The view is padded by 8 px.
74607
+ * For a card flip, a row that turns to its next order. List it in a feature's `filters`, as a game's own filter. One
74608
+ * render pass, one sample; on WebGPU a tween draws on the view's own quad, no pass, from its third frame.
74609
+ *
74610
+ * @example
74611
+ * ```ts
74612
+ * // An order row flips about its horizontal axis to show its next order.
74613
+ * Fold({ axis: 1 }).value.axis; // 1
74614
+ * view.tween(Fold, { angle: Math.PI }, { ms: 320 });
74615
+ * ```
74616
+ */
74617
+ const Fold = /*#__PURE__*/ defineFilter("effects.fold", {
74618
+ wgsl: /* @__PURE__ */ withSetWgsl(`const FOLD_PADDING: f32 = 8.0;
74619
+
74620
+ @fragment
74621
+ fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
74622
+ let n = inputPlace(uv);
74623
+ let s = inputFrame();
74624
+ let q = (n * s - FOLD_PADDING) / (s - 2.0 * FOLD_PADDING);
74625
+ let a = step(0.5, fu.axis);
74626
+ let u = mix(q.x, q.y, a);
74627
+ let v = mix(q.y, q.x, a);
74628
+ let su = 0.5 + (u - 0.5) / max(abs(cos(fu.angle)), 0.02);
74629
+ let lean = 1.0 - clamp(fu.perspective, 0.0, 1.0) * (0.5 * abs(sin(fu.angle)) - sin(fu.angle) * (su - 0.5));
74630
+ let sv = 0.5 + (v - 0.5) / max(lean, 0.05);
74631
+ let place = mix(vec2<f32>(su, sv), vec2<f32>(sv, su), a);
74632
+ let inside = step(0.0, place.x) * step(place.x, 1.0) * step(0.0, place.y) * step(place.y, 1.0);
74633
+ let c = sampleInput((place * (s - 2.0 * FOLD_PADDING) + FOLD_PADDING) / s);
74634
+ let dark = 1.0 - clamp(fu.shade, 0.0, 1.0) * max(-cos(fu.angle), 0.0);
74635
+
74636
+ return vec4<f32>(c.rgb * dark, c.a) * inside;
74637
+ }
74638
+ `),
74639
+ glsl: /* @__PURE__ */ withSetGlsl(`const float FOLD_PADDING = 8.0;
74640
+
74641
+ void main() {
74642
+ vec2 n = inputPlace(vTextureCoord);
74643
+ vec2 s = inputFrame();
74644
+ vec2 q = (n * s - FOLD_PADDING) / (s - 2.0 * FOLD_PADDING);
74645
+ float a = step(0.5, axis);
74646
+ float u = mix(q.x, q.y, a);
74647
+ float v = mix(q.y, q.x, a);
74648
+ float su = 0.5 + (u - 0.5) / max(abs(cos(angle)), 0.02);
74649
+ float lean = 1.0 - clamp(perspective, 0.0, 1.0) * (0.5 * abs(sin(angle)) - sin(angle) * (su - 0.5));
74650
+ float sv = 0.5 + (v - 0.5) / max(lean, 0.05);
74651
+ vec2 place = mix(vec2(su, sv), vec2(sv, su), a);
74652
+ float inside = step(0.0, place.x) * step(place.x, 1.0) * step(0.0, place.y) * step(place.y, 1.0);
74653
+ vec4 c = sampleInput((place * (s - 2.0 * FOLD_PADDING) + FOLD_PADDING) / s);
74654
+ float dark = 1.0 - clamp(shade, 0.0, 1.0) * max(-cos(angle), 0.0);
74655
+
74656
+ finalColor = vec4(c.rgb * dark, c.a) * inside;
74657
+ }
74658
+ `),
74659
+ uniforms: {
74660
+ angle: 0,
74661
+ axis: 0,
74662
+ perspective: .5,
74663
+ shade: .4
74664
+ },
74665
+ padding: 8
74666
+ });
74667
+ /**
74455
74668
  * A colour grade of a view: `contrast` about the middle grey, then `brightness`, then `saturation` against the luma,
74456
74669
  * then a multiply by `tint`. Each number is 1 for no change, 0..2; `saturation: 0` is grey. The alpha is kept. In place
74457
74670
  * of `ColorMatrix` where a value moves: on WebGPU a tween draws on the view's own quad, no pass, from its third frame.
@@ -74502,6 +74715,145 @@ void main() {
74502
74715
  }
74503
74716
  });
74504
74717
  /**
74718
+ * 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
74719
+ * at `angle` radians (0 sweeps from the left, `Math.PI / 2` from the top) with an edge `soft` wide. The angle is in the
74720
+ * 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
74721
+ * in or out of a card, a panel, a picture. List it in a feature's `filters`, as a game's own filter. One render pass,
74722
+ * one sample; on WebGPU a tween draws on the view's own quad, no pass, from its third frame.
74723
+ *
74724
+ * @example
74725
+ * ```ts
74726
+ * // A level card wipes in from the top: it starts hidden, and a motion tweens progress to 1.
74727
+ * RevealLine({ angle: Math.PI / 2 }).value.progress; // 0
74728
+ * view.tween(RevealLine, { progress: 1 }, { ms: 400 });
74729
+ * ```
74730
+ */
74731
+ const RevealLine = /*#__PURE__*/ defineFilter("effects.revealLine", {
74732
+ wgsl: /* @__PURE__ */ withSetWgsl(`@fragment
74733
+ fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
74734
+ let n = inputPlace(uv);
74735
+ let c = sampleInput(n);
74736
+ let dir = vec2<f32>(cos(fu.angle), sin(fu.angle));
74737
+ let reach = 0.5 * (abs(dir.x) + abs(dir.y));
74738
+ let p = ((n.x - 0.5) * dir.x + (n.y - 0.5) * dir.y + reach) / (2.0 * reach);
74739
+ let fade = max(fu.soft, 1e-4);
74740
+ let e = mix(-fade, 1.0 + fade, clamp(fu.progress, 0.0, 1.0));
74741
+
74742
+ return c * (1.0 - smoothstep(e - fade, e + fade, p));
74743
+ }
74744
+ `),
74745
+ glsl: /* @__PURE__ */ withSetGlsl(`void main() {
74746
+ vec2 n = inputPlace(vTextureCoord);
74747
+ vec4 c = sampleInput(n);
74748
+ vec2 dir = vec2(cos(angle), sin(angle));
74749
+ float reach = 0.5 * (abs(dir.x) + abs(dir.y));
74750
+ float p = ((n.x - 0.5) * dir.x + (n.y - 0.5) * dir.y + reach) / (2.0 * reach);
74751
+ float fade = max(soft, 1e-4);
74752
+ float e = mix(-fade, 1.0 + fade, clamp(progress, 0.0, 1.0));
74753
+
74754
+ finalColor = c * (1.0 - smoothstep(e - fade, e + fade, p));
74755
+ }
74756
+ `),
74757
+ uniforms: {
74758
+ progress: 0,
74759
+ angle: 0,
74760
+ soft: .05
74761
+ }
74762
+ });
74763
+ /**
74764
+ * A view shown inside a disc around the point `x`, `y`: `radius: 0` hides all of it, and from about 0.75 a disc at the
74765
+ * centre shows every corner (1.5 shows all of it from any point). The edge fades over `soft` and waves by `wobble`
74766
+ * (0..0.2). The point and the lengths are in 0..1 of the view on each axis, so on a view twice as wide as tall the disc
74767
+ * is an ellipse. It hides the outside by alpha and declares no `area`: the view's fill is still paid. List it in a
74768
+ * feature's `filters`, as a game's own filter. One render pass, one sample; on WebGPU a tween draws on the view's own
74769
+ * quad, no pass, from its third frame.
74770
+ *
74771
+ * @example
74772
+ * ```ts
74773
+ * // A lens opens over the map: the window starts closed and grows to show the whole view.
74774
+ * RevealRound({ wobble: 0.04 }).value.radius; // 0
74775
+ * view.tween(RevealRound, { radius: 1.2 }, { ms: 640 });
74776
+ * ```
74777
+ */
74778
+ const RevealRound = /*#__PURE__*/ defineFilter("effects.revealRound", {
74779
+ wgsl: /* @__PURE__ */ withSetWgsl(`@fragment
74780
+ fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
74781
+ let n = inputPlace(uv);
74782
+ let c = sampleInput(n);
74783
+ let wave = fu.wobble * sin(n.x * 37.0 + n.y * 23.0);
74784
+ let d = max(distance(n, vec2<f32>(fu.x, fu.y)) + wave, 0.0);
74785
+ let fade = max(fu.soft, 1e-4);
74786
+
74787
+ return c * (1.0 - smoothstep(fu.radius - fade, fu.radius, d));
74788
+ }
74789
+ `),
74790
+ glsl: /* @__PURE__ */ withSetGlsl(`void main() {
74791
+ vec2 n = inputPlace(vTextureCoord);
74792
+ vec4 c = sampleInput(n);
74793
+ float wave = wobble * sin(n.x * 37.0 + n.y * 23.0);
74794
+ float d = max(distance(n, vec2(x, y)) + wave, 0.0);
74795
+ float fade = max(soft, 1e-4);
74796
+
74797
+ finalColor = c * (1.0 - smoothstep(radius - fade, radius, d));
74798
+ }
74799
+ `),
74800
+ uniforms: {
74801
+ x: .5,
74802
+ y: .5,
74803
+ radius: 0,
74804
+ soft: .05,
74805
+ wobble: 0
74806
+ }
74807
+ });
74808
+ /**
74809
+ * 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
74810
+ * 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
74811
+ * of the sweep), `angle` its direction in radians in the view's own 0..1 frame, `strength` how much light it adds. Light
74812
+ * is added to the colour only: the transparent pixels around the view's shape stay transparent. For a glint on a
74813
+ * reward, a card, a button. List it in a feature's `filters`, as a game's own filter. One render pass, one sample; on
74814
+ * WebGPU a tween draws on the view's own quad, no pass, from its third frame.
74815
+ *
74816
+ * @example
74817
+ * ```ts
74818
+ * // A new reward glints once: the band sweeps across it in half a second.
74819
+ * Shine().value.position; // -0.5
74820
+ * view.tween(Shine, { position: 1.5 }, { ms: 500 });
74821
+ * ```
74822
+ */
74823
+ const Shine = /*#__PURE__*/ defineFilter("effects.shine", {
74824
+ wgsl: /* @__PURE__ */ withSetWgsl(`@fragment
74825
+ fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
74826
+ let n = inputPlace(uv);
74827
+ let c = sampleInput(n);
74828
+ let dir = vec2<f32>(cos(fu.angle), sin(fu.angle));
74829
+ let reach = 0.5 * (abs(dir.x) + abs(dir.y));
74830
+ let p = ((n.x - 0.5) * dir.x + (n.y - 0.5) * dir.y + reach) / (2.0 * reach);
74831
+ let band = 1.0 - smoothstep(0.0, max(fu.width, 1e-4), abs(p - fu.position));
74832
+ let light = max(fu.strength, 0.0) * band * c.a;
74833
+
74834
+ return vec4<f32>(min(c.rgb + vec3<f32>(light), vec3<f32>(c.a)), c.a);
74835
+ }
74836
+ `),
74837
+ glsl: /* @__PURE__ */ withSetGlsl(`void main() {
74838
+ vec2 n = inputPlace(vTextureCoord);
74839
+ vec4 c = sampleInput(n);
74840
+ vec2 dir = vec2(cos(angle), sin(angle));
74841
+ float reach = 0.5 * (abs(dir.x) + abs(dir.y));
74842
+ float p = ((n.x - 0.5) * dir.x + (n.y - 0.5) * dir.y + reach) / (2.0 * reach);
74843
+ float band = 1.0 - smoothstep(0.0, max(width, 1e-4), abs(p - position));
74844
+ float light = max(strength, 0.0) * band * c.a;
74845
+
74846
+ finalColor = vec4(min(c.rgb + vec3(light), vec3(c.a)), c.a);
74847
+ }
74848
+ `),
74849
+ uniforms: {
74850
+ position: -.5,
74851
+ width: .2,
74852
+ angle: .6,
74853
+ strength: .6
74854
+ }
74855
+ });
74856
+ /**
74505
74857
  * A view darkened outside a disc: inside `radius` of the point `x`, `y` it is drawn as it is, from there over `soft` it
74506
74858
  * fades to `color`, by `amount`. The point and the lengths are in 0..1 of the view on each axis, so on a view twice as
74507
74859
  * wide as tall the disc is an ellipse. The alpha is kept. List it in a feature's `filters`, as a game's own filter. One
@@ -74760,4 +75112,4 @@ const screen = [
74760
75112
  uiPlugin
74761
75113
  ];
74762
75114
  //#endregion
74763
- export { play$1 as $, SHADER_WHATS as $t, types_exports$7 as A, Blur as At, types_exports$17 as B, assetsPlugin as Bt, types_exports as C, Traced as Ct, types_exports$4 as D, effectsPlugin as Dt, types_exports$3 as E, messageDuration as Et, types_exports$12 as F, Outline as Ft, platformPlugin as G, rendererPlugin as Gt, resolve as H, AnimPlayer as Ht, types_exports$13 as I, defineFilter as It, external as J, MONITOR_SECTIONS as Jt, HAPTIC_KINDS as K, PASS_KINDS as Kt, types_exports$14 as L, debugPlugin as Lt, types_exports$9 as M, Displacement as Mt, types_exports$10 as N, Glow as Nt, types_exports$5 as O, Emitter as Ot, types_exports$11 as P, Noise as Pt, parallel as Q, PROBLEM_RULES as Qt, types_exports$15 as R, audioPlugin as Rt, ready as S, Traceable as St, types_exports$2 as T, messageArgument as Tt, defineMotion as U, Animation as Ut, uiPlugin as V, animPlugin as Vt, textPlugin as W, Frames as Wt, haptic as X, PERF_GAP_BUCKETS as Xt, frames as Y, PERF_CAUSES as Yt, mark as Z, PERF_LOG_VERSION as Zt, flattenFeatures as _, Pressable as _t, Vignette as a, contribution as an, stagger as at, defineBundles as b, Tappable as bt, cubicBezier as c, to as cn, use as ct, hint as d, SaveUnreadableError as dn, Draggable as dt, CANVAS_RESTARTS as en, sequence as et, schedule as f, lifecyclePlugin as fn, DropTarget as ft, defineFeature as g, PointerOver as gt, tr as h, Pointer as ht, screen as i, refuseStart as in, spawned as it, types_exports$8 as j, ColorMatrix as jt, types_exports$6 as k, Alpha as kt, defineEffect as l, type as ln, wait as lt, defineScene as m, clockPlugin as mn, Hovered as mt, createPlugin as n, worldPlugin as nn, sfx as nt, Grade as o, exit as on, stopSfx as ot, projection as p, timePlugin as pn, Held as pt, defineAnimation as q, frameAt as qt, defineGame as r, flowPlugin as rn, spawn as rt, Flash as s, slot as sn, tween as st, createApp as t, DEMAND_REASONS as tn, set as tt, guide as u, modelPlugin as un, inputPlugin as ut, defineEmitter as v, Pressed as vt, types_exports$1 as w, i18nPlugin as wt, load as x, Touchable as xt, music as y, Swipeable as yt, types_exports$16 as z, scenesPlugin as zt };
75115
+ export { defineAnimation as $, frameAt as $t, types_exports$1 as A, i18nPlugin as At, types_exports$11 as B, Noise as Bt, flattenFeatures as C, Pressable as Ct, load as D, Touchable as Dt, defineBundles as E, Tappable as Et, types_exports$6 as F, Alpha as Ft, types_exports$16 as G, scenesPlugin as Gt, types_exports$13 as H, defineFilter as Ht, types_exports$7 as I, Blur as It, resolve as J, AnimPlayer as Jt, types_exports$17 as K, assetsPlugin as Kt, types_exports$8 as L, ColorMatrix as Lt, types_exports$3 as M, messageDuration as Mt, types_exports$4 as N, effectsPlugin as Nt, ready as O, Traceable as Ot, types_exports$5 as P, Emitter as Pt, HAPTIC_KINDS as Q, PASS_KINDS as Qt, types_exports$9 as R, Displacement as Rt, defineFeature as S, PointerOver as St, music as T, Swipeable as Tt, types_exports$14 as U, debugPlugin as Ut, types_exports$12 as V, Outline as Vt, types_exports$15 as W, audioPlugin as Wt, textPlugin as X, Frames as Xt, defineMotion as Y, Animation as Yt, platformPlugin as Z, rendererPlugin as Zt, hint as _, SaveUnreadableError as _n, Draggable as _t, Vignette as a, SHADER_WHATS as an, play$1 as at, defineScene as b, clockPlugin as bn, Hovered as bt, RevealLine as c, worldPlugin as cn, sfx as ct, Flash as d, contribution as dn, stagger as dt, MONITOR_SECTIONS as en, external as et, Dissolve as f, exit as fn, stopSfx as ft, guide as g, modelPlugin as gn, inputPlugin as gt, defineEffect as h, type as hn, wait as ht, screen as i, PROBLEM_RULES as in, parallel as it, types_exports$2 as j, messageArgument as jt, types_exports as k, Traced as kt, Grade as l, flowPlugin as ln, spawn as lt, cubicBezier as m, to as mn, use as mt, createPlugin as n, PERF_GAP_BUCKETS as nn, haptic as nt, Shine as o, CANVAS_RESTARTS as on, sequence as ot, Aura as p, slot as pn, tween as pt, uiPlugin as q, animPlugin as qt, defineGame as r, PERF_LOG_VERSION as rn, mark as rt, RevealRound as s, DEMAND_REASONS as sn, set as st, createApp as t, PERF_CAUSES as tn, frames as tt, Fold as u, refuseStart as un, spawned as ut, schedule as v, lifecyclePlugin as vn, DropTarget as vt, defineEmitter as w, Pressed as wt, tr as x, Pointer as xt, projection as y, timePlugin as yn, Held as yt, types_exports$10 as z, Glow as zt };
@@ -1,6 +1,6 @@
1
1
  import { An as FeaturePlugin, Hn as Descriptor, Hr as Json, Ir as FakeClock, Kn as Hint, Mn as AnyFlow, Pr as ClockSource, Rn as NodeTable, qn as NodeFx } from "./types-qCcSw8YI.mjs";
2
- import { t as createApp } from "./index-E62NqrO6.mjs";
3
- import { b as memory, x as saveOf, y as WithGameState } from "./types-Ddezbux2.mjs";
2
+ import { t as createApp } from "./index-D5w2xQz0.mjs";
3
+ import { b as memory, x as saveOf, y as WithGameState } from "./types-D0lN1gFj.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-Co3SEFi5.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
package/dist/testing.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as flattenFeatures, in as refuseStart, ln as type, on as exit, t as createApp } from "./src-GFqUAdoU.mjs";
1
+ import { C as flattenFeatures, fn as exit, hn as type, t as createApp, un as refuseStart } from "./src-tL_KNZE7.mjs";
2
2
  import { n as saveOf, t as memory } from "./memory-CWlqhS7l.mjs";
3
3
  import { n as fakeClock } from "./fake-hnJcJeYf.mjs";
4
4
  import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-CCiUwvlp.mjs";
@@ -2297,8 +2297,109 @@ type VignetteValue = {
2297
2297
  enabled: boolean;
2298
2298
  order: number;
2299
2299
  };
2300
+ /**
2301
+ * `RevealLine`: the view shown up to a straight line that sweeps across it, `progress` 0 none of it, 1 all of it, the
2302
+ * line at `angle` (radians, in the view's own 0..1 frame), its edge `soft` wide.
2303
+ *
2304
+ * @example
2305
+ * ```ts
2306
+ * const value: RevealLineValue = { progress: 0.5, angle: Math.PI / 4, soft: 0.1, enabled: true, order: 0 };
2307
+ * ```
2308
+ */
2309
+ type RevealLineValue = {
2310
+ progress: number;
2311
+ angle: number;
2312
+ soft: number;
2313
+ enabled: boolean;
2314
+ order: number;
2315
+ };
2316
+ /**
2317
+ * `RevealRound`: the view shown inside a disc around `x`, `y` (0..1 of the view) of `radius`, its edge `soft` wide and
2318
+ * wavy by `wobble`.
2319
+ *
2320
+ * @example
2321
+ * ```ts
2322
+ * const value: RevealRoundValue = { x: 0.5, y: 0.5, radius: 1.2, soft: 0.05, wobble: 0.04, enabled: true, order: 0 };
2323
+ * ```
2324
+ */
2325
+ type RevealRoundValue = {
2326
+ x: number;
2327
+ y: number;
2328
+ radius: number;
2329
+ soft: number;
2330
+ wobble: number;
2331
+ enabled: boolean;
2332
+ order: number;
2333
+ };
2334
+ /**
2335
+ * `Dissolve`: the view eaten by a noise of `scale` cells across, `progress` 0 none of it, 1 all of it, the rim `edge`
2336
+ * wide in `edgeColor`.
2337
+ *
2338
+ * @example
2339
+ * ```ts
2340
+ * const value: DissolveValue = { progress: 0.5, scale: 8, edge: 0.08, edgeColor: 0xffffff, enabled: true, order: 0 };
2341
+ * ```
2342
+ */
2343
+ type DissolveValue = {
2344
+ progress: number;
2345
+ scale: number;
2346
+ edge: number;
2347
+ edgeColor: number;
2348
+ enabled: boolean;
2349
+ order: number;
2350
+ };
2351
+ /**
2352
+ * `Shine`: a band of light `width` wide at `position` of its sweep (-0.5..1.5), across the view at `angle`, by
2353
+ * `strength`.
2354
+ *
2355
+ * @example
2356
+ * ```ts
2357
+ * const value: ShineValue = { position: 0.5, width: 0.2, angle: 0.6, strength: 0.6, enabled: true, order: 0 };
2358
+ * ```
2359
+ */
2360
+ type ShineValue = {
2361
+ position: number;
2362
+ width: number;
2363
+ angle: number;
2364
+ strength: number;
2365
+ enabled: boolean;
2366
+ order: number;
2367
+ };
2368
+ /**
2369
+ * `Aura`: a halo of `color` by `strength` (0..2) around the shape of the view, `spread` CSS px wide, which is also the
2370
+ * view's padding.
2371
+ *
2372
+ * @example
2373
+ * ```ts
2374
+ * const value: AuraValue = { color: 0xffd700, strength: 1, spread: 12, enabled: true, order: 0 };
2375
+ * ```
2376
+ */
2377
+ type AuraValue = {
2378
+ color: number;
2379
+ strength: number;
2380
+ spread: number;
2381
+ enabled: boolean;
2382
+ order: number;
2383
+ };
2384
+ /**
2385
+ * `Fold`: the view turned by `angle` (radians) about its vertical axis (`axis: 0`) or its horizontal one (`axis: 1`),
2386
+ * leaning by `perspective` (0..1), its back darkened by `shade` (0..1).
2387
+ *
2388
+ * @example
2389
+ * ```ts
2390
+ * const value: FoldValue = { angle: Math.PI / 2, axis: 1, perspective: 0.5, shade: 0.4, enabled: true, order: 0 };
2391
+ * ```
2392
+ */
2393
+ type FoldValue = {
2394
+ angle: number;
2395
+ axis: number;
2396
+ perspective: number;
2397
+ shade: number;
2398
+ enabled: boolean;
2399
+ order: number;
2400
+ };
2300
2401
  declare namespace types_d_exports$2 {
2301
- export { AlphaValue, AssetsReplaced$1 as AssetsReplaced, BlurValue, BundleUnloaded$1 as BundleUnloaded, ColorMatrixValue, Config$2 as Config, CoreKind, Curve, Deps$2 as Deps, DisplacementValue, EffectsApi, EffectsCtx, EffectsDiagnostics, EffectsStats, EmitterConfig, EmitterDefinition, EmitterValue, FilterArea, FilterCache, FilterChainContext, FilterComponent, FilterDefinition, FilterInput, FilterInputDefinition, FilterSpec, FilterStage, FilterStep, FilterValueOf, FlashValue, GlowValue, GradeValue, HotSwap, KernelSlice$2 as KernelSlice, NoiseValue, OutlineValue, Range, ResolvedEmitterConfig, Shape, State$2 as State, UniformDeclaration, UniformSpec, UniformValue, VignetteValue };
2402
+ export { AlphaValue, AssetsReplaced$1 as AssetsReplaced, AuraValue, 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 };
2302
2403
  }
2303
2404
  /**
2304
2405
  * effects plugin config. `maxParticles` here is the global warning line; the `maxParticles` of an
@@ -3285,4 +3386,4 @@ type UiApi = {
3285
3386
  }> | undefined;
3286
3387
  };
3287
3388
  //#endregion
3288
- export { mark as $, FilterComponent as A, FramesValue as B, EmitterDefinition as C, ColorMatrixValue as D, BlurValue as E, OutlineValue as F, HapticKind as G, State$3 as H, UniformDeclaration as I, HAPTIC_KINDS as J, SfxDescriptor as K, AnimApi as L, FilterValueOf as M, GlowValue as N, DisplacementValue as O, NoiseValue as P, haptic as Q, AnimPlayerValue as R, EmitterConfig as S, AlphaValue as T, Target as U, MotionKeyframe as V, types_d_exports$3 as W, external as X, defineAnimation as Y, frames as Z, State$2 as _, AudioApi as a, spawn as at, GradeValue as b, MusicDescriptor as c, stopSfx as ct, State$1 as d, wait as dt, parallel as et, VolumesFor as f, OverlayApi as ft, EffectsStats as g, EffectsApi as h, types_d_exports as i, sfx as it, FilterSpec as j, FilterArea as k, MusicOptions as l, tween as lt, Config$2 as m, State as n, sequence as nt, AudioContextLike as o, spawned as ot, types_d_exports$1 as p, types_d_exports$4 as pt, Step as q, UiApi as r, set as rt, Config$1 as s, stagger as st, Config as t, play as tt, SoundEntry as u, use as ut, types_d_exports$2 as v, EmitterValue as w, VignetteValue as x, FlashValue as y, Config$3 as z };
3389
+ export { Step as $, EmitterValue as A, NoiseValue as B, GradeValue as C, VignetteValue as D, ShineValue as E, FilterArea as F, Config$3 as G, UniformDeclaration as H, FilterComponent as I, State$3 as J, FramesValue as K, FilterSpec as L, BlurValue as M, ColorMatrixValue as N, EmitterConfig as O, DisplacementValue as P, SfxDescriptor as Q, FilterValueOf as R, FoldValue as S, RevealRoundValue as T, AnimApi as U, OutlineValue as V, AnimPlayerValue as W, types_d_exports$3 as X, Target as Y, HapticKind as Z, State$2 as _, wait as _t, AudioApi as a, mark as at, DissolveValue as b, MusicDescriptor as c, sequence as ct, State$1 as d, spawn as dt, HAPTIC_KINDS as et, VolumesFor as f, spawned as ft, EffectsStats as g, use as gt, EffectsApi as h, tween as ht, types_d_exports as i, haptic as it, AlphaValue as j, EmitterDefinition as k, MusicOptions as l, set as lt, Config$2 as m, stopSfx as mt, State as n, external as nt, AudioContextLike as o, parallel as ot, types_d_exports$1 as p, stagger as pt, MotionKeyframe as q, UiApi as r, frames as rt, Config$1 as s, play as st, Config as t, defineAnimation as tt, SoundEntry as u, sfx as ut, types_d_exports$2 as v, OverlayApi as vt, RevealLineValue as w, FlashValue as x, AuraValue as y, types_d_exports$4 as yt, GlowValue as z };
@@ -1,7 +1,7 @@
1
1
  import { An as FeaturePlugin, Br as Config, Hr as Json, Ir as FakeClock, Jr as ProviderCall, Mn as AnyFlow, Pr as ClockSource, Q as Config$2, Qr as SnapshotOf, Vn as TypeTag, Yr as SaveDoc, a as Config$3, d as Manifest, ht as Orientation, mn as Config$1, n as AssetsIo, nt as PixiModule, qr as PlayerStateProvider } from "./types-qCcSw8YI.mjs";
2
- import { o as AudioContextLike, s as Config$4 } from "./types-DeybZgVT.mjs";
2
+ import { o as AudioContextLike, s as Config$4 } from "./types-BVrpb6HD.mjs";
3
3
  import { H as I18nApi, J as TextKey, q as StringTable } from "./types-L3E-YS4N.mjs";
4
- import { Et as effectsPlugin, _t as platformPlugin, i as screen, kt as audioPlugin, t as createApp, yt as PlatformProvider } from "./index-E62NqrO6.mjs";
4
+ import { Ct as platformPlugin, Ft as audioPlugin, Mt as effectsPlugin, Tt as PlatformProvider, i as screen, t as createApp } from "./index-D5w2xQz0.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 { Nr as Api$4, Or as Api$1, Z as Api, ni as Api$3, zr as Api$2 } from "./types-qCcSw8YI.mjs";
2
- import { L as AnimApi, r as UiApi } from "./types-DeybZgVT.mjs";
2
+ import { U as AnimApi, r as UiApi } from "./types-BVrpb6HD.mjs";
3
3
  import { L as InputApi } from "./types-L3E-YS4N.mjs";
4
4
  import { r as Repro } from "./headless-Co3SEFi5.mjs";
5
5
  import { i as ControlApp, o as InputOf } from "./types-BE6tcAFX.mjs";
6
- import { t as commands } from "./commands-CnGF1AfS.mjs";
6
+ import { t as commands } from "./commands-Da3AUaKC.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-BziiITWm.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-B10_HmCZ.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`, `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` and their value types `FlashValue`, `GradeValue`, `VignetteValue`.
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` and their value types `FlashValue`, `GradeValue`, `VignetteValue`, `RevealLineValue`, `RevealRoundValue`, `DissolveValue`, `ShineValue`, `AuraValue`, `FoldValue`.
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.
@@ -676,7 +676,7 @@ Cosmetic rendering extras as data, drawn by `effectsPlugin`: `plugins: [...scree
676
676
  - 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.
677
677
  - 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.
678
678
  - 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 })`.
679
- - 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. Each is one pass and one sample, `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 })`. A view that carries a filter no feature lists draws unfiltered; a dev build warns `effects:filter-unlisted` once per id.
679
+ - 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 })`. A view that carries a filter no feature lists draws unfiltered; a dev build warns `effects:filter-unlisted` once per id.
680
680
  - API: `app.effects.stats()` returns `{ particles, emitters, filters, renderPasses }`; headless every number is 0.
681
681
  - `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.
682
682
  - 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.98",
3
+ "version": "0.15.100",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [