@moku-labs/game 0.15.117 → 0.15.118

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-DGBAOEkO.mjs";
1
+ import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-ktcMr5ce.mjs";
2
2
 
3
3
  //#region src/app/page.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  import { Jr as PlayerStateProvider } from "../types-BUR4LWSa.mjs";
2
- import { Et as PlatformProvider } from "../index-Cdl7-lTx.mjs";
3
- import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-DGBAOEkO.mjs";
2
+ import { Et as PlatformProvider } from "../index-Fth_AFjs.mjs";
3
+ import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-ktcMr5ce.mjs";
4
4
  import { Back, Haptics, KeepAwake, Lifecycle, Store } from "@moku-labs/system";
5
5
 
6
6
  //#region src/app/system.d.ts
package/dist/app.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Ur as Json } from "./types-BUR4LWSa.mjs";
2
- import { J as StringTable } from "./types-MOasDgxY.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-DGBAOEkO.mjs";
2
+ import { J as StringTable } from "./types-CMFC7k5L.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-ktcMr5ce.mjs";
4
4
  import { AnyPluginInstance } from "@moku-labs/core";
5
5
 
6
6
  //#region src/app/define.d.ts
package/dist/app.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { Gt as audioPlugin, Pt as effectsPlugin, Q as platformPlugin, i as screen, t as createApp, w as flattenFeatures } from "./src-spqsx3lB.mjs";
1
+ import { Gt as audioPlugin, Pt as effectsPlugin, Q as platformPlugin, i as screen, t as createApp, w as flattenFeatures } from "./src-CvM4Qhtr.mjs";
2
2
  import { t as memory } from "./memory-DeD9wis6.mjs";
3
3
  import { n as fakeClock, r as isFakeClock } from "./fake-hnJcJeYf.mjs";
4
4
  //#region src/app/define.ts
@@ -1,6 +1,6 @@
1
1
  import { D as DebugSwitches, Ln as FlowState, Pn as Bookmark, Pr as Api, Qr as Snapshot, Z as Api$2, di as FrameRate, ei as StoreApi, hi as Time, kr as Api$3, pt as Captured, ri as Api$1, w as ScenesApi } from "./types-BUR4LWSa.mjs";
2
- import { W as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-CFV-839_.mjs";
3
- import { R as InputApi } from "./types-MOasDgxY.mjs";
2
+ import { W as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-DIdCmTQx.mjs";
3
+ import { R as InputApi } from "./types-CMFC7k5L.mjs";
4
4
  import { t as HeadlessApp } from "./headless-C5kxf9oU.mjs";
5
5
  import { i as ControlApp, r as Command } from "./types-CATC2vK8.mjs";
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { t as HeadlessApp } from "./headless-C5kxf9oU.mjs";
2
2
  import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-CATC2vK8.mjs";
3
- import { t as commands } from "./commands-DYw6k-2W.mjs";
3
+ import { t as commands } from "./commands-B16wtdhf.mjs";
4
4
  import { t as defineCommand } from "./define-OPEOQ5MS.mjs";
5
5
 
6
6
  //#region src/plugins/flow/doors/dev.d.ts
@@ -1,6 +1,6 @@
1
1
  import { $n as DescriptionNode, An as FeatureDescription, Ar as Config$9, C as SceneSpec, Cr as Narrowed, Dr as SystemFor, Er as SystemDefinition, Et as FrameRing, F as HudPartValue, Fn as DefineNode, G as SpriteOptions, Gn as EffectOptions, Gr as State$5, H as ShapeValue, Ir as Config$2, It as PassKind, J as TransformValue, K as SpriteValue, Kn as GuideOptions, L as NineSliceValue, Mn as FeatureTree, Mr as State$9, Or as TagType, Pr as Api$1, Q as Config$6, Rr as State$2, S as SceneDefinition, Sn as TextStylesOf, Sr as Mut, T as State$7, Tn as defineFlow, Tr as ResourceType, Tt as FrameRecord, Un as Descriptor, Ur as Json, Vn as SceneIdOf, Vr as Config$5, Wn as Effect, Wr as Root, Xn as Answered, Y as sprite, Z as Api$4, _ as AnySceneProjection, _i as Config$10, _n as GameTypes, _r as ComponentType, a as Config$1, ai as Events, ar as ProjectionMotion, bn as State$3, c as LoadBundles, ct as State$6, ei as StoreApi, er as Ease, f as ReadyBundles, fi as RateChange, gn as EmitterIdOf, hn as Config$3, hr as ComponentHandle, i as BundleSpec, ii as Config$4, ir as NumericFields, jn as FeaturePlugin, kr as Api$6, l as LoadReason, li as Api$5, m as Tier, mi as ThermalReading, mn as BundlesOf, o as DefineBundles, oi as PauseReason, or as ProjectionSpec, p as State$1, pi as State$8, pn as Api$2, qn as Hint, qr as Patch, r as BundleMap, ri as Api$3, si as State$4, sr as ReducedMotion, t as Api, ti as RngApi, u as LoadResult, ui as Config$8, v as Config$7, vi as Events$1, vn as HudKeysOf, vr as ComponentValue, vt as ViewportSize, w as ScenesApi, wr as QueryTerm, x as LayerMap, xn as TextFormatsOf, y as DefineScene, yi as Require, z as OverlayValue } from "./types-BUR4LWSa.mjs";
2
- import { $ as SfxDescriptor, A as EmitterDefinition, B as GlowValue, C as FoldValue, D as ShineValue, E as RevealRoundValue, F as DisplacementValue, G as AnimPlayerValue, H as OutlineValue, J as MotionKeyframe, K as Config$11, L as FilterComponent, M as AlphaValue, N as BlurValue, O as VignetteValue, P as ColorMatrixValue, Q as HapticKind, R as FilterSpec, S as FlashValue, T as RevealLineValue, U as UniformDeclaration, V as NoiseValue, W as AnimApi, X as Target, Y as State$10, _ as State$12, a as AudioApi, b as BloomValue, c as MusicDescriptor, ct as play, d as State$11, et as Step, f as VolumesFor, h as EffectsApi, j as EmitterValue, k as EmitterConfig, l as MusicOptions, m as Config$13, n as State$13, nt as defineAnimation, q as FramesValue, r as UiApi, s as Config$12, t as Config$14, w as GradeValue, x as DissolveValue, y as AuraValue, yt as OverlayApi, z as FilterValueOf } from "./types-CFV-839_.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 WhenFlags, q as State$14, s as PopupComponent, v as BindField, w as State$16, x as CountdownValue, y as BindOptions, z as State$15 } from "./types-MOasDgxY.mjs";
2
+ import { $ as SfxDescriptor, A as EmitterDefinition, B as GlowValue, C as FoldValue, D as ShineValue, E as RevealRoundValue, F as DisplacementValue, G as AnimPlayerValue, H as OutlineValue, J as MotionKeyframe, K as Config$11, L as FilterComponent, M as AlphaValue, N as BlurValue, O as VignetteValue, P as ColorMatrixValue, Q as HapticKind, R as FilterSpec, S as FlashValue, T as RevealLineValue, U as UniformDeclaration, V as NoiseValue, W as AnimApi, X as Target, Y as State$10, _ as State$12, a as AudioApi, b as BloomValue, c as MusicDescriptor, ct as play, d as State$11, et as Step, f as VolumesFor, h as EffectsApi, j as EmitterValue, k as EmitterConfig, l as MusicOptions, m as Config$13, n as State$13, nt as defineAnimation, q as FramesValue, r as UiApi, s as Config$12, t as Config$14, w as GradeValue, x as DissolveValue, y as AuraValue, yt as OverlayApi, z as FilterValueOf } from "./types-DIdCmTQx.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 WhenFlags, q as State$14, s as PopupComponent, v as BindField, w as State$16, x as CountdownValue, y as BindOptions, z as State$15 } from "./types-CMFC7k5L.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
1
  import { $ as MonitorConfig, $n as DescriptionNode, $t as PerfSpikeLine, At as OverlayEventDetail, B as Parent, Bt as PerfChangeEntry, Cn as types_d_exports$6, Ct as FrameReadResult, Dn as slot, Dt as LongFrameEntry, E as types_d_exports$13, En as exit, Et as FrameRing, F as HudPartValue, Ft as PROBLEM_RULES, Gt as PerfEventName, Ht as PerfCounts, I as NineSlice, It as PassKind, Jt as PerfLogLine, Kr as types_d_exports$10, Kt as PerfGapLine, Lt as PassRecord, M as WhyEntry, Mt as PERF_CAUSES, N as Display, Nr as types_d_exports$17, Nt as PERF_GAP_BUCKETS, On as to, Ot as MONITOR_SECTIONS, P as HudPart, Pt as PERF_LOG_VERSION, Qt as PerfSampleLine, R as Overlay, Rt as PerfCause, St as FrameColumns, Tt as FrameRecord, U as Sprite, Ut as PerfDisplay, V as Shape, Vt as PerfCollectorLine, W as SpriteBlend, Wt as PerfEventLine, X as AdaptiveScale, Xt as PerfMarkLine, Y as sprite, Yt as PerfLongFrameLine, Zn as AnchorTarget, Zr as SaveUnreadableError, Zt as PerfMeasured, an as ProblemRule, bt as RetakeWhy, ci as types_d_exports$9, cn as ShaderWhat, cr as SceneSwitch, dn as CanvasRestart, dt as ShotsApi, en as PerfStartupLine, fn as DEMAND_REASONS, ft as ShotsConfig, g as types_d_exports$1, gi as types_d_exports$15, in as ProblemEventDetail, jt as OverlayWhat, kn as type, kt as MonitorSections, ln as WarmDetail, mt as MonitorCounts, nn as PerfThermalLine, on as SHADER_WHATS, q as Transform, qt as PerfHeaderLine, rn as PoolTrimDetail, sn as ShaderEventDetail, st as PoolTrim, tn as PerfTelemetryLine, un as CANVAS_RESTARTS, ut as types_d_exports$12, wn as contribution, wt as FrameReadout, xt as WhyLive, z as OverlayValue, zr as types_d_exports$3, zt as PerfChange } from "./types-BUR4LWSa.mjs";
2
- import { C as FoldValue, D as ShineValue, E as RevealRoundValue, I as FilterArea, O as VignetteValue, Q as HapticKind, S as FlashValue, T as RevealLineValue, Z as types_d_exports, _t as use, at as haptic, b as BloomValue, bt as types_d_exports$4, ct as play, dt as sfx, ft as spawn, gt as tween, ht as stopSfx, i as types_d_exports$16, it as frames, lt as sequence, mt as stagger, nt as defineAnimation, ot as mark, p as types_d_exports$2, pt as spawned, rt as external, st as parallel, tt as HAPTIC_KINDS, ut as set, v as types_d_exports$5, vt as wait, w as GradeValue, x as DissolveValue, y as AuraValue } from "./types-CFV-839_.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, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-MOasDgxY.mjs";
4
- import { $ as Traced, A as messageDuration, At as inputPlugin, B as Draggable, Bt as Countdown, C as Noise, Ct as rendererPlugin, D as defineStyle, Dt as types_d_exports$11, E as resolve, Et as PlatformProvider, F as Frames, Ft as clockPlugin, G as PointerOver, Gt as label, H as Held, Ht as bind, I as defineScene, It as audioPlugin, J as Swipeable, K as Pressable, L as defineBundles, Lt as assetsPlugin, M as defineMotion, Mt as flowPlugin, N as AnimPlayer, Nt as effectsPlugin, O as tr, Ot as modelPlugin, P as Animation, Pt as debugPlugin, Q as Traceable, R as load, Rt as animPlugin, S as Glow, St as scenesPlugin, T as music, Tt as BackResult, U as Hovered, Ut as defineTextFormats, V as DropTarget, Vt as Text, W as Pointer, Wt as defineTextStyles, X as Tappable, Y as TapValue, Z as Touchable, _ as defineFilter, _t as flattenFeatures, a as defineEmitter, at as Order, b as ColorMatrix, bt as timePlugin, c as Shine, ct as mut, d as Grade, dt as tag, et as PASS_KINDS, f as Fold, ft as defineEffect, g as Aura, gt as defineFeature, h as Bloom, ht as schedule, i as screen, it as Now, j as cubicBezier, jt as i18nPlugin, k as messageArgument, kt as lifecyclePlugin, l as RevealRound, lt as resource, m as Dissolve, mt as hint, n as createPlugin, nt as Exiting, o as Emitter, ot as Tree, p as Flash, pt as guide, q as Pressed, r as defineGame, rt as Layer, s as Vignette, st as component, t as createApp, tt as frameAt, u as RevealLine, ut as system, v as Alpha, vt as worldPlugin, w as Outline, wt as platformPlugin, x as Displacement, xt as textPlugin, y as Blur, yt as uiPlugin, z as ready, zt as projection } from "./index-Cdl7-lTx.mjs";
2
+ import { C as FoldValue, D as ShineValue, E as RevealRoundValue, I as FilterArea, O as VignetteValue, Q as HapticKind, S as FlashValue, T as RevealLineValue, Z as types_d_exports, _t as use, at as haptic, b as BloomValue, bt as types_d_exports$4, ct as play, dt as sfx, ft as spawn, gt as tween, ht as stopSfx, i as types_d_exports$16, it as frames, lt as sequence, mt as stagger, nt as defineAnimation, ot as mark, p as types_d_exports$2, pt as spawned, rt as external, st as parallel, tt as HAPTIC_KINDS, ut as set, v as types_d_exports$5, vt as wait, w as GradeValue, x as DissolveValue, y as AuraValue } from "./types-DIdCmTQx.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, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-CMFC7k5L.mjs";
4
+ import { $ as Traced, A as messageDuration, At as inputPlugin, B as Draggable, Bt as Countdown, C as Noise, Ct as rendererPlugin, D as defineStyle, Dt as types_d_exports$11, E as resolve, Et as PlatformProvider, F as Frames, Ft as clockPlugin, G as PointerOver, Gt as label, H as Held, Ht as bind, I as defineScene, It as audioPlugin, J as Swipeable, K as Pressable, L as defineBundles, Lt as assetsPlugin, M as defineMotion, Mt as flowPlugin, N as AnimPlayer, Nt as effectsPlugin, O as tr, Ot as modelPlugin, P as Animation, Pt as debugPlugin, Q as Traceable, R as load, Rt as animPlugin, S as Glow, St as scenesPlugin, T as music, Tt as BackResult, U as Hovered, Ut as defineTextFormats, V as DropTarget, Vt as Text, W as Pointer, Wt as defineTextStyles, X as Tappable, Y as TapValue, Z as Touchable, _ as defineFilter, _t as flattenFeatures, a as defineEmitter, at as Order, b as ColorMatrix, bt as timePlugin, c as Shine, ct as mut, d as Grade, dt as tag, et as PASS_KINDS, f as Fold, ft as defineEffect, g as Aura, gt as defineFeature, h as Bloom, ht as schedule, i as screen, it as Now, j as cubicBezier, jt as i18nPlugin, k as messageArgument, kt as lifecyclePlugin, l as RevealRound, lt as resource, m as Dissolve, mt as hint, n as createPlugin, nt as Exiting, o as Emitter, ot as Tree, p as Flash, pt as guide, q as Pressed, r as defineGame, rt as Layer, s as Vignette, st as component, t as createApp, tt as frameAt, u as RevealLine, ut as system, v as Alpha, vt as worldPlugin, w as Outline, wt as platformPlugin, x as Displacement, xt as textPlugin, y as Blur, yt as uiPlugin, z as ready, zt as projection } from "./index-Fth_AFjs.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, HAPTIC_KINDS, type HapticKind, Held, Hovered, HudPart, type HudPartValue, types_d_exports$7 as I18n, types_d_exports$8 as Input, Layer, types_d_exports$9 as Lifecycle, LocalWrite, type LongFrameEntry, MONITOR_SECTIONS, types_d_exports$10 as Model, type MonitorConfig, type MonitorCounts, type MonitorSections, NineSlice, Noise, Now, Order, Outline, Overlay, type OverlayEventDetail, type OverlayValue, type OverlayWhat, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, type PassKind, type PassRecord, type PerfCause, type PerfChange, type PerfChangeEntry, type PerfCollectorLine, type PerfCounts, type PerfDisplay, type PerfEventLine, type PerfEventName, type PerfGapLine, type PerfHeaderLine, type PerfLogLine, type PerfLongFrameLine, type PerfMarkLine, type PerfMeasured, type PerfSampleLine, type PerfSpikeLine, type PerfStartupLine, type PerfTelemetryLine, type PerfThermalLine, types_d_exports$11 as Platform, type PlatformProvider, Pointer, PointerOver, type PoolTrim, type PoolTrimDetail, Pressable, Pressed, type ProblemEventDetail, type ProblemRule, types_d_exports$12 as Renderer, type RetakeWhy, RevealLine, type RevealLineValue, RevealRound, type RevealRoundValue, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shape, Shine, type ShineValue, type ShotsApi, type ShotsConfig, Sprite, type SpriteBlend, Swipeable, type TapValue, Tappable, Text, type TextFormat, type TextFormatAnswer, type TextFormatFunction, type TextFormats, type TextRunStyle, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, Vignette, type VignetteValue, type WarmDetail, type WhyEntry, type WhyLive, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as HAPTIC_KINDS, $t as PASS_KINDS, A as types_exports$17, At as Traced, B as types_exports$7, Bt as Glow, C as defineFeature, Ct as PointerOver, D as defineBundles, Dt as Tappable, E as music, Et as Swipeable, F as types_exports$12, Ft as Emitter, G as types_exports$2, Gt as audioPlugin, H as types_exports$5, Ht as Outline, I as types_exports$11, It as Alpha, J as uiPlugin, Jt as animPlugin, K as types_exports$1, Kt as scenesPlugin, L as types_exports$10, Lt as Blur, M as types_exports$15, Mt as messageArgument, N as types_exports$14, Nt as messageDuration, O as load, Ot as Touchable, P as types_exports$13, Pt as effectsPlugin, Q as platformPlugin, Qt as rendererPlugin, R as types_exports$9, Rt as ColorMatrix, S as tr, St as Pointer, T as defineEmitter, Tt as Pressed, U as types_exports$4, Ut as defineFilter, V as types_exports$6, Vt as Noise, W as types_exports$3, Wt as debugPlugin, X as defineMotion, Xt as Animation, Y as resolve, Yt as AnimPlayer, Z as textPlugin, Zt as Frames, _ as guide, _n as modelPlugin, _t as inputPlugin, a as Vignette, an as PROBLEM_RULES, at as parallel, b as projection, bn as lifecyclePlugin, bt as Held, c as RevealLine, cn as DEMAND_REASONS, ct as set, d as Flash, dt as spawned, en as frameAt, et as defineAnimation, f as Dissolve, fn as contribution, ft as stagger, g as defineEffect, gn as type, gt as wait, h as cubicBezier, hn as to, ht as use, i as screen, in as PERF_LOG_VERSION, it as mark, j as types_exports$16, jt as i18nPlugin, k as ready, kt as Traceable, l as Grade, ln as worldPlugin, lt as sfx, m as Aura, mn as slot, mt as tween, n as createPlugin, nn as PERF_CAUSES, nt as frames, o as Shine, on as SHADER_WHATS, ot as play, p as Bloom, pn as exit, pt as stopSfx, q as types_exports, qt as assetsPlugin, r as defineGame, rn as PERF_GAP_BUCKETS, rt as haptic, s as RevealRound, sn as CANVAS_RESTARTS, st as sequence, t as createApp, tn as MONITOR_SECTIONS, tt as external, u as Fold, un as flowPlugin, ut as spawn, v as hint, vn as SaveUnreadableError, vt as Draggable, w as flattenFeatures, wt as Pressable, x as defineScene, xn as timePlugin, xt as Hovered, y as schedule, yn as clockPlugin, yt as DropTarget, z as types_exports$8, zt as Displacement } from "./src-spqsx3lB.mjs";
1
+ import { $ as HAPTIC_KINDS, $t as PASS_KINDS, A as types_exports$17, At as Traced, B as types_exports$7, Bt as Glow, C as defineFeature, Ct as PointerOver, D as defineBundles, Dt as Tappable, E as music, Et as Swipeable, F as types_exports$12, Ft as Emitter, G as types_exports$2, Gt as audioPlugin, H as types_exports$5, Ht as Outline, I as types_exports$11, It as Alpha, J as uiPlugin, Jt as animPlugin, K as types_exports$1, Kt as scenesPlugin, L as types_exports$10, Lt as Blur, M as types_exports$15, Mt as messageArgument, N as types_exports$14, Nt as messageDuration, O as load, Ot as Touchable, P as types_exports$13, Pt as effectsPlugin, Q as platformPlugin, Qt as rendererPlugin, R as types_exports$9, Rt as ColorMatrix, S as tr, St as Pointer, T as defineEmitter, Tt as Pressed, U as types_exports$4, Ut as defineFilter, V as types_exports$6, Vt as Noise, W as types_exports$3, Wt as debugPlugin, X as defineMotion, Xt as Animation, Y as resolve, Yt as AnimPlayer, Z as textPlugin, Zt as Frames, _ as guide, _n as modelPlugin, _t as inputPlugin, a as Vignette, an as PROBLEM_RULES, at as parallel, b as projection, bn as lifecyclePlugin, bt as Held, c as RevealLine, cn as DEMAND_REASONS, ct as set, d as Flash, dt as spawned, en as frameAt, et as defineAnimation, f as Dissolve, fn as contribution, ft as stagger, g as defineEffect, gn as type, gt as wait, h as cubicBezier, hn as to, ht as use, i as screen, in as PERF_LOG_VERSION, it as mark, j as types_exports$16, jt as i18nPlugin, k as ready, kt as Traceable, l as Grade, ln as worldPlugin, lt as sfx, m as Aura, mn as slot, mt as tween, n as createPlugin, nn as PERF_CAUSES, nt as frames, o as Shine, on as SHADER_WHATS, ot as play, p as Bloom, pn as exit, pt as stopSfx, q as types_exports, qt as assetsPlugin, r as defineGame, rn as PERF_GAP_BUCKETS, rt as haptic, s as RevealRound, sn as CANVAS_RESTARTS, st as sequence, t as createApp, tn as MONITOR_SECTIONS, tt as external, u as Fold, un as flowPlugin, ut as spawn, v as hint, vn as SaveUnreadableError, vt as Draggable, w as flattenFeatures, wt as Pressable, x as defineScene, xn as timePlugin, xt as Hovered, y as schedule, yn as clockPlugin, yt as DropTarget, z as types_exports$8, zt as Displacement } from "./src-CvM4Qhtr.mjs";
2
2
  import { $ as Parent, A as Countdown, F as defineTextFormats, I as defineTextStyles, J as Display, L as label, M as bind, S as popup, T as defineStyle, X as NineSlice, Y as HudPart, Z as Overlay, _ as LocalWrite, at as sprite, ct as Now, dt as component, et as Shape, ft as mut, gt as tag, h as DebugTrigger, j as Text, lt as Order, mt as system, nt as Transform, ot as Exiting, p as Box, pt as resource, st as Layer, tt as Sprite, ut as Tree, w as defineTokens, y as ScrollState } from "./visual-CvFDvkA_.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, HAPTIC_KINDS, Held, Hovered, HudPart, types_exports$7 as I18n, types_exports$8 as Input, Layer, types_exports$9 as Lifecycle, LocalWrite, MONITOR_SECTIONS, types_exports$10 as Model, NineSlice, Noise, Now, Order, Outline, Overlay, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, types_exports$11 as Platform, Pointer, PointerOver, Pressable, Pressed, types_exports$12 as Renderer, RevealLine, RevealRound, SHADER_WHATS, SaveUnreadableError, types_exports$13 as Scenes, ScrollState, Shape, Shine, Sprite, Swipeable, Tappable, Text, types_exports$14 as TextTypes, types_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_exports$16 as Ui, Vignette, types_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
@@ -1,6 +1,6 @@
1
1
  import { Br as Api, In as FlowGraph, Qr as Snapshot, Rn as JournalEntry, Z as Api$2, br as EntitySnapshot, gr as ComponentSchema, h as Usage, ht as RenderStats, jr as Explained, kr as Api$1, lt as Under, t as Api$3, xr as FrameDiff, yn as Position } from "./types-BUR4LWSa.mjs";
2
- import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-CFV-839_.mjs";
3
- import { c as UiNode } from "./types-MOasDgxY.mjs";
2
+ import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-DIdCmTQx.mjs";
3
+ import { c as UiNode } from "./types-CMFC7k5L.mjs";
4
4
  import { t as HeadlessApp } from "./headless-C5kxf9oU.mjs";
5
5
  import { a as InputArguments, d as WatchApp, f as WatchInput, l as Source, o as InputOf, s as InputSchema, t as CheatEntry } from "./types-CATC2vK8.mjs";
6
6
  import { n as defineSource } from "./define-OPEOQ5MS.mjs";
@@ -1,2 +1,2 @@
1
- import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-B4jwb6Rd.mjs";
1
+ import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-DylBqKWf.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-B4jwb6Rd.mjs";
1
+ import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-DylBqKWf.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-MOasDgxY.mjs";
1
+ import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-CMFC7k5L.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. */
@@ -55689,7 +55689,9 @@ const PointerOver = /*#__PURE__*/ tag("PointerOver");
55689
55689
  * On every ui scroll container, internal: ui writes it, input reads it, a game never sees it. A
55690
55690
  * press that leaves the tap slop along `axis` goes from the pressed view to the innermost scroll
55691
55691
  * of that axis the view hangs in by its `Parent` chain; a finger that lands on a view inside a
55692
- * scroll that is `moving` stops it and answers nothing.
55692
+ * scroll that is `moving` stops it and answers nothing. A `locked` scroll takes neither: the
55693
+ * hand-off ends there with the press caught and given to no one, the view under a finger keeps
55694
+ * the press while the scroll moves, and a press held on it is dropped.
55693
55695
  */
55694
55696
  const Scrollable = /*#__PURE__*/ component("Scrollable", scrollableDefaults);
55695
55697
  /**
@@ -55944,8 +55946,9 @@ function submitBlocked(ctx) {
55944
55946
  * which answers `undefined` without a DOM, and every accept function refuses a view that is
55945
55947
  * already playing its exit. A trace takes a cell only inside a circle smaller than its box. The
55946
55948
  * scroll a press belongs to is found up the pressed view's own `Parent` chain, never under the
55947
- * point: a view drawn over a scroll from another root keeps its press. While the lock of a guide
55948
- * stands, a point outside its window finds no view at all.
55949
+ * point: a view drawn over a scroll from another root keeps its press; a scroll its `locked` prop
55950
+ * holds takes none. While the lock of a guide stands, a point outside its window finds no view at
55951
+ * all.
55949
55952
  */
55950
55953
  /** How deep a `Parent` chain is followed; deeper is treated as a loop. */
55951
55954
  const MAX_DEPTH$2 = 32;
@@ -56048,11 +56051,32 @@ function findPressed(ctx, x, y) {
56048
56051
  return ctx.deps.renderer.sync.hitTest(x, y, (entity) => acceptPress(ctx, entity));
56049
56052
  }
56050
56053
  /**
56054
+ * Tells whether a view is a scroll its `locked` prop holds (F177): the finger neither moves nor
56055
+ * stops it. Reads only, allocates nothing.
56056
+ *
56057
+ * @param ctx - Domain context of the input plugin.
56058
+ * @param entity - The view.
56059
+ * @returns True when it carries a `Scrollable` with `locked` true.
56060
+ */
56061
+ function isLockedScroll(ctx, entity) {
56062
+ return ctx.deps.world.ecs.get(entity, Scrollable)?.locked === true;
56063
+ }
56064
+ /**
56065
+ * Tells whether a `Scrollable` value glides now and its `locked` prop does not hold it.
56066
+ *
56067
+ * @param scrollable - The view's `Scrollable` value, or `undefined` for a view that has none.
56068
+ * @returns True for a moving scroll that is not locked.
56069
+ */
56070
+ function isMovingUnlocked(scrollable) {
56071
+ return scrollable?.moving === true && scrollable.locked !== true;
56072
+ }
56073
+ /**
56051
56074
  * The innermost scroll a view sits in that moves now: the view itself or the nearest ancestor of
56052
- * its `Parent` chain that carries a `Scrollable` with `moving` true and is not on its way out. A
56053
- * finger that lands on the view stops that scroll. A view of another root drawn over the scroll,
56054
- * a HUD button or a popup, hangs in no chain of it, so it keeps its press. Reads only, allocates
56055
- * nothing.
56075
+ * its `Parent` chain that carries a `Scrollable` with `moving` true, is not locked and is not on
56076
+ * its way out. A finger that lands on the view stops that scroll. A locked scroll is passed over:
56077
+ * the walk goes on up the chain, and with no other scroll moving the view under the finger takes
56078
+ * the press as on a still scroll. A view of another root drawn over the scroll, a HUD button or a
56079
+ * popup, hangs in no chain of it, so it keeps its press. Reads only, allocates nothing.
56056
56080
  *
56057
56081
  * @param ctx - Domain context of the input plugin.
56058
56082
  * @param entity - The view the hit test found under the finger.
@@ -56062,7 +56086,7 @@ function movingScrollOf(ctx, entity) {
56062
56086
  const { ecs } = ctx.deps.world;
56063
56087
  let current = entity;
56064
56088
  for (let depth = 0; depth < MAX_DEPTH$2 && current !== 0; depth += 1) {
56065
- if (ecs.get(current, Scrollable)?.moving === true && !ecs.has(current, Exiting)) return current;
56089
+ if (isMovingUnlocked(ecs.get(current, Scrollable)) && !ecs.has(current, Exiting)) return current;
56066
56090
  current = parentOf$1(ecs, current);
56067
56091
  }
56068
56092
  }
@@ -57247,12 +57271,42 @@ function onDown(ctx, pointer, point, sample) {
57247
57271
  if (ecs.has(entity, Draggable) && ecs.has(entity, Swipeable)) ctx.log.warn("input: Draggable wins over Swipeable", { view: ctx.state.key });
57248
57272
  }
57249
57273
  /**
57274
+ * Lets the press go with no answer while the finger stays followed: the pressed view loses
57275
+ * `Pressed`, and the press is caught and belongs to no view, so a later move hands nothing on and
57276
+ * the release answers nothing and runs no listener.
57277
+ *
57278
+ * @param ctx - Domain context of the input plugin.
57279
+ */
57280
+ function dropPress(ctx) {
57281
+ const { entity } = ctx.state;
57282
+ if (entity !== void 0) ctx.deps.world.ecs.untag(entity, Pressed);
57283
+ ctx.state.caught = true;
57284
+ ctx.state.entity = void 0;
57285
+ ctx.state.key = void 0;
57286
+ }
57287
+ /**
57288
+ * Drops a press held on a scroll its `locked` prop holds (F177), after the samples are drained: a
57289
+ * press that landed on its own background, or one it held when the lock came. The finger stays
57290
+ * followed until it lifts, so an unlock before the lift gives the scroll nothing. A press on a view
57291
+ * inside the scroll is that view's and stays.
57292
+ *
57293
+ * @param ctx - Domain context of the input plugin.
57294
+ */
57295
+ function dropLockedPress(ctx) {
57296
+ const { entity, phase } = ctx.state;
57297
+ if (phase !== "pressed" || entity === void 0 || !isLockedScroll(ctx, entity)) return;
57298
+ dropPress(ctx);
57299
+ }
57300
+ /**
57250
57301
  * The press just left the tap slop: it goes to the scroll it pans, the innermost `Scrollable` of
57251
57302
  * the pressed view's own `Parent` chain (the view itself included) that moves on the dominant axis
57252
57303
  * of the move. The view loses `Pressed`, and the press is marked caught: it is a scroll gesture
57253
- * now, so its release answers nothing, also when the finger came back inside the slop. A
57254
- * draggable or swipeable view keeps its gesture, a caught press keeps its scroll, and a view that
57255
- * sits in no scroll of that axis keeps its press, also a popup button drawn over a list.
57304
+ * now, so its release answers nothing, also when the finger came back inside the slop. A locked
57305
+ * scroll does nothing with it: the press is dropped and no scroll is pressed, also not one of the
57306
+ * same axis around it. A press that sits on a locked scroll's own background is dropped the same
57307
+ * way, whatever axis the move has. A draggable or swipeable view keeps its gesture, a caught press keeps its
57308
+ * scroll, and a view that sits in no scroll of that axis keeps its press, also a popup button
57309
+ * drawn over a list.
57256
57310
  *
57257
57311
  * @param ctx - Domain context of the input plugin.
57258
57312
  * @param point - Where the finger is, in reference units.
@@ -57262,9 +57316,17 @@ function handOff(ctx, point) {
57262
57316
  const { ecs } = ctx.deps.world;
57263
57317
  if (entity === void 0 || caught) return;
57264
57318
  if (ecs.has(entity, Draggable) || ecs.has(entity, Swipeable)) return;
57319
+ if (isLockedScroll(ctx, entity)) {
57320
+ dropPress(ctx);
57321
+ return;
57322
+ }
57265
57323
  const scroll = scrollOnAxisOf(ctx, entity, axisOf$1(start, point));
57266
57324
  if (scroll === void 0 || scroll === entity) return;
57267
57325
  lostPress(ctx, "scroll");
57326
+ if (isLockedScroll(ctx, scroll)) {
57327
+ dropPress(ctx);
57328
+ return;
57329
+ }
57268
57330
  ecs.untag(entity, Pressed);
57269
57331
  ctx.state.caught = true;
57270
57332
  press(ctx, scroll);
@@ -57597,7 +57659,8 @@ function clearJust(pointer) {
57597
57659
  * (F61): the pressed view is tagged and a release answers the gate now, so the press look starts
57598
57660
  * in the next frame and a node that awaits nothing commits before it. The first resolve after a
57599
57661
  * frame clears that frame's flags; the next frame step keeps the ones it wrote. Only a live world
57600
- * resolves early: fast and paused leave the samples to the frame step, as before.
57662
+ * resolves early: fast and paused leave the samples to the frame step, as before. A press that
57663
+ * landed on a locked scroll is dropped here, before any system sees it.
57601
57664
  *
57602
57665
  * @param ctx - Domain context of the input plugin.
57603
57666
  */
@@ -57611,6 +57674,7 @@ function resolveEarly(ctx) {
57611
57674
  }
57612
57675
  ctx.state.samples = [];
57613
57676
  drainSamples(ctx, pointer, queue);
57677
+ dropLockedPress(ctx);
57614
57678
  syncCursor(ctx);
57615
57679
  pointer.id = ctx.state.pointerId ?? -1;
57616
57680
  }
@@ -57618,6 +57682,7 @@ function resolveEarly(ctx) {
57618
57682
  * The one frame step of the plugin, registered with `time.onFrame("input")` in `onInit`, so it
57619
57683
  * runs before the `world` callback of the same phase: `Pointer`, `Held`, `Hovered` and `Pressed`
57620
57684
  * are fresh when game systems of phase `input` read them.
57685
+ * A press held on a locked scroll is dropped once the samples are drained.
57621
57686
  * The canvas cursor is set right after the hover. `Pointer.id` is written last, once per step: the
57622
57687
  * followed `pointerId`, `-1` when no pointer is followed.
57623
57688
  *
@@ -57644,6 +57709,7 @@ function stepGestures(ctx, time) {
57644
57709
  else clearJust(pointer);
57645
57710
  ctx.state.samples = [];
57646
57711
  drainSamples(ctx, pointer, queue);
57712
+ dropLockedPress(ctx);
57647
57713
  syncCursor(ctx);
57648
57714
  advanceTime(ctx, pointer, time.delta);
57649
57715
  if (ctx.state.phase === "dragging") followDrag(ctx, pointer);
@@ -64191,6 +64257,7 @@ function scrollMotionOf(node) {
64191
64257
  seen: 0,
64192
64258
  aim: void 0,
64193
64259
  glideMs: NaN,
64260
+ locked: false,
64194
64261
  placed: false,
64195
64262
  atProp: false
64196
64263
  };
@@ -67691,7 +67758,8 @@ function answerOf(node) {
67691
67758
  * The input components of an element: a button answers the gate, writes local state, or only
67692
67759
  * swallows the tap; a panel swallows the tap too, so nothing under it answers; a text field takes
67693
67760
  * the tap that starts its editing; a scroll container takes the press that moves its content and
67694
- * carries where it stands, on the axis it spawned with. A button of a covered popup answers
67761
+ * carries where it stands, on the axis it spawned with, locked from the start when its first render
67762
+ * says `locked`. A button of a covered popup answers
67695
67763
  * nothing, so only the top popup answers the gate. A button with the `escape` prop that answers
67696
67764
  * also carries `Escapable`, the control the Escape key taps.
67697
67765
  *
@@ -67702,13 +67770,18 @@ function inputOf(element) {
67702
67770
  const { type, node, is } = element;
67703
67771
  if (type === "scroll") {
67704
67772
  const axis = element.scroll?.axis ?? "y";
67773
+ const scrollable = node.props.locked === true ? Scrollable({
67774
+ axis,
67775
+ moving: false,
67776
+ locked: true
67777
+ }) : Scrollable({
67778
+ axis,
67779
+ moving: false
67780
+ });
67705
67781
  return [
67706
67782
  Touchable(),
67707
67783
  Scroll({ axis }),
67708
- Scrollable({
67709
- axis,
67710
- moving: false
67711
- }),
67784
+ scrollable,
67712
67785
  ScrollState()
67713
67786
  ];
67714
67787
  }
@@ -71588,9 +71661,12 @@ function createPopupHandler(ctx, state, jsx) {
71588
71661
  * then in a fling that slows down, or in a glide to a `snap` stop; it starts at its `offset`
71589
71662
  * prop, glides there again when the prop or its `aim` changes (in `glideMs` when it gives one),
71590
71663
  * stands there at once with `jump`, and stays inside the range every solve gives it, with hard
71591
- * edges. The content moves by one `Transform` write on the axis: no solve, no motion, the children
71592
- * keep their rects. `Scroll` holds the offset the way the windowed range is cut with (0 and below),
71593
- * `ScrollState` the way a game reads it (0 to `max`), `Scrollable` whether it moves, for `input`.
71664
+ * edges. While its `locked` prop is true (F177) the finger neither moves nor stops it: a finger on
71665
+ * it counts as none, a finger that holds it when the lock comes is let go with no velocity, and the
71666
+ * props still move it. The content moves by one `Transform` write on the axis: no solve, no motion,
71667
+ * the children keep their rects. `Scroll` holds the offset the way the windowed range is cut with
71668
+ * (0 and below), `ScrollState` the way a game reads it (0 to `max`), `Scrollable` whether it moves
71669
+ * and whether it is locked, for `input`.
71594
71670
  * The exact numbers live on the element's `scroll` record and the samples of the press in the
71595
71671
  * layout state, written in place; the components get whole reference units. A frame allocates
71596
71672
  * nothing.
@@ -71712,6 +71788,15 @@ function aimOf(container) {
71712
71788
  return typeof aim === "number" && Number.isFinite(aim) ? aim : void 0;
71713
71789
  }
71714
71790
  /**
71791
+ * Whether the scroll's last render keeps the finger from moving it: only the value `true` locks.
71792
+ *
71793
+ * @param container - The scroll element.
71794
+ * @returns True when its `locked` prop is true.
71795
+ */
71796
+ function lockedOf(container) {
71797
+ return container.node.props.locked === true;
71798
+ }
71799
+ /**
71715
71800
  * The `snap` prop of the scroll's last render.
71716
71801
  *
71717
71802
  * @param container - The scroll element.
@@ -71849,7 +71934,7 @@ function releaseVelocity(state) {
71849
71934
  /**
71850
71935
  * Lets go of a scroll the finger held. With `snap` it glides to the stop nearest to where its
71851
71936
  * velocity carries in 260 ms; without, it flings, or stands when it was let go too slowly. A
71852
- * press whose samples a later press took lets go with no velocity.
71937
+ * press whose samples a later press took, and a press a lock let go, let go with no velocity.
71853
71938
  *
71854
71939
  * @param state - The layout state, which keeps the samples of the press.
71855
71940
  * @param container - The scroll that was held.
@@ -71932,9 +72017,33 @@ function moveContent(ctx, state, container, content, motion) {
71932
72017
  ecs.set(content.entity, Transform, state.scrollPatches.y);
71933
72018
  }
71934
72019
  /**
72020
+ * Writes `Scrollable` when `moving` or `locked` changed, in one write: with `locked` once the lock
72021
+ * differs from the world's, with `moving` alone otherwise, so a scroll never locked keeps a
72022
+ * `Scrollable` without the field. Nothing when both are the same.
72023
+ *
72024
+ * @param ctx - Domain context of the ui plugin.
72025
+ * @param state - The layout state, which keeps the patches.
72026
+ * @param container - The scroll element.
72027
+ * @param moving - Whether it moves now.
72028
+ * @param locked - Whether its `locked` prop holds.
72029
+ */
72030
+ function writeScrollable(ctx, state, container, moving, locked) {
72031
+ const ecs = ctx.deps.world.ecs;
72032
+ const scrollable = ecs.get(container.entity, Scrollable);
72033
+ if (scrollable === void 0) return;
72034
+ if (scrollable.locked === true !== locked) {
72035
+ state.scrollPatches.scrollLock.moving = moving;
72036
+ state.scrollPatches.scrollLock.locked = locked;
72037
+ ecs.set(container.entity, Scrollable, state.scrollPatches.scrollLock);
72038
+ } else if (scrollable.moving !== moving) {
72039
+ state.scrollPatches.scrollable.moving = moving;
72040
+ ecs.set(container.entity, Scrollable, state.scrollPatches.scrollable);
72041
+ }
72042
+ }
72043
+ /**
71935
72044
  * Writes what changed of a scroll, in whole units: `Scroll` when its offset or range moved,
71936
- * `ScrollState` when the offset, `max` or `moving` changed, `Scrollable` when `moving` did, and
71937
- * the content's pose. A frame where nothing changed writes nothing.
72045
+ * `ScrollState` when the offset, `max` or `moving` changed, `Scrollable` when `moving` or `locked`
72046
+ * did, and the content's pose. A frame where nothing changed writes nothing.
71938
72047
  *
71939
72048
  * @param ctx - Domain context of the ui plugin.
71940
72049
  * @param state - The layout state, which keeps the patches.
@@ -71949,7 +72058,6 @@ function show(ctx, state, container, content, motion) {
71949
72058
  const moving = motion.mode !== "still";
71950
72059
  const scroll = ecs.get(container.entity, Scroll);
71951
72060
  const shown = ecs.get(container.entity, ScrollState);
71952
- const scrollable = ecs.get(container.entity, Scrollable);
71953
72061
  const rangeMoved = scroll !== void 0 && (scroll.offset !== 0 - offset || scroll.min !== 0 - motion.max);
71954
72062
  const stateMoved = shown !== void 0 && (shown.offset !== offset || shown.max !== motion.max || shown.moving !== moving);
71955
72063
  if (rangeMoved) {
@@ -71963,10 +72071,7 @@ function show(ctx, state, container, content, motion) {
71963
72071
  patches.state.moving = moving;
71964
72072
  ecs.set(container.entity, ScrollState, patches.state);
71965
72073
  }
71966
- if (scrollable !== void 0 && scrollable.moving !== moving) {
71967
- patches.scrollable.moving = moving;
71968
- ecs.set(container.entity, Scrollable, patches.scrollable);
71969
- }
72074
+ writeScrollable(ctx, state, container, moving, motion.locked);
71970
72075
  moveContent(ctx, state, container, content, motion);
71971
72076
  }
71972
72077
  /**
@@ -71982,8 +72087,9 @@ function isIdle(motion, pressed) {
71982
72087
  }
71983
72088
  /**
71984
72089
  * Moves one scroll by the frame: the finger while it is pressed, the release when it lets go,
71985
- * then a fling or a glide, and writes what changed. A still scroll no finger is on costs a tag
71986
- * check.
72090
+ * then a fling or a glide, and writes what changed. `Pressed` on a locked scroll counts as no
72091
+ * finger: `input` drops that press at its next step, and the settle of the lock already let a held
72092
+ * scroll go. A still scroll no finger is on costs a tag check, a locked one a flag check more.
71987
72093
  *
71988
72094
  * @param ctx - Domain context of the ui plugin.
71989
72095
  * @param state - The layout state.
@@ -71995,10 +72101,10 @@ function isIdle(motion, pressed) {
71995
72101
  */
71996
72102
  function stepOne(ctx, state, container, lookup, pointer, time) {
71997
72103
  const ecs = ctx.deps.world.ecs;
71998
- const pressed = ecs.has(container.entity, Pressed);
72104
+ const motion = container.scroll;
72105
+ const pressed = ecs.has(container.entity, Pressed) && motion?.locked !== true;
71999
72106
  const released = !pressed && state.scrolling === container.entity;
72000
72107
  if (released) state.scrolling = void 0;
72001
- const motion = container.scroll;
72002
72108
  if (motion === void 0 || isIdle(motion, pressed)) return false;
72003
72109
  const content = contentOf(container, lookup);
72004
72110
  if (content === void 0 || !ecs.has(container.entity, Scroll)) return false;
@@ -72051,9 +72157,9 @@ function resize(motion, max) {
72051
72157
  }
72052
72158
  /**
72053
72159
  * Puts a scroll the solve just spawned at its `offset` prop, inside its range, and lets it follow
72054
- * the prop from there. Its `aim` and `glideMs` are recorded: the first `aim` moves nothing more.
72055
- * Its spawn waits in the queue of the phase: these values replace the queued ones at the flush,
72056
- * before the first draw.
72160
+ * the prop from there. Its `aim`, `glideMs` and `locked` are recorded: the first `aim` moves
72161
+ * nothing more, and the first `Scrollable` already carries the lock. Its spawn waits in the queue
72162
+ * of the phase: these values replace the queued ones at the flush, before the first draw.
72057
72163
  *
72058
72164
  * @param ctx - Domain context of the ui plugin.
72059
72165
  * @param container - The scroll element, live since this solve.
@@ -72069,6 +72175,7 @@ function place$1(ctx, container, content, motion) {
72069
72175
  motion.seen = askedOffsetOf(container);
72070
72176
  motion.aim = aimOf(container);
72071
72177
  motion.glideMs = glideMsOf(container);
72178
+ motion.locked = lockedOf(container);
72072
72179
  motion.offset = within(motion.seen, motion.max);
72073
72180
  const offset = Math.round(motion.offset);
72074
72181
  const pose = motion.axis === "x" ? {
@@ -72113,7 +72220,9 @@ function followOffset(motion, container, asked) {
72113
72220
  * a new range at once, then a glide to a new `offset` prop or to the same one under a new `aim`,
72114
72221
  * which the scroll follows from then on. With `jump` it stands at the prop at once instead, in the
72115
72222
  * solve that gave the content its new rects; a glide to the prop that runs, the one a new range
72116
- * re-aimed too, ends at its target. A scroll the finger holds only remembers the prop and the aim.
72223
+ * re-aimed too, ends at its target. A scroll the finger holds only remembers the prop and the aim,
72224
+ * unless this render locks it: the finger is let go first, with no velocity, so a new prop or aim
72225
+ * of the same render is followed, and a prop only remembered before is not.
72117
72226
  *
72118
72227
  * @param ctx - Domain context of the ui plugin.
72119
72228
  * @param state - The layout state, which keeps the patches.
@@ -72123,7 +72232,12 @@ function followOffset(motion, container, asked) {
72123
72232
  */
72124
72233
  function settle(ctx, state, container, content, motion) {
72125
72234
  motion.glideMs = glideMsOf(container);
72235
+ motion.locked = lockedOf(container);
72126
72236
  resize(motion, maxOf(container, content, motion.axis));
72237
+ if (motion.locked && motion.mode === "held") {
72238
+ if (state.scrolling === container.entity) state.scrolling = void 0;
72239
+ letGo$1(state, container, motion, false);
72240
+ }
72127
72241
  const asked = askedOffsetOf(container);
72128
72242
  const aim = aimOf(container);
72129
72243
  const aimed = !Object.is(aim, motion.aim);
@@ -72158,10 +72272,10 @@ function standAtTarget(ctx, state, container, content, motion) {
72158
72272
  * inside a new range at once, a running glide's target too, and glides to a new `offset` prop, or
72159
72273
  * to the same one under a new `aim`, in `glideMs` when it gives one; the same value and aim on a
72160
72274
  * re-render do nothing, `jump` ends a glide to the prop at its target, and a scroll the finger
72161
- * holds only remembers the prop and the aim. A scroll nobody sees yet (`stands`: a root built
72162
- * aside or held warm) stands at its target at once instead of gliding, so no glide plays hidden or
72163
- * at its open. A scroll left moving wakes the loop the way `stepScroll` does: not at a time scale
72164
- * of 0, where it stands.
72275
+ * holds only remembers the prop and the aim; a render that locks it lets the finger go first. A
72276
+ * scroll nobody sees yet (`stands`: a root built aside or held warm) stands at its target at once
72277
+ * instead of gliding, so no glide plays hidden or at its open. A scroll left moving wakes the loop
72278
+ * the way `stepScroll` does: not at a time scale of 0, where it stands.
72165
72279
  *
72166
72280
  * @param ctx - Domain context of the ui plugin.
72167
72281
  * @param state - The layout state, which keeps the patches.
@@ -74367,6 +74481,10 @@ function scrollPatches() {
74367
74481
  moving: false
74368
74482
  },
74369
74483
  scrollable: { moving: false },
74484
+ scrollLock: {
74485
+ moving: false,
74486
+ locked: false
74487
+ },
74370
74488
  x: { x: 0 },
74371
74489
  y: { y: 0 }
74372
74490
  };
@@ -1,6 +1,6 @@
1
1
  import { Fr as ClockSource, Jn as NodeFx, Lr as FakeClock, Nn as AnyFlow, Un as Descriptor, Ur as Json, jn as FeaturePlugin, qn as Hint, zn as NodeTable } from "./types-BUR4LWSa.mjs";
2
- import { t as createApp } from "./index-Cdl7-lTx.mjs";
3
- import { b as memory, x as saveOf, y as WithGameState } from "./types-DGBAOEkO.mjs";
2
+ import { t as createApp } from "./index-Fth_AFjs.mjs";
3
+ import { b as memory, x as saveOf, y as WithGameState } from "./types-ktcMr5ce.mjs";
4
4
  import { a as createHeadless, i as ReproResult, n as HeadlessGame, o as runRepro, r as Repro, s as stepFrames, t as HeadlessApp } from "./headless-C5kxf9oU.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
package/dist/testing.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { dn as refuseStart, gn as type, pn as exit, t as createApp, w as flattenFeatures } from "./src-spqsx3lB.mjs";
1
+ import { dn as refuseStart, gn as type, pn as exit, t as createApp, w as flattenFeatures } from "./src-CvM4Qhtr.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-CCiUwvlp.mjs";
@@ -1058,7 +1058,8 @@ type State$1 = {
1058
1058
  moved: boolean;
1059
1059
  /**
1060
1060
  * The press belongs to a scroll: it landed on a moving one and stopped it, or it was handed to
1061
- * one past the tap slop. Its release answers nothing and runs no `onTap` listener.
1061
+ * one past the tap slop, or a locked one dropped it (F177), which leaves no pressed entity. Its
1062
+ * release answers nothing and runs no `onTap` listener.
1062
1063
  */
1063
1064
  caught: boolean; /** The pressed or held entity. */
1064
1065
  entity: Entity | undefined; /** The projection key of `entity`, read once at press time. */
@@ -2415,6 +2416,35 @@ type ScrollGlideMs = number & Brand<"ScrollGlideMs">;
2415
2416
  * ```
2416
2417
  */
2417
2418
  type ScrollAim = (string | number) & Brand<"ScrollAim">;
2419
+ /**
2420
+ * Keeps the finger from moving the scroll while it is `true` (F177); any other value leaves it
2421
+ * unlocked. A drag on it or on a view inside it moves nothing, its release neither flings nor
2422
+ * snaps, and a finger that lands while it glides or flings does not stop it. The views inside keep
2423
+ * their taps: a press that drifts past the tap slop answers none. A finger that holds the scroll
2424
+ * when the lock comes is let go with no velocity: with `snap` it glides to the stop nearest to
2425
+ * where it stands, and the finger takes it again only after a new press. `offset`, `aim`, `jump`
2426
+ * and `glideMs` move it as before. A scroll of the same axis around it does not take the pan.
2427
+ *
2428
+ * @example
2429
+ * ```tsx
2430
+ * // A delivery plays on the order strip, which stands on 318: the game moves it to the delivered
2431
+ * // order in 150 ms, and the player can tap the cards but not scroll them.
2432
+ * <scroll
2433
+ * key="strip"
2434
+ * axis="x"
2435
+ * snap={[0, 318, 390]}
2436
+ * offset={390}
2437
+ * glideMs={150}
2438
+ * locked
2439
+ * style={{ width: 306, height: 120 }}
2440
+ * >
2441
+ * <row key="track" style={{ width: 696, height: 120 }} />
2442
+ * </scroll>;
2443
+ * // 150 ms in: ScrollState { offset: 390, max: 390, moving: false }
2444
+ * // a drag on the strip after that: the same ScrollState in every frame, and no tap
2445
+ * ```
2446
+ */
2447
+ type ScrollLocked = boolean & Brand<"ScrollLocked">;
2418
2448
  /** How many rows a windowed scroll has. */
2419
2449
  type ScrollRows = number & Brand<"ScrollRows">;
2420
2450
  /** The height of every row, in reference units; above 0. */
@@ -2594,7 +2624,8 @@ type ScrollWindowForm = {
2594
2624
  * What a scroll container takes: children for a short list, or `rows`, `rowHeight` and `row` for
2595
2625
  * a long one, whose rows exist only in the window; the `axis` it moves on, the `snap` stops a
2596
2626
  * release glides to, the `offset` it stands at, how long a glide to it lasts (`glideMs`), what it
2597
- * aims at (`aim`), and whether a new `offset` stands there at once (`jump`).
2627
+ * aims at (`aim`), whether a new `offset` stands there at once (`jump`), and whether the finger
2628
+ * is kept from moving it (`locked`).
2598
2629
  *
2599
2630
  * @example
2600
2631
  * ```ts
@@ -2607,6 +2638,8 @@ type ScrollWindowForm = {
2607
2638
  * const quick: ScrollProps = { axis: "x", offset: 390, glideMs: 150 };
2608
2639
  * // The next order is at 0 too: a strip the player dragged to 390 glides back to 0.
2609
2640
  * const next: ScrollProps = { axis: "x", offset: 0, aim: "order-7" };
2641
+ * // A delivery plays: the strip stands on 390 and no finger moves it.
2642
+ * const delivering: ScrollProps = { axis: "x", offset: 390, locked: true };
2610
2643
  * // 1000 orders of 120 u in a 1600 u list: rows 0 to 18 exist at offset 0.
2611
2644
  * const orders: ScrollProps = {
2612
2645
  * style: { height: 1600 },
@@ -2623,6 +2656,7 @@ type ScrollProps = CommonProps & {
2623
2656
  glideMs?: ScrollGlideMs;
2624
2657
  aim?: ScrollAim;
2625
2658
  jump?: ScrollJump;
2659
+ locked?: ScrollLocked;
2626
2660
  } & (ScrollChildForm | ScrollWindowForm);
2627
2661
  /**
2628
2662
  * What a text field takes. `local` is required: every keystroke writes that field of the local
@@ -2895,7 +2929,9 @@ type Rect = {
2895
2929
  };
2896
2930
  /**
2897
2931
  * The patches the scroll step writes with, one object each, filled in place: a frame builds none.
2898
- * Every number in them is a whole reference unit.
2932
+ * Every number in them is a whole reference unit. `Scrollable` has two: `scrollable` when only
2933
+ * `moving` changed, `scrollLock` when `locked` did, so a scroll never locked keeps a `Scrollable`
2934
+ * with no `locked` field.
2899
2935
  */
2900
2936
  type ScrollPatches = {
2901
2937
  scroll: {
@@ -2910,6 +2946,10 @@ type ScrollPatches = {
2910
2946
  scrollable: {
2911
2947
  moving: boolean;
2912
2948
  };
2949
+ scrollLock: {
2950
+ moving: boolean;
2951
+ locked: boolean;
2952
+ };
2913
2953
  x: {
2914
2954
  x: number;
2915
2955
  };
@@ -3152,7 +3192,9 @@ type ScrollWindow = {
3152
3192
  * new range re-aims takes it. `atProp` is true while the scroll follows that prop: it stands at it
3153
3193
  * or glides to it, so a new range puts it at the prop again. The first place and a glide to a new
3154
3194
  * prop set it; a press and `app.ui.scroll` clear it, and a fling or a snap glide only comes after a
3155
- * press. Plain values written in place: a frame allocates nothing.
3195
+ * press. `locked` is the `locked` prop of the last place or settle, true only for the value `true`
3196
+ * (F177): the finger neither moves nor stops the scroll, the program still does. Plain values
3197
+ * written in place: a frame allocates nothing.
3156
3198
  */
3157
3199
  type ScrollMotion = {
3158
3200
  axis: "x" | "y";
@@ -3169,6 +3211,7 @@ type ScrollMotion = {
3169
3211
  seen: number;
3170
3212
  aim: string | number | undefined;
3171
3213
  glideMs: number;
3214
+ locked: boolean;
3172
3215
  placed: boolean;
3173
3216
  atProp: boolean;
3174
3217
  };
@@ -1,5 +1,5 @@
1
1
  import { A as FilterSlotQuad, Br as Api$6, Hn as TypeTag, Hr as Events$3, O as FilterSlot, Un as Descriptor, Ur as Json, Z as Api$4, Zn as AnchorTarget, _r as ComponentType, _t as Point, ai as Events$5, at as PixiTexture, b as Events$4, er as Ease, fr as AnyComponent, hr as ComponentHandle, ir as NumericFields, it as PixiSprite, j as SyncApi, k as FilterSlotInputs, kr as Api$3, li as Api$1, lr as TrackOptions, mr as AnyComponentValue, nt as PixiGpuProgram, ot as PixiUniformGroup, pn as Api$2, rr as MotionHandle, rt as PixiModule, s as Events$1, sr as ReducedMotion, t as Api$5, tt as PixiFilter, ur as TrackSegment, vi as Events$2, yi as Require, yr as Entity, yt as FilterCache } from "./types-BUR4LWSa.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-MOasDgxY.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-CMFC7k5L.mjs";
3
3
  import { Log } from "@moku-labs/common/browser";
4
4
  import { PluginCtx } from "@moku-labs/core";
5
5
 
@@ -1,7 +1,7 @@
1
1
  import { $r as SnapshotOf, Fr as ClockSource, Hn as TypeTag, Jr as PlayerStateProvider, Lr as FakeClock, Nn as AnyFlow, Q as Config$2, Ur as Json, Vr as Config, Xr as SaveDoc, Yr as ProviderCall, a as Config$3, d as Manifest, gt as Orientation, hn as Config$1, jn as FeaturePlugin, n as AssetsIo, rt as PixiModule } from "./types-BUR4LWSa.mjs";
2
- import { o as AudioContextLike, s as Config$4 } from "./types-CFV-839_.mjs";
3
- import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-MOasDgxY.mjs";
4
- import { Et as PlatformProvider, It as audioPlugin, Nt as effectsPlugin, i as screen, t as createApp, wt as platformPlugin } from "./index-Cdl7-lTx.mjs";
2
+ import { o as AudioContextLike, s as Config$4 } from "./types-DIdCmTQx.mjs";
3
+ import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-CMFC7k5L.mjs";
4
+ import { Et as PlatformProvider, It as audioPlugin, Nt as effectsPlugin, i as screen, t as createApp, wt as platformPlugin } from "./index-Fth_AFjs.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
7
7
  //#region src/plugins/model/store/providers/memory.d.ts
@@ -1,9 +1,9 @@
1
1
  import { Br as Api$2, Pr as Api$4, Z as Api, kr as Api$1, ri as Api$3 } from "./types-BUR4LWSa.mjs";
2
- import { W as AnimApi, r as UiApi } from "./types-CFV-839_.mjs";
3
- import { R as InputApi } from "./types-MOasDgxY.mjs";
2
+ import { W as AnimApi, r as UiApi } from "./types-DIdCmTQx.mjs";
3
+ import { R as InputApi } from "./types-CMFC7k5L.mjs";
4
4
  import { r as Repro } from "./headless-C5kxf9oU.mjs";
5
5
  import { i as ControlApp, o as InputOf } from "./types-CATC2vK8.mjs";
6
- import { t as commands } from "./commands-DYw6k-2W.mjs";
6
+ import { t as commands } from "./commands-B16wtdhf.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-CcsSoV27.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-m6n16q7E.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.117",
3
+ "version": "0.15.118",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [