@moku-labs/game 0.15.59 → 0.15.61

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.
Files changed (33) hide show
  1. package/dist/app/page.d.mts +1 -1
  2. package/dist/app/page.mjs +1 -1
  3. package/dist/app/system.d.mts +3 -3
  4. package/dist/app.d.mts +3 -3
  5. package/dist/app.mjs +1 -1
  6. package/dist/assets.d.mts +1 -1
  7. package/dist/{commands-OYwZDclg.d.mts → commands-CuuOqz1U.d.mts} +6 -6
  8. package/dist/control.d.mts +4 -4
  9. package/dist/{define-U9QpSza7.d.mts → define-BUuFysVM.d.mts} +2 -2
  10. package/dist/{headless-7IBMNGda.d.mts → headless-DQpf6n1Q.d.mts} +1 -1
  11. package/dist/{index-m2g9-8_E.d.mts → index-Df4d-Oim.d.mts} +3 -3
  12. package/dist/index.d.mts +4 -4
  13. package/dist/index.mjs +2 -2
  14. package/dist/inspect.d.mts +7 -7
  15. package/dist/inspect.mjs +1 -1
  16. package/dist/jsx-dev-runtime.d.mts +1 -1
  17. package/dist/jsx-runtime.d.mts +1 -1
  18. package/dist/{runtime-DLCg0viS.d.mts → runtime-BZbU369G.d.mts} +1 -1
  19. package/dist/{sources-Bp9xmX3f.mjs → sources-Djd8MjP9.mjs} +1 -1
  20. package/dist/{src-BIiNB7Fz.mjs → src-BT3RExYK.mjs} +187 -76
  21. package/dist/testing.d.mts +4 -4
  22. package/dist/testing.mjs +1 -1
  23. package/dist/{types-CuFoPhWD.d.mts → types-4kZDzbGr.d.mts} +4 -4
  24. package/dist/{types-C6PML3Il.d.mts → types-7R8isoBg.d.mts} +13 -2
  25. package/dist/{types-BEW2Y3au.d.mts → types-CCRVRCAk.d.mts} +2 -2
  26. package/dist/{types-C0As3dEe.d.mts → types-CXIyJrtZ.d.mts} +2 -2
  27. package/dist/{types-FtzEwwWY.d.mts → types-Coe9cZb-.d.mts} +1 -1
  28. package/dist/{visual-mPbBWlEz.d.mts → visual-6N8f0J47.d.mts} +6 -6
  29. package/dist/{visual-ciZa6Rza.mjs → visual-B7TxMv1J.mjs} +93 -5
  30. package/dist/visual.d.mts +1 -1
  31. package/dist/visual.mjs +1 -1
  32. package/llms.txt +1 -1
  33. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { m as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-CuFoPhWD.mjs";
1
+ import { m as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-4kZDzbGr.mjs";
2
2
 
3
3
  //#region src/app/page.d.ts
4
4
  /**
package/dist/app/page.mjs CHANGED
@@ -2,7 +2,7 @@ import { r as systemSource, t as memory } from "../memory-CWlqhS7l.mjs";
2
2
  import { t as applyTo } from "../drafts-BawpSaVp.mjs";
3
3
  import { i as isControl } from "../dev-BNndV-hU.mjs";
4
4
  import { n as fakeClock, t as VISUAL_CLOCK } from "../fake-hnJcJeYf.mjs";
5
- import { n as read, r as watch, t as sources } from "../sources-Bp9xmX3f.mjs";
5
+ import { n as read, r as watch, t as sources } from "../sources-Djd8MjP9.mjs";
6
6
  import { t as resolveConfig } from "../config-HpC-p8Ow.mjs";
7
7
  //#region src/app/boot.ts
8
8
  /** How long after the fade the timer removes a picture whose transition never ended, ms. */
@@ -1,6 +1,6 @@
1
- import { Fr as PlayerStateProvider } from "../types-C6PML3Il.mjs";
2
- import { ht as PlatformProvider } from "../index-m2g9-8_E.mjs";
3
- import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-CuFoPhWD.mjs";
1
+ import { Fr as PlayerStateProvider } from "../types-7R8isoBg.mjs";
2
+ import { ht as PlatformProvider } from "../index-Df4d-Oim.mjs";
3
+ import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-4kZDzbGr.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
- import { Ar as Json } from "./types-C6PML3Il.mjs";
2
- import { U as StringTable } from "./types-FtzEwwWY.mjs";
3
- import { a as GameHandle, c as MemoryProvider, d as SaveKind, f as Scenario, g as SystemName, i as GameDefinition, l as PageAgent, n as GameApp, o as GamePluginConfigs, p as ScreenSeams, r as GameConfig, s as HeadlessSeams, v as WithGameState } from "./types-CuFoPhWD.mjs";
1
+ import { Ar as Json } from "./types-7R8isoBg.mjs";
2
+ import { U as StringTable } from "./types-Coe9cZb-.mjs";
3
+ import { a as GameHandle, c as MemoryProvider, d as SaveKind, f as Scenario, g as SystemName, i as GameDefinition, l as PageAgent, n as GameApp, o as GamePluginConfigs, p as ScreenSeams, r as GameConfig, s as HeadlessSeams, v as WithGameState } from "./types-4kZDzbGr.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 { Ft as audioPlugin, H as platformPlugin, i as screen, m as flattenFeatures, t as createApp, wt as effectsPlugin } from "./src-BIiNB7Fz.mjs";
1
+ import { Ft as audioPlugin, H as platformPlugin, i as screen, m as flattenFeatures, t as createApp, wt as effectsPlugin } from "./src-BT3RExYK.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
package/dist/assets.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { d as Manifest } from "./types-C6PML3Il.mjs";
1
+ import { d as Manifest } from "./types-7R8isoBg.mjs";
2
2
 
3
3
  //#region src/plugins/assets/scan/cli.d.ts
4
4
  /**
@@ -1,8 +1,8 @@
1
- import { D as DebugSwitches, Qr as FrameRate, Sn as Bookmark, Tn as FlowState, Vr as StoreApi, Wr as Api, Y as Api$1, gr as Api$2, ni as Time, ot as Captured, w as ScenesApi, zr as Snapshot } from "./types-C6PML3Il.mjs";
2
- import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-C0As3dEe.mjs";
3
- import { N as InputApi } from "./types-FtzEwwWY.mjs";
4
- import { t as HeadlessApp } from "./headless-7IBMNGda.mjs";
5
- import { n as Command, r as ControlApp } from "./types-BEW2Y3au.mjs";
1
+ import { D as DebugSwitches, Qr as FrameRate, Sn as Bookmark, Tn as FlowState, Vr as StoreApi, Wr as Api, Y as Api$1, gr as Api$2, ni as Time, ot as Captured, w as ScenesApi, zr as Snapshot } from "./types-7R8isoBg.mjs";
2
+ import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-CXIyJrtZ.mjs";
3
+ import { N as InputApi } from "./types-Coe9cZb-.mjs";
4
+ import { t as HeadlessApp } from "./headless-DQpf6n1Q.mjs";
5
+ import { n as Command, r as ControlApp } from "./types-CCRVRCAk.mjs";
6
6
 
7
7
  //#region src/plugins/flow/doors/commands.d.ts
8
8
  /**
@@ -137,8 +137,8 @@ declare const commands: Readonly<{
137
137
  readonly ui: Pick<UiApi, "fill">;
138
138
  }>;
139
139
  scroll: Command<{
140
- readonly key: "string";
141
140
  readonly to: "number";
141
+ readonly key: "string";
142
142
  }, boolean, HeadlessApp & {
143
143
  readonly log: import("@moku-labs/common/browser").LogApi;
144
144
  } & {
@@ -1,7 +1,7 @@
1
- import { t as HeadlessApp } from "./headless-7IBMNGda.mjs";
2
- import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-BEW2Y3au.mjs";
3
- import { t as commands } from "./commands-OYwZDclg.mjs";
4
- import { t as defineCommand } from "./define-U9QpSza7.mjs";
1
+ import { t as HeadlessApp } from "./headless-DQpf6n1Q.mjs";
2
+ import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-CCRVRCAk.mjs";
3
+ import { t as commands } from "./commands-CuuOqz1U.mjs";
4
+ import { t as defineCommand } from "./define-BUuFysVM.mjs";
5
5
 
6
6
  //#region src/plugins/flow/doors/dev.d.ts
7
7
  /**
@@ -1,5 +1,5 @@
1
- import { t as HeadlessApp } from "./headless-7IBMNGda.mjs";
2
- import { c as Source, n as Command, o as InputSchema } from "./types-BEW2Y3au.mjs";
1
+ import { t as HeadlessApp } from "./headless-DQpf6n1Q.mjs";
2
+ import { c as Source, n as Command, o as InputSchema } from "./types-CCRVRCAk.mjs";
3
3
 
4
4
  //#region src/plugins/flow/doors/define.d.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { Ar as Json, En as JournalEntry, Ln as Answer, On as RouteStep, Tn as FlowState, Ur as RngState, Xr as Api, nn as Api$1 } from "./types-C6PML3Il.mjs";
1
+ import { Ar as Json, En as JournalEntry, Ln as Answer, On as RouteStep, Tn as FlowState, Ur as RngState, Xr as Api, nn as Api$1 } from "./types-7R8isoBg.mjs";
2
2
 
3
3
  //#region src/plugins/flow/headless.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { $r as RateChange, Ar as Json, B as ShapeValue, Bn as DescriptionNode, C as SceneSpec, Cn as DefineNode, Cr as Config$2, Dt as PassKind, F as NineSliceValue, Fn as Hint, Gn as NumericFields, Gr as Config$4, Hr as RngApi, Jn as ReducedMotion, Jr as State$4, K as TransformValue, Kn as ProjectionMotion, Kr as Events, L as OverlayValue, Ln as Answer, Mn as Effect, Mr as State$5, N as HudPartValue, Nn as EffectOptions, Or as Config$5, Pn as GuideOptions, Pr as Patch, S as SceneDefinition, T as State$7, Tr as State$2, U as SpriteOptions, Vn as Ease, Vr as StoreApi, W as SpriteValue, Wr as Api$3, X as Config$6, Xr as Api$5, Y as Api$4, Zr as Config$8, _ as AnySceneProjection, _r as Config$9, _t as FrameRing, a as Config$1, ai as Events$1, an as EmitterIdOf, ar as ComponentValue, bn as FeatureTree, c as LoadBundles, dr as QueryTerm, dt as ViewportSize, ei as State$8, f as ReadyBundles, fr as ResourceType, gr as Api$6, gt as FrameRecord, hr as TagType, i as BundleSpec, ii as Config$10, in as Config$3, ir as ComponentType, jn as Descriptor, jr as Root, kn as SceneIdOf, l as LoadReason, ln as State$3, lr as Mut, m as Tier, mr as SystemFor, nn as Api$2, nr as ComponentHandle, o as DefineBundles, oi as Require, on as GameTypes, p as State$1, pn as defineFlow, pr as SystemDefinition, q as sprite, qn as ProjectionSpec, qr as PauseReason, r as BundleMap, rn as BundlesOf, rt as State$6, sn as HudKeysOf, t as Api, ti as ThermalReading, u as LoadResult, un as TextStylesOf, ur as Narrowed, v as Config$7, vn as FeatureDescription, w as ScenesApi, x as LayerMap, xr as Api$1, y as DefineScene, yn as FeaturePlugin, yr as State$9 } from "./types-C6PML3Il.mjs";
2
- import { A as GlowValue, B as Target, C as BlurValue, D as FilterComponent, F as AnimPlayerValue, H as HapticKind, I as Config$11, K as defineAnimation, L as FramesValue, M as OutlineValue, N as UniformDeclaration, O as FilterSpec, P as AnimApi, Q as play, R as MotionKeyframe, S as AlphaValue, T as DisplacementValue, U as SfxDescriptor, W as Step, _ as State$12, a as AudioApi, b as EmitterDefinition, c as MusicDescriptor, d as State$11, f as VolumesFor, h as EffectsApi, j as NoiseValue, k as FilterValueOf, l as MusicOptions, lt as OverlayApi, m as Config$13, n as State$13, r as UiApi, s as Config$12, t as Config$14, w as ColorMatrixValue, x as EmitterValue, y as EmitterConfig, z as State$10 } from "./types-C0As3dEe.mjs";
3
- import { B as Message, C as State$16, D as TextStyleInput, G as TypedTr, H as State$14, I as Argument, J as ResolvedStyle, L as Config$15, M as Config$16, N as InputApi, O as TextStyles, P as State$15, R as I18nApi, S as Point, T as TextBind, V as Part, W as TextKey, Y as Style, Z as WhenFlags, b as Config$17, g as IntrinsicElementsFor, h as defineTokens, j as defineComponent, k as TextValue, q as IsFlags, s as PopupComponent, v as BindField, w as TextApi, x as CountdownValue, y as BindOptions, z as IntlKit } from "./types-FtzEwwWY.mjs";
1
+ import { $r as RateChange, Ar as Json, B as ShapeValue, Bn as DescriptionNode, C as SceneSpec, Cn as DefineNode, Cr as Config$2, Dt as PassKind, F as NineSliceValue, Fn as Hint, Gn as NumericFields, Gr as Config$4, Hr as RngApi, Jn as ReducedMotion, Jr as State$4, K as TransformValue, Kn as ProjectionMotion, Kr as Events, L as OverlayValue, Ln as Answer, Mn as Effect, Mr as State$5, N as HudPartValue, Nn as EffectOptions, Or as Config$5, Pn as GuideOptions, Pr as Patch, S as SceneDefinition, T as State$7, Tr as State$2, U as SpriteOptions, Vn as Ease, Vr as StoreApi, W as SpriteValue, Wr as Api$3, X as Config$6, Xr as Api$5, Y as Api$4, Zr as Config$8, _ as AnySceneProjection, _r as Config$9, _t as FrameRing, a as Config$1, ai as Events$1, an as EmitterIdOf, ar as ComponentValue, bn as FeatureTree, c as LoadBundles, dr as QueryTerm, dt as ViewportSize, ei as State$8, f as ReadyBundles, fr as ResourceType, gr as Api$6, gt as FrameRecord, hr as TagType, i as BundleSpec, ii as Config$10, in as Config$3, ir as ComponentType, jn as Descriptor, jr as Root, kn as SceneIdOf, l as LoadReason, ln as State$3, lr as Mut, m as Tier, mr as SystemFor, nn as Api$2, nr as ComponentHandle, o as DefineBundles, oi as Require, on as GameTypes, p as State$1, pn as defineFlow, pr as SystemDefinition, q as sprite, qn as ProjectionSpec, qr as PauseReason, r as BundleMap, rn as BundlesOf, rt as State$6, sn as HudKeysOf, t as Api, ti as ThermalReading, u as LoadResult, un as TextStylesOf, ur as Narrowed, v as Config$7, vn as FeatureDescription, w as ScenesApi, x as LayerMap, xr as Api$1, y as DefineScene, yn as FeaturePlugin, yr as State$9 } from "./types-7R8isoBg.mjs";
2
+ import { A as GlowValue, B as Target, C as BlurValue, D as FilterComponent, F as AnimPlayerValue, H as HapticKind, I as Config$11, K as defineAnimation, L as FramesValue, M as OutlineValue, N as UniformDeclaration, O as FilterSpec, P as AnimApi, Q as play, R as MotionKeyframe, S as AlphaValue, T as DisplacementValue, U as SfxDescriptor, W as Step, _ as State$12, a as AudioApi, b as EmitterDefinition, c as MusicDescriptor, d as State$11, f as VolumesFor, h as EffectsApi, j as NoiseValue, k as FilterValueOf, l as MusicOptions, lt as OverlayApi, m as Config$13, n as State$13, r as UiApi, s as Config$12, t as Config$14, w as ColorMatrixValue, x as EmitterValue, y as EmitterConfig, z as State$10 } from "./types-CXIyJrtZ.mjs";
3
+ import { B as Message, C as State$16, D as TextStyleInput, G as TypedTr, H as State$14, I as Argument, J as ResolvedStyle, L as Config$15, M as Config$16, N as InputApi, O as TextStyles, P as State$15, R as I18nApi, S as Point, T as TextBind, V as Part, W as TextKey, Y as Style, Z as WhenFlags, b as Config$17, g as IntrinsicElementsFor, h as defineTokens, j as defineComponent, k as TextValue, q as IsFlags, s as PopupComponent, v as BindField, w as TextApi, x as CountdownValue, y as BindOptions, z as IntlKit } from "./types-Coe9cZb-.mjs";
4
4
  import { Log } from "@moku-labs/common/browser";
5
5
  import { PluginCtx } from "@moku-labs/core";
6
6
 
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { $t as ShaderWhat, At as PerfChange, Bn as DescriptionNode, Bt as PerfLongFrameLine, Ct as PERF_CAUSES, Dt as PassKind, E as types_d_exports$13, Er as types_d_exports$3, Et as PROBLEM_RULES, Ft as PerfEventLine, G as Transform, Gt as PerfStartupLine, H as SpriteBlend, Ht as PerfMeasured, I as Overlay, It as PerfEventName, J as AdaptiveScale, Jt as PoolTrimDetail, Kt as PerfTelemetryLine, L as OverlayValue, Lt as PerfGapLine, M as HudPart, Mt as PerfCollectorLine, N as HudPartValue, Nr as types_d_exports$10, Nt as PerfCounts, Ot as PassRecord, P as NineSlice, Pt as PerfDisplay, Qt as ShaderEventDetail, R as Parent, Rn as AnchorTarget, Rr as SaveUnreadableError, Rt as PerfHeaderLine, St as OverlayWhat, Tt as PERF_LOG_VERSION, Ut as PerfSampleLine, V as Sprite, Vt as PerfMarkLine, Wt as PerfSpikeLine, Xt as ProblemRule, Yn as SceneSwitch, Yr as types_d_exports$9, Yt as ProblemEventDetail, Z as MonitorConfig, Zt as SHADER_WHATS, _n as type, _t as FrameRing, at as types_d_exports$12, br as types_d_exports$17, bt as MonitorSections, dn as types_d_exports$6, en as WarmDetail, fn as contribution, g as types_d_exports$1, gn as to, gt as FrameRecord, hn as slot, ht as FrameReadout, j as Display, jt as PerfChangeEntry, kt as PerfCause, mn as exit, mt as FrameReadResult, nt as PoolTrim, pt as FrameColumns, q as sprite, qt as PerfThermalLine, ri as types_d_exports$15, st as MonitorCounts, tn as DEMAND_REASONS, vt as LongFrameEntry, wt as PERF_GAP_BUCKETS, xt as OverlayEventDetail, yt as MONITOR_SECTIONS, z as Shape, zt as PerfLogLine } from "./types-C6PML3Il.mjs";
2
- import { $ as sequence, E as FilterArea, G as HAPTIC_KINDS, H as HapticKind, J as frames, K as defineAnimation, Q as play, V as types_d_exports, X as mark, Y as haptic, Z as parallel, at as stopSfx, ct as wait, et as set, i as types_d_exports$16, it as stagger, nt as spawn, ot as tween, p as types_d_exports$2, q as external, rt as spawned, st as use, tt as sfx, ut as types_d_exports$4, v as types_d_exports$5 } from "./types-C0As3dEe.mjs";
3
- import { A as types_d_exports$14, E as TextFormat, F as types_d_exports$8, K as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as defineComponent, m as popup, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-FtzEwwWY.mjs";
4
- import { $ as system, A as Draggable, At as Text, B as Touchable, C as AnimPlayer, Ct as debugPlugin, D as defineBundles, Dt as animPlugin, E as defineScene, Et as assetsPlugin, F as PointerOver, G as Exiting, H as Traced, I as Pressable, J as Order, K as Layer, L as Pressed, M as Held, Mt as defineTextStyles, N as Hovered, Nt as label, O as load, Ot as projection, P as Pointer, Q as resource, R as Swipeable, S as defineMotion, St as effectsPlugin, T as Frames, Tt as audioPlugin, U as PASS_KINDS, V as Traceable, W as frameAt, X as component, Y as Tree, Z as mut, _ as defineStyle, _t as modelPlugin, a as defineEmitter, at as defineFeature, b as messageDuration, bt as i18nPlugin, c as Alpha, ct as uiPlugin, d as Displacement, dt as scenesPlugin, et as tag, f as Glow, ft as rendererPlugin, g as resolve, gt as types_d_exports$11, h as music, ht as PlatformProvider, i as screen, it as schedule, j as DropTarget, jt as bind, k as ready, kt as Countdown, l as Blur, lt as timePlugin, m as Outline, mt as BackResult, n as createPlugin, nt as guide, o as Emitter, ot as flattenFeatures, p as Noise, pt as platformPlugin, q as Now, r as defineGame, rt as hint, s as defineFilter, st as worldPlugin, t as createApp, tt as defineEffect, u as ColorMatrix, ut as textPlugin, v as tr, vt as lifecyclePlugin, w as Animation, wt as clockPlugin, x as cubicBezier, xt as flowPlugin, y as messageArgument, yt as inputPlugin, z as Tappable } from "./index-m2g9-8_E.mjs";
1
+ import { $t as ShaderWhat, At as PerfChange, Bn as DescriptionNode, Bt as PerfLongFrameLine, Ct as PERF_CAUSES, Dt as PassKind, E as types_d_exports$13, Er as types_d_exports$3, Et as PROBLEM_RULES, Ft as PerfEventLine, G as Transform, Gt as PerfStartupLine, H as SpriteBlend, Ht as PerfMeasured, I as Overlay, It as PerfEventName, J as AdaptiveScale, Jt as PoolTrimDetail, Kt as PerfTelemetryLine, L as OverlayValue, Lt as PerfGapLine, M as HudPart, Mt as PerfCollectorLine, N as HudPartValue, Nr as types_d_exports$10, Nt as PerfCounts, Ot as PassRecord, P as NineSlice, Pt as PerfDisplay, Qt as ShaderEventDetail, R as Parent, Rn as AnchorTarget, Rr as SaveUnreadableError, Rt as PerfHeaderLine, St as OverlayWhat, Tt as PERF_LOG_VERSION, Ut as PerfSampleLine, V as Sprite, Vt as PerfMarkLine, Wt as PerfSpikeLine, Xt as ProblemRule, Yn as SceneSwitch, Yr as types_d_exports$9, Yt as ProblemEventDetail, Z as MonitorConfig, Zt as SHADER_WHATS, _n as type, _t as FrameRing, at as types_d_exports$12, br as types_d_exports$17, bt as MonitorSections, dn as types_d_exports$6, en as WarmDetail, fn as contribution, g as types_d_exports$1, gn as to, gt as FrameRecord, hn as slot, ht as FrameReadout, j as Display, jt as PerfChangeEntry, kt as PerfCause, mn as exit, mt as FrameReadResult, nt as PoolTrim, pt as FrameColumns, q as sprite, qt as PerfThermalLine, ri as types_d_exports$15, st as MonitorCounts, tn as DEMAND_REASONS, vt as LongFrameEntry, wt as PERF_GAP_BUCKETS, xt as OverlayEventDetail, yt as MONITOR_SECTIONS, z as Shape, zt as PerfLogLine } from "./types-7R8isoBg.mjs";
2
+ import { $ as sequence, E as FilterArea, G as HAPTIC_KINDS, H as HapticKind, J as frames, K as defineAnimation, Q as play, V as types_d_exports, X as mark, Y as haptic, Z as parallel, at as stopSfx, ct as wait, et as set, i as types_d_exports$16, it as stagger, nt as spawn, ot as tween, p as types_d_exports$2, q as external, rt as spawned, st as use, tt as sfx, ut as types_d_exports$4, v as types_d_exports$5 } from "./types-CXIyJrtZ.mjs";
3
+ import { A as types_d_exports$14, E as TextFormat, F as types_d_exports$8, K as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as defineComponent, m as popup, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-Coe9cZb-.mjs";
4
+ import { $ as system, A as Draggable, At as Text, B as Touchable, C as AnimPlayer, Ct as debugPlugin, D as defineBundles, Dt as animPlugin, E as defineScene, Et as assetsPlugin, F as PointerOver, G as Exiting, H as Traced, I as Pressable, J as Order, K as Layer, L as Pressed, M as Held, Mt as defineTextStyles, N as Hovered, Nt as label, O as load, Ot as projection, P as Pointer, Q as resource, R as Swipeable, S as defineMotion, St as effectsPlugin, T as Frames, Tt as audioPlugin, U as PASS_KINDS, V as Traceable, W as frameAt, X as component, Y as Tree, Z as mut, _ as defineStyle, _t as modelPlugin, a as defineEmitter, at as defineFeature, b as messageDuration, bt as i18nPlugin, c as Alpha, ct as uiPlugin, d as Displacement, dt as scenesPlugin, et as tag, f as Glow, ft as rendererPlugin, g as resolve, gt as types_d_exports$11, h as music, ht as PlatformProvider, i as screen, it as schedule, j as DropTarget, jt as bind, k as ready, kt as Countdown, l as Blur, lt as timePlugin, m as Outline, mt as BackResult, n as createPlugin, nt as guide, o as Emitter, ot as flattenFeatures, p as Noise, pt as platformPlugin, q as Now, r as defineGame, rt as hint, s as defineFilter, st as worldPlugin, t as createApp, tt as defineEffect, u as ColorMatrix, ut as textPlugin, v as tr, vt as lifecyclePlugin, w as Animation, wt as clockPlugin, x as cubicBezier, xt as flowPlugin, y as messageArgument, yt as inputPlugin, z as Tappable } from "./index-Df4d-Oim.mjs";
5
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, 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, types_d_exports$6 as Flow, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, 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, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shape, Sprite, type SpriteBlend, Swipeable, Tappable, Text, type TextFormat, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, type WarmDetail, 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, 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 sfx, $t as flowPlugin, A as types_exports$7, At as Glow, B as defineMotion, Bt as Animation, C as types_exports$14, Ct as messageDuration, D as types_exports$10, Dt as Blur, E as types_exports$11, Et as Alpha, F as types_exports$2, Ft as audioPlugin, G as external, Gt as MONITOR_SECTIONS, H as platformPlugin, Ht as rendererPlugin, I as types_exports$1, It as scenesPlugin, J as mark, Jt as PERF_LOG_VERSION, K as frames, Kt as PERF_CAUSES, L as types_exports, Lt as assetsPlugin, M as types_exports$5, Mt as Outline, N as types_exports$4, Nt as defineFilter, O as types_exports$9, Ot as ColorMatrix, P as types_exports$3, Pt as debugPlugin, Q as set, Qt as worldPlugin, R as uiPlugin, Rt as animPlugin, S as types_exports$15, St as messageArgument, T as types_exports$12, Tt as Emitter, U as HAPTIC_KINDS, Ut as PASS_KINDS, V as textPlugin, Vt as Frames, W as defineAnimation, Wt as frameAt, X as play, Xt as SHADER_WHATS, Y as parallel, Yt as PROBLEM_RULES, Z as sequence, Zt as DEMAND_REASONS, _ as defineBundles, _t as Tappable, a as cubicBezier, an as type, at as use, b as types_exports$17, bt as Traced, c as hint, cn as lifecyclePlugin, ct as Draggable, d as defineScene, dt as Hovered, et as spawn, f as tr, ft as Pointer, g as music, gt as Swipeable, h as defineEmitter, ht as Pressed, i as screen, in as to, it as tween, j as types_exports$6, jt as Noise, k as types_exports$8, kt as Displacement, l as schedule, ln as timePlugin, lt as DropTarget, m as flattenFeatures, mt as Pressable, n as createPlugin, nn as exit, nt as stagger, o as defineEffect, on as modelPlugin, ot as wait, p as defineFeature, pt as PointerOver, q as haptic, qt as PERF_GAP_BUCKETS, r as defineGame, rn as slot, rt as stopSfx, s as guide, sn as SaveUnreadableError, st as inputPlugin, t as createApp, tn as contribution, tt as spawned, u as projection, un as clockPlugin, ut as Held, v as load, vt as Touchable, w as types_exports$13, wt as effectsPlugin, x as types_exports$16, xt as i18nPlugin, y as ready, yt as Traceable, z as resolve, zt as AnimPlayer } from "./src-BIiNB7Fz.mjs";
2
- import { $ as Tree, B as Overlay, C as bind, E as label, G as Transform, H as Parent, J as sprite, L as Display, Q as Order, R as HudPart, S as Text, T as defineTextStyles, U as Shape, W as Sprite, X as Layer, Y as Exiting, Z as Now, _ as popup, at as tag, b as defineStyle, c as Box, et as component, f as LocalWrite, m as ScrollState, nt as resource, rt as system, tt as mut, u as DebugTrigger, x as Countdown, y as defineTokens, z as NineSlice } from "./visual-ciZa6Rza.mjs";
1
+ import { $ as sfx, $t as flowPlugin, A as types_exports$7, At as Glow, B as defineMotion, Bt as Animation, C as types_exports$14, Ct as messageDuration, D as types_exports$10, Dt as Blur, E as types_exports$11, Et as Alpha, F as types_exports$2, Ft as audioPlugin, G as external, Gt as MONITOR_SECTIONS, H as platformPlugin, Ht as rendererPlugin, I as types_exports$1, It as scenesPlugin, J as mark, Jt as PERF_LOG_VERSION, K as frames, Kt as PERF_CAUSES, L as types_exports, Lt as assetsPlugin, M as types_exports$5, Mt as Outline, N as types_exports$4, Nt as defineFilter, O as types_exports$9, Ot as ColorMatrix, P as types_exports$3, Pt as debugPlugin, Q as set, Qt as worldPlugin, R as uiPlugin, Rt as animPlugin, S as types_exports$15, St as messageArgument, T as types_exports$12, Tt as Emitter, U as HAPTIC_KINDS, Ut as PASS_KINDS, V as textPlugin, Vt as Frames, W as defineAnimation, Wt as frameAt, X as play, Xt as SHADER_WHATS, Y as parallel, Yt as PROBLEM_RULES, Z as sequence, Zt as DEMAND_REASONS, _ as defineBundles, _t as Tappable, a as cubicBezier, an as type, at as use, b as types_exports$17, bt as Traced, c as hint, cn as lifecyclePlugin, ct as Draggable, d as defineScene, dt as Hovered, et as spawn, f as tr, ft as Pointer, g as music, gt as Swipeable, h as defineEmitter, ht as Pressed, i as screen, in as to, it as tween, j as types_exports$6, jt as Noise, k as types_exports$8, kt as Displacement, l as schedule, ln as timePlugin, lt as DropTarget, m as flattenFeatures, mt as Pressable, n as createPlugin, nn as exit, nt as stagger, o as defineEffect, on as modelPlugin, ot as wait, p as defineFeature, pt as PointerOver, q as haptic, qt as PERF_GAP_BUCKETS, r as defineGame, rn as slot, rt as stopSfx, s as guide, sn as SaveUnreadableError, st as inputPlugin, t as createApp, tn as contribution, tt as spawned, u as projection, un as clockPlugin, ut as Held, v as load, vt as Touchable, w as types_exports$13, wt as effectsPlugin, x as types_exports$16, xt as i18nPlugin, y as ready, yt as Traceable, z as resolve, zt as AnimPlayer } from "./src-BT3RExYK.mjs";
2
+ import { $ as Layer, B as Display, C as defineStyle, E as bind, G as Parent, H as NineSlice, J as Transform, K as Shape, O as defineTextStyles, Q as Exiting, S as defineTokens, T as Text, U as Overlay, V as HudPart, Z as sprite, _ as ScrollState, at as resource, b as popup, ct as tag, d as Box, et as Now, h as LocalWrite, it as mut, k as label, nt as Tree, ot as system, p as DebugTrigger, q as Sprite, rt as component, tt as Order, w as Countdown } from "./visual-B7TxMv1J.mjs";
3
3
  import { t as defineComponent } from "./component-DGg5DqKK.mjs";
4
4
  export { Alpha, types_exports as Anim, AnimPlayer, Animation, types_exports$1 as Assets, types_exports$2 as Audio, Blur, Box, 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, types_exports$6 as Flow, Frames, Glow, 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, 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, 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,9 +1,9 @@
1
- import { Dr as Api, En as JournalEntry, Y as Api$2, cn as Position, cr as FrameDiff, ct as RenderStats, gr as Api$1, h as Usage, it as Under, rr as ComponentSchema, sr as EntitySnapshot, t as Api$3, vr as Explained, wn as FlowGraph, zr as Snapshot } from "./types-C6PML3Il.mjs";
2
- import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-C0As3dEe.mjs";
3
- import { c as UiNode } from "./types-FtzEwwWY.mjs";
4
- import { t as HeadlessApp } from "./headless-7IBMNGda.mjs";
5
- import { a as InputOf, c as Source, i as InputArguments, l as WatchApp, o as InputSchema, t as CheatEntry, u as WatchInput } from "./types-BEW2Y3au.mjs";
6
- import { n as defineSource } from "./define-U9QpSza7.mjs";
1
+ import { Dr as Api, En as JournalEntry, Y as Api$2, cn as Position, cr as FrameDiff, ct as RenderStats, gr as Api$1, h as Usage, it as Under, rr as ComponentSchema, sr as EntitySnapshot, t as Api$3, vr as Explained, wn as FlowGraph, zr as Snapshot } from "./types-7R8isoBg.mjs";
2
+ import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-CXIyJrtZ.mjs";
3
+ import { c as UiNode } from "./types-Coe9cZb-.mjs";
4
+ import { t as HeadlessApp } from "./headless-DQpf6n1Q.mjs";
5
+ import { a as InputOf, c as Source, i as InputArguments, l as WatchApp, o as InputSchema, t as CheatEntry, u as WatchInput } from "./types-CCRVRCAk.mjs";
6
+ import { n as defineSource } from "./define-BUuFysVM.mjs";
7
7
 
8
8
  //#region src/plugins/flow/doors/read.d.ts
9
9
  /**
@@ -122,8 +122,8 @@ declare const sources: Readonly<{
122
122
  readonly world: Api$1;
123
123
  }>;
124
124
  diff: Source<{
125
- readonly to: "number";
126
125
  readonly from: "number";
126
+ readonly to: "number";
127
127
  }, FrameDiff, HeadlessApp & {
128
128
  readonly world: Api$1;
129
129
  }>;
package/dist/inspect.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  import { c as defineSource } from "./session-DuZfGZWk.mjs";
2
- import { n as read, r as watch, t as sources } from "./sources-Bp9xmX3f.mjs";
2
+ import { n as read, r as watch, t as sources } from "./sources-Djd8MjP9.mjs";
3
3
  import "./inspect-la_KkjCS.mjs";
4
4
  export { defineSource, read, sources, watch };
@@ -1,2 +1,2 @@
1
- import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-DLCg0viS.mjs";
1
+ import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-BZbU369G.mjs";
2
2
  export { Fragment, type JSX, jsx, jsxDEV, jsxs };
@@ -1,2 +1,2 @@
1
- import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-DLCg0viS.mjs";
1
+ import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-BZbU369G.mjs";
2
2
  export { Fragment, type JSX, jsx, jsxs };
@@ -1,4 +1,4 @@
1
- import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-FtzEwwWY.mjs";
1
+ import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-Coe9cZb-.mjs";
2
2
 
3
3
  //#region src/plugins/ui/jsx/runtime.d.ts
4
4
  /** What the compiler passes as props: the children plus whatever the tag declared. */
@@ -1,4 +1,4 @@
1
- import { I as rootPoseOf, M as parentOf, U as Shape, X as Layer, c as Box, r as drawnRect, z as NineSlice } from "./visual-ciZa6Rza.mjs";
1
+ import { $ as Layer, F as parentOf, H as NineSlice, K as Shape, d as Box, r as drawnRect, z as rootPoseOf } from "./visual-B7TxMv1J.mjs";
2
2
  import { o as notInstalled } from "./dev-BNndV-hU.mjs";
3
3
  import { a as readTarget, c as defineSource, l as inputSchema, n as isTainted, o as inputOrEmpty, t as cheatsOf } from "./session-DuZfGZWk.mjs";
4
4
  //#region src/plugins/flow/doors/read.ts
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { r as systemSource, t as memory } from "./memory-CWlqhS7l.mjs";
3
3
  import { a as finishDrafts, i as enableDraftPatches, n as deepFreeze$1, o as openDrafts, r as dropDrafts } from "./drafts-BawpSaVp.mjs";
4
4
  import { _ as compact, c as collectFlows, d as findNode, f as framePath, g as slotNames, h as restlessCapOf, i as servePaused, l as describeGraph, m as isRestCheckpoint, n as captureFrame, o as epochOf, p as graphHash, r as serveCaptures, s as pageNow$1, t as cancelCaptures, v as pushEntry } from "./capture-BtS6_oWr.mjs";
5
- import { $ as Tree, A as isLeaving, B as Overlay, D as readStyle, F as rootPoseInto, G as Transform, H as Parent, I as rootPoseOf, K as arcDefaults, L as Display, M as parentOf$1, N as poseUnder, O as textFor, P as rootPointOf, Q as Order, R as HudPart, S as Text, U as Shape, V as OverlayLevel, W as Sprite, X as Layer, Y as Exiting, Z as Now, a as samePose, at as tag, c as Box, d as Escapable, et as component, f as LocalWrite, g as UiCounters, h as UI_OWNER, i as fitScaleOf, it as systemsFor, j as localPoseOf, k as applyPose, l as Covered, m as ScrollState, n as CONTENT$1, nt as resource, o as visualOf$1, p as Scroll, q as componentsFor, r as drawnRect, rt as system, s as visualRectOf, u as DebugTrigger, v as uiFor, w as builtInStyles, x as Countdown, z as NineSlice } from "./visual-ciZa6Rza.mjs";
5
+ import { $ as Layer, A as readStyle, B as Display, D as builtInStyles, F as parentOf$1, G as Parent, H as NineSlice, I as poseUnder, J as Transform, K as Shape, L as rootPointOf, M as applyPose, N as isLeaving, P as localPoseOf, Q as Exiting, R as rootPoseInto, T as Text, U as Overlay, V as HudPart, W as OverlayLevel, X as componentsFor, Y as arcDefaults, _ as ScrollState, a as fitScaleOf, at as resource, c as samePose, ct as tag, d as Box, et as Now, f as Covered, g as Scroll, h as LocalWrite, i as fieldsLeftAlone, j as textFor, l as visualOf$1, m as Escapable, n as CONTENT$1, nt as Tree, o as livePatch, ot as system, p as DebugTrigger, q as Sprite, r as drawnRect, rt as component, s as restValueOf, st as systemsFor, tt as Order, u as visualRectOf, v as UI_OWNER, w as Countdown, x as uiFor, y as UiCounters, z as rootPoseOf } from "./visual-B7TxMv1J.mjs";
6
6
  import { a as isDev } from "./dev-BNndV-hU.mjs";
7
7
  import { n as isComponentDefinition } from "./component-DGg5DqKK.mjs";
8
8
  import { n as flatten } from "./flatten-nUX9PpGo.mjs";
@@ -17938,6 +17938,37 @@ function releaseRange(kctx, id) {
17938
17938
  function spriteOf$1(kctx, id) {
17939
17939
  return kctx.state.ranges.get(id)?.sprite;
17940
17940
  }
17941
+ /** The quads a range render hides for its duration: one list for the module, emptied after each render. */
17942
+ const HIDDEN_QUADS = [];
17943
+ /**
17944
+ * Hides, without a mark, for one render, the visible quad of a kept record whose top a range leaves out: the owner's
17945
+ * root it is drawn before, and every node of its others.
17946
+ *
17947
+ * @param kctx - The kept context.
17948
+ * @param before - The owner's root.
17949
+ * @param others - The nodes the range leaves out.
17950
+ * @returns The quads hidden, to show again after the render.
17951
+ */
17952
+ function hideQuadsOf(kctx, before, others) {
17953
+ hideQuadOf(kctx, before);
17954
+ for (const node of others) hideQuadOf(kctx, node);
17955
+ return HIDDEN_QUADS;
17956
+ }
17957
+ /**
17958
+ * Hides the visible quad of the kept record of a node, if it has one, into the module's list: the node is the record's
17959
+ * top, or the object of its view under the wrapper the record's top is.
17960
+ *
17961
+ * @param kctx - The kept context.
17962
+ * @param node - The node.
17963
+ */
17964
+ function hideQuadOf(kctx, node) {
17965
+ const { state } = kctx;
17966
+ const entity = kctx.ctx.state.sync.entityOf.get(node);
17967
+ const quad = (state.byTop.get(node) ?? (entity === void 0 ? void 0 : state.byEntity.get(entity)))?.quad;
17968
+ if (quad === void 0 || !quad.visible) return;
17969
+ quad.visible = false;
17970
+ HIDDEN_QUADS.push(quad);
17971
+ }
17941
17972
  /**
17942
17973
  * Renders the picture of one range: one render of the stage root, inside `liftFor` (the entries hidden only by
17943
17974
  * `"freeze"` lifted, the others hidden, every node back from its mask after, without a mark). The root becomes a
@@ -17959,7 +17990,13 @@ function renderRange(kctx, pixi, matrices, root, range) {
17959
17990
  let filtered = 0;
17960
17991
  if (!kctx.sync.liftFor(kctx.hidden, range.entries, range.others, "freeze", () => {
17961
17992
  filtered = kctx.sync.renderPassesOf(kctx.ctx.state.sync, state) - 1 - state.flushPasses;
17962
- return host.renderTo(root, picture, transform, true);
17993
+ const quads = hideQuadsOf(kctx, range.slot.before, range.others);
17994
+ try {
17995
+ return host.renderTo(root, picture, transform, true);
17996
+ } finally {
17997
+ for (const quad of quads) quad.visible = true;
17998
+ quads.length = 0;
17999
+ }
17963
18000
  })) return;
17964
18001
  if (!group) state.madeGroups.add(root);
17965
18002
  range.due = false;
@@ -18174,7 +18211,9 @@ function createKeptState(config) {
18174
18211
  verifySkipped: 0,
18175
18212
  bypassed: false,
18176
18213
  flushPasses: 0,
18177
- calm: false
18214
+ calm: false,
18215
+ firstTakes: 0,
18216
+ alphaDue: false
18178
18217
  };
18179
18218
  }
18180
18219
  /**
@@ -18258,6 +18297,8 @@ function stopKept(state) {
18258
18297
  state.frameTakes = 0;
18259
18298
  state.flushPasses = 0;
18260
18299
  state.drawnPictures = 0;
18300
+ state.firstTakes = 0;
18301
+ state.alphaDue = false;
18261
18302
  state.warnedBudget = false;
18262
18303
  state.warnedBlend.clear();
18263
18304
  state.verifySkipped = 0;
@@ -18273,6 +18314,7 @@ const NOW = {
18273
18314
  rs: 1,
18274
18315
  P: 0,
18275
18316
  alpha: NaN,
18317
+ passes: 0,
18276
18318
  r: 1,
18277
18319
  a: 1,
18278
18320
  b: 0,
@@ -18281,6 +18323,14 @@ const NOW = {
18281
18323
  tx: 0,
18282
18324
  ty: 0
18283
18325
  };
18326
+ /** The stack of a record looked at before the step (F114). One object: the look allocates nothing. */
18327
+ const DUE = {
18328
+ enabled: 0,
18329
+ rs: 1,
18330
+ P: 0,
18331
+ alpha: NaN,
18332
+ passes: 0
18333
+ };
18284
18334
  /** What the record being stepped drew before its step. One object: a step allocates nothing. */
18285
18335
  const BEFORE = {
18286
18336
  mode: "live",
@@ -18314,10 +18364,12 @@ function readStack(slots, resolution, alphaFilter, into) {
18314
18364
  let rs = Number.POSITIVE_INFINITY;
18315
18365
  let padding = 0;
18316
18366
  let alpha = 1;
18367
+ let passes = 0;
18317
18368
  for (let index = 0; index < slots.length; index += 1) {
18318
18369
  const filter = slots[index]?.filter;
18319
18370
  if (filter === void 0 || !filter.enabled) continue;
18320
18371
  enabled += 1;
18372
+ passes += slots[index]?.passes ?? 0;
18321
18373
  rs = Math.min(rs, resolutionOf$1(filter, resolution));
18322
18374
  padding += filter.padding;
18323
18375
  alpha *= filter instanceof alphaFilter ? filter.alpha : NaN;
@@ -18326,6 +18378,7 @@ function readStack(slots, resolution, alphaFilter, into) {
18326
18378
  into.rs = enabled === 0 ? resolution : rs;
18327
18379
  into.P = Math.trunc(padding);
18328
18380
  into.alpha = alpha;
18381
+ into.passes = passes;
18329
18382
  }
18330
18383
  /**
18331
18384
  * Tells whether a stack draws as its subtree picture at an alpha (F54): every enabled filter an `AlphaFilter`, no
@@ -18586,7 +18639,12 @@ function createRecord$1(kctx, pixi, entity, view, slots, category) {
18586
18639
  cut: false,
18587
18640
  direct: false,
18588
18641
  displays: void 0,
18589
- blended: false
18642
+ blended: false,
18643
+ takenAt: NaN,
18644
+ spared: false,
18645
+ idle: false,
18646
+ alphaDue: false,
18647
+ alphaMissed: false
18590
18648
  };
18591
18649
  const { state } = kctx;
18592
18650
  state.records.push(record);
@@ -18763,6 +18821,17 @@ function writeTakeKeys(record, now, box) {
18763
18821
  key[KEY.h1] = box.h1;
18764
18822
  }
18765
18823
  /**
18824
+ * Refuses a take that would render nothing and remembers it (F114): the record attempts nothing until a change under
18825
+ * its top or a move of it.
18826
+ *
18827
+ * @param record - The record.
18828
+ * @returns False, the refusal.
18829
+ */
18830
+ function refuseIdle(record) {
18831
+ record.idle = true;
18832
+ return false;
18833
+ }
18834
+ /**
18766
18835
  * Takes or retakes the picture of a record: stages 1, 2 (when its first filter has inputs) and 3, at the phase of this
18767
18836
  * frame. The bounds are cut to the filter area of the top when it holds one (F43). Refused, and the view drawn live,
18768
18837
  * for a `Display` in the subtree without `onDemand`, a node under the top that blends otherwise (F68, warned once per
@@ -18780,12 +18849,12 @@ function writeTakeKeys(record, now, box) {
18780
18849
  */
18781
18850
  function takePicture(kctx, pixi, matrices, record, view, now, turned = false) {
18782
18851
  const { top } = record;
18783
- if (!kctx.ctx.config.onDemand && holdsDisplay(kctx, top)) return false;
18852
+ if (!kctx.ctx.config.onDemand && holdsDisplay(kctx, top)) return refuseIdle(record);
18784
18853
  if (blendedBelow(kctx, record)) return false;
18785
18854
  const drawn = drawnBounds(pixi, top);
18786
- if (!drawn.isValid) return false;
18855
+ if (!drawn.isValid) return refuseIdle(record);
18787
18856
  const local = clippedToArea(drawn, top.filterArea);
18788
- if (isEmptyBounds(local)) return false;
18857
+ if (isEmptyBounds(local)) return refuseIdle(record);
18789
18858
  const box = linearBounds(now.a, now.b, now.c, now.d, local);
18790
18859
  const screen = kctx.host.screen();
18791
18860
  const width = screen?.width ?? Number.POSITIVE_INFINITY;
@@ -18793,7 +18862,7 @@ function takePicture(kctx, pixi, matrices, record, view, now, turned = false) {
18793
18862
  const Ps = paddingOnGrid(now.P, now.rs);
18794
18863
  const across = cutSpan(now.tx + box.x0, now.tx + box.x1, width, Ps);
18795
18864
  const down = cutSpan(now.ty + box.y0, now.ty + box.y1, height, Ps);
18796
- if (isEmptySpan(across) || isEmptySpan(down)) return false;
18865
+ if (isEmptySpan(across) || isEmptySpan(down)) return refuseIdle(record);
18797
18866
  const cut = across.start > now.tx + box.x0 || across.end < now.tx + box.x1 || down.start > now.ty + box.y0 || down.end < now.ty + box.y1;
18798
18867
  if (cut && turned) {
18799
18868
  record.cut = true;
@@ -18803,7 +18872,7 @@ function takePicture(kctx, pixi, matrices, record, view, now, turned = false) {
18803
18872
  const y = gridSpan(down.start, down.end, now.rs);
18804
18873
  const w1 = x.texels / now.rs;
18805
18874
  const h1 = y.texels / now.rs;
18806
- if (!fitsTexture(w1, h1, now.rs) || !fitsTexture(w1 + 2 * Ps, h1 + 2 * Ps, now.r)) return false;
18875
+ if (!fitsTexture(w1, h1, now.rs) || !fitsTexture(w1 + 2 * Ps, h1 + 2 * Ps, now.r)) return refuseIdle(record);
18807
18876
  const needed = neededBytes(record, now, {
18808
18877
  w1,
18809
18878
  h1,
@@ -19135,6 +19204,30 @@ function linearResets(record) {
19135
19204
  return record.key[KEY.seenRs] !== NOW.rs || record.category === "placed" || record.calm || record.cut;
19136
19205
  }
19137
19206
  /**
19207
+ * The still frames a live record waits before it is taken: eight after churning, none for a stack drawn direct (its
19208
+ * take costs one pass, its live draw two: F114; a take that rendered nothing is remembered, `idle`), two otherwise.
19209
+ *
19210
+ * @param record - The record, live.
19211
+ * @returns Drawn frames.
19212
+ */
19213
+ function waitOf(record) {
19214
+ if (record.calm) return 8;
19215
+ return drawsDirect(NOW) ? 0 : 2;
19216
+ }
19217
+ /**
19218
+ * Marks every kept record above a record that was just first taken: their retake in this flush is not churn (F114),
19219
+ * so the inner takes spread over frames do not drop the outer picture to live.
19220
+ *
19221
+ * @param kctx - The kept context.
19222
+ * @param record - The record just taken.
19223
+ */
19224
+ function spareAbove(kctx, record) {
19225
+ for (let node = record.top.parent; node !== null; node = node.parent) {
19226
+ const above = kctx.state.byTop.get(node);
19227
+ if (above !== void 0) above.spared = true;
19228
+ }
19229
+ }
19230
+ /**
19138
19231
  * A live record's frame (P4.2): still frames are counted, and a zoom or turn of an ancestor counts as still (F113); at
19139
19232
  * two (eight after churning) the record is taken, a bare view in a wrapper of its own (D4). A record with a node under
19140
19233
  * its top that blends otherwise stays live, before any wrap (F68).
@@ -19147,16 +19240,26 @@ function linearResets(record) {
19147
19240
  */
19148
19241
  function stepLive(kctx, pixi, matrices, record, view) {
19149
19242
  const { state } = kctx;
19150
- const turned = linearDiffers(record.key, NOW, KEY.seenA, KEY.seenRs);
19243
+ const { key } = record;
19244
+ const turned = !Number.isNaN(key[KEY.seenA]) && linearDiffers(key, NOW, KEY.seenA, KEY.seenRs);
19151
19245
  const changed = record.dirtyS1 || turned && linearResets(record);
19246
+ const moved = turned || NOW.tx !== key[KEY.lastTx] || NOW.ty !== key[KEY.lastTy];
19152
19247
  writeSeen(record, NOW);
19153
19248
  record.still = changed ? 0 : record.still + 1;
19154
- if (record.still < (record.calm ? 8 : 2)) return;
19249
+ if (moved) record.idle = false;
19250
+ if (changed || record.still < waitOf(record) || record.idle) return;
19155
19251
  if (record.refused > 0 && state.bytes + record.refused - record.bytes > state.budget) return;
19156
19252
  if (blendedBelow(kctx, record)) return;
19253
+ if (!drawsDirect(NOW) && (state.firstTakes > 0 || state.alphaDue)) return;
19157
19254
  wrapBare(kctx, record, view);
19158
- if (takePicture(kctx, pixi, matrices, record, view, NOW, turned)) toKept(kctx, record, view);
19159
- else record.still = 0;
19255
+ if (!takePicture(kctx, pixi, matrices, record, view, NOW, turned)) {
19256
+ record.still = 0;
19257
+ return;
19258
+ }
19259
+ state.firstTakes += 1;
19260
+ record.takenAt = state.frame;
19261
+ toKept(kctx, record, view);
19262
+ spareAbove(kctx, record);
19160
19263
  }
19161
19264
  /**
19162
19265
  * Retakes a kept record's picture at this frame; a refused take draws the view live.
@@ -19229,7 +19332,12 @@ function stepKept$1(kctx, pixi, matrices, record, view) {
19229
19332
  const turned = linearDiffers(key, NOW, KEY.seenA, KEY.seenRs);
19230
19333
  const scaled = linearDiffers(key, NOW, KEY.a, KEY.rs);
19231
19334
  writeSeen(record, NOW);
19232
- if (record.dirtyS1 || scaled && !scalable(record)) {
19335
+ const retake = record.dirtyS1 || scaled && !scalable(record);
19336
+ if (retake && record.spared && !scaled) {
19337
+ retakeOrGoLive(kctx, pixi, matrices, record, view);
19338
+ return;
19339
+ }
19340
+ if (retake) {
19233
19341
  churn(kctx, pixi, matrices, record, view);
19234
19342
  return;
19235
19343
  }
@@ -19335,6 +19443,40 @@ function stepCalm(kctx, record) {
19335
19443
  return true;
19336
19444
  }
19337
19445
  /**
19446
+ * Marks, before the step, the live records drawn direct that may be taken in this flush (F114): eligible, nothing
19447
+ * changed under them. An alpha take costs one pass and its live draw two, so while one is due no other first take
19448
+ * happens in this frame. A record due once that did not end its step kept is not due again until a change under it.
19449
+ *
19450
+ * @param kctx - The kept context.
19451
+ * @param pixi - The module that draws.
19452
+ */
19453
+ function markAlphaDue(kctx, pixi) {
19454
+ const { state } = kctx;
19455
+ const resolution = kctx.host.resolution();
19456
+ state.alphaDue = false;
19457
+ for (let index = 0; index < state.records.length; index += 1) {
19458
+ const record = state.records[index];
19459
+ const view = record === void 0 ? void 0 : kctx.ctx.state.sync.views.get(record.entity);
19460
+ if (record === void 0 || view === void 0 || !mayBeDue(kctx, record)) continue;
19461
+ readStack(record.slots, resolution, pixi.AlphaFilter, DUE);
19462
+ record.alphaDue = !Number.isNaN(DUE.alpha) && DUE.P === 0 && DUE.rs === resolution && eligible(kctx, record, view, DUE);
19463
+ state.alphaDue ||= record.alphaDue;
19464
+ }
19465
+ }
19466
+ /**
19467
+ * Tells whether a record may be taken in this flush as far as is known before its step: live, nothing changed under
19468
+ * it, and no earlier refusal that still holds.
19469
+ *
19470
+ * @param kctx - The kept context.
19471
+ * @param record - The record.
19472
+ * @returns True when it may.
19473
+ */
19474
+ function mayBeDue(kctx, record) {
19475
+ const { state } = kctx;
19476
+ const refused = record.refused > 0 && state.bytes + record.refused - record.bytes > state.budget;
19477
+ return record.mode === "live" && !record.dirtyS1 && !record.idle && !record.calm && !record.alphaMissed && !record.blended && !refused;
19478
+ }
19479
+ /**
19338
19480
  * One drawn frame of a record, inside the flush: eligibility, the keys of this frame, the policy of its life, the quad
19339
19481
  * of a kept one; the dirty flags are cleared. A change under the top forgets a blended node found before: the next
19340
19482
  * take walks the subtree again (F68).
@@ -19347,7 +19489,11 @@ function stepCalm(kctx, record) {
19347
19489
  */
19348
19490
  function stepRecord(kctx, pixi, matrices, record, view) {
19349
19491
  noteDrawing(kctx, record, BEFORE);
19350
- if (record.dirtyS1) record.blended = false;
19492
+ if (record.dirtyS1) {
19493
+ record.blended = false;
19494
+ record.idle = false;
19495
+ record.alphaMissed = false;
19496
+ }
19351
19497
  NOW.r = kctx.host.resolution();
19352
19498
  readStack(record.slots, NOW.r, pixi.AlphaFilter, NOW);
19353
19499
  if (eligible(kctx, record, view, NOW)) stepEligible(kctx, pixi, matrices, record, view);
@@ -19357,6 +19503,9 @@ function stepRecord(kctx, pixi, matrices, record, view) {
19357
19503
  record.dirtyS1 = false;
19358
19504
  record.dirtyS2 = false;
19359
19505
  record.dirtyS3 = false;
19506
+ record.spared = false;
19507
+ if (record.alphaDue && record.mode !== "kept") record.alphaMissed = true;
19508
+ record.alphaDue = false;
19360
19509
  }
19361
19510
  /**
19362
19511
  * The frame of a record that may be kept: its world transform read into this frame's numbers, the policy of its life,
@@ -19382,14 +19531,18 @@ function stepEligible(kctx, pixi, matrices, record, view) {
19382
19531
  record.key[KEY.lastTy] = NOW.ty;
19383
19532
  }
19384
19533
  /**
19385
- * The frame of a record that may not be kept: a kept one is drawn live again, and its still frames start over.
19534
+ * The frame of a record that may not be kept: a kept one is drawn live again, calm when it was taken in the frame
19535
+ * before (F114), and its still frames start over.
19386
19536
  *
19387
19537
  * @param kctx - The kept context.
19388
19538
  * @param record - The record.
19389
19539
  * @param view - Its view.
19390
19540
  */
19391
19541
  function stepIneligible(kctx, record, view) {
19392
- if (record.mode === "kept") goLive(kctx, record, view, true);
19542
+ if (record.mode === "kept") {
19543
+ goLive(kctx, record, view, true);
19544
+ if (kctx.state.frame - record.takenAt <= 1) record.calm = true;
19545
+ }
19393
19546
  record.still = 0;
19394
19547
  }
19395
19548
  /**
@@ -19810,6 +19963,8 @@ function createKeptApi(ctx, deps) {
19810
19963
  state.frame += 1;
19811
19964
  if (state.on) {
19812
19965
  sortRecords();
19966
+ state.firstTakes = 0;
19967
+ markAlphaDue(kctx, pixi);
19813
19968
  stepRecords(kctx, pixi, matrices);
19814
19969
  state.calm = false;
19815
19970
  } else for (const record of state.records) if (record.mode === "kept") live(record);
@@ -60349,46 +60504,10 @@ function defineMotion(spec) {
60349
60504
  //#endregion
60350
60505
  //#region src/plugins/ui/jsx/extras.ts
60351
60506
  /**
60352
- * The patch a live element writes into one of its components: every field but the ones the
60353
- * component type gives to a plugin. That plugin keeps such a field for the life of the entity, so
60354
- * a re-render never puts it back to its default: a label keeps the string `text` resolved for it.
60355
- *
60356
- * @param value - The component value the element carries now.
60357
- * @param owned - The fields the component type gives to a plugin.
60358
- * @returns The fields to write.
60359
- * @example
60360
- * ```ts
60361
- * livePatch({ content: "Play", resolved: "" }, ["resolved"]); // { content: "Play" }
60362
- * ```
60363
- */
60364
- function livePatch(value, owned) {
60365
- if (owned.length === 0) return value;
60366
- return Object.fromEntries(Object.entries(value).filter(([field]) => !owned.includes(field)));
60367
- }
60368
- /**
60369
- * The rest pose recorded for an extra component: the value of this render, but the fields the
60370
- * component type gives to a plugin stay as the entity carries them, so a render never resets them.
60371
- *
60372
- * @param current - The value the entity carries now; none before the component is added.
60373
- * @param value - The value of this render.
60374
- * @param owned - The fields the component type gives to a plugin.
60375
- * @returns The rest value.
60376
- * @example
60377
- * ```ts
60378
- * restValueOf({ until: 2000, left: 42 }, { until: 5000, left: 0 }, ["left"]); // { until: 5000, left: 42 }
60379
- * ```
60380
- */
60381
- function restValueOf(current, value, owned) {
60382
- if (current === void 0 || owned.length === 0) return value;
60383
- return {
60384
- ...current,
60385
- ...livePatch(value, owned)
60386
- };
60387
- }
60388
- /**
60389
60507
  * Records the rest pose of one extra component with a value, so a `change` hook can bring it
60390
- * home with `view.toRest`; a tag has no rest. The fields the type gives to a plugin are skipped.
60391
- * The visual of a live element is recorded the same way each time its look is written.
60508
+ * home with `view.toRest`; a tag has no rest. The fields the type gives to a plugin, and the size
60509
+ * a game's own system gives a self-sized image (F111), stay as the entity carries them. The
60510
+ * visual of a live element is recorded the same way each time its look is written or it moves.
60392
60511
  *
60393
60512
  * @param ctx - Domain context of the ui plugin.
60394
60513
  * @param element - The element that carries the component.
@@ -60397,7 +60516,9 @@ function restValueOf(current, value, owned) {
60397
60516
  function recordRest(ctx, element, value) {
60398
60517
  if (value.value === true) return;
60399
60518
  const type = value.type;
60400
- const rest = restValueOf(ctx.deps.world.ecs.get(element.entity, type), value.value, type.owned);
60519
+ const owned = fieldsLeftAlone(element, type, type.owned);
60520
+ const current = owned.length === 0 ? void 0 : ctx.deps.world.ecs.get(element.entity, type);
60521
+ const rest = restValueOf(current, value.value, owned);
60401
60522
  ctx.deps.world.projection.setRest(element.entity, type, rest);
60402
60523
  }
60403
60524
  /**
@@ -62770,7 +62891,7 @@ function createReconciler(ctx, modules, fields) {
62770
62891
  * @param type - Its component type.
62771
62892
  */
62772
62893
  function writeOthers(element, value, type) {
62773
- const others = otherFields(value, ecs.typeOf(type.componentName)?.owned ?? NO_OWNED);
62894
+ const others = otherFields(value, fieldsLeftAlone(element, type, ecs.typeOf(type.componentName)?.owned ?? NO_OWNED));
62774
62895
  if (others !== void 0) ecs.set(element.entity, asHandle(type), others);
62775
62896
  }
62776
62897
  /**
@@ -62787,7 +62908,8 @@ function createReconciler(ctx, modules, fields) {
62787
62908
  return;
62788
62909
  }
62789
62910
  if (value.value === true || SCROLL_STATE.has(value.type.componentName)) return;
62790
- const owned = ecs.typeOf(value.type.componentName)?.owned ?? NO_OWNED;
62911
+ const typeOwned = ecs.typeOf(value.type.componentName)?.owned ?? NO_OWNED;
62912
+ const owned = fieldsLeftAlone(element, value.type, typeOwned);
62791
62913
  ecs.set(element.entity, asHandle(value.type), livePatch(value.value, owned));
62792
62914
  }
62793
62915
  /**
@@ -64466,21 +64588,6 @@ function restTransform(rect, parent, style = {}, fit = 1) {
64466
64588
  };
64467
64589
  }
64468
64590
  /**
64469
- * The rest value of the visual that is actually on the element: the same value the entity is
64470
- * drawn with, so a motion returns to exactly that.
64471
- *
64472
- * @param element - The element whose rect is known.
64473
- * @returns The component and the value to record, or `undefined` for an element with no visual.
64474
- */
64475
- function restVisual(element) {
64476
- const [visual] = visualOf$1(element);
64477
- if (visual === void 0 || visual.value === true) return void 0;
64478
- return {
64479
- component: visual.type,
64480
- value: visual.value
64481
- };
64482
- }
64483
- /**
64484
64591
  * Records the rest pose of one element before a hook runs: the transform from `Box` and the
64485
64592
  * style, and the visual the element is actually drawn with. The content of a scroll records no
64486
64593
  * rest `Transform`: the scroll step owns its pose, and the world brings an element back to every
@@ -64493,8 +64600,12 @@ function restVisual(element) {
64493
64600
  function writeRest(ctx, element, parent) {
64494
64601
  const projection = ctx.deps.world.projection;
64495
64602
  if (element.type !== "content") projection.setRest(element.entity, Transform, restTransform(element.rect, parent, element.style, element.fit));
64496
- const visual = restVisual(element);
64497
- if (visual !== void 0) projection.setRest(element.entity, visual.component, visual.value);
64603
+ const [visual] = visualOf$1(element);
64604
+ if (visual === void 0 || visual.value === true) return;
64605
+ const type = visual.type;
64606
+ const left = fieldsLeftAlone(element, type, type.owned);
64607
+ const current = left.length === 0 ? void 0 : ctx.deps.world.ecs.get(element.entity, type);
64608
+ projection.setRest(element.entity, type, restValueOf(current, visual.value, left));
64498
64609
  }
64499
64610
  /**
64500
64611
  * Tells whether an element waits for the swap of a scene `world` builds aside (spec 31), or for the
@@ -1,7 +1,7 @@
1
- import { Ar as Json, Dn as NodeTable, Fn as Hint, In as NodeFx, Sr as ClockSource, jn as Descriptor, wr as FakeClock, xn as AnyFlow, yn as FeaturePlugin } from "./types-C6PML3Il.mjs";
2
- import { t as createApp } from "./index-m2g9-8_E.mjs";
3
- import { b as saveOf, v as WithGameState, y as memory } from "./types-CuFoPhWD.mjs";
4
- import { a as createHeadless, i as ReproResult, n as HeadlessGame, o as runRepro, r as Repro, s as stepFrames, t as HeadlessApp } from "./headless-7IBMNGda.mjs";
1
+ import { Ar as Json, Dn as NodeTable, Fn as Hint, In as NodeFx, Sr as ClockSource, jn as Descriptor, wr as FakeClock, xn as AnyFlow, yn as FeaturePlugin } from "./types-7R8isoBg.mjs";
2
+ import { t as createApp } from "./index-Df4d-Oim.mjs";
3
+ import { b as saveOf, v as WithGameState, y as memory } from "./types-4kZDzbGr.mjs";
4
+ import { a as createHeadless, i as ReproResult, n as HeadlessGame, o as runRepro, r as Repro, s as stepFrames, t as HeadlessApp } from "./headless-DQpf6n1Q.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
7
7
  //#region src/plugins/clock/fake.d.ts
package/dist/testing.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { an as type, en as refuseStart, m as flattenFeatures, nn as exit, t as createApp } from "./src-BIiNB7Fz.mjs";
1
+ import { an as type, en as refuseStart, m as flattenFeatures, nn as exit, t as createApp } from "./src-BT3RExYK.mjs";
2
2
  import { n as saveOf, t as memory } from "./memory-CWlqhS7l.mjs";
3
3
  import { n as fakeClock } from "./fake-hnJcJeYf.mjs";
4
4
  import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-CCiUwvlp.mjs";
@@ -1,7 +1,7 @@
1
- import { $ as PixiModule, An as TypeTag, Ar as Json, Br as SnapshotOf, Fr as PlayerStateProvider, Ir as ProviderCall, Lr as SaveDoc, Or as Config, Sr as ClockSource, X as Config$2, a as Config$3, d as Manifest, in as Config$1, lt as Orientation, n as AssetsIo, wr as FakeClock, xn as AnyFlow, yn as FeaturePlugin } from "./types-C6PML3Il.mjs";
2
- import { o as AudioContextLike, s as Config$4 } from "./types-C0As3dEe.mjs";
3
- import { R as I18nApi, U as StringTable, W as TextKey } from "./types-FtzEwwWY.mjs";
4
- import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-m2g9-8_E.mjs";
1
+ import { $ as PixiModule, An as TypeTag, Ar as Json, Br as SnapshotOf, Fr as PlayerStateProvider, Ir as ProviderCall, Lr as SaveDoc, Or as Config, Sr as ClockSource, X as Config$2, a as Config$3, d as Manifest, in as Config$1, lt as Orientation, n as AssetsIo, wr as FakeClock, xn as AnyFlow, yn as FeaturePlugin } from "./types-7R8isoBg.mjs";
2
+ import { o as AudioContextLike, s as Config$4 } from "./types-CXIyJrtZ.mjs";
3
+ import { R as I18nApi, U as StringTable, W as TextKey } from "./types-Coe9cZb-.mjs";
4
+ import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-Df4d-Oim.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
7
7
  //#region src/plugins/model/store/providers/memory.d.ts
@@ -8810,7 +8810,16 @@ type KeptRecord = {
8810
8810
  * A walk found a node under the top that blends otherwise than normally (F68): the record is not taken, and the walk
8811
8811
  * is not taken again until a frame that sets `dirtyS1` (a change under the top) clears it.
8812
8812
  */
8813
- blended: boolean;
8813
+ blended: boolean; /** The frame of the record's last take from live (F114): a picture that goes ineligible right after it churns. */
8814
+ takenAt: number; /** An inner record was first taken: the next stage-1 retake this causes is not counted as churn (F114). */
8815
+ spared: boolean;
8816
+ /**
8817
+ * A take attempt rendered nothing (off the canvas, empty bounds, too big, a `Display` without `onDemand`): no take is
8818
+ * offered or attempted until a change under the top or a move of it clears it (F114).
8819
+ */
8820
+ idle: boolean; /** A stack drawn direct that may be taken in this flush: no other first take happens before it (F114). */
8821
+ alphaDue: boolean; /** It was due and did not end the flush kept: not due again until a change under the top (F114). */
8822
+ alphaMissed: boolean;
8814
8823
  };
8815
8824
  /** One picture of an overlay's range (P7), keyed by the owner overlay's entity. */
8816
8825
  type RangeRecord = {
@@ -8862,7 +8871,9 @@ type KeptState = {
8862
8871
  * record that owes nothing is drawn from its picture as it stands, without its step (E5). Set by `collect`, spent by
8863
8872
  * the next flush.
8864
8873
  */
8865
- calm: boolean;
8874
+ calm: boolean; /** First takes of records not drawn direct in this flush: one per frame (F114). */
8875
+ firstTakes: number; /** A record drawn direct is due in this flush: the first takes of the others wait for the next (F114). */
8876
+ alphaDue: boolean;
8866
8877
  };
8867
8878
  //#endregion
8868
8879
  //#region src/plugins/renderer/viewport/types.d.ts
@@ -1,5 +1,5 @@
1
- import { Ar as Json, zr as Snapshot } from "./types-C6PML3Il.mjs";
2
- import { t as HeadlessApp } from "./headless-7IBMNGda.mjs";
1
+ import { Ar as Json, zr as Snapshot } from "./types-7R8isoBg.mjs";
2
+ import { t as HeadlessApp } from "./headless-DQpf6n1Q.mjs";
3
3
  import { Log } from "@moku-labs/common/browser";
4
4
 
5
5
  //#region src/plugins/flow/doors/types.d.ts
@@ -1,5 +1,5 @@
1
- import { $ as PixiModule, $n as AnyComponent, A as SyncApi, An as TypeTag, Ar as Json, Dr as Api$6, Gn as NumericFields, Jn as ReducedMotion, Kr as Events$5, O as FilterSlot, Q as PixiFilter, Rn as AnchorTarget, Vn as Ease, Wn as MotionHandle, Xn as TrackOptions, Xr as Api$1, Y as Api$4, Zn as TrackSegment, ai as Events$2, b as Events$4, et as PixiSprite, ft as FilterCache, gr as Api$3, ir as ComponentType, jn as Descriptor, k as FilterSlotInputs, kr as Events$3, nn as Api$2, nr as ComponentHandle, oi as Require, or as Entity, s as Events$1, t as Api$5, tr as AnyComponentValue, tt as PixiTexture, ut as Point } from "./types-C6PML3Il.mjs";
2
- import { N as InputApi, R as I18nApi, X as StylesState, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, w as TextApi } from "./types-FtzEwwWY.mjs";
1
+ import { $ as PixiModule, $n as AnyComponent, A as SyncApi, An as TypeTag, Ar as Json, Dr as Api$6, Gn as NumericFields, Jn as ReducedMotion, Kr as Events$5, O as FilterSlot, Q as PixiFilter, Rn as AnchorTarget, Vn as Ease, Wn as MotionHandle, Xn as TrackOptions, Xr as Api$1, Y as Api$4, Zn as TrackSegment, ai as Events$2, b as Events$4, et as PixiSprite, ft as FilterCache, gr as Api$3, ir as ComponentType, jn as Descriptor, k as FilterSlotInputs, kr as Events$3, nn as Api$2, nr as ComponentHandle, oi as Require, or as Entity, s as Events$1, t as Api$5, tr as AnyComponentValue, tt as PixiTexture, ut as Point } from "./types-7R8isoBg.mjs";
2
+ import { N as InputApi, R as I18nApi, X as StylesState, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, w as TextApi } from "./types-Coe9cZb-.mjs";
3
3
  import { Log } from "@moku-labs/common/browser";
4
4
  import { PluginCtx } from "@moku-labs/core";
5
5
 
@@ -1,4 +1,4 @@
1
- import { $n as AnyComponent, Ar as Json, Fn as Hint, Gn as NumericFields, Hn as Motion, Jn as ReducedMotion, K as TransformValue, Kn as ProjectionMotion, Ln as Answer, Qn as ViewHandle, Rn as AnchorTarget, Un as MotionCause, Vn as Ease, Wn as MotionHandle, Xr as Api, Y as Api$3, dt as ViewportSize, er as AnyComponentType, gr as Api$2, hr as TagType, ir as ComponentType, jn as Descriptor, nn as Api$1, oi as Require, or as Entity, s as Events$1, t as Api$4, tr as AnyComponentValue, xr as Api$5, zn as ChangeHook } from "./types-C6PML3Il.mjs";
1
+ import { $n as AnyComponent, Ar as Json, Fn as Hint, Gn as NumericFields, Hn as Motion, Jn as ReducedMotion, K as TransformValue, Kn as ProjectionMotion, Ln as Answer, Qn as ViewHandle, Rn as AnchorTarget, Un as MotionCause, Vn as Ease, Wn as MotionHandle, Xr as Api, Y as Api$3, dt as ViewportSize, er as AnyComponentType, gr as Api$2, hr as TagType, ir as ComponentType, jn as Descriptor, nn as Api$1, oi as Require, or as Entity, s as Events$1, t as Api$4, tr as AnyComponentValue, xr as Api$5, zn as ChangeHook } from "./types-7R8isoBg.mjs";
2
2
  import { Log } from "@moku-labs/common/browser";
3
3
  import { PluginCtx } from "@moku-labs/core";
4
4
  import { Node, Yoga } from "yoga-layout/load";
@@ -1,9 +1,9 @@
1
- import { Dr as Api$2, Wr as Api$3, Y as Api, gr as Api$1, xr as Api$4 } from "./types-C6PML3Il.mjs";
2
- import { P as AnimApi, r as UiApi } from "./types-C0As3dEe.mjs";
3
- import { N as InputApi } from "./types-FtzEwwWY.mjs";
4
- import { r as Repro } from "./headless-7IBMNGda.mjs";
5
- import { a as InputOf, r as ControlApp } from "./types-BEW2Y3au.mjs";
6
- import { t as commands } from "./commands-OYwZDclg.mjs";
1
+ import { Dr as Api$2, Wr as Api$3, Y as Api, gr as Api$1, xr as Api$4 } from "./types-7R8isoBg.mjs";
2
+ import { P as AnimApi, r as UiApi } from "./types-CXIyJrtZ.mjs";
3
+ import { N as InputApi } from "./types-Coe9cZb-.mjs";
4
+ import { r as Repro } from "./headless-DQpf6n1Q.mjs";
5
+ import { a as InputOf, r as ControlApp } from "./types-CCRVRCAk.mjs";
6
+ import { t as commands } from "./commands-CuuOqz1U.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. */
@@ -1280,6 +1280,25 @@ function boxOf(element) {
1280
1280
  return element.boxed === true ? { box: 0 } : {};
1281
1281
  }
1282
1282
  /**
1283
+ * Tells whether a style states the width of its element: a width, or both side edges of an absolute element.
1284
+ *
1285
+ * @param style - The resolved style.
1286
+ * @returns True when it does.
1287
+ */
1288
+ function statesWidth(style) {
1289
+ return style.width !== void 0 || style.position === "absolute" && style.left !== void 0 && style.right !== void 0;
1290
+ }
1291
+ /**
1292
+ * Tells whether a style states the height of its element: a height, or both top and bottom edges of an absolute
1293
+ * element.
1294
+ *
1295
+ * @param style - The resolved style.
1296
+ * @returns True when it does.
1297
+ */
1298
+ function statesHeight(style) {
1299
+ return style.height !== void 0 || style.position === "absolute" && style.top !== void 0 && style.bottom !== void 0;
1300
+ }
1301
+ /**
1283
1302
  * Whether the layout sized an image to nothing: an axis whose size its style states (a width or a
1284
1303
  * height, or both edges of an absolute element) came out at 0. An image whose style states no size
1285
1304
  * is 0 by 0 too, and draws as its `Sprite` says: at its texture's size, or at the size a game's own
@@ -1290,10 +1309,79 @@ function boxOf(element) {
1290
1309
  * @returns True when it draws nothing.
1291
1310
  */
1292
1311
  function sizedToNothing(style, rect) {
1293
- const absolute = style.position === "absolute";
1294
- const statesWidth = style.width !== void 0 || absolute && style.left !== void 0 && style.right !== void 0;
1295
- const statesHeight = style.height !== void 0 || absolute && style.top !== void 0 && style.bottom !== void 0;
1296
- return statesWidth && rect.w <= 0 || statesHeight && rect.h <= 0;
1312
+ return statesWidth(style) && rect.w <= 0 || statesHeight(style) && rect.h <= 0;
1313
+ }
1314
+ /**
1315
+ * The patch a live element writes into one of its components: every field but the ones the
1316
+ * component type gives to a plugin. That plugin keeps such a field for the life of the entity, so
1317
+ * a re-render never puts it back to its default: a label keeps the string `text` resolved for it.
1318
+ *
1319
+ * @param value - The component value the element carries now.
1320
+ * @param owned - The fields the component type gives to a plugin.
1321
+ * @returns The fields to write.
1322
+ * @example
1323
+ * ```ts
1324
+ * livePatch({ content: "Play", resolved: "" }, ["resolved"]); // { content: "Play" }
1325
+ * ```
1326
+ */
1327
+ function livePatch(value, owned) {
1328
+ if (owned.length === 0) return value;
1329
+ return Object.fromEntries(Object.entries(value).filter(([field]) => !owned.includes(field)));
1330
+ }
1331
+ /**
1332
+ * The rest pose recorded for an extra component: the value of this render, but the fields the
1333
+ * component type gives to a plugin stay as the entity carries them, so a render never resets them.
1334
+ *
1335
+ * @param current - The value the entity carries now; none before the component is added.
1336
+ * @param value - The value of this render.
1337
+ * @param owned - The fields the component type gives to a plugin.
1338
+ * @returns The rest value.
1339
+ * @example
1340
+ * ```ts
1341
+ * restValueOf({ until: 2000, left: 42 }, { until: 5000, left: 0 }, ["left"]); // { until: 5000, left: 42 }
1342
+ * ```
1343
+ */
1344
+ function restValueOf(current, value, owned) {
1345
+ if (current === void 0 || owned.length === 0) return value;
1346
+ return {
1347
+ ...current,
1348
+ ...livePatch(value, owned)
1349
+ };
1350
+ }
1351
+ /** The sizes of a sprite ui leaves alone, by axis: one list each, never a new one. */
1352
+ const LEFT_NONE = [];
1353
+ const LEFT_WIDTH = ["width"];
1354
+ const LEFT_HEIGHT = ["height"];
1355
+ const LEFT_BOTH = ["width", "height"];
1356
+ /**
1357
+ * The list of sizes left alone for the axes that are.
1358
+ *
1359
+ * @param width - The width is left alone.
1360
+ * @param height - The height is left alone.
1361
+ * @returns One of the four lists.
1362
+ */
1363
+ function leftSizes(width, height) {
1364
+ if (width && height) return LEFT_BOTH;
1365
+ if (width) return LEFT_WIDTH;
1366
+ return height ? LEFT_HEIGHT : LEFT_NONE;
1367
+ }
1368
+ /**
1369
+ * The fields of a value ui does not write onto a live element, or record as its rest: those its component type gives
1370
+ * to a plugin and, for the `Sprite` of an image or an icon, the size on an axis its style does not state and the layout
1371
+ * left at 0. A game's own system sizes such a sprite; written again by ui (a new viewport, a covered root, a restore)
1372
+ * it went back to 0 by 0, drawn at its texture's size (F111). On a first add the size is 0 anyway, the texture's.
1373
+ *
1374
+ * @param element - The element.
1375
+ * @param type - The component type of the value.
1376
+ * @param owned - The fields its type gives to a plugin.
1377
+ * @returns The fields left alone.
1378
+ */
1379
+ function fieldsLeftAlone(element, type, owned) {
1380
+ const { style, rect } = element;
1381
+ if (!(element.type === "image" || element.type === "icon") || type !== Sprite) return owned;
1382
+ const sizes = leftSizes(rect.w <= 0 && !statesWidth(style), rect.h <= 0 && !statesHeight(style));
1383
+ if (owned.length === 0) return sizes;
1384
+ return sizes.length === 0 ? owned : [...owned, ...sizes];
1297
1385
  }
1298
1386
  /**
1299
1387
  * The visual component of an element: a sprite for an image or an icon (at alpha 0 while its style
@@ -1487,4 +1575,4 @@ function drawnRect(pose, local) {
1487
1575
  };
1488
1576
  }
1489
1577
  //#endregion
1490
- export { Tree as $, isLeaving as A, Overlay as B, bind as C, readStyle as D, label as E, rootPoseInto as F, Transform as G, Parent as H, rootPoseOf as I, sprite as J, arcDefaults as K, Display as L, parentOf as M, poseUnder as N, textFor as O, rootPointOf as P, Order as Q, HudPart as R, Text as S, defineTextStyles as T, Shape as U, OverlayLevel as V, Sprite as W, Layer as X, Exiting as Y, Now as Z, popup as _, samePose as a, tag as at, defineStyle as b, Box as c, Escapable as d, component as et, LocalWrite as f, UiCounters as g, UI_OWNER as h, fitScaleOf as i, systemsFor as it, localPoseOf as j, applyPose as k, Covered as l, ScrollState as m, CONTENT as n, resource as nt, visualOf as o, Scroll as p, componentsFor as q, drawnRect as r, system as rt, visualRectOf as s, ANCHOR as t, mut as tt, DebugTrigger as u, uiFor as v, builtInStyles as w, Countdown as x, defineTokens as y, NineSlice as z };
1578
+ export { Layer as $, readStyle as A, Display as B, defineStyle as C, builtInStyles as D, bind as E, parentOf as F, Parent as G, NineSlice as H, poseUnder as I, Transform as J, Shape as K, rootPointOf as L, applyPose as M, isLeaving as N, defineTextStyles as O, localPoseOf as P, Exiting as Q, rootPoseInto as R, defineTokens as S, Text as T, Overlay as U, HudPart as V, OverlayLevel as W, componentsFor as X, arcDefaults as Y, sprite as Z, ScrollState as _, fitScaleOf as a, resource as at, popup as b, samePose as c, tag as ct, Box as d, Now as et, Covered as f, Scroll as g, LocalWrite as h, fieldsLeftAlone as i, mut as it, textFor as j, label as k, visualOf as l, Escapable as m, CONTENT as n, Tree as nt, livePatch as o, system as ot, DebugTrigger as p, Sprite as q, drawnRect as r, component as rt, restValueOf as s, systemsFor as st, ANCHOR as t, Order as tt, visualRectOf as u, UI_OWNER as v, Countdown as w, uiFor as x, UiCounters as y, rootPoseOf as z };
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-mPbBWlEz.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-6N8f0J47.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/dist/visual.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as VISUAL_CLOCK } from "./fake-hnJcJeYf.mjs";
2
- import { n as read, t as sources } from "./sources-Bp9xmX3f.mjs";
2
+ import { n as read, t as sources } from "./sources-Djd8MjP9.mjs";
3
3
  import { n as commands, t as run } from "./run-3QhrffgM.mjs";
4
4
  import path from "node:path";
5
5
  import { createBrandConsole } from "@moku-labs/common/cli";
package/llms.txt CHANGED
@@ -599,7 +599,7 @@ A screen is a projection whose `view` returns JSX. The game's `tsconfig.json` se
599
599
  - Animation is data: `defineAnimation(id, { slots: { name: type<Anim.Target>() }, build: (slots, { at }) => Step })`. Steps: `sequence(...)`, `parallel(...)`, `stagger(items, ms, item => Step)`, `tween(target, Component, to, { ms, ease?, delayMs?, additive?, space?, reduced? })`, `set(target, Component, patch)`, `wait(ms)`, `mark(name)`, `frames(target, { keys, fps, loop? })`, `sfx(key, { bus? })`, `haptic(kind)`, `use(animation, slots, tools?)`, `spawn` (a temporary entity, flying coins, that the timeline despawns when it ends; see the anim README). `Frames({ keys, fps, loop, playing })` is a component that walks a sprite through its textures for the entity's whole life. A target is `{ projection, key }` or an entity. A timeline resolves each `{ projection, key }` target once, when it starts: every step writes the view that held the key then, also after a commit removed it and while its exit plays, until it despawns; a view spawned again under the same key is not followed, and a key nothing held at the start is looked up at its step. `reduced: "keep"` (on a `tween` step, `transition` and `loop` of `defineMotion`, `TweenOptions`, `RestOptions`) plays a track as written under reduced motion, a fade for one; the default `"cut"` lands it at once or holds a loop on its first key. A node plays it with `await fx(play(animation, slots))`; in fast mode it finishes at once. `defineMotion({ states, transition?, on: { enter?, exit?, change? }, when? })` builds the enter, exit and change hooks for a projection or the `motion` prop of a tag; `when: "change"` plays enter and exit only for a commit, so an element that comes or goes with its screen stands at rest and leaves without a motion (default `"always"`). Events `anim:mark` `{ animation, mark }` and `anim:finished` `{ animation }`. `app.anim.replace(definition)` is the dev hot swap: the next `play` builds the new tree. A system cannot `require` a plugin, so it plays through the resource `AnimPlayer`: `res(AnimPlayer).play(animation, slots)` returns the same handle as `app.anim.play`, and the registered animation of `animation.id` wins, so a hot swap reaches the system. Play on a change, never every frame; from phase `input` the tree moves in `animate` of the same frame. Before `anim` starts it throws `[game] AnimPlayer is not ready: anim has not started.` Config `maxTracks: 2000`.
600
600
  - A `tween` step takes `segments` and `repeat` as `ViewHandle.tween` does: `tween(chest, Transform, { y: 0, scale: 0 }, { ms: 2400, additive: true, repeat: "forever", segments: [{ at: 0.08, ease: "out", to: { y: -14, scale: 0.06 } }, { at: 1, to: { y: 0, scale: 0 } }] })`. Segments walk over `ms` on one clock, `to` is where the last one ends, an additive walk names offsets; a number counts the extra runs. A definition error throws for empty segments, an `at` outside 0..1 or out of order, a last segment before 1, a bad repeat, and a `sequence` step after one that never ends. A forever step ends only by cancel or finish (a finish and a fast world land it on its start pose), does not play under reduced motion `"cut"`, writes nothing while its view is unseen, and lets the clock idle; a system plays it once through `AnimPlayer` and keeps the handle.
601
601
  - Audio is opt-in: `plugins: [...screen, audioPlugin]`. `fx(sfx("orders.complete"))` resolves when the sound started. `await fx(music("board.theme"))` cross-fades; `music(null)` fades out; a scene's `music` key switches the track on `scenes:changed`. Buses `master`, `music`, `sfx`. Volumes come from the committed player: config `volumes: player => (player as Player).settings.audio`, applied on every `model:committed`. `app.audio`: `setVolume(bus, value)`, `volume(bus)`, `mute(bus, on)`, `muted(bus)`, `unlocked()`, `journal()` (the last started sounds, empty unless config `journal` is above 0). Config: `buses: { master: 1, music: 0.6, sfx: 1 }`, `musicFadeMs: 600`, `volumes`, `context`, `journal: 0`, `music: "decode" | "stream"` default `"decode"` (gapless buffer; `"stream"` is an `<audio>` element, less memory, a gap at every loop), `session: "ambient" | "playback" | "auto"` default `"ambient"` (iOS only: ambient mixes with other apps and obeys the silent switch). The context is asked to run at start: where the shell lets audio play (a native webview with the gesture requirement off) `unlocked()` is true with no touch; a browser that wants a gesture unlocks on the first `pointerdown` or `touchend`. Without `audio` every `sfx` and `music` effect resolves `undefined` at once, so the same node runs in a game with no sound. Named sounds: `sfx(key, { bus?, id?, fadeMs? })` with an `id` plays through its own gain, and the next sound with the same `id` fades the old one out over `fadeMs`, else config `sfxFadeMs` (default `120`, real milliseconds); `fx.start(stopSfx(id, { fadeMs? }))` and `app.audio.stop(id, { fadeMs? })` fade it out and end it (`fadeMs: 0` cuts it); an `id` nothing plays under changes nothing, and a sound of that `id` still decoding never starts. Without `id` an `sfx` plays to its end as before.
602
- - `app.ui`: `tree()` the live screen as plain data (a text node carries `content`, the words it draws after `tr()` and `bind`; a text field carries `value`), `find(key)` the entity of a keyed element, `fill(key, value)` types into the text field with that `key`, `scroll(key, to)` puts the `scroll` with that `key` at `to` from its start at once, inside `0..max`, its fling or glide stopped (`false` and `ui:scroll-without-scroll` for no live `scroll`, `false` and `ui:scroll-before-solve` for a `scroll` its first solve has not placed yet), `rectOf(target)` where an `AnchorTarget` (or the shown ones of a list) is drawn, in screen reference units, the rect an `<anchor>` sits on, a target of no area shown at its point (`{ x, y, w: 0, h: 0 }`; an `<anchor>` on it stands there at size 0, takes no tap, its children lay out and hit as usual; an inward `pad` past half the target leaves it at size 0 on the centre), `undefined` when none is shown (an `image` whose style states a size, `width`/`height` or both edges of an absolute one, laid out at 0 draws nothing and counts as not shown; one whose style states no size keeps its alpha and draws as its `Sprite` says), any build, a new object per call (`app.ui.rectOf({ projection: "board.strip", key: "seat0" })` → `{ x: 40, y: 1500, w: 116, h: 120 }`), `lint()` tap targets under `tapTargetPt` (default `44`), text that overflows in some locale, absolute elements without `reason`. Config: `tapTargetPt: 44`, `breakpoints: { tall: 2, wide: 1.5 }`. `ui` emits only the dev global event `ui:hot-swap`, see "Hot swap".
602
+ - `app.ui`: `tree()` the live screen as plain data (a text node carries `content`, the words it draws after `tr()` and `bind`; a text field carries `value`), `find(key)` the entity of a keyed element, `fill(key, value)` types into the text field with that `key`, `scroll(key, to)` puts the `scroll` with that `key` at `to` from its start at once, inside `0..max`, its fling or glide stopped (`false` and `ui:scroll-without-scroll` for no live `scroll`, `false` and `ui:scroll-before-solve` for a `scroll` its first solve has not placed yet), `rectOf(target)` where an `AnchorTarget` (or the shown ones of a list) is drawn, in screen reference units, the rect an `<anchor>` sits on, a target of no area shown at its point (`{ x, y, w: 0, h: 0 }`; an `<anchor>` on it stands there at size 0, takes no tap, its children lay out and hit as usual; an inward `pad` past half the target leaves it at size 0 on the centre), `undefined` when none is shown (an `image` whose style states a size, `width`/`height` or both edges of an absolute one, laid out at 0 draws nothing and counts as not shown; one whose style states no size keeps its alpha and draws as its `Sprite` says, ui never writing the size a game's system gives it), any build, a new object per call (`app.ui.rectOf({ projection: "board.strip", key: "seat0" })` → `{ x: 40, y: 1500, w: 116, h: 120 }`), `lint()` tap targets under `tapTargetPt` (default `44`), text that overflows in some locale, absolute elements without `reason`. Config: `tapTargetPt: 44`, `breakpoints: { tall: 2, wide: 1.5 }`. `ui` emits only the dev global event `ui:hot-swap`, see "Hot swap".
603
603
 
604
604
  ```tsx
605
605
  // features/hud/view.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moku-labs/game",
3
- "version": "0.15.59",
3
+ "version": "0.15.61",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [