@moku-labs/game 0.15.154 → 0.15.156

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 { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-CEuTMLxR.mjs";
1
+ import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-7zYmozvP.mjs";
2
2
 
3
3
  //#region src/app/page.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { Yr as PlayerStateProvider } from "../types-VJcIdmHU.mjs";
2
- import { jt as PlatformProvider } from "../index-pi4DqEyw.mjs";
3
- import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-CEuTMLxR.mjs";
1
+ import { Yr as PlayerStateProvider } from "../types-BrW_M5xD.mjs";
2
+ import { jt as PlatformProvider } from "../index-DRAcyKrv.mjs";
3
+ import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-7zYmozvP.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 { Wr as Json } from "./types-VJcIdmHU.mjs";
2
- import { J as StringTable } from "./types-BaarAgv8.mjs";
3
- import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-CEuTMLxR.mjs";
1
+ import { Wr as Json } from "./types-BrW_M5xD.mjs";
2
+ import { J as StringTable } from "./types-8wz-Eq_I.mjs";
3
+ import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-7zYmozvP.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 { Xt as audioPlugin, i as screen, k as flattenFeatures, rt as platformPlugin, t as createApp, zt as effectsPlugin } from "./src-CAvbU88U.mjs";
1
+ import { Xt as audioPlugin, i as screen, k as flattenFeatures, rt as platformPlugin, t as createApp, zt as effectsPlugin } from "./src-BGbnqnFj.mjs";
2
2
  import { t as memory } from "./memory-DeD9wis6.mjs";
3
3
  import { n as fakeClock, r as isFakeClock } from "./fake-hnJcJeYf.mjs";
4
4
  //#region src/app/define.ts
package/dist/assets.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { d as Manifest } from "./types-VJcIdmHU.mjs";
1
+ import { d as Manifest } from "./types-BrW_M5xD.mjs";
2
2
 
3
3
  //#region src/plugins/assets/scan/cli.d.ts
4
4
  /**
@@ -1,8 +1,8 @@
1
- import { $r as Snapshot, Ar as Api$4, Fn as Bookmark, Fr as Api$1, O as DebugSwitches, Q as Api$3, Rn as FlowState, fi as FrameRate, gi as Time, ii as Api$2, mt as Captured, t as Api, ti as StoreApi, w as ScenesApi } from "./types-VJcIdmHU.mjs";
2
- import { Y as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-BW8Ml4o2.mjs";
3
- import { R as InputApi } from "./types-BaarAgv8.mjs";
4
- import { t as HeadlessApp } from "./headless-CO19o31k.mjs";
5
- import { i as ControlApp, r as Command } from "./types-CbSTnp8T.mjs";
1
+ import { $r as Snapshot, Ar as Api$4, Fn as Bookmark, Fr as Api$1, O as DebugSwitches, Q as Api$3, Rn as FlowState, fi as FrameRate, gi as Time, ii as Api$2, mt as Captured, t as Api, ti as StoreApi, w as ScenesApi } from "./types-BrW_M5xD.mjs";
2
+ import { Y as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-CgLUzbF_.mjs";
3
+ import { R as InputApi } from "./types-8wz-Eq_I.mjs";
4
+ import { t as HeadlessApp } from "./headless-CW6AZ8_F.mjs";
5
+ import { i as ControlApp, r as Command } from "./types-CXppid1m.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-CO19o31k.mjs";
2
- import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-CbSTnp8T.mjs";
3
- import { t as commands } from "./commands-1pXMU61X.mjs";
4
- import { t as defineCommand } from "./define-DoJN_Ctu.mjs";
1
+ import { t as HeadlessApp } from "./headless-CW6AZ8_F.mjs";
2
+ import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-CXppid1m.mjs";
3
+ import { t as commands } from "./commands-C2tSoUFu.mjs";
4
+ import { t as defineCommand } from "./define-DN43b9Hv.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-CO19o31k.mjs";
2
- import { l as Source, r as Command, s as InputSchema } from "./types-CbSTnp8T.mjs";
1
+ import { t as HeadlessApp } from "./headless-CW6AZ8_F.mjs";
2
+ import { l as Source, r as Command, s as InputSchema } from "./types-CXppid1m.mjs";
3
3
 
4
4
  //#region src/plugins/flow/doors/define.d.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { Rn as FlowState, Vn as RouteStep, Wr as Json, Xn as Answer, mn as Api$1, ri as RngState, ui as Api, zn as JournalEntry } from "./types-VJcIdmHU.mjs";
1
+ import { Rn as FlowState, Vn as RouteStep, Wr as Json, Xn as Answer, mn as Api$1, ri as RngState, ui as Api, zn as JournalEntry } from "./types-BrW_M5xD.mjs";
2
2
 
3
3
  //#region src/plugins/flow/headless.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { $ as Config$6, Ar as Api$6, B as OverlayValue, C as SceneSpec, Cn as TextStylesOf, Cr as Mut, Dr as SystemDefinition, Dt as FrameRing, En as defineFlow, Er as ResourceType, Et as FrameRecord, Fr as Api$1, Gn as Effect, Gr as Root, Hn as SceneIdOf, Hr as Config$5, I as HudPartValue, In as DefineNode, Jn as Hint, Jr as Patch, K as SpriteOptions, Kn as EffectOptions, Kr as State$5, Lr as Config$2, Lt as PassKind, Mn as FeaturePlugin, Nn as FeatureTree, Nr as State$9, Or as SystemFor, Q as Api$4, R as NineSliceValue, S as SceneDefinition, Sn as TextFormatsOf, T as State$7, Tr as QueryTerm, U as ShapeValue, Wn as Descriptor, Wr as Json, X as sprite, Y as TransformValue, Zn as Answered, _ as AnySceneProjection, _n as EmitterIdOf, a as Config$1, ai as Config$4, ar as NumericFields, bi as Require, c as LoadBundles, ci as State$4, cr as ReducedMotion, di as Config$8, er as DescriptionNode, f as ReadyBundles, gn as Config$3, gr as ComponentHandle, hi as ThermalReading, hn as BundlesOf, i as BundleSpec, ii as Api$3, jn as FeatureDescription, jr as Config$9, kr as TagType, l as LoadReason, lt as State$6, m as Tier, mi as State$8, mn as Api$2, ni as RngApi, o as DefineBundles, oi as Events, or as ProjectionMotion, p as State$1, pi as RateChange, q as SpriteValue, qn as GuideOptions, r as BundleMap, si as PauseReason, sr as ProjectionSpec, t as Api, ti as StoreApi, tr as Ease, u as LoadResult, ui as Api$5, v as Config$7, vi as Config$10, vn as GameTypes, vr as ComponentType, w as ScenesApi, wr as Narrowed, x as LayerMap, xn as State$3, y as DefineScene, yi as Events$1, yn as HudKeysOf, yr as ComponentValue, yt as ViewportSize, zr as State$2 } from "./types-VJcIdmHU.mjs";
2
- import { $ as MotionKeyframe, A as ShadowValue, B as DisplacementValue, C as FoldValue, D as PixelateValue, E as MirrorValue, F as EmitterDefinition, G as GlowValue, H as FilterComponent, I as EmitterValue, J as UniformDeclaration, K as NoiseValue, L as AlphaValue, M as VignetteValue, N as WaveValue, O as RevealLineValue, P as EmitterConfig, Q as FramesValue, R as BlurValue, S as FlashValue, T as GradientMapValue, Tt as OverlayApi, U as FilterSpec, W as FilterValueOf, X as AnimPlayerValue, Y as AnimApi, Z as Config$11, _ as State$12, a as AudioApi, at as SfxDescriptor, b as BloomValue, c as MusicDescriptor, ct as defineAnimation, d as State$11, et as State$10, f as VolumesFor, h as EffectsApi, it as HapticKind, j as ShineValue, k as RevealRoundValue, l as MusicOptions, m as Config$13, mt as play, n as State$13, ot as Step, q as OutlineValue, r as UiApi, s as Config$12, t as Config$14, tt as Target, w as GradeValue, x as DissolveValue, y as AuraValue, z as ColorMatrixValue } from "./types-BW8Ml4o2.mjs";
3
- import { $ as ResolvedStyle, A as TextFormats, C as Point, E as TextBind, G as Message, H as Config$15, I as defineComponent, K as Part, L as Config$16, M as TextStyleInput, N as TextStyles, P as TextValue, Q as IsFlags, R as InputApi, T as TextApi, U as I18nApi, V as Argument, W as IntlKit, X as TypedTr, Y as TextKey, b as Config$17, et as Style, g as IntrinsicElementsFor, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, nt as TextTagStyle, q as State$14, rt as WhenFlags, s as PopupComponent, v as BindField, w as State$16, x as CountdownValue, y as BindOptions, z as State$15 } from "./types-BaarAgv8.mjs";
1
+ import { $ as Config$6, Ar as Api$6, B as OverlayValue, C as SceneSpec, Cn as TextStylesOf, Cr as Mut, Dr as SystemDefinition, Dt as FrameRing, En as defineFlow, Er as ResourceType, Et as FrameRecord, Fr as Api$1, Gn as Effect, Gr as Root, Hn as SceneIdOf, Hr as Config$5, I as HudPartValue, In as DefineNode, Jn as Hint, Jr as Patch, K as SpriteOptions, Kn as EffectOptions, Kr as State$5, Lr as Config$2, Lt as PassKind, Mn as FeaturePlugin, Nn as FeatureTree, Nr as State$9, Or as SystemFor, Q as Api$4, R as NineSliceValue, S as SceneDefinition, Sn as TextFormatsOf, T as State$7, Tr as QueryTerm, U as ShapeValue, Wn as Descriptor, Wr as Json, X as sprite, Y as TransformValue, Zn as Answered, _ as AnySceneProjection, _n as EmitterIdOf, a as Config$1, ai as Config$4, ar as NumericFields, bi as Require, c as LoadBundles, ci as State$4, cr as ReducedMotion, di as Config$8, er as DescriptionNode, f as ReadyBundles, gn as Config$3, gr as ComponentHandle, hi as ThermalReading, hn as BundlesOf, i as BundleSpec, ii as Api$3, jn as FeatureDescription, jr as Config$9, kr as TagType, l as LoadReason, lt as State$6, m as Tier, mi as State$8, mn as Api$2, ni as RngApi, o as DefineBundles, oi as Events, or as ProjectionMotion, p as State$1, pi as RateChange, q as SpriteValue, qn as GuideOptions, r as BundleMap, si as PauseReason, sr as ProjectionSpec, t as Api, ti as StoreApi, tr as Ease, u as LoadResult, ui as Api$5, v as Config$7, vi as Config$10, vn as GameTypes, vr as ComponentType, w as ScenesApi, wr as Narrowed, x as LayerMap, xn as State$3, y as DefineScene, yi as Events$1, yn as HudKeysOf, yr as ComponentValue, yt as ViewportSize, zr as State$2 } from "./types-BrW_M5xD.mjs";
2
+ import { $ as MotionKeyframe, A as ShadowValue, B as DisplacementValue, C as FoldValue, D as PixelateValue, E as MirrorValue, F as EmitterDefinition, G as GlowValue, H as FilterComponent, I as EmitterValue, J as UniformDeclaration, K as NoiseValue, L as AlphaValue, M as VignetteValue, N as WaveValue, O as RevealLineValue, P as EmitterConfig, Q as FramesValue, R as BlurValue, S as FlashValue, T as GradientMapValue, Tt as OverlayApi, U as FilterSpec, W as FilterValueOf, X as AnimPlayerValue, Y as AnimApi, Z as Config$11, _ as State$12, a as AudioApi, at as SfxDescriptor, b as BloomValue, c as MusicDescriptor, ct as defineAnimation, d as State$11, et as State$10, f as VolumesFor, h as EffectsApi, it as HapticKind, j as ShineValue, k as RevealRoundValue, l as MusicOptions, m as Config$13, mt as play, n as State$13, ot as Step, q as OutlineValue, r as UiApi, s as Config$12, t as Config$14, tt as Target, w as GradeValue, x as DissolveValue, y as AuraValue, z as ColorMatrixValue } from "./types-CgLUzbF_.mjs";
3
+ import { $ as ResolvedStyle, A as TextFormats, C as Point, E as TextBind, G as Message, H as Config$15, I as defineComponent, K as Part, L as Config$16, M as TextStyleInput, N as TextStyles, P as TextValue, Q as IsFlags, R as InputApi, T as TextApi, U as I18nApi, V as Argument, W as IntlKit, X as TypedTr, Y as TextKey, b as Config$17, et as Style, g as IntrinsicElementsFor, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, nt as TextTagStyle, q as State$14, rt as WhenFlags, s as PopupComponent, v as BindField, w as State$16, x as CountdownValue, y as BindOptions, z as State$15 } from "./types-8wz-Eq_I.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 PerfSampleLine, An as type, At as MonitorSections, B as OverlayValue, Br as types_d_exports$3, Bt as PerfChange, Ct as FrameColumns, Dn as exit, Dt as FrameRing, E as types_d_exports$13, Et as FrameRecord, F as HudPart, Ft as PERF_LOG_VERSION, G as SpriteBlend, Gt as PerfEventLine, H as Shape, Ht as PerfCollectorLine, I as HudPartValue, It as PROBLEM_RULES, J as Transform, Jt as PerfHeaderLine, Kt as PerfEventName, L as NineSlice, Lt as PassKind, Mt as OverlayWhat, N as WhyEntry, Nt as PERF_CAUSES, On as slot, Ot as LongFrameEntry, P as Display, Pr as types_d_exports$17, Pt as PERF_GAP_BUCKETS, Qn as AnchorTarget, Qr as SaveUnreadableError, Qt as PerfMeasured, Rt as PassRecord, St as WhyLive, Tn as contribution, Tt as FrameReadout, Ut as PerfCounts, V as Parent, Vt as PerfChangeEntry, W as Sprite, Wt as PerfDisplay, X as sprite, Xt as PerfLongFrameLine, Yt as PerfLogLine, Z as AdaptiveScale, Zt as PerfMarkLine, _i as types_d_exports$15, an as ProblemEventDetail, cn as ShaderEventDetail, ct as PoolTrim, dn as CANVAS_RESTARTS, dt as types_d_exports$12, en as PerfSpikeLine, er as DescriptionNode, et as MonitorConfig, fn as CanvasRestart, ft as ShotsApi, g as types_d_exports$1, ht as MonitorCounts, in as PoolTrimDetail, jt as OverlayEventDetail, kn as to, kt as MONITOR_SECTIONS, li as types_d_exports$9, ln as ShaderWhat, lr as SceneSwitch, nn as PerfTelemetryLine, on as ProblemRule, pn as DEMAND_REASONS, pt as ShotsConfig, qr as types_d_exports$10, qt as PerfGapLine, rn as PerfThermalLine, sn as SHADER_WHATS, tn as PerfStartupLine, un as WarmDetail, wn as types_d_exports$6, wt as FrameReadResult, xt as RetakeWhy, z as Overlay, zt as PerfCause } from "./types-VJcIdmHU.mjs";
2
- import { A as ShadowValue, C as FoldValue, Ct as use, D as PixelateValue, E as MirrorValue, Et as types_d_exports$4, M as VignetteValue, N as WaveValue, O as RevealLineValue, S as FlashValue, St as tween, T as GradientMapValue, V as FilterArea, _t as sfx, b as BloomValue, bt as stagger, ct as defineAnimation, dt as haptic, ft as mark, gt as set, ht as sequence, i as types_d_exports$16, it as HapticKind, j as ShineValue, k as RevealRoundValue, lt as external, mt as play, p as types_d_exports$2, pt as parallel, rt as types_d_exports, st as HAPTIC_KINDS, ut as frames, v as types_d_exports$5, vt as spawn, w as GradeValue, wt as wait, x as DissolveValue, xt as stopSfx, y as AuraValue, yt as spawned } from "./types-BW8Ml4o2.mjs";
3
- import { A as TextFormats, B as types_d_exports$8, D as TextFormat, F as types_d_exports$14, I as defineComponent, O as TextFormatAnswer, S as FormattedNumber, Z as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, m as popup, nt as TextTagStyle, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-BaarAgv8.mjs";
4
- import { $ as Swipeable, A as music, At as BackResult, B as Frames, Bt as clockPlugin, C as Alpha, Ct as worldPlugin, D as Glow, Dt as scenesPlugin, E as Displacement, Et as textPlugin, F as messageDuration, Ft as inputPlugin, G as Draggable, Gt as Countdown, H as defineBundles, Ht as assetsPlugin, I as cubicBezier, It as i18nPlugin, J as Hovered, Jt as defineTextFormats, K as DropTarget, Kt as Text, L as defineMotion, Lt as flowPlugin, M as defineStyle, Mt as types_d_exports$11, N as tr, Nt as modelPlugin, O as Noise, Ot as rendererPlugin, P as messageArgument, Pt as lifecyclePlugin, Q as Pressed, R as AnimPlayer, Rt as effectsPlugin, S as defineFilter, St as flattenFeatures, T as ColorMatrix, Tt as timePlugin, U as load, Ut as animPlugin, V as defineScene, Vt as audioPlugin, W as ready, Wt as projection, X as PointerOver, Xt as label, Y as Pointer, Yt as defineTextStyles, Z as Pressable, _ as Fold, _t as defineEffect, a as defineEmitter, at as PASS_KINDS, b as Bloom, bt as schedule, c as Vignette, ct as Layer, d as RevealRound, dt as Tree, et as TapValue, f as RevealLine, ft as component, g as Grade, gt as tag, h as GradientMap, ht as system, i as screen, it as Traced, j as resolve, jt as PlatformProvider, k as Outline, kt as platformPlugin, l as Shine, lt as Now, m as Mirror, mt as resource, n as createPlugin, nt as Touchable, o as Emitter, ot as frameAt, p as Pixelate, pt as mut, q as Held, qt as bind, r as defineGame, rt as Traceable, s as Wave, st as Exiting, t as createApp, tt as Tappable, u as Shadow, ut as Order, v as Flash, vt as guide, w as Blur, wt as uiPlugin, x as Aura, xt as defineFeature, y as Dissolve, yt as hint, z as Animation, zt as debugPlugin } from "./index-pi4DqEyw.mjs";
1
+ import { $t as PerfSampleLine, An as type, At as MonitorSections, B as OverlayValue, Br as types_d_exports$3, Bt as PerfChange, Ct as FrameColumns, Dn as exit, Dt as FrameRing, E as types_d_exports$13, Et as FrameRecord, F as HudPart, Ft as PERF_LOG_VERSION, G as SpriteBlend, Gt as PerfEventLine, H as Shape, Ht as PerfCollectorLine, I as HudPartValue, It as PROBLEM_RULES, J as Transform, Jt as PerfHeaderLine, Kt as PerfEventName, L as NineSlice, Lt as PassKind, Mt as OverlayWhat, N as WhyEntry, Nt as PERF_CAUSES, On as slot, Ot as LongFrameEntry, P as Display, Pr as types_d_exports$17, Pt as PERF_GAP_BUCKETS, Qn as AnchorTarget, Qr as SaveUnreadableError, Qt as PerfMeasured, Rt as PassRecord, St as WhyLive, Tn as contribution, Tt as FrameReadout, Ut as PerfCounts, V as Parent, Vt as PerfChangeEntry, W as Sprite, Wt as PerfDisplay, X as sprite, Xt as PerfLongFrameLine, Yt as PerfLogLine, Z as AdaptiveScale, Zt as PerfMarkLine, _i as types_d_exports$15, an as ProblemEventDetail, cn as ShaderEventDetail, ct as PoolTrim, dn as CANVAS_RESTARTS, dt as types_d_exports$12, en as PerfSpikeLine, er as DescriptionNode, et as MonitorConfig, fn as CanvasRestart, ft as ShotsApi, g as types_d_exports$1, ht as MonitorCounts, in as PoolTrimDetail, jt as OverlayEventDetail, kn as to, kt as MONITOR_SECTIONS, li as types_d_exports$9, ln as ShaderWhat, lr as SceneSwitch, nn as PerfTelemetryLine, on as ProblemRule, pn as DEMAND_REASONS, pt as ShotsConfig, qr as types_d_exports$10, qt as PerfGapLine, rn as PerfThermalLine, sn as SHADER_WHATS, tn as PerfStartupLine, un as WarmDetail, wn as types_d_exports$6, wt as FrameReadResult, xt as RetakeWhy, z as Overlay, zt as PerfCause } from "./types-BrW_M5xD.mjs";
2
+ import { A as ShadowValue, C as FoldValue, Ct as use, D as PixelateValue, E as MirrorValue, Et as types_d_exports$4, M as VignetteValue, N as WaveValue, O as RevealLineValue, S as FlashValue, St as tween, T as GradientMapValue, V as FilterArea, _t as sfx, b as BloomValue, bt as stagger, ct as defineAnimation, dt as haptic, ft as mark, gt as set, ht as sequence, i as types_d_exports$16, it as HapticKind, j as ShineValue, k as RevealRoundValue, lt as external, mt as play, p as types_d_exports$2, pt as parallel, rt as types_d_exports, st as HAPTIC_KINDS, ut as frames, v as types_d_exports$5, vt as spawn, w as GradeValue, wt as wait, x as DissolveValue, xt as stopSfx, y as AuraValue, yt as spawned } from "./types-CgLUzbF_.mjs";
3
+ import { A as TextFormats, B as types_d_exports$8, D as TextFormat, F as types_d_exports$14, I as defineComponent, O as TextFormatAnswer, S as FormattedNumber, Z as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, m as popup, nt as TextTagStyle, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-8wz-Eq_I.mjs";
4
+ import { $ as Swipeable, A as music, At as BackResult, B as Frames, Bt as clockPlugin, C as Alpha, Ct as worldPlugin, D as Glow, Dt as scenesPlugin, E as Displacement, Et as textPlugin, F as messageDuration, Ft as inputPlugin, G as Draggable, Gt as Countdown, H as defineBundles, Ht as assetsPlugin, I as cubicBezier, It as i18nPlugin, J as Hovered, Jt as defineTextFormats, K as DropTarget, Kt as Text, L as defineMotion, Lt as flowPlugin, M as defineStyle, Mt as types_d_exports$11, N as tr, Nt as modelPlugin, O as Noise, Ot as rendererPlugin, P as messageArgument, Pt as lifecyclePlugin, Q as Pressed, R as AnimPlayer, Rt as effectsPlugin, S as defineFilter, St as flattenFeatures, T as ColorMatrix, Tt as timePlugin, U as load, Ut as animPlugin, V as defineScene, Vt as audioPlugin, W as ready, Wt as projection, X as PointerOver, Xt as label, Y as Pointer, Yt as defineTextStyles, Z as Pressable, _ as Fold, _t as defineEffect, a as defineEmitter, at as PASS_KINDS, b as Bloom, bt as schedule, c as Vignette, ct as Layer, d as RevealRound, dt as Tree, et as TapValue, f as RevealLine, ft as component, g as Grade, gt as tag, h as GradientMap, ht as system, i as screen, it as Traced, j as resolve, jt as PlatformProvider, k as Outline, kt as platformPlugin, l as Shine, lt as Now, m as Mirror, mt as resource, n as createPlugin, nt as Touchable, o as Emitter, ot as frameAt, p as Pixelate, pt as mut, q as Held, qt as bind, r as defineGame, rt as Traceable, s as Wave, st as Exiting, t as createApp, tt as Tappable, u as Shadow, ut as Order, v as Flash, vt as guide, w as Blur, wt as uiPlugin, x as Aura, xt as defineFeature, y as Dissolve, yt as hint, z as Animation, zt as debugPlugin } from "./index-DRAcyKrv.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, Aura, type AuraValue, type BackResult, type BindOptions, Bloom, type BloomValue, Blur, Box, CANVAS_RESTARTS, type CanvasRestart, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, Dissolve, type DissolveValue, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, Flash, type FlashValue, types_d_exports$6 as Flow, Fold, type FoldValue, type FormattedNumber, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, Grade, type GradeValue, GradientMap, type GradientMapValue, HAPTIC_KINDS, type HapticKind, Held, Hovered, HudPart, type HudPartValue, types_d_exports$7 as I18n, types_d_exports$8 as Input, Layer, types_d_exports$9 as Lifecycle, LocalWrite, type LongFrameEntry, MONITOR_SECTIONS, Mirror, type MirrorValue, types_d_exports$10 as Model, type MonitorConfig, type MonitorCounts, type MonitorSections, NineSlice, Noise, Now, Order, Outline, Overlay, type OverlayEventDetail, type OverlayValue, type OverlayWhat, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, type PassKind, type PassRecord, type PerfCause, type PerfChange, type PerfChangeEntry, type PerfCollectorLine, type PerfCounts, type PerfDisplay, type PerfEventLine, type PerfEventName, type PerfGapLine, type PerfHeaderLine, type PerfLogLine, type PerfLongFrameLine, type PerfMarkLine, type PerfMeasured, type PerfSampleLine, type PerfSpikeLine, type PerfStartupLine, type PerfTelemetryLine, type PerfThermalLine, Pixelate, type PixelateValue, types_d_exports$11 as Platform, type PlatformProvider, Pointer, PointerOver, type PoolTrim, type PoolTrimDetail, Pressable, Pressed, type ProblemEventDetail, type ProblemRule, types_d_exports$12 as Renderer, type RetakeWhy, RevealLine, type RevealLineValue, RevealRound, type RevealRoundValue, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shadow, type ShadowValue, Shape, Shine, type ShineValue, type ShotsApi, type ShotsConfig, Sprite, type SpriteBlend, Swipeable, type TapValue, Tappable, Text, type TextFormat, type TextFormatAnswer, type TextFormatFunction, type TextFormats, type TextRunStyle, type TextTagStyle, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, Vignette, type VignetteValue, type WarmDetail, Wave, type WaveValue, type WhyEntry, type WhyLive, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as uiPlugin, $t as animPlugin, A as defineEmitter, At as Pressed, B as types_exports$12, Bt as Emitter, C as hint, Cn as SaveUnreadableError, Ct as Draggable, D as tr, Dt as Pointer, E as defineScene, En as timePlugin, Et as Hovered, F as types_exports$17, Ft as Traced, G as types_exports$7, Gt as Glow, H as types_exports$10, Ht as Blur, I as types_exports$16, It as i18nPlugin, J as types_exports$4, Jt as defineFilter, K as types_exports$6, Kt as Noise, L as types_exports$15, Lt as messageArgument, M as defineBundles, Mt as Tappable, N as load, Nt as Touchable, O as defineFeature, Ot as PointerOver, P as ready, Pt as Traceable, Q as types_exports, Qt as assetsPlugin, R as types_exports$14, Rt as messageDuration, S as guide, Sn as modelPlugin, St as inputPlugin, T as projection, Tn as lifecyclePlugin, Tt as Held, U as types_exports$9, Ut as ColorMatrix, V as types_exports$11, Vt as Alpha, W as types_exports$8, Wt as Displacement, X as types_exports$2, Xt as audioPlugin, Y as types_exports$3, Yt as debugPlugin, Z as types_exports$1, Zt as scenesPlugin, _ as Dissolve, _n as contribution, _t as stagger, a as Wave, an as frameAt, at as defineAnimation, b as cubicBezier, bn as to, bt as use, c as Shadow, cn as PERF_GAP_BUCKETS, ct as haptic, d as Pixelate, dn as SHADER_WHATS, dt as play, en as AnimPlayer, et as resolve, f as Mirror, fn as CANVAS_RESTARTS, ft as sequence, g as Flash, gt as spawned, h as Fold, hn as flowPlugin, ht as spawn, i as screen, in as PASS_KINDS, it as HAPTIC_KINDS, j as music, jt as Swipeable, k as flattenFeatures, kt as Pressable, l as RevealRound, ln as PERF_LOG_VERSION, lt as mark, m as Grade, mn as worldPlugin, mt as sfx, n as createPlugin, nn as Frames, nt as textPlugin, o as Vignette, on as MONITOR_SECTIONS, ot as external, p as GradientMap, pn as DEMAND_REASONS, pt as set, q as types_exports$5, qt as Outline, r as defineGame, rn as rendererPlugin, rt as platformPlugin, s as Shine, sn as PERF_CAUSES, st as frames, t as createApp, tn as Animation, tt as defineMotion, u as RevealLine, un as PROBLEM_RULES, ut as parallel, v as Bloom, vn as exit, vt as stopSfx, w as schedule, wn as clockPlugin, wt as DropTarget, x as defineEffect, xn as type, xt as wait, y as Aura, yn as slot, yt as tween, z as types_exports$13, zt as effectsPlugin } from "./src-CAvbU88U.mjs";
1
+ import { $ as uiPlugin, $t as animPlugin, A as defineEmitter, At as Pressed, B as types_exports$12, Bt as Emitter, C as hint, Cn as SaveUnreadableError, Ct as Draggable, D as tr, Dt as Pointer, E as defineScene, En as timePlugin, Et as Hovered, F as types_exports$17, Ft as Traced, G as types_exports$7, Gt as Glow, H as types_exports$10, Ht as Blur, I as types_exports$16, It as i18nPlugin, J as types_exports$4, Jt as defineFilter, K as types_exports$6, Kt as Noise, L as types_exports$15, Lt as messageArgument, M as defineBundles, Mt as Tappable, N as load, Nt as Touchable, O as defineFeature, Ot as PointerOver, P as ready, Pt as Traceable, Q as types_exports, Qt as assetsPlugin, R as types_exports$14, Rt as messageDuration, S as guide, Sn as modelPlugin, St as inputPlugin, T as projection, Tn as lifecyclePlugin, Tt as Held, U as types_exports$9, Ut as ColorMatrix, V as types_exports$11, Vt as Alpha, W as types_exports$8, Wt as Displacement, X as types_exports$2, Xt as audioPlugin, Y as types_exports$3, Yt as debugPlugin, Z as types_exports$1, Zt as scenesPlugin, _ as Dissolve, _n as contribution, _t as stagger, a as Wave, an as frameAt, at as defineAnimation, b as cubicBezier, bn as to, bt as use, c as Shadow, cn as PERF_GAP_BUCKETS, ct as haptic, d as Pixelate, dn as SHADER_WHATS, dt as play, en as AnimPlayer, et as resolve, f as Mirror, fn as CANVAS_RESTARTS, ft as sequence, g as Flash, gt as spawned, h as Fold, hn as flowPlugin, ht as spawn, i as screen, in as PASS_KINDS, it as HAPTIC_KINDS, j as music, jt as Swipeable, k as flattenFeatures, kt as Pressable, l as RevealRound, ln as PERF_LOG_VERSION, lt as mark, m as Grade, mn as worldPlugin, mt as sfx, n as createPlugin, nn as Frames, nt as textPlugin, o as Vignette, on as MONITOR_SECTIONS, ot as external, p as GradientMap, pn as DEMAND_REASONS, pt as set, q as types_exports$5, qt as Outline, r as defineGame, rn as rendererPlugin, rt as platformPlugin, s as Shine, sn as PERF_CAUSES, st as frames, t as createApp, tn as Animation, tt as defineMotion, u as RevealLine, un as PROBLEM_RULES, ut as parallel, v as Bloom, vn as exit, vt as stopSfx, w as schedule, wn as clockPlugin, wt as DropTarget, x as defineEffect, xn as type, xt as wait, y as Aura, yn as slot, yt as tween, z as types_exports$13, zt as effectsPlugin } from "./src-BGbnqnFj.mjs";
2
2
  import { $ as Overlay, D as defineStyle, E as defineTokens, L as defineTextFormats, M as Countdown, N as Text, P as bind, Q as NineSlice, R as defineTextStyles, X as Display, Z as HudPart, _ as DebugTrigger, ct as Exiting, dt as Order, ft as Tree, gt as system, h as Box, ht as resource, it as Transform, lt as Layer, mt as mut, nt as Shape, pt as component, rt as Sprite, st as sprite, tt as Parent, ut as Now, vt as tag, w as popup, x as ScrollState, y as LocalWrite, z as label } from "./visual-x0TPowBE.mjs";
3
3
  import { t as defineComponent } from "./component-DGg5DqKK.mjs";
4
4
  export { Alpha, types_exports as Anim, AnimPlayer, Animation, types_exports$1 as Assets, types_exports$2 as Audio, Aura, Bloom, Blur, Box, CANVAS_RESTARTS, types_exports$3 as Clock, ColorMatrix, Countdown, DEMAND_REASONS, types_exports$4 as Debug, DebugTrigger, Displacement, Display, Dissolve, Draggable, DropTarget, types_exports$5 as Effects, Emitter, Exiting, Flash, types_exports$6 as Flow, Fold, Frames, Glow, Grade, GradientMap, HAPTIC_KINDS, Held, Hovered, HudPart, types_exports$7 as I18n, types_exports$8 as Input, Layer, types_exports$9 as Lifecycle, LocalWrite, MONITOR_SECTIONS, Mirror, types_exports$10 as Model, NineSlice, Noise, Now, Order, Outline, Overlay, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, Pixelate, types_exports$11 as Platform, Pointer, PointerOver, Pressable, Pressed, types_exports$12 as Renderer, RevealLine, RevealRound, SHADER_WHATS, SaveUnreadableError, types_exports$13 as Scenes, ScrollState, Shadow, Shape, Shine, Sprite, Swipeable, Tappable, Text, types_exports$14 as TextTypes, types_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_exports$16 as Ui, Vignette, Wave, types_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
@@ -1,9 +1,9 @@
1
- import { $r as Snapshot, Ar as Api$1, Ln as FlowGraph, Mr as Explained, Q as Api$2, Sr as FrameDiff, Vr as Api, _r as ComponentSchema, bn as Position, gt as RenderStats, h as Usage, t as Api$3, ut as Under, xr as EntitySnapshot, zn as JournalEntry } from "./types-VJcIdmHU.mjs";
2
- import { Y as AnimApi, a as AudioApi, g as EffectsStats, h as EffectsApi, nt as TimelinesSnapshot, r as UiApi, u as SoundEntry } from "./types-BW8Ml4o2.mjs";
3
- import { c as UiNode } from "./types-BaarAgv8.mjs";
4
- import { t as HeadlessApp } from "./headless-CO19o31k.mjs";
5
- import { a as InputArguments, d as WatchApp, f as WatchInput, l as Source, o as InputOf, s as InputSchema, t as CheatEntry } from "./types-CbSTnp8T.mjs";
6
- import { n as defineSource } from "./define-DoJN_Ctu.mjs";
1
+ import { $r as Snapshot, Ar as Api$1, Ln as FlowGraph, Mr as Explained, Q as Api$2, Sr as FrameDiff, Vr as Api, _r as ComponentSchema, bn as Position, gt as RenderStats, h as Usage, t as Api$3, ut as Under, xr as EntitySnapshot, zn as JournalEntry } from "./types-BrW_M5xD.mjs";
2
+ import { Y as AnimApi, a as AudioApi, g as EffectsStats, h as EffectsApi, nt as TimelinesSnapshot, r as UiApi, u as SoundEntry } from "./types-CgLUzbF_.mjs";
3
+ import { c as UiNode } from "./types-8wz-Eq_I.mjs";
4
+ import { t as HeadlessApp } from "./headless-CW6AZ8_F.mjs";
5
+ import { a as InputArguments, d as WatchApp, f as WatchInput, l as Source, o as InputOf, s as InputSchema, t as CheatEntry } from "./types-CXppid1m.mjs";
6
+ import { n as defineSource } from "./define-DN43b9Hv.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-CX1RTfCg.mjs";
1
+ import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-Dk1G1aCO.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-CX1RTfCg.mjs";
1
+ import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-Dk1G1aCO.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-BaarAgv8.mjs";
1
+ import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-8wz-Eq_I.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. */
@@ -43934,7 +43934,8 @@ function reportSettled(ctx, progress, signal) {
43934
43934
  }
43935
43935
  /**
43936
43936
  * Publishes a loaded bundle: what was loaded moves into the record, a failure `ready` remembered
43937
- * is forgotten, `renderer` re-resolves the keys, the event goes out, the frame loop wakes and the
43937
+ * is forgotten, its keys may warn "not loaded yet" again (a warm window asked for them hidden, before
43938
+ * the load), `renderer` re-resolves the keys, the event goes out, the frame loop wakes and the
43938
43939
  * budget is enforced.
43939
43940
  *
43940
43941
  * @param ctx - Domain context of the plugin.
@@ -43953,7 +43954,9 @@ function finish$1(ctx, bundle, entry, assets, reason) {
43953
43954
  record.inflight = void 0;
43954
43955
  touch(ctx.state, record);
43955
43956
  ctx.state.readyFailed.delete(bundle);
43956
- ctx.deps.renderer.sync.textures.invalidate(bundleKeys(ctx.state, bundle));
43957
+ const keys = bundleKeys(ctx.state, bundle);
43958
+ for (const key of keys) ctx.state.warned.delete(key);
43959
+ ctx.deps.renderer.sync.textures.invalidate(keys);
43957
43960
  ctx.emit("assets:bundle-loaded", {
43958
43961
  bundle,
43959
43962
  tier: entry.tier,
@@ -58955,7 +58958,8 @@ function ownedFields(unparented, scaled) {
58955
58958
  *
58956
58959
  * @param ctx - Domain context of the input plugin.
58957
58960
  * @param entity - The view under the finger.
58958
- * @param point - Where the finger is, in reference units.
58961
+ * @param point - Where the finger took hold, in reference units: the press point, so the view
58962
+ * keeps that spot under the finger however far the move that started the drag went.
58959
58963
  */
58960
58964
  function grab(ctx, entity, point) {
58961
58965
  const { ecs, projection } = ctx.deps.world;
@@ -59654,7 +59658,7 @@ function onMove(ctx, point) {
59654
59658
  toIdle(ctx);
59655
59659
  return;
59656
59660
  }
59657
- grab(ctx, entity, point);
59661
+ grab(ctx, entity, start);
59658
59662
  ctx.state.phase = "dragging";
59659
59663
  }
59660
59664
  /**
@@ -66772,12 +66776,40 @@ function scrollOf(element, stopsOf) {
66772
66776
  };
66773
66777
  }
66774
66778
  /**
66779
+ * How far a scroll has moved its content on one axis.
66780
+ *
66781
+ * @param element - The element to read.
66782
+ * @param axis - The axis asked for.
66783
+ * @returns The current offset when the element is a placed scroll of that axis, else 0.
66784
+ */
66785
+ function offsetOn(element, axis) {
66786
+ const motion = element.scroll;
66787
+ return motion?.placed === true && motion.axis === axis ? motion.offset : 0;
66788
+ }
66789
+ /**
66790
+ * A layout rect where it is on screen under the scrolls above it.
66791
+ *
66792
+ * @param rect - The layout rect.
66793
+ * @param shiftX - The sum of the offsets of the horizontal scrolls above.
66794
+ * @param shiftY - The sum of the offsets of the vertical scrolls above.
66795
+ * @returns The rect itself when nothing is scrolled, else a moved copy.
66796
+ */
66797
+ function scrolledRect(rect, shiftX, shiftY) {
66798
+ return shiftX === 0 && shiftY === 0 ? rect : {
66799
+ ...rect,
66800
+ x: rect.x - shiftX,
66801
+ y: rect.y - shiftY
66802
+ };
66803
+ }
66804
+ /**
66775
66805
  * Turns one element and its subtree into snapshot nodes. The rect is natural; a fitted element
66776
66806
  * adds the scale it is drawn at; a text adds the words it draws and the style key of a keyed
66777
66807
  * text; a text field adds its value; a windowed scroll adds its window; an element with a
66778
66808
  * motion id adds it, a scroll adds where it stands and its snap stops. The spacers of a windowed
66779
66809
  * scroll are left out: its content lists the live rows. The rects of a root laid out in a slot are
66780
- * in the slot's units: `place` maps them into root coordinates.
66810
+ * in the slot's units: `place` maps them into root coordinates. The rect of an element inside a
66811
+ * scroll is where it is on screen: moved back by the offset of every scroll above it, on the
66812
+ * scroll's axis (F228); the scroll itself stays where it is.
66781
66813
  *
66782
66814
  * @param state - The jsx state.
66783
66815
  * @param element - The element to read.
@@ -66785,18 +66817,23 @@ function scrollOf(element, stopsOf) {
66785
66817
  * @param shownStyleOf - Reads `Text.style` of a text entity; none in a read without a world.
66786
66818
  * @param stopsOf - Reads the stops of a `snap` prop; none in a read without a layout.
66787
66819
  * @param place - Maps a rect of a slotted root into root coordinates; none for a root on the viewport.
66820
+ * @param shiftX - The sum of the offsets of the horizontal scrolls above the element.
66821
+ * @param shiftY - The sum of the offsets of the vertical scrolls above the element.
66788
66822
  * @returns The node, with its children in child order.
66789
66823
  */
66790
- function nodeOf(state, element, resolvedOf, shownStyleOf, stopsOf, place) {
66824
+ function nodeOf(state, element, resolvedOf, shownStyleOf, stopsOf, place, shiftX = 0, shiftY = 0) {
66825
+ const belowX = shiftX + offsetOn(element, "x");
66826
+ const belowY = shiftY + offsetOn(element, "y");
66791
66827
  const children = [];
66792
66828
  for (const child of element.children) {
66793
66829
  const childElement = state.elements.get(child);
66794
- if (childElement !== void 0 && !isOwnKey(childElement.key)) children.push(nodeOf(state, childElement, resolvedOf, shownStyleOf, stopsOf, place));
66830
+ if (childElement !== void 0 && !isOwnKey(childElement.key)) children.push(nodeOf(state, childElement, resolvedOf, shownStyleOf, stopsOf, place, belowX, belowY));
66795
66831
  }
66832
+ const rect = scrolledRect(element.rect, shiftX, shiftY);
66796
66833
  const node = {
66797
66834
  key: element.key,
66798
66835
  type: element.type,
66799
- rect: place === void 0 ? { ...element.rect } : place(element.rect),
66836
+ rect: place === void 0 ? { ...rect } : place(rect),
66800
66837
  style: element.style,
66801
66838
  state: { ...element.is },
66802
66839
  children
@@ -71247,14 +71284,15 @@ function createReconciler(ctx, modules, fields) {
71247
71284
  }
71248
71285
  /**
71249
71286
  * Starts the exit of an element and of everything under it. An element of a root built aside was
71250
- * never seen: it goes at once, with no exit (spec 31).
71287
+ * never seen: it goes at once, with no exit (spec 31). So does an element that has not entered: the
71288
+ * held view of a warm window opened on another item drops what only the warm item had (F220).
71251
71289
  *
71252
71290
  * @param element - The element that left the description.
71253
71291
  * @param cause - Why it leaves: `"change"` for a commit, `"mount"` when it goes with its screen.
71254
71292
  * @param leads - The element is the top of a root that goes with its screen.
71255
71293
  */
71256
71294
  function exitElement(element, cause, leads = false) {
71257
- if (isAside(element.root)) {
71295
+ if (!element.entered || isAside(element.root)) {
71258
71296
  dropElement(element);
71259
71297
  return;
71260
71298
  }
@@ -72749,7 +72787,10 @@ function writeRest(ctx, element, parent) {
72749
72787
  * open of a window held warm (spec 33 B+D): it has not entered, and it or its root belongs to the
72750
72788
  * build or to the held view. An element a held root makes while no warm work runs is not marked
72751
72789
  * by `world`; its root is. Its hooks wait for its enter at the swap; a change before it plays no
72752
- * motion and is written at once, so the enter starts from where it stands.
72790
+ * motion and is written at once, so the enter starts from where it stands. A live element that has
72791
+ * not entered is held too: it was never drawn. The open frame of a warm window opened on another item
72792
+ * than the one it was built for moves elements of the held root once `world` holds it no more, and
72793
+ * they stand where a cold open stands, with no `change` motion (F220).
72753
72794
  *
72754
72795
  * @param ctx - Domain context of the ui plugin.
72755
72796
  * @param element - The element a hook would play on.
@@ -72757,6 +72798,7 @@ function writeRest(ctx, element, parent) {
72757
72798
  */
72758
72799
  function isHeld(ctx, element) {
72759
72800
  if (element.entered) return false;
72801
+ if (element.live) return true;
72760
72802
  const projection = ctx.deps.world.projection;
72761
72803
  return projection.isBuilding(element.entity) || projection.isBuilding(element.root);
72762
72804
  }
@@ -1,7 +1,7 @@
1
- import { Bn as NodeTable, Ir as ClockSource, Jn as Hint, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Wn as Descriptor, Wr as Json, Yn as NodeFx } from "./types-VJcIdmHU.mjs";
2
- import { t as createApp } from "./index-pi4DqEyw.mjs";
3
- import { b as memory, x as saveOf, y as WithGameState } from "./types-CEuTMLxR.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-CO19o31k.mjs";
1
+ import { Bn as NodeTable, Ir as ClockSource, Jn as Hint, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Wn as Descriptor, Wr as Json, Yn as NodeFx } from "./types-BrW_M5xD.mjs";
2
+ import { t as createApp } from "./index-DRAcyKrv.mjs";
3
+ import { b as memory, x as saveOf, y as WithGameState } from "./types-7zYmozvP.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-CW6AZ8_F.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 { gn as refuseStart, k as flattenFeatures, t as createApp, vn as exit, xn as type } from "./src-CAvbU88U.mjs";
1
+ import { gn as refuseStart, k as flattenFeatures, t as createApp, vn as exit, xn as type } from "./src-BGbnqnFj.mjs";
2
2
  import { n as saveOf, t as memory } from "./memory-DeD9wis6.mjs";
3
3
  import { n as fakeClock } from "./fake-hnJcJeYf.mjs";
4
4
  import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-yi2XmYWC.mjs";
@@ -1,7 +1,7 @@
1
- import { $ as Config$2, Hr as Config, Ir as ClockSource, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Un as TypeTag, Wr as Json, Xr as ProviderCall, Yr as PlayerStateProvider, Zr as SaveDoc, _t as Orientation, a as Config$3, d as Manifest, ei as SnapshotOf, gn as Config$1, it as PixiModule, n as AssetsIo } from "./types-VJcIdmHU.mjs";
2
- import { o as AudioContextLike, s as Config$4 } from "./types-BW8Ml4o2.mjs";
3
- import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-BaarAgv8.mjs";
4
- import { Rt as effectsPlugin, Vt as audioPlugin, i as screen, jt as PlatformProvider, kt as platformPlugin, t as createApp } from "./index-pi4DqEyw.mjs";
1
+ import { $ as Config$2, Hr as Config, Ir as ClockSource, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Un as TypeTag, Wr as Json, Xr as ProviderCall, Yr as PlayerStateProvider, Zr as SaveDoc, _t as Orientation, a as Config$3, d as Manifest, ei as SnapshotOf, gn as Config$1, it as PixiModule, n as AssetsIo } from "./types-BrW_M5xD.mjs";
2
+ import { o as AudioContextLike, s as Config$4 } from "./types-CgLUzbF_.mjs";
3
+ import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-8wz-Eq_I.mjs";
4
+ import { Rt as effectsPlugin, Vt as audioPlugin, i as screen, jt as PlatformProvider, kt as platformPlugin, t as createApp } from "./index-DRAcyKrv.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
7
7
  //#region src/plugins/model/store/providers/memory.d.ts
@@ -1,4 +1,4 @@
1
- import { $n as ChangeHook, Ar as Api$2, D as AxisPose, Fr as Api$5, Jn as Hint, Q as Api$3, Qn as AnchorTarget, Wn as Descriptor, Wr as Json, Y as TransformValue, Zn as Answered, ar as NumericFields, bi as Require, br as Entity, cr as ReducedMotion, fr as ViewHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, kr as TagType, mn as Api$1, mr as AnyComponentType, nr as Motion, or as ProjectionMotion, pr as AnyComponent, rr as MotionCause, s as Events$1, t as Api$4, tr as Ease, tt as PixiContainer, ui as Api, vr as ComponentType, yt as ViewportSize } from "./types-VJcIdmHU.mjs";
1
+ import { $n as ChangeHook, Ar as Api$2, D as AxisPose, Fr as Api$5, Jn as Hint, Q as Api$3, Qn as AnchorTarget, Wn as Descriptor, Wr as Json, Y as TransformValue, Zn as Answered, ar as NumericFields, bi as Require, br as Entity, cr as ReducedMotion, fr as ViewHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, kr as TagType, mn as Api$1, mr as AnyComponentType, nr as Motion, or as ProjectionMotion, pr as AnyComponent, rr as MotionCause, s as Events$1, t as Api$4, tr as Ease, tt as PixiContainer, ui as Api, vr as ComponentType, yt as ViewportSize } from "./types-BrW_M5xD.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";
@@ -3715,7 +3715,9 @@ type Anchor = {
3715
3715
  };
3716
3716
  /**
3717
3717
  * One node of the snapshot `tree()` answers with. `rect` is natural: under a `fit` ancestor it
3718
- * is the rect before that ancestor's scale. An element with `fit: "contain"` adds `fitScale`,
3718
+ * is the rect before that ancestor's scale. It is on screen for a scroll: an element inside a
3719
+ * `scroll` is reported moved back by the scroll's current offset on its axis (every scroll above
3720
+ * it adds its own), the scroll itself stays in place. An element with `fit: "contain"` adds `fitScale`,
3719
3721
  * the scale it is drawn at. A `text` adds `content`: the words it draws. A `text` given a text
3720
3722
  * style key adds `textStyle`. An `input` adds `value`: the text being typed while it is edited,
3721
3723
  * else the local field it writes. A windowed `scroll` adds `window`: the rows that exist, which
@@ -14795,7 +14795,7 @@ type State = {
14795
14795
  sceneId: string | undefined;
14796
14796
  queue: PreloadQueue | undefined;
14797
14797
  current: NodeInfo | undefined;
14798
- useCounter: number; /** Keys already reported missing, so one key warns and starts its background load once. */
14798
+ useCounter: number; /** Keys reported missing since their bundle last loaded, so one key warns once per miss before a load. */
14799
14799
  warned: Set<string>;
14800
14800
  /**
14801
14801
  * `onEnter`, the `load` and `ready` handlers, the texture provider, the start and the end of an exit in `world`,
@@ -1,5 +1,5 @@
1
- import { $r as Snapshot, Wr as Json } from "./types-VJcIdmHU.mjs";
2
- import { t as HeadlessApp } from "./headless-CO19o31k.mjs";
1
+ import { $r as Snapshot, Wr as Json } from "./types-BrW_M5xD.mjs";
2
+ import { t as HeadlessApp } from "./headless-CW6AZ8_F.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 { A as FilterSlotInputs, Ar as Api$3, M as SyncApi, Q as Api$4, Qn as AnchorTarget, Un as TypeTag, Ur as Events$3, Vr as Api$6, Wn as Descriptor, Wr as Json, ar as NumericFields, at as PixiSprite, b as Events$4, bi as Require, br as Entity, bt as FilterCache, cr as ReducedMotion, dr as TrackSegment, gr as ComponentHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, j as FilterSlotQuad, k as FilterSlot, mn as Api$2, nt as PixiFilter, oi as Events$5, ot as PixiTexture, pr as AnyComponent, rt as PixiGpuProgram, s as Events$1, st as PixiUniformGroup, t as Api$5, tr as Ease, ui as Api$1, ur as TrackOptions, vr as ComponentType, vt as Point, yi as Events$2 } from "./types-VJcIdmHU.mjs";
2
- import { R as InputApi, T as TextApi, U as I18nApi, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, tt as StylesState } from "./types-BaarAgv8.mjs";
1
+ import { A as FilterSlotInputs, Ar as Api$3, M as SyncApi, Q as Api$4, Qn as AnchorTarget, Un as TypeTag, Ur as Events$3, Vr as Api$6, Wn as Descriptor, Wr as Json, ar as NumericFields, at as PixiSprite, b as Events$4, bi as Require, br as Entity, bt as FilterCache, cr as ReducedMotion, dr as TrackSegment, gr as ComponentHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, j as FilterSlotQuad, k as FilterSlot, mn as Api$2, nt as PixiFilter, oi as Events$5, ot as PixiTexture, pr as AnyComponent, rt as PixiGpuProgram, s as Events$1, st as PixiUniformGroup, t as Api$5, tr as Ease, ui as Api$1, ur as TrackOptions, vr as ComponentType, vt as Point, yi as Events$2 } from "./types-BrW_M5xD.mjs";
2
+ import { R as InputApi, T as TextApi, U as I18nApi, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, tt as StylesState } from "./types-8wz-Eq_I.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 { Ar as Api$1, Fr as Api$4, Q as Api, Vr as Api$2, ii as Api$3 } from "./types-VJcIdmHU.mjs";
2
- import { Y as AnimApi, r as UiApi } from "./types-BW8Ml4o2.mjs";
3
- import { R as InputApi } from "./types-BaarAgv8.mjs";
4
- import { r as Repro } from "./headless-CO19o31k.mjs";
5
- import { i as ControlApp, o as InputOf } from "./types-CbSTnp8T.mjs";
6
- import { t as commands } from "./commands-1pXMU61X.mjs";
1
+ import { Ar as Api$1, Fr as Api$4, Q as Api, Vr as Api$2, ii as Api$3 } from "./types-BrW_M5xD.mjs";
2
+ import { Y as AnimApi, r as UiApi } from "./types-CgLUzbF_.mjs";
3
+ import { R as InputApi } from "./types-8wz-Eq_I.mjs";
4
+ import { r as Repro } from "./headless-CW6AZ8_F.mjs";
5
+ import { i as ControlApp, o as InputOf } from "./types-CXppid1m.mjs";
6
+ import { t as commands } from "./commands-C2tSoUFu.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-CFkE25fP.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-Xic-LNjH.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
@@ -1113,23 +1113,26 @@ async function pageStart(argument) {
1113
1113
  }
1114
1114
  }
1115
1115
  /**
1116
- * Holds the game for a test: the `pause` command, the editor's pause, so the browser's frames no
1116
+ * Holds the game for a test: the pause reason `visual` on the lifecycle, so the browser's frames no
1117
1117
  * longer move game time; then stepped frames up to the start time, 1000/60 ms each and the last
1118
1118
  * one shorter, so the game lands on it to the last bit. The page's own start took a different
1119
- * time on every run; from here on every test starts at the same game time.
1119
+ * time on every run; from here on every test starts at the same game time. Not the `pause`
1120
+ * command: its reason `devtools` makes every `game.step` move the clock with the frames (F169),
1121
+ * and the headless leg's clock never moves, so the page's clock ran ahead of it, by the frames up
1122
+ * to the start time and by every frame after (F227). Under `visual` the clock stands, as there.
1120
1123
  *
1121
1124
  * @param argument - The test and the step, and the game time a test starts at.
1122
1125
  * @param argument.startMs - The game time a test starts at, in milliseconds; a page whose clock
1123
1126
  * is already past it starts at the next multiple of it.
1124
- * @returns The game time the test starts at, or why the page refused the pause.
1127
+ * @returns The game time the test starts at, or why the page failed.
1125
1128
  */
1126
1129
  async function pagePause(argument) {
1127
1130
  try {
1128
1131
  const handles = pageHandles();
1129
- const { game, doors } = handles;
1132
+ const { game } = handles;
1130
1133
  const { startMs } = argument;
1131
1134
  const frameMs = 1e3 / 60;
1132
- await doors.run(game, doors.commands.pause);
1135
+ game.lifecycle.push("visual");
1133
1136
  const start = Math.max(startMs, Math.ceil(game.time.snapshot().elapsed / startMs) * startMs);
1134
1137
  for (let left = start - game.time.snapshot().elapsed; left > 0; left = start - game.time.snapshot().elapsed) await pageStepFrame(handles, Math.min(left, frameMs));
1135
1138
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moku-labs/game",
3
- "version": "0.15.154",
3
+ "version": "0.15.156",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [