@moku-labs/game 0.15.116 → 0.15.117

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-UKjkRtLZ.mjs";
1
+ import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-DGBAOEkO.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-DXUwkf7I.mjs";
3
- import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-UKjkRtLZ.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";
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-3QDrFkdS.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-UKjkRtLZ.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";
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-DK7VPqPx.mjs";
1
+ import { Gt as audioPlugin, Pt as effectsPlugin, Q as platformPlugin, i as screen, t as createApp, w as flattenFeatures } from "./src-spqsx3lB.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-Di4cy3n_.mjs";
3
- import { R as InputApi } from "./types-3QDrFkdS.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";
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-CiHOKtJB.mjs";
3
+ import { t as commands } from "./commands-DYw6k-2W.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-Di4cy3n_.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-3QDrFkdS.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";
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-Di4cy3n_.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-3QDrFkdS.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-DXUwkf7I.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";
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-DK7VPqPx.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-spqsx3lB.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-Di4cy3n_.mjs";
3
- import { c as UiNode } from "./types-3QDrFkdS.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";
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-hro6J1Bi.mjs";
1
+ import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-B4jwb6Rd.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-hro6J1Bi.mjs";
1
+ import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-B4jwb6Rd.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-3QDrFkdS.mjs";
1
+ import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-MOasDgxY.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. */
@@ -64189,6 +64189,8 @@ function scrollMotionOf(node) {
64189
64189
  pointer: 0,
64190
64190
  start: 0,
64191
64191
  seen: 0,
64192
+ aim: void 0,
64193
+ glideMs: NaN,
64192
64194
  placed: false,
64193
64195
  atProp: false
64194
64196
  };
@@ -71584,7 +71586,8 @@ function createPopupHandler(ctx, state, jsx) {
71584
71586
  /**
71585
71587
  * @file ui/layout — scroll. A scroll container moves its content on its axis: with the finger,
71586
71588
  * then in a fling that slows down, or in a glide to a `snap` stop; it starts at its `offset`
71587
- * prop, glides when the prop changes, and stays inside the range every solve gives it, with hard
71589
+ * prop, glides there again when the prop or its `aim` changes (in `glideMs` when it gives one),
71590
+ * stands there at once with `jump`, and stays inside the range every solve gives it, with hard
71588
71591
  * edges. The content moves by one `Transform` write on the axis: no solve, no motion, the children
71589
71592
  * keep their rects. `Scroll` holds the offset the way the windowed range is cut with (0 and below),
71590
71593
  * `ScrollState` the way a game reads it (0 to `max`), `Scrollable` whether it moves, for `input`.
@@ -71676,7 +71679,8 @@ function askedOffsetOf(container) {
71676
71679
  return typeof offset === "number" && Number.isFinite(offset) ? offset : 0;
71677
71680
  }
71678
71681
  /**
71679
- * Whether the scroll's last render asks a new `offset` prop to stand there at once.
71682
+ * Whether the scroll's last render asks it to stand at its `offset` prop at once: a new prop or a
71683
+ * new `aim` stands there instead of gliding, and a glide to the prop that runs ends at its target.
71680
71684
  *
71681
71685
  * @param container - The scroll element.
71682
71686
  * @returns True when its `jump` prop is true.
@@ -71685,6 +71689,29 @@ function jumpsOf(container) {
71685
71689
  return container.node.props.jump === true;
71686
71690
  }
71687
71691
  /**
71692
+ * The `glideMs` prop of the scroll's last render: the length of a glide to the prop, `NaN` when
71693
+ * it is left out or is no finite number of 0 or more.
71694
+ *
71695
+ * @param container - The scroll element.
71696
+ * @returns The length in ms, or `NaN` for the default length.
71697
+ */
71698
+ function glideMsOf(container) {
71699
+ const glideMs = container.node.props.glideMs;
71700
+ return typeof glideMs === "number" && Number.isFinite(glideMs) && glideMs >= 0 ? glideMs : NaN;
71701
+ }
71702
+ /**
71703
+ * The `aim` prop of the scroll's last render: a string or a finite number is kept, any other
71704
+ * value is none.
71705
+ *
71706
+ * @param container - The scroll element.
71707
+ * @returns The aim, or `undefined`.
71708
+ */
71709
+ function aimOf(container) {
71710
+ const aim = container.node.props.aim;
71711
+ if (typeof aim === "string") return aim;
71712
+ return typeof aim === "number" && Number.isFinite(aim) ? aim : void 0;
71713
+ }
71714
+ /**
71688
71715
  * The `snap` prop of the scroll's last render.
71689
71716
  *
71690
71717
  * @param container - The scroll element.
@@ -71730,16 +71757,19 @@ function stop(motion) {
71730
71757
  motion.velocity = 0;
71731
71758
  }
71732
71759
  /**
71733
- * Starts a glide to an offset, kept inside the range, on the curve `1 − (1 − p)³` over
71734
- * `min(620, 260 + distance × 1.1)` ms. A scroll already there stops instead.
71760
+ * Starts a glide to an offset, kept inside the range, on the curve `1 − (1 − p)³` from where the
71761
+ * scroll stands, over `length` ms, or `min(620, 260 + distance × 1.1)` ms when `length` is `NaN`.
71762
+ * A scroll already there stops instead; a length of 0 stands it there at once.
71735
71763
  *
71736
71764
  * @param motion - Its motion.
71737
71765
  * @param target - Where it goes, from the start.
71766
+ * @param length - How long the glide lasts, in ms; `NaN` for the default length.
71738
71767
  */
71739
- function glideTo(motion, target) {
71768
+ function glideTo(motion, target, length) {
71740
71769
  const to = within(target, motion.max);
71741
71770
  const distance = Math.abs(to - motion.offset);
71742
- if (distance === 0) {
71771
+ if (distance === 0 || length === 0) {
71772
+ motion.offset = to;
71743
71773
  stop(motion);
71744
71774
  return;
71745
71775
  }
@@ -71748,7 +71778,7 @@ function glideTo(motion, target) {
71748
71778
  motion.from = motion.offset;
71749
71779
  motion.to = to;
71750
71780
  motion.elapsed = 0;
71751
- motion.duration = Math.min(GLIDE_MAX_MS, GLIDE_MS + distance * GLIDE_MS_PER_UNIT);
71781
+ motion.duration = Number.isNaN(length) ? Math.min(GLIDE_MAX_MS, GLIDE_MS + distance * GLIDE_MS_PER_UNIT) : length;
71752
71782
  }
71753
71783
  /**
71754
71784
  * Where a sample of the press starts in the ring: `back` samples before the newest one, 0 being
@@ -71830,7 +71860,7 @@ function letGo$1(state, container, motion, owned) {
71830
71860
  const velocity = owned ? releaseVelocity(state) : 0;
71831
71861
  const snap = snapOf(container);
71832
71862
  if (snap !== void 0) {
71833
- glideTo(motion, nearestStop(snap, motion.offset + velocity * PROJECT_MS, motion.max, motion.offset));
71863
+ glideTo(motion, nearestStop(snap, motion.offset + velocity * PROJECT_MS, motion.max, motion.offset), NaN);
71834
71864
  return;
71835
71865
  }
71836
71866
  if (Math.abs(velocity) < STOP_SPEED) {
@@ -72002,9 +72032,9 @@ function stepScroll(ctx, state, containers, lookup, time) {
72002
72032
  /**
72003
72033
  * Takes a new range: the offset keeps inside it at once, and so does a running glide. A scroll
72004
72034
  * that follows its `offset` prop goes on following it in the new range: standing, it stands at
72005
- * the prop at once; gliding to it, it glides on to it from where it is. So a prop the first range
72006
- * was too short for is reached once the content grows, a text measured again when its font
72007
- * arrives.
72035
+ * the prop at once; gliding to it, it starts the glide again from where it is, over the `glideMs`
72036
+ * of the last settle. So a prop the first range was too short for is reached once the content
72037
+ * grows, a text measured again when its font arrives.
72008
72038
  *
72009
72039
  * @param motion - The motion of the scroll.
72010
72040
  * @param max - The largest offset the solve gives it now.
@@ -72016,13 +72046,14 @@ function resize(motion, max) {
72016
72046
  motion.from = within(motion.from, max);
72017
72047
  motion.to = within(motion.to, max);
72018
72048
  if (!motion.atProp) return;
72019
- if (motion.mode === "glide") glideTo(motion, motion.seen);
72049
+ if (motion.mode === "glide") glideTo(motion, motion.seen, motion.glideMs);
72020
72050
  else motion.offset = within(motion.seen, max);
72021
72051
  }
72022
72052
  /**
72023
72053
  * Puts a scroll the solve just spawned at its `offset` prop, inside its range, and lets it follow
72024
- * the prop from there. Its spawn waits in the queue of the phase: these values replace the queued
72025
- * ones at the flush, before the first draw.
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.
72026
72057
  *
72027
72058
  * @param ctx - Domain context of the ui plugin.
72028
72059
  * @param container - The scroll element, live since this solve.
@@ -72036,6 +72067,8 @@ function place$1(ctx, container, content, motion) {
72036
72067
  motion.atProp = true;
72037
72068
  motion.max = maxOf(container, content, motion.axis);
72038
72069
  motion.seen = askedOffsetOf(container);
72070
+ motion.aim = aimOf(container);
72071
+ motion.glideMs = glideMsOf(container);
72039
72072
  motion.offset = within(motion.seen, motion.max);
72040
72073
  const offset = Math.round(motion.offset);
72041
72074
  const pose = motion.axis === "x" ? {
@@ -72058,27 +72091,29 @@ function place$1(ctx, container, content, motion) {
72058
72091
  ecs.add(content.entity, Transform(pose));
72059
72092
  }
72060
72093
  /**
72061
- * Takes a new `offset` prop: with `jump` the scroll stands at it at once and stops, without it
72062
- * glides there; either way it follows the prop from then on. A scroll the finger holds only
72063
- * remembers it.
72094
+ * Follows the `offset` prop again, after a new prop or a new `aim`: with `jump` the scroll stands
72095
+ * at it at once and stops, without it glides there from where it stands, over `glideMs`, even out
72096
+ * of a running glide, fling or snap glide; either way it follows the prop from then on. A scroll
72097
+ * the finger holds only remembers it.
72064
72098
  *
72065
- * @param motion - The motion of the scroll, its range already the one of this solve.
72099
+ * @param motion - The motion of the scroll, its range and `glideMs` already the ones of this solve.
72066
72100
  * @param container - The scroll element.
72067
- * @param asked - The new `offset` prop, from the start.
72101
+ * @param asked - The `offset` prop, from the start.
72068
72102
  */
72069
72103
  function followOffset(motion, container, asked) {
72070
72104
  if (motion.mode === "held") return;
72071
72105
  if (jumpsOf(container)) {
72072
72106
  motion.offset = within(asked, motion.max);
72073
72107
  stop(motion);
72074
- } else glideTo(motion, asked);
72108
+ } else glideTo(motion, asked, motion.glideMs);
72075
72109
  motion.atProp = true;
72076
72110
  }
72077
72111
  /**
72078
- * Settles a placed scroll on what the solve and the render of this frame gave it: a new range at
72079
- * once, then a glide to a new `offset` prop, which the scroll follows from then on. With `jump` it
72080
- * stands at the new prop at once instead, in the solve that gave the content its new rects, and a
72081
- * glide the new range re-aimed stops. A scroll the finger holds only remembers the prop.
72112
+ * Settles a placed scroll on what the solve and the render of this frame gave it: its `glideMs`,
72113
+ * a new range at once, then a glide to a new `offset` prop or to the same one under a new `aim`,
72114
+ * which the scroll follows from then on. With `jump` it stands at the prop at once instead, in the
72115
+ * 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.
72082
72117
  *
72083
72118
  * @param ctx - Domain context of the ui plugin.
72084
72119
  * @param state - The layout state, which keeps the patches.
@@ -72087,12 +72122,20 @@ function followOffset(motion, container, asked) {
72087
72122
  * @param motion - Its motion, placed.
72088
72123
  */
72089
72124
  function settle(ctx, state, container, content, motion) {
72125
+ motion.glideMs = glideMsOf(container);
72090
72126
  resize(motion, maxOf(container, content, motion.axis));
72091
72127
  const asked = askedOffsetOf(container);
72092
- if (asked !== motion.seen) {
72128
+ const aim = aimOf(container);
72129
+ const aimed = !Object.is(aim, motion.aim);
72130
+ if (aimed) motion.aim = aim;
72131
+ if (asked !== motion.seen || aimed) {
72093
72132
  motion.seen = asked;
72094
72133
  followOffset(motion, container, asked);
72095
72134
  }
72135
+ if (jumpsOf(container) && motion.atProp && motion.mode === "glide") {
72136
+ motion.offset = motion.to;
72137
+ stop(motion);
72138
+ }
72096
72139
  show(ctx, state, container, content, motion);
72097
72140
  }
72098
72141
  /**
@@ -72111,12 +72154,14 @@ function standAtTarget(ctx, state, container, content, motion) {
72111
72154
  }
72112
72155
  /**
72113
72156
  * Settles every scroll on what the solve and the render of this frame gave it. A scroll the solve
72114
- * just spawned takes its place at its `offset` prop. A placed one keeps inside a new range at
72115
- * once, a running glide's target too, and glides to a new `offset` prop; the same value on a
72116
- * re-render does nothing, and a scroll the finger holds only remembers it. A scroll nobody sees
72117
- * yet (`stands`: a root built aside or held warm) stands at its target at once instead of gliding,
72118
- * so no glide plays hidden or at its open. A scroll left moving wakes the loop the way
72119
- * `stepScroll` does: not at a time scale of 0, where it stands.
72157
+ * just spawned takes its place at its `offset` prop and records its `aim`. A placed one keeps
72158
+ * inside a new range at once, a running glide's target too, and glides to a new `offset` prop, or
72159
+ * to the same one under a new `aim`, in `glideMs` when it gives one; the same value and aim on a
72160
+ * 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.
72120
72165
  *
72121
72166
  * @param ctx - Domain context of the ui plugin.
72122
72167
  * @param state - The layout state, which keeps the patches.
@@ -72140,7 +72185,9 @@ function settleScroll(ctx, state, containers, lookup, time, stands) {
72140
72185
  }
72141
72186
  /**
72142
72187
  * Re-clamps a live windowed scroll to the content height of its new rows before its range is
72143
- * cut, so a list that shrank below the window moves up in the same frame.
72188
+ * cut, so a list that shrank below the window moves up in the same frame. A glide to the prop
72189
+ * that the new range re-aims starts again from where the list stands, over the `glideMs` of this
72190
+ * render.
72144
72191
  *
72145
72192
  * @param ctx - Domain context of the ui plugin.
72146
72193
  * @param state - The layout state, which keeps the patches.
@@ -72153,6 +72200,7 @@ function clampScroll(ctx, state, container, contentHeight, lookup) {
72153
72200
  const motion = container.scroll;
72154
72201
  const content = contentOf(container, lookup);
72155
72202
  if (motion === void 0 || !motion.placed || content === void 0) return 0;
72203
+ motion.glideMs = glideMsOf(container);
72156
72204
  resize(motion, extent(contentHeight, container.rect.h));
72157
72205
  show(ctx, state, container, content, motion);
72158
72206
  return 0 - Math.round(motion.offset);
@@ -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-DXUwkf7I.mjs";
3
- import { b as memory, x as saveOf, y as WithGameState } from "./types-UKjkRtLZ.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";
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-DK7VPqPx.mjs";
1
+ import { dn as refuseStart, gn as type, pn as exit, t as createApp, w as flattenFeatures } from "./src-spqsx3lB.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";
@@ -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-3QDrFkdS.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";
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-Di4cy3n_.mjs";
3
- import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-3QDrFkdS.mjs";
4
- import { Et as PlatformProvider, It as audioPlugin, Nt as effectsPlugin, i as screen, t as createApp, wt as platformPlugin } from "./index-DXUwkf7I.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";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
7
7
  //#region src/plugins/model/store/providers/memory.d.ts
@@ -2338,8 +2338,9 @@ type ScrollSnap = readonly number[] & Brand<"ScrollSnap">;
2338
2338
  /**
2339
2339
  * How far a scroll stands from its start, in reference units, kept inside 0 to `max`; 0 when
2340
2340
  * left out. The first frame draws it there. A later render with another value glides there on
2341
- * the curve and in the time of `snap`; the same value changes nothing, so a scroll the finger
2342
- * moved stays where it was left.
2341
+ * the curve `1 − (1 − p)³`, in `min(620, 260 + distance × 1.1)` ms or in `glideMs`. The same value
2342
+ * with the same `aim` changes nothing, so a scroll the finger moved stays where it was left; a new
2343
+ * `aim` glides it back to the value.
2343
2344
  *
2344
2345
  * @example
2345
2346
  * ```tsx
@@ -2352,11 +2353,12 @@ type ScrollSnap = readonly number[] & Brand<"ScrollSnap">;
2352
2353
  */
2353
2354
  type ScrollOffset = number & Brand<"ScrollOffset">;
2354
2355
  /**
2355
- * Whether a new `offset` prop of this render stands there at once instead of gliding: in the same
2356
- * solve as the content's new rects, so content that moved inside the track and an offset that moves
2357
- * by as much keep what the player sees in place. A running fling or glide stops and `ScrollState`
2358
- * says `moving: false`. A scroll the finger holds only remembers the prop; left out or false, a new
2359
- * prop glides. A `snap` release always glides.
2356
+ * Whether a new `offset` prop or a new `aim` of this render stands at the prop at once instead of
2357
+ * gliding: in the same solve as the content's new rects, so content that moved inside the track
2358
+ * and an offset that moves by as much keep what the player sees in place. A running fling or glide
2359
+ * stops and `ScrollState` says `moving: false`. A glide to the prop that runs ends at its target in
2360
+ * the render that turns `jump` on, with the same `offset`. A scroll the finger holds only remembers
2361
+ * the prop; left out or false, a new prop glides. A `snap` release always glides.
2360
2362
  *
2361
2363
  * @example
2362
2364
  * ```tsx
@@ -2366,9 +2368,53 @@ type ScrollOffset = number & Brand<"ScrollOffset">;
2366
2368
  * <row key="track" style={{ width: 778, height: 120 }} />
2367
2369
  * </scroll>;
2368
2370
  * // the frame of that render: ScrollState { offset: 82, max: 472, moving: false }
2371
+ *
2372
+ * // The strip glides 0 to 390 in 620 ms; 150 ms in, the player skips: the same offset with jump.
2373
+ * <scroll key="strip" axis="x" offset={390} jump style={{ width: 306, height: 120 }}>
2374
+ * <row key="track" style={{ width: 696, height: 120 }} />
2375
+ * </scroll>;
2376
+ * // the frame of that render: ScrollState { offset: 390, max: 390, moving: false }
2369
2377
  * ```
2370
2378
  */
2371
2379
  type ScrollJump = boolean & Brand<"ScrollJump">;
2380
+ /**
2381
+ * How long every glide to the `offset` prop lasts, in ms, on the curve `1 − (1 − p)³`: a new
2382
+ * `offset`, a new `aim`, and a glide to the prop that a new range re-aims, which starts again from
2383
+ * where the scroll stands. 0 stands at the prop at once, as `jump`. Left out, not a number, `NaN`,
2384
+ * `Infinity` or below 0: `min(620, 260 + distance × 1.1)`. A `snap` glide after a release keeps
2385
+ * that default. A new value alone leaves a running glide as it is; it applies from the next glide
2386
+ * to the prop.
2387
+ *
2388
+ * @example
2389
+ * ```tsx
2390
+ * // The strip stands on 318; the game moves it to the next order in exactly 150 ms.
2391
+ * <scroll key="strip" axis="x" offset={390} glideMs={150} style={{ width: 306, height: 120 }}>
2392
+ * <row key="track" style={{ width: 696, height: 120 }} />
2393
+ * </scroll>;
2394
+ * // 75 ms in: ScrollState { offset: 381, max: 390, moving: true }
2395
+ * // 150 ms in: ScrollState { offset: 390, max: 390, moving: false }
2396
+ * ```
2397
+ */
2398
+ type ScrollGlideMs = number & Brand<"ScrollGlideMs">;
2399
+ /**
2400
+ * What the `offset` prop aims at, a string or a finite number: a new value follows the prop again
2401
+ * from where the scroll stands, even when the offset is the same. A scroll the finger moved glides
2402
+ * back to its offset; a running glide, fling or snap glide starts again toward it, in `glideMs`;
2403
+ * with `jump` it stands there at once. Compared with `Object.is`; any other value (`NaN`,
2404
+ * `Infinity`, an object, a boolean) counts as left out, and leaving it out after a value is a
2405
+ * change too. The same value on a re-render does nothing. A scroll the finger holds only remembers
2406
+ * it: the release glides to a stop or flings, as without it.
2407
+ *
2408
+ * @example
2409
+ * ```tsx
2410
+ * // The player dragged the strip to 390. The game skips to the next order, which is also at 0.
2411
+ * <scroll key="strip" axis="x" offset={0} aim="order-7" style={{ width: 306, height: 120 }}>
2412
+ * <row key="track" style={{ width: 696, height: 120 }} />
2413
+ * </scroll>;
2414
+ * // the render before said aim="order-6": the strip glides 390 → 0 and stands on 0
2415
+ * ```
2416
+ */
2417
+ type ScrollAim = (string | number) & Brand<"ScrollAim">;
2372
2418
  /** How many rows a windowed scroll has. */
2373
2419
  type ScrollRows = number & Brand<"ScrollRows">;
2374
2420
  /** The height of every row, in reference units; above 0. */
@@ -2547,8 +2593,8 @@ type ScrollWindowForm = {
2547
2593
  /**
2548
2594
  * What a scroll container takes: children for a short list, or `rows`, `rowHeight` and `row` for
2549
2595
  * a long one, whose rows exist only in the window; the `axis` it moves on, the `snap` stops a
2550
- * release glides to, the `offset` it stands at, and whether a new `offset` stands there at once
2551
- * (`jump`).
2596
+ * 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`).
2552
2598
  *
2553
2599
  * @example
2554
2600
  * ```ts
@@ -2557,6 +2603,10 @@ type ScrollWindowForm = {
2557
2603
  * const strip: ScrollProps = { axis: "x", snap: [0, 318, 390], offset: 318 };
2558
2604
  * // A first tile of 82 u came in at the start of the track: the strip stands on 82 at once.
2559
2605
  * const shifted: ScrollProps = { axis: "x", offset: 82, jump: true };
2606
+ * // From 318, the next order: the strip glides to 390 in exactly 150 ms.
2607
+ * const quick: ScrollProps = { axis: "x", offset: 390, glideMs: 150 };
2608
+ * // The next order is at 0 too: a strip the player dragged to 390 glides back to 0.
2609
+ * const next: ScrollProps = { axis: "x", offset: 0, aim: "order-7" };
2560
2610
  * // 1000 orders of 120 u in a 1600 u list: rows 0 to 18 exist at offset 0.
2561
2611
  * const orders: ScrollProps = {
2562
2612
  * style: { height: 1600 },
@@ -2570,6 +2620,8 @@ type ScrollProps = CommonProps & {
2570
2620
  axis?: ScrollAxis;
2571
2621
  snap?: ScrollSnap;
2572
2622
  offset?: ScrollOffset;
2623
+ glideMs?: ScrollGlideMs;
2624
+ aim?: ScrollAim;
2573
2625
  jump?: ScrollJump;
2574
2626
  } & (ScrollChildForm | ScrollWindowForm);
2575
2627
  /**
@@ -3094,10 +3146,13 @@ type ScrollWindow = {
3094
3146
  * positive toward `max`. A glide runs from `from` to `to` over `duration` ms, `elapsed` of them
3095
3147
  * gone. `pointer` and `start` are the finger on the axis and the offset where the press began.
3096
3148
  * `seen` is the `offset` prop of the last render, 0 when it is left out; `placed` turns true when
3097
- * the first solve put the scroll at it. `atProp` is true while the scroll follows that prop: it
3098
- * stands at it or glides to it, so a new range puts it at the prop again. The first place and a
3099
- * glide to a new prop set it; a press and `app.ui.scroll` clear it, and a fling or a snap glide
3100
- * only comes after a press. Plain numbers written in place: a frame allocates nothing.
3149
+ * the first solve put the scroll at it. `aim` is the `aim` prop of the last render, a string or a
3150
+ * finite number, `undefined` for any other value; a new one follows the prop again. `glideMs` is
3151
+ * the `glideMs` prop of the last settle, `NaN` when it gives no length: a glide to the prop that a
3152
+ * new range re-aims takes it. `atProp` is true while the scroll follows that prop: it stands at it
3153
+ * or glides to it, so a new range puts it at the prop again. The first place and a glide to a new
3154
+ * 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.
3101
3156
  */
3102
3157
  type ScrollMotion = {
3103
3158
  axis: "x" | "y";
@@ -3112,6 +3167,8 @@ type ScrollMotion = {
3112
3167
  pointer: number;
3113
3168
  start: number;
3114
3169
  seen: number;
3170
+ aim: string | number | undefined;
3171
+ glideMs: number;
3115
3172
  placed: boolean;
3116
3173
  atProp: boolean;
3117
3174
  };
@@ -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-Di4cy3n_.mjs";
3
- import { R as InputApi } from "./types-3QDrFkdS.mjs";
2
+ import { W as AnimApi, r as UiApi } from "./types-CFV-839_.mjs";
3
+ import { R as InputApi } from "./types-MOasDgxY.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-CiHOKtJB.mjs";
6
+ import { t as commands } from "./commands-DYw6k-2W.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-BLd_9BvB.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-CcsSoV27.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.116",
3
+ "version": "0.15.117",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [