@moku-labs/game 0.15.73 → 0.15.75

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.
@@ -1,4 +1,4 @@
1
- import { m as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-C_2rOCXV.mjs";
1
+ import { m as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-UP4-RD_A.mjs";
2
2
 
3
3
  //#region src/app/page.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { Fr as PlayerStateProvider } from "../types-uZt-ompE.mjs";
2
- import { ht as PlatformProvider } from "../index-HOyIg4Mb.mjs";
3
- import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-C_2rOCXV.mjs";
1
+ import { Fr as PlayerStateProvider } from "../types-BEDkqJKu.mjs";
2
+ import { ht as PlatformProvider } from "../index-PrAYdg9-.mjs";
3
+ import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-UP4-RD_A.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-uZt-ompE.mjs";
2
- import { U as StringTable } from "./types-8-dd6MmX.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-C_2rOCXV.mjs";
1
+ import { Ar as Json } from "./types-BEDkqJKu.mjs";
2
+ import { U as StringTable } from "./types-Bkdjj5Fy.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-UP4-RD_A.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-DDgQ9IPm.mjs";
1
+ import { Ft as audioPlugin, H as platformPlugin, i as screen, m as flattenFeatures, t as createApp, wt as effectsPlugin } from "./src-DwWNTjMx.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-uZt-ompE.mjs";
1
+ import { d as Manifest } from "./types-BEDkqJKu.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-uZt-ompE.mjs";
2
- import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-BW6A3mBQ.mjs";
3
- import { N as InputApi } from "./types-8-dd6MmX.mjs";
4
- import { t as HeadlessApp } from "./headless-DOodj3tR.mjs";
5
- import { n as Command, r as ControlApp } from "./types-DU2_qIzE.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-BEDkqJKu.mjs";
2
+ import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-ZI525f5N.mjs";
3
+ import { N as InputApi } from "./types-Bkdjj5Fy.mjs";
4
+ import { t as HeadlessApp } from "./headless-Cgu6ie7C.mjs";
5
+ import { n as Command, r as ControlApp } from "./types-B0HZvmZZ.mjs";
6
6
 
7
7
  //#region src/plugins/flow/doors/commands.d.ts
8
8
  /**
@@ -1,7 +1,7 @@
1
- import { t as HeadlessApp } from "./headless-DOodj3tR.mjs";
2
- import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-DU2_qIzE.mjs";
3
- import { t as commands } from "./commands-DISL7dJK.mjs";
4
- import { t as defineCommand } from "./define-CiND07-J.mjs";
1
+ import { t as HeadlessApp } from "./headless-Cgu6ie7C.mjs";
2
+ import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-B0HZvmZZ.mjs";
3
+ import { t as commands } from "./commands-B4_087j0.mjs";
4
+ import { t as defineCommand } from "./define-CVVpFTAJ.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-DOodj3tR.mjs";
2
- import { c as Source, n as Command, o as InputSchema } from "./types-DU2_qIzE.mjs";
1
+ import { t as HeadlessApp } from "./headless-Cgu6ie7C.mjs";
2
+ import { c as Source, n as Command, o as InputSchema } from "./types-B0HZvmZZ.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-uZt-ompE.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-BEDkqJKu.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-uZt-ompE.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-BW6A3mBQ.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-8-dd6MmX.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-BEDkqJKu.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-ZI525f5N.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-Bkdjj5Fy.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-uZt-ompE.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-BW6A3mBQ.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-8-dd6MmX.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-HOyIg4Mb.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-BEDkqJKu.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-ZI525f5N.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-Bkdjj5Fy.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-PrAYdg9-.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-DDgQ9IPm.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-DwWNTjMx.mjs";
2
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-uZt-ompE.mjs";
2
- import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-BW6A3mBQ.mjs";
3
- import { c as UiNode } from "./types-8-dd6MmX.mjs";
4
- import { t as HeadlessApp } from "./headless-DOodj3tR.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-DU2_qIzE.mjs";
6
- import { n as defineSource } from "./define-CiND07-J.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-BEDkqJKu.mjs";
2
+ import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-ZI525f5N.mjs";
3
+ import { c as UiNode } from "./types-Bkdjj5Fy.mjs";
4
+ import { t as HeadlessApp } from "./headless-Cgu6ie7C.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-B0HZvmZZ.mjs";
6
+ import { n as defineSource } from "./define-CVVpFTAJ.mjs";
7
7
 
8
8
  //#region src/plugins/flow/doors/read.d.ts
9
9
  /**
@@ -1,2 +1,2 @@
1
- import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-wRgeALZM.mjs";
1
+ import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-CJI4Fdu7.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-wRgeALZM.mjs";
1
+ import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-CJI4Fdu7.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-8-dd6MmX.mjs";
1
+ import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-Bkdjj5Fy.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. */
@@ -16480,7 +16480,14 @@ async function createApplication(ctx, mount, deps) {
16480
16480
  autoDensity: false,
16481
16481
  autoStart: false,
16482
16482
  sharedTicker: false,
16483
- useBackBuffer: wantsBackBuffer(ctx.deps.flow.features.all())
16483
+ useBackBuffer: wantsBackBuffer(ctx.deps.flow.features.all()),
16484
+ eventMode: "none",
16485
+ eventFeatures: {
16486
+ move: false,
16487
+ globalMove: false,
16488
+ click: false,
16489
+ wheel: false
16490
+ }
16484
16491
  };
16485
16492
  await (typeof __MOKU_GAME_AGENT__ !== "undefined" && __MOKU_GAME_AGENT__ ? initTimed(ctx, app, options) : app.init(options));
16486
16493
  state.app = app;
@@ -17440,6 +17447,11 @@ function fitTexture(kctx, pixi, current, size, label) {
17440
17447
  if (source.width !== width || source.height !== height || source.resolution !== resolution) current.resize(width, height, resolution);
17441
17448
  return current;
17442
17449
  }
17450
+ const pooled = fromPool(kctx, size);
17451
+ if (pooled !== void 0) {
17452
+ pooled.source.label = label;
17453
+ return pooled;
17454
+ }
17443
17455
  const texture = pixi.RenderTexture.create({
17444
17456
  width,
17445
17457
  height,
@@ -17454,6 +17466,70 @@ function fitTexture(kctx, pixi, current, size, label) {
17454
17466
  return texture;
17455
17467
  }
17456
17468
  /**
17469
+ * Takes a texture of the asked size out of the pool (F119): the first one of the same CSS size and resolution, its
17470
+ * bytes no longer the pool's. The last one fills its place: the pool keeps no order.
17471
+ *
17472
+ * @param kctx - The kept context.
17473
+ * @param size - CSS px and texels per CSS px.
17474
+ * @param size.width - CSS width.
17475
+ * @param size.height - CSS height.
17476
+ * @param size.resolution - Texels per CSS px.
17477
+ * @returns The texture, or `undefined` when none fits.
17478
+ */
17479
+ function fromPool(kctx, size) {
17480
+ const { pool } = kctx.state;
17481
+ for (let index = 0; index < pool.length; index += 1) {
17482
+ const texture = pool[index];
17483
+ if (texture === void 0) continue;
17484
+ const { source } = texture;
17485
+ if (source.width !== size.width || source.height !== size.height) continue;
17486
+ if (source.resolution !== size.resolution) continue;
17487
+ const last = pool.pop();
17488
+ if (last !== void 0 && last !== texture) pool[index] = last;
17489
+ unpool(kctx, texture);
17490
+ return texture;
17491
+ }
17492
+ }
17493
+ /**
17494
+ * Puts a texture of a record whose view left into the pool (F119), for the next take of its size: a scene that leaves
17495
+ * and comes back makes no render target. Its bytes count in the budget until it is taken or dropped.
17496
+ *
17497
+ * @param kctx - The kept context.
17498
+ * @param texture - The texture.
17499
+ */
17500
+ function poolTexture(kctx, texture) {
17501
+ if (texture.destroyed) return;
17502
+ const { source } = texture;
17503
+ const bytes = textureBytes(source.width, source.height, source.resolution);
17504
+ kctx.state.pool.push(texture);
17505
+ kctx.state.bytes += bytes;
17506
+ kctx.state.poolBytes += bytes;
17507
+ }
17508
+ /**
17509
+ * Gives back the bytes of a texture that left the pool.
17510
+ *
17511
+ * @param kctx - The kept context.
17512
+ * @param texture - The texture.
17513
+ */
17514
+ function unpool(kctx, texture) {
17515
+ const { source } = texture;
17516
+ const bytes = textureBytes(source.width, source.height, source.resolution);
17517
+ kctx.state.bytes -= bytes;
17518
+ kctx.state.poolBytes -= bytes;
17519
+ }
17520
+ /**
17521
+ * Destroys every texture of the pool and gives its bytes back: room for a take, a reset.
17522
+ *
17523
+ * @param kctx - The kept context.
17524
+ */
17525
+ function emptyPool$1(kctx) {
17526
+ const { state } = kctx;
17527
+ for (let texture = state.pool.pop(); texture !== void 0; texture = state.pool.pop()) {
17528
+ unpool(kctx, texture);
17529
+ dropTexture(kctx, texture);
17530
+ }
17531
+ }
17532
+ /**
17457
17533
  * Destroys a texture of the module: out of `host.keep`, then its source.
17458
17534
  *
17459
17535
  * @param kctx - The kept context.
@@ -17752,7 +17828,7 @@ function renderStage3(kctx, pixi, matrices, record, now) {
17752
17828
  /**
17753
17829
  * @file renderer/kept — the budget of the kept pictures (P6): `renderer.keptMb` MiB, estimated at four bytes a texel.
17754
17830
  * Before a take that would pass it, the pictures not drawn in this frame are evicted, the least recently drawn first
17755
- * (the spare of a released range before them); a range whose sprite is placed and a picture drawn in this frame are
17831
+ * (the pool of left views' textures and the spare of a released range before them); a range whose sprite is placed and a picture drawn in this frame are
17756
17832
  * never evicted. An eviction draws the view live and destroys its textures; the record keeps its place.
17757
17833
  */
17758
17834
  /**
@@ -17793,6 +17869,7 @@ function oldest(kctx, taking) {
17793
17869
  function makeRoom(kctx, extra, taking, goLive) {
17794
17870
  const { state } = kctx;
17795
17871
  if (fits(kctx, extra)) return true;
17872
+ emptyPool$1(kctx);
17796
17873
  if (state.spare !== void 0) {
17797
17874
  const { source } = state.spare;
17798
17875
  state.bytes -= textureBytes(source.width, source.height, source.resolution);
@@ -18259,6 +18336,14 @@ function emptyRecords() {
18259
18336
  return [];
18260
18337
  }
18261
18338
  /**
18339
+ * Creates an empty texture list. Same reason as `emptyRecords`.
18340
+ *
18341
+ * @returns An empty list.
18342
+ */
18343
+ function emptyTextures() {
18344
+ return [];
18345
+ }
18346
+ /**
18262
18347
  * Creates an empty map. Same reason as `emptyRecords`.
18263
18348
  *
18264
18349
  * @returns An empty map.
@@ -18296,6 +18381,8 @@ function createKeptState(config) {
18296
18381
  byTop: emptyMap$8(),
18297
18382
  ranges: emptyMap$8(),
18298
18383
  spare: void 0,
18384
+ pool: emptyTextures(),
18385
+ poolBytes: 0,
18299
18386
  madeGroups: emptyWeakSet$2(),
18300
18387
  frame: 0,
18301
18388
  unsorted: false,
@@ -18315,7 +18402,8 @@ function createKeptState(config) {
18315
18402
  flushPasses: 0,
18316
18403
  calm: false,
18317
18404
  firstTakes: 0,
18318
- alphaDue: false
18405
+ alphaDue: false,
18406
+ liveWaiting: 0
18319
18407
  };
18320
18408
  }
18321
18409
  /**
@@ -18386,6 +18474,9 @@ function stopKept(state) {
18386
18474
  for (const range of state.ranges.values()) destroyRange(range, destroyTexture$1);
18387
18475
  if (state.spare !== void 0) destroyWhole(state.spare);
18388
18476
  state.spare = void 0;
18477
+ for (const texture of state.pool) destroyTexture$1(texture);
18478
+ state.pool.length = 0;
18479
+ state.poolBytes = 0;
18389
18480
  state.records.length = 0;
18390
18481
  state.byEntity.clear();
18391
18482
  state.byTop.clear();
@@ -18401,6 +18492,7 @@ function stopKept(state) {
18401
18492
  state.drawnPictures = 0;
18402
18493
  state.firstTakes = 0;
18403
18494
  state.alphaDue = false;
18495
+ state.liveWaiting = 0;
18404
18496
  state.warnedBudget = false;
18405
18497
  state.warnedBlend.clear();
18406
18498
  state.verifySkipped = 0;
@@ -18505,25 +18597,43 @@ function drawsDirectAt(stack, resolution) {
18505
18597
  return !Number.isNaN(stack.alpha) && stack.P === 0 && stack.rs === resolution;
18506
18598
  }
18507
18599
  /**
18508
- * Tells whether a take the budget refused still does not fit (P6.3).
18600
+ * Tells whether a take the budget refused still does not fit (P6.3); the pool's bytes are the take's to have (F119).
18509
18601
  *
18510
18602
  * @param state - The kept state.
18511
18603
  * @param record - The record.
18512
18604
  * @returns True when it still does not fit.
18513
18605
  */
18514
18606
  function refusalHolds(state, record) {
18515
- return record.refused > 0 && state.bytes + record.refused - record.bytes > state.budget;
18607
+ return record.refused > 0 && state.bytes - state.poolBytes + record.refused - record.bytes > state.budget;
18516
18608
  }
18517
18609
  /**
18518
- * Tells whether a first take waits for the next frame (F114): a stack drawn direct never does; any other waits when
18519
- * this frame took one already or an alpha is due.
18610
+ * Tells whether a first take waits for the next frame (F114): a stack drawn direct never does; a view drawn live while
18611
+ * a crowd of them waits only when `CROWD_TAKES` were taken in this frame already (F119); any other waits when this
18612
+ * frame took one already or an alpha is due.
18520
18613
  *
18521
18614
  * @param state - The kept state.
18522
18615
  * @param direct - The stack draws direct.
18616
+ * @param live - The view is drawn live in this frame.
18523
18617
  * @returns True when it waits.
18524
18618
  */
18525
- function heldBack(state, direct) {
18526
- return !direct && (state.firstTakes > 0 || state.alphaDue);
18619
+ function heldBack(state, direct, live) {
18620
+ if (direct) return false;
18621
+ if (live && state.liveWaiting >= 4) return state.firstTakes >= 10;
18622
+ return state.firstTakes > 0 || state.alphaDue;
18623
+ }
18624
+ /**
18625
+ * Tells whether a view is drawn live in the stage pass of this frame (F119): every ancestor up to the stage is
18626
+ * renderable, none drawn through an overlay's range picture or a kept ancestor's picture. Waiting, it costs a filter
18627
+ * pass on the canvas; its take costs about the same, in small targets before the stage pass.
18628
+ *
18629
+ * @param kctx - The kept context.
18630
+ * @param record - The record.
18631
+ * @returns True when it is drawn live.
18632
+ */
18633
+ function drawnLive(kctx, record) {
18634
+ const stage = kctx.host.stage();
18635
+ for (let node = record.top.parent; node !== stage; node = node.parent) if (node === null || !node.renderable) return false;
18636
+ return true;
18527
18637
  }
18528
18638
  /**
18529
18639
  * Tells whether a blend mode draws over what is under it as a picture does.
@@ -18855,7 +18965,7 @@ function dropRecord$1(kctx, record, view, putBack) {
18855
18965
  const { state } = kctx;
18856
18966
  if (record.mode === "kept") goLive(kctx, record, view, putBack);
18857
18967
  endLoan(record.s2Of);
18858
- destroyRecord(record, (texture) => dropTexture(kctx, texture));
18968
+ destroyRecord(record, (texture) => poolTexture(kctx, texture));
18859
18969
  ungroup(kctx, record);
18860
18970
  state.bytes -= record.bytes;
18861
18971
  record.bytes = 0;
@@ -19385,7 +19495,7 @@ function stepLive(kctx, pixi, matrices, record, view) {
19385
19495
  if (changed || record.still < waitOf(record) || record.idle) return;
19386
19496
  if (refusalHolds(state, record)) return;
19387
19497
  if (blendedBelow(kctx, record)) return;
19388
- if (heldBack(state, drawsDirect(NOW))) return;
19498
+ if (heldBack(state, drawsDirect(NOW), drawnLive(kctx, record))) return;
19389
19499
  wrapBare(kctx, record, view);
19390
19500
  if (!takePicture(kctx, pixi, matrices, record, view, NOW, turned)) {
19391
19501
  record.still = 0;
@@ -19581,6 +19691,7 @@ function stepCalm(kctx, record) {
19581
19691
  * Marks, before the step, the live records drawn direct that may be taken in this flush (F114): eligible, nothing
19582
19692
  * changed under them. An alpha take costs one pass and its live draw two, so while one is due no other first take
19583
19693
  * happens in this frame. A record due once that did not end its step kept is not due again until a change under it.
19694
+ * The others drawn live are counted: a first take among a crowd of them is not spread (F119).
19584
19695
  *
19585
19696
  * @param kctx - The kept context.
19586
19697
  * @param pixi - The module that draws.
@@ -19589,13 +19700,16 @@ function markAlphaDue(kctx, pixi) {
19589
19700
  const { state } = kctx;
19590
19701
  const resolution = kctx.host.resolution();
19591
19702
  state.alphaDue = false;
19703
+ state.liveWaiting = 0;
19592
19704
  for (let index = 0; index < state.records.length; index += 1) {
19593
19705
  const record = state.records[index];
19594
19706
  const view = record === void 0 ? void 0 : kctx.ctx.state.sync.views.get(record.entity);
19595
19707
  if (record === void 0 || view === void 0 || !mayBeDue(kctx, record)) continue;
19596
19708
  readStack(record.slots, resolution, pixi.AlphaFilter, DUE);
19597
- record.alphaDue = drawsDirectAt(DUE, resolution) && eligible(kctx, record, view, DUE);
19709
+ const direct = drawsDirectAt(DUE, resolution);
19710
+ record.alphaDue = direct && eligible(kctx, record, view, DUE);
19598
19711
  state.alphaDue ||= record.alphaDue;
19712
+ if (!direct && drawnLive(kctx, record)) state.liveWaiting += 1;
19599
19713
  }
19600
19714
  }
19601
19715
  /**
@@ -20156,7 +20270,9 @@ function createKeptApi(ctx, deps) {
20156
20270
  dropTexture(kctx, state.spare);
20157
20271
  state.spare = void 0;
20158
20272
  }
20273
+ emptyPool$1(kctx);
20159
20274
  state.bytes = 0;
20275
+ state.poolBytes = 0;
20160
20276
  state.drawnPictures = 0;
20161
20277
  }
20162
20278
  };
@@ -31822,32 +31938,93 @@ const MAX_DEPTH$6 = 32;
31822
31938
  /** Below this effective alpha a view is treated as not there. */
31823
31939
  const MIN_ALPHA$1 = .01;
31824
31940
  /**
31825
- * Brings a reference point into the local space of an entity: its root pose undone, the pivot
31826
- * added back. The point is posed as a child of the entity, so the pose helpers do the walk.
31941
+ * Takes a walk from the pool of the sync state, or makes one the first time and whenever every
31942
+ * walk is held.
31827
31943
  *
31828
31944
  * @param sctx - Domain context of the sync module.
31829
- * @param entity - The entity whose box is tested.
31830
- * @param x - Reference x.
31831
- * @param y - Reference y.
31832
- * @returns The point in the entity's own space.
31945
+ * @returns The walk.
31833
31946
  */
31834
- function localPoint(sctx, entity, x, y) {
31835
- const local = localPoseOf(sctx.ctx.deps.world.ecs, entity, {
31836
- x,
31837
- y,
31838
- rotation: 0,
31839
- scale: 1,
31840
- pivot: {
31947
+ function takeWalk(sctx) {
31948
+ return sctx.ctx.state.sync.hitWalks.pop() ?? {
31949
+ orders: [],
31950
+ alphas: /* @__PURE__ */ new Float64Array(33),
31951
+ pose: {
31952
+ x: 0,
31953
+ y: 0,
31954
+ rotation: 0,
31955
+ scale: 1,
31956
+ pivot: {
31957
+ x: 0,
31958
+ y: 0
31959
+ }
31960
+ },
31961
+ local: {
31841
31962
  x: 0,
31842
31963
  y: 0
31843
- }
31844
- });
31845
- return {
31846
- x: local.x,
31847
- y: local.y
31964
+ },
31965
+ x: 0,
31966
+ y: 0,
31967
+ accept: void 0,
31968
+ out: void 0,
31969
+ found: void 0
31848
31970
  };
31849
31971
  }
31850
31972
  /**
31973
+ * Gives a walk back to the pool, holding nothing of the caller.
31974
+ *
31975
+ * @param sctx - Domain context of the sync module.
31976
+ * @param walk - The walk.
31977
+ */
31978
+ function releaseWalk(sctx, walk) {
31979
+ walk.accept = void 0;
31980
+ walk.out = void 0;
31981
+ walk.found = void 0;
31982
+ sctx.ctx.state.sync.hitWalks.push(walk);
31983
+ }
31984
+ /**
31985
+ * Brings the reference point of a walk into the local space of an entity: its root pose undone,
31986
+ * the pivot added back. The numbers of `localPoseOf` with the point posed as a child of the entity,
31987
+ * written into the walk's own point.
31988
+ *
31989
+ * @param sctx - Domain context of the sync module.
31990
+ * @param walk - The walk, its point and its scratch.
31991
+ * @param entity - The entity whose box is tested.
31992
+ * @returns The walk's local point.
31993
+ */
31994
+ function localPoint(sctx, walk, entity) {
31995
+ const local = walk.local;
31996
+ if (entity === 0) {
31997
+ local.x = walk.x;
31998
+ local.y = walk.y;
31999
+ return local;
32000
+ }
32001
+ const above = rootPoseInto(sctx.ctx.deps.world.ecs, entity, walk.pose);
32002
+ const scale = above.scale === 0 ? 1 : above.scale;
32003
+ const cos = Math.cos(-above.rotation);
32004
+ const sin = Math.sin(-above.rotation);
32005
+ const dx = walk.x - above.x;
32006
+ const dy = walk.y - above.y;
32007
+ local.x = above.pivot.x + (dx * cos - dy * sin) / scale;
32008
+ local.y = above.pivot.y + (dx * sin + dy * cos) / scale;
32009
+ return local;
32010
+ }
32011
+ /**
32012
+ * Tells whether a local point is inside a rectangle of a given size at the origin. A rectangle
32013
+ * without area holds no point.
32014
+ *
32015
+ * @param width - The width.
32016
+ * @param height - The height.
32017
+ * @param point - The point, in local units.
32018
+ * @returns True when the rectangle holds the point.
32019
+ * @example
32020
+ * ```ts
32021
+ * inSize(100, 100, { x: 100, y: 0 }); // true
32022
+ * ```
32023
+ */
32024
+ function inSize(width, height, point) {
32025
+ return width > 0 && height > 0 && point.x >= 0 && point.x <= width && point.y >= 0 && point.y <= height;
32026
+ }
32027
+ /**
31851
32028
  * Tells whether a local point is inside a hit box. A box without area holds no point: a particle
31852
32029
  * container measures 0 x 0 and is never hit, not even at its origin.
31853
32030
  *
@@ -31863,46 +32040,37 @@ function inBox(box, point) {
31863
32040
  return box.width > 0 && box.height > 0 && point.x >= box.x && point.x <= box.x + box.width && point.y >= box.y && point.y <= box.y + box.height;
31864
32041
  }
31865
32042
  /**
31866
- * The rectangle an entity clips its children to: the box of a `Shape` or a `NineSlice` with
31867
- * `clip: true`.
32043
+ * Tells whether an entity clips its children and the walk's point falls outside the rectangle it
32044
+ * shows: the box of a `Shape` or a `NineSlice` with `clip: true`.
31868
32045
  *
31869
32046
  * @param sctx - Domain context of the sync module.
32047
+ * @param walk - The walk.
31870
32048
  * @param entity - The entity.
31871
- * @returns The box in its local units, or `undefined` when it does not clip.
32049
+ * @returns True when it clips the point away.
31872
32050
  */
31873
- function clipBoxOf(sctx, entity) {
32051
+ function clipsAway(sctx, walk, entity) {
31874
32052
  const ecs = sctx.ctx.deps.world.ecs;
31875
32053
  const shape = ecs.get(entity, Shape);
31876
- if (shape?.clip === true) return {
31877
- x: 0,
31878
- y: 0,
31879
- width: shape.w,
31880
- height: shape.h
31881
- };
32054
+ if (shape?.clip === true) return !inSize(shape.w, shape.h, localPoint(sctx, walk, entity));
31882
32055
  const nine = ecs.get(entity, NineSlice);
31883
- if (nine?.clip === true) return {
31884
- x: 0,
31885
- y: 0,
31886
- width: nine.width,
31887
- height: nine.height
31888
- };
32056
+ if (nine?.clip === true) return !inSize(nine.width, nine.height, localPoint(sctx, walk, entity));
32057
+ return false;
31889
32058
  }
31890
32059
  /**
31891
- * Tells whether a clipping ancestor hides the point: a `Shape` or a `NineSlice` with `clip: true`
31892
- * shows its children only inside its own rectangle, so a point outside it reaches nothing below.
32060
+ * Tells whether a clipping ancestor hides the walk's point: a `Shape` or a `NineSlice` with
32061
+ * `clip: true` shows its children only inside its own rectangle, so a point outside it reaches
32062
+ * nothing below.
31893
32063
  *
31894
32064
  * @param sctx - Domain context of the sync module.
32065
+ * @param walk - The walk.
31895
32066
  * @param entity - The entity being tested.
31896
- * @param x - Reference x.
31897
- * @param y - Reference y.
31898
32067
  * @returns True when the point falls outside a clipping ancestor.
31899
32068
  */
31900
- function clippedOut(sctx, entity, x, y) {
32069
+ function clippedOut(sctx, walk, entity) {
31901
32070
  const ecs = sctx.ctx.deps.world.ecs;
31902
32071
  let current = parentOf$1(ecs, entity);
31903
32072
  for (let depth = 0; depth < MAX_DEPTH$6 && current !== 0; depth += 1) {
31904
- const box = clipBoxOf(sctx, current);
31905
- if (box !== void 0 && !inBox(box, localPoint(sctx, current, x, y))) return true;
32073
+ if (clipsAway(sctx, walk, current)) return true;
31906
32074
  current = parentOf$1(ecs, current);
31907
32075
  }
31908
32076
  return false;
@@ -31940,66 +32108,157 @@ function isShown$1(object, root, off) {
31940
32108
  return effectiveAlpha(object, root, off) > MIN_ALPHA$1;
31941
32109
  }
31942
32110
  /**
31943
- * Collects the children of a container in draw order from the top: by `zIndex` descending, then
31944
- * by insertion descending. The children of a wrapper come before the wrapper's own visual.
32111
+ * How many objects a container is from the root of `sync`, counted as `effectiveAlpha` counts its
32112
+ * steps: itself and every ancestor below the root.
31945
32113
  *
31946
- * @param container - The container to walk.
31947
- * @param out - Where the result is collected.
31948
- * @param depth - How deep the walk already is.
31949
- * @returns The same array.
32114
+ * @param container - The container.
32115
+ * @param root - The root container of `sync`.
32116
+ * @returns The count, or `MAX_DEPTH` when the root is not reached within it.
31950
32117
  */
31951
- function topFirst(container, out, depth = 0) {
31952
- if (depth >= MAX_DEPTH$6) return out;
31953
- const ordered = container.children.toSorted((left, right) => left.zIndex - right.zIndex);
31954
- for (let index = ordered.length - 1; index >= 0; index -= 1) {
31955
- const child = ordered[index];
31956
- if (child === void 0) continue;
31957
- if (child.children.length > 0) topFirst(child, out, depth + 1);
31958
- out.push(child);
32118
+ function stepsToRoot(container, root) {
32119
+ let current = container;
32120
+ for (let steps = 0; steps < MAX_DEPTH$6 && current !== void 0; steps += 1) {
32121
+ if (current === root) return steps;
32122
+ current = current.parent ?? void 0;
31959
32123
  }
31960
- return out;
32124
+ return MAX_DEPTH$6;
31961
32125
  }
31962
32126
  /**
31963
- * Walks the views of one layer container whose hit box holds the point, topmost first. A view
31964
- * the player cannot see and a point outside a clipping ancestor are skipped.
32127
+ * Tells whether children stand in `zIndex` order. A depth is read straight off the child and compared at once: a
32128
+ * fractional `zIndex` held in a variable that may also be a fallback number is boxed, once per child.
32129
+ *
32130
+ * @param children - The children.
32131
+ * @returns True when no child has a lower `zIndex` than the one before it.
32132
+ */
32133
+ function inZOrder(children) {
32134
+ for (let index = 1; index < children.length; index += 1) {
32135
+ const before = children[index - 1];
32136
+ const child = children[index];
32137
+ if (before !== void 0 && child !== void 0 && before.zIndex > child.zIndex) return false;
32138
+ }
32139
+ return true;
32140
+ }
32141
+ /**
32142
+ * Puts one child index into the sorted head of a list: after the last kept child whose `zIndex` is
32143
+ * lower or equal, so equals keep their insertion order.
32144
+ *
32145
+ * @param order - The list; its first `index` entries are sorted.
32146
+ * @param children - The children the indices point into.
32147
+ * @param index - The child to place.
32148
+ */
32149
+ function insertInOrder(order, children, index) {
32150
+ const child = children[index];
32151
+ if (child === void 0) return;
32152
+ let slot = index;
32153
+ for (; slot > 0; slot -= 1) {
32154
+ const before = order[slot - 1];
32155
+ const other = before === void 0 ? void 0 : children[before];
32156
+ if (before === void 0 || other === void 0 || other.zIndex <= child.zIndex) break;
32157
+ order[slot] = before;
32158
+ }
32159
+ order[slot] = index;
32160
+ }
32161
+ /**
32162
+ * The child indices of a container in `zIndex` order, insertion order kept between equals, as a
32163
+ * stable sort gives them; `undefined` when the children already stand so, as Pixi leaves a
32164
+ * sortable container after each render. Written into the walk's list for that depth.
32165
+ *
32166
+ * @param walk - The walk.
32167
+ * @param children - The children.
32168
+ * @param depth - The depth of the walk, which owns one list.
32169
+ * @returns The sorted indices, or `undefined` for the children's own order.
32170
+ */
32171
+ function orderOf(walk, children, depth) {
32172
+ if (inZOrder(children)) return void 0;
32173
+ let order = walk.orders[depth];
32174
+ if (order === void 0) {
32175
+ order = [];
32176
+ walk.orders[depth] = order;
32177
+ }
32178
+ for (let index = 0; index < children.length; index += 1) insertInOrder(order, children, index);
32179
+ return order;
32180
+ }
32181
+ /**
32182
+ * Tests one display object of the walk: its view, whether the player sees it, whether its hit box
32183
+ * holds the point, whether a clipping ancestor hides the point. A hit is accepted or collected.
31965
32184
  *
31966
32185
  * @param sctx - Domain context of the sync module.
31967
- * @param container - The layer container.
31968
- * @param root - The root container of `sync`.
31969
- * @param point - The reference point.
31970
- * @yields {Entity} Every entity hit inside the layer.
32186
+ * @param walk - The walk.
32187
+ * @param object - The display object.
32188
+ * @param depth - Its depth in the walk, whose alpha it draws with.
32189
+ * @returns True when `hitTest` accepted it and the walk ends.
31971
32190
  */
31972
- function* hitsIn(sctx, container, root, point) {
32191
+ function testObject(sctx, walk, object, depth) {
32192
+ if ((walk.alphas[depth] ?? 0) <= MIN_ALPHA$1) return false;
31973
32193
  const state = sctx.ctx.state.sync;
31974
- for (const object of topFirst(container, [])) {
31975
- const entity = state.entityOf.get(object);
31976
- const view = entity === void 0 ? void 0 : state.views.get(entity);
31977
- if (entity === void 0 || view === void 0) continue;
31978
- if (!isShown$1(object, root, state.overlay.offTops)) continue;
31979
- if (!inBox(view.hitBox, localPoint(sctx, entity, point.x, point.y))) continue;
31980
- if (clippedOut(sctx, entity, point.x, point.y)) continue;
31981
- yield entity;
32194
+ const entity = state.entityOf.get(object);
32195
+ const view = entity === void 0 ? void 0 : state.views.get(entity);
32196
+ if (entity === void 0 || view === void 0) return false;
32197
+ if (!inBox(view.hitBox, localPoint(sctx, walk, entity))) return false;
32198
+ if (clippedOut(sctx, walk, entity)) return false;
32199
+ if (walk.out !== void 0) {
32200
+ walk.out.push(entity);
32201
+ return false;
31982
32202
  }
32203
+ if (walk.accept?.(entity) !== true) return false;
32204
+ walk.found = entity;
32205
+ return true;
31983
32206
  }
31984
32207
  /**
31985
- * Walks every view under a reference point, topmost first: the layers from the last one of the
32208
+ * Walks the children of a container in draw order from the top: by `zIndex` descending, then by
32209
+ * insertion descending. The children of a wrapper come before the wrapper's own visual. A hidden
32210
+ * object or a HUD part an overlay fades takes its whole subtree out; the alpha is carried down.
32211
+ *
32212
+ * @param sctx - Domain context of the sync module.
32213
+ * @param walk - The walk.
32214
+ * @param container - The container to walk.
32215
+ * @param depth - How deep the walk already is.
32216
+ * @param steps - How many objects the container is from the root.
32217
+ * @returns True when `hitTest` accepted a hit and the walk ends. The container's alpha is the walk's at `depth`.
32218
+ */
32219
+ function walkChildren(sctx, walk, container, depth, steps) {
32220
+ if (depth >= MAX_DEPTH$6 || steps + 1 >= MAX_DEPTH$6) return false;
32221
+ const off = sctx.ctx.state.sync.overlay.offTops;
32222
+ const children = container.children;
32223
+ const order = orderOf(walk, children, depth);
32224
+ const alphas = walk.alphas;
32225
+ const alpha = alphas[depth] ?? 0;
32226
+ for (let index = children.length - 1; index >= 0; index -= 1) {
32227
+ const child = children[order === void 0 ? index : order[index] ?? index];
32228
+ if (child === void 0 || !child.visible || off.has(child)) continue;
32229
+ const shown = alpha * child.alpha;
32230
+ if (shown === 0) continue;
32231
+ alphas[depth + 1] = shown;
32232
+ if (child.children.length > 0 && walkChildren(sctx, walk, child, depth + 1, steps + 1)) return true;
32233
+ if (testObject(sctx, walk, child, depth + 1)) return true;
32234
+ }
32235
+ return false;
32236
+ }
32237
+ /**
32238
+ * Walks every view under the walk's point, topmost first: the layers from the last one of the
31986
32239
  * scene's list, inside a layer by draw order from the top. Nothing while inert or before the scene
31987
- * declared its layers.
32240
+ * declared its layers. A layer that hangs under no root, or that is hidden, holds no hit.
31988
32241
  *
31989
32242
  * @param sctx - Domain context of the sync module.
31990
- * @param point - The reference point.
31991
- * @yields {Entity} Every entity hit.
32243
+ * @param walk - The walk.
32244
+ * @returns True when `hitTest` accepted a hit.
31992
32245
  */
31993
- function* hitsAt(sctx, point) {
32246
+ function walkLayers(sctx, walk) {
31994
32247
  const state = sctx.ctx.state.sync;
31995
32248
  const root = state.root;
31996
32249
  const list = state.layerList;
31997
- if (root === void 0 || list === void 0) return;
32250
+ if (root === void 0 || list === void 0) return false;
31998
32251
  for (let index = list.length - 1; index >= 0; index -= 1) {
31999
32252
  const name = list[index]?.name;
32000
32253
  const container = name === void 0 ? void 0 : state.layers.get(name)?.container;
32001
- if (container !== void 0) yield* hitsIn(sctx, container, root, point);
32254
+ if (container === void 0) continue;
32255
+ const alpha = effectiveAlpha(container, root, state.overlay.offTops);
32256
+ const steps = stepsToRoot(container, root);
32257
+ if (alpha === 0 || steps >= MAX_DEPTH$6) continue;
32258
+ walk.alphas[0] = alpha;
32259
+ if (walkChildren(sctx, walk, container, 0, steps)) return true;
32002
32260
  }
32261
+ return false;
32003
32262
  }
32004
32263
  /**
32005
32264
  * The topmost entity under a reference point that the caller accepts. The walk stops there.
@@ -32011,10 +32270,15 @@ function* hitsAt(sctx, point) {
32011
32270
  * @returns The entity, or `undefined`.
32012
32271
  */
32013
32272
  function hitTest(sctx, x, y, accept) {
32014
- for (const entity of hitsAt(sctx, {
32015
- x,
32016
- y
32017
- })) if (accept(entity)) return entity;
32273
+ const walk = takeWalk(sctx);
32274
+ walk.x = x;
32275
+ walk.y = y;
32276
+ walk.accept = accept;
32277
+ try {
32278
+ return walkLayers(sctx, walk) ? walk.found : void 0;
32279
+ } finally {
32280
+ releaseWalk(sctx, walk);
32281
+ }
32018
32282
  }
32019
32283
  /**
32020
32284
  * Every entity under a reference point, topmost first.
@@ -32025,10 +32289,17 @@ function hitTest(sctx, x, y, accept) {
32025
32289
  * @returns The entities, a fresh array; empty when nothing is there.
32026
32290
  */
32027
32291
  function hitAll(sctx, x, y) {
32028
- return [...hitsAt(sctx, {
32029
- x,
32030
- y
32031
- })];
32292
+ const walk = takeWalk(sctx);
32293
+ const out = [];
32294
+ walk.x = x;
32295
+ walk.y = y;
32296
+ walk.out = out;
32297
+ try {
32298
+ walkLayers(sctx, walk);
32299
+ return out;
32300
+ } finally {
32301
+ releaseWalk(sctx, walk);
32302
+ }
32032
32303
  }
32033
32304
  //#endregion
32034
32305
  //#region src/plugins/renderer/sync/bounds.ts
@@ -34849,6 +35120,7 @@ function createSyncState(debug) {
34849
35120
  objectHidden: emptyWeakMap$1(),
34850
35121
  viewOfTop: emptyWeakMap$1(),
34851
35122
  overlay: createOverlayState(),
35123
+ hitWalks: [],
34852
35124
  redraws: 0,
34853
35125
  held: emptyMap$6(),
34854
35126
  passesVersion: 0,
@@ -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-uZt-ompE.mjs";
2
- import { t as createApp } from "./index-HOyIg4Mb.mjs";
3
- import { b as saveOf, v as WithGameState, y as memory } from "./types-C_2rOCXV.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-DOodj3tR.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-BEDkqJKu.mjs";
2
+ import { t as createApp } from "./index-PrAYdg9-.mjs";
3
+ import { b as saveOf, v as WithGameState, y as memory } from "./types-UP4-RD_A.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-Cgu6ie7C.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-DDgQ9IPm.mjs";
1
+ import { an as type, en as refuseStart, m as flattenFeatures, nn as exit, t as createApp } from "./src-DwWNTjMx.mjs";
2
2
  import { n as saveOf, t as memory } from "./memory-CWlqhS7l.mjs";
3
3
  import { n as fakeClock } from "./fake-hnJcJeYf.mjs";
4
4
  import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-CCiUwvlp.mjs";
@@ -1,5 +1,5 @@
1
- import { Ar as Json, zr as Snapshot } from "./types-uZt-ompE.mjs";
2
- import { t as HeadlessApp } from "./headless-DOodj3tR.mjs";
1
+ import { Ar as Json, zr as Snapshot } from "./types-BEDkqJKu.mjs";
2
+ import { t as HeadlessApp } from "./headless-Cgu6ie7C.mjs";
3
3
  import { Log } from "@moku-labs/common/browser";
4
4
 
5
5
  //#region src/plugins/flow/doors/types.d.ts
@@ -8845,6 +8845,12 @@ type KeptState = {
8845
8845
  byTop: Map<PixiContainer, KeptRecord>;
8846
8846
  ranges: Map<Entity, RangeRecord>; /** A canvas-sized texture a released range left, reused by the next take of the same size (LRU-evictable, P6). */
8847
8847
  spare: PixiRenderTexture | undefined;
8848
+ /**
8849
+ * The textures of records whose views left, reused by the next take of the same size (F119); counted in `bytes`,
8850
+ * destroyed first when a take needs room.
8851
+ */
8852
+ pool: PixiRenderTexture[]; /** The bytes of `pool`, a part of `bytes`: a take may have them (P6.3). */
8853
+ poolBytes: number;
8848
8854
  /**
8849
8855
  * Containers the cache made render groups; a pooled object leaves one (P9.3). The stage root a range picture makes
8850
8856
  * one stays one (P7.5).
@@ -8873,7 +8879,8 @@ type KeptState = {
8873
8879
  */
8874
8880
  calm: boolean; /** First takes in this flush (F114): every one counts; a stack drawn direct is never held back by the count. */
8875
8881
  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;
8882
+ alphaDue: boolean; /** Live records drawn live with a filter in this flush (F119): from `CROWD` on, their first takes do not wait. */
8883
+ liveWaiting: number;
8877
8884
  };
8878
8885
  //#endregion
8879
8886
  //#region src/plugins/renderer/viewport/types.d.ts
@@ -12283,6 +12290,22 @@ type HeldViews = {
12283
12290
  version: number; /** The dev check named a building view under the stage in this build: named once. */
12284
12291
  reported: boolean;
12285
12292
  };
12293
+ /** The scratch of one hit test (F118), taken from `SyncState.hitWalks` and given back when it ends. */
12294
+ type HitWalk = {
12295
+ /** Per depth, the child indices of an out-of-order container, sorted by `zIndex`; only ever grown. */orders: number[][];
12296
+ /**
12297
+ * Per depth, the alpha the objects at that depth draw with, their own included. Kept here, not passed: a double
12298
+ * handed to a call that is not inlined is boxed, once per view.
12299
+ */
12300
+ alphas: Float64Array; /** The root pose of the entity whose box is tested, written in place. */
12301
+ pose: TransformValue; /** The reference point brought into an entity's own space, written in place. */
12302
+ local: Point; /** The reference x. */
12303
+ x: number; /** The reference y. */
12304
+ y: number; /** The filter of `hitTest`; `undefined` while `hitAll` collects. */
12305
+ accept: ((entity: Entity) => boolean) | undefined; /** Where `hitAll` collects; `undefined` while `hitTest` looks for one. */
12306
+ out: Entity[] | undefined; /** The entity `hitTest` accepted. */
12307
+ found: Entity | undefined;
12308
+ };
12286
12309
  /**
12287
12310
  * sync module state.
12288
12311
  */
@@ -12350,7 +12373,8 @@ type SyncState = {
12350
12373
  filterOwners: WeakMap<object, Entity>; /** Hidden masks of engine objects that are no view (an overlay's dim, a kept quad). */
12351
12374
  objectHidden: WeakMap<PixiContainer, number>; /** The view whose top (`wrapper ?? object`) a node is, for the hidden masks (O15; skeleton choice, confirmed in LEAD-FIXES-3). */
12352
12375
  viewOfTop: WeakMap<PixiContainer, View>; /** The overlays, their ranges, dims and HUD parts (spec 22). */
12353
- overlay: OverlayState; /** `Graphics` paths drawn since the monitor last took them: shapes, clip masks, outlines (spec 26 R2.3). */
12376
+ overlay: OverlayState; /** Hit test walks no call holds now: one, unless an accept function asked again (F118). */
12377
+ hitWalks: HitWalk[]; /** `Graphics` paths drawn since the monitor last took them: shapes, clip masks, outlines (spec 26 R2.3). */
12354
12378
  redraws: number;
12355
12379
  /**
12356
12380
  * Where the walk of `shown` stopped for the entities whose loops asked (spec 26 R1.7.3), at the `passesVersion` it
@@ -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-uZt-ompE.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-BEDkqJKu.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,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-uZt-ompE.mjs";
2
- import { o as AudioContextLike, s as Config$4 } from "./types-BW6A3mBQ.mjs";
3
- import { R as I18nApi, U as StringTable, W as TextKey } from "./types-8-dd6MmX.mjs";
4
- import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-HOyIg4Mb.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-BEDkqJKu.mjs";
2
+ import { o as AudioContextLike, s as Config$4 } from "./types-ZI525f5N.mjs";
3
+ import { R as I18nApi, U as StringTable, W as TextKey } from "./types-Bkdjj5Fy.mjs";
4
+ import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-PrAYdg9-.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
7
7
  //#region src/plugins/model/store/providers/memory.d.ts
@@ -1,5 +1,5 @@
1
- import { $ 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-uZt-ompE.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-8-dd6MmX.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-BEDkqJKu.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-Bkdjj5Fy.mjs";
3
3
  import { Log } from "@moku-labs/common/browser";
4
4
  import { PluginCtx } from "@moku-labs/core";
5
5
 
@@ -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-uZt-ompE.mjs";
2
- import { P as AnimApi, r as UiApi } from "./types-BW6A3mBQ.mjs";
3
- import { N as InputApi } from "./types-8-dd6MmX.mjs";
4
- import { r as Repro } from "./headless-DOodj3tR.mjs";
5
- import { a as InputOf, r as ControlApp } from "./types-DU2_qIzE.mjs";
6
- import { t as commands } from "./commands-DISL7dJK.mjs";
1
+ import { Dr as Api$2, Wr as Api$3, Y as Api, gr as Api$1, xr as Api$4 } from "./types-BEDkqJKu.mjs";
2
+ import { P as AnimApi, r as UiApi } from "./types-ZI525f5N.mjs";
3
+ import { N as InputApi } from "./types-Bkdjj5Fy.mjs";
4
+ import { r as Repro } from "./headless-Cgu6ie7C.mjs";
5
+ import { a as InputOf, r as ControlApp } from "./types-B0HZvmZZ.mjs";
6
+ import { t as commands } from "./commands-B4_087j0.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-C3zvIXTR.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-CJUeSL0M.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moku-labs/game",
3
- "version": "0.15.73",
3
+ "version": "0.15.75",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [