@moku-labs/game 0.15.157 → 0.15.159

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-Pm7gnYBy.mjs";
1
+ import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-DHWjH6p9.mjs";
2
2
 
3
3
  //#region src/app/page.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  import { Yr as PlayerStateProvider } from "../types-D1xdKk_t.mjs";
2
- import { jt as PlatformProvider } from "../index-DeD_X6U0.mjs";
3
- import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-Pm7gnYBy.mjs";
2
+ import { jt as PlatformProvider } from "../index-CVmEBBm5.mjs";
3
+ import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-DHWjH6p9.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 { Wr as Json } from "./types-D1xdKk_t.mjs";
2
- import { J as StringTable } from "./types-C8rx_r_g.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-Pm7gnYBy.mjs";
2
+ import { J as StringTable } from "./types-Bl9jyah_.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-DHWjH6p9.mjs";
4
4
  import { AnyPluginInstance } from "@moku-labs/core";
5
5
 
6
6
  //#region src/app/define.d.ts
package/dist/app.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { Xt as audioPlugin, i as screen, k as flattenFeatures, rt as platformPlugin, t as createApp, zt as effectsPlugin } from "./src-1C-FPOBo.mjs";
1
+ import { Xt as audioPlugin, i as screen, k as flattenFeatures, rt as platformPlugin, t as createApp, zt as effectsPlugin } from "./src-B-zAh2a7.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 { $r as Snapshot, Ar as Api$4, Fn as Bookmark, Fr as Api$1, O as DebugSwitches, Q as Api$3, Rn as FlowState, fi as FrameRate, gi as Time, ii as Api$2, mt as Captured, t as Api, ti as StoreApi, w as ScenesApi } from "./types-D1xdKk_t.mjs";
2
- import { Y as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-CkYOC1eb.mjs";
3
- import { R as InputApi } from "./types-C8rx_r_g.mjs";
2
+ import { Y as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-D-vnlN3n.mjs";
3
+ import { R as InputApi } from "./types-Bl9jyah_.mjs";
4
4
  import { t as HeadlessApp } from "./headless-DFkrIVO4.mjs";
5
5
  import { i as ControlApp, r as Command } from "./types-CM7Ng3EN.mjs";
6
6
 
@@ -157,8 +157,8 @@ declare const commands: Readonly<{
157
157
  readonly ui: Pick<UiApi, "fill">;
158
158
  }>;
159
159
  scroll: Command<{
160
- readonly to: "number";
161
160
  readonly key: "string";
161
+ readonly to: "number";
162
162
  }, boolean, HeadlessApp & {
163
163
  readonly log: import("@moku-labs/common/browser").LogApi;
164
164
  } & {
@@ -1,6 +1,6 @@
1
1
  import { t as HeadlessApp } from "./headless-DFkrIVO4.mjs";
2
2
  import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-CM7Ng3EN.mjs";
3
- import { t as commands } from "./commands-B6Kx-ScZ.mjs";
3
+ import { t as commands } from "./commands-ZNq6JvED.mjs";
4
4
  import { t as defineCommand } from "./define-3zxu6rIq.mjs";
5
5
 
6
6
  //#region src/plugins/flow/doors/dev.d.ts
@@ -1,6 +1,6 @@
1
1
  import { $ as Config$6, Ar as Api$6, B as OverlayValue, C as SceneSpec, Cn as TextStylesOf, Cr as Mut, Dr as SystemDefinition, Dt as FrameRing, En as defineFlow, Er as ResourceType, Et as FrameRecord, Fr as Api$1, Gn as Effect, Gr as Root, Hn as SceneIdOf, Hr as Config$5, I as HudPartValue, In as DefineNode, Jn as Hint, Jr as Patch, K as SpriteOptions, Kn as EffectOptions, Kr as State$5, Lr as Config$2, Lt as PassKind, Mn as FeaturePlugin, Nn as FeatureTree, Nr as State$9, Or as SystemFor, Q as Api$4, R as NineSliceValue, S as SceneDefinition, Sn as TextFormatsOf, T as State$7, Tr as QueryTerm, U as ShapeValue, Wn as Descriptor, Wr as Json, X as sprite, Y as TransformValue, Zn as Answered, _ as AnySceneProjection, _n as EmitterIdOf, a as Config$1, ai as Config$4, ar as NumericFields, bi as Require, c as LoadBundles, ci as State$4, cr as ReducedMotion, di as Config$8, er as DescriptionNode, f as ReadyBundles, gn as Config$3, gr as ComponentHandle, hi as ThermalReading, hn as BundlesOf, i as BundleSpec, ii as Api$3, jn as FeatureDescription, jr as Config$9, kr as TagType, l as LoadReason, lt as State$6, m as Tier, mi as State$8, mn as Api$2, ni as RngApi, o as DefineBundles, oi as Events, or as ProjectionMotion, p as State$1, pi as RateChange, q as SpriteValue, qn as GuideOptions, r as BundleMap, si as PauseReason, sr as ProjectionSpec, t as Api, ti as StoreApi, tr as Ease, u as LoadResult, ui as Api$5, v as Config$7, vi as Config$10, vn as GameTypes, vr as ComponentType, w as ScenesApi, wr as Narrowed, x as LayerMap, xn as State$3, y as DefineScene, yi as Events$1, yn as HudKeysOf, yr as ComponentValue, yt as ViewportSize, zr as State$2 } from "./types-D1xdKk_t.mjs";
2
- import { $ as MotionKeyframe, A as ShadowValue, B as DisplacementValue, C as FoldValue, D as PixelateValue, E as MirrorValue, F as EmitterDefinition, G as GlowValue, H as FilterComponent, I as EmitterValue, J as UniformDeclaration, K as NoiseValue, L as AlphaValue, M as VignetteValue, N as WaveValue, O as RevealLineValue, P as EmitterConfig, Q as FramesValue, R as BlurValue, S as FlashValue, T as GradientMapValue, Tt as OverlayApi, U as FilterSpec, W as FilterValueOf, X as AnimPlayerValue, Y as AnimApi, Z as Config$11, _ as State$12, a as AudioApi, at as SfxDescriptor, b as BloomValue, c as MusicDescriptor, ct as defineAnimation, d as State$11, et as State$10, f as VolumesFor, h as EffectsApi, it as HapticKind, j as ShineValue, k as RevealRoundValue, l as MusicOptions, m as Config$13, mt as play, n as State$13, ot as Step, q as OutlineValue, r as UiApi, s as Config$12, t as Config$14, tt as Target, w as GradeValue, x as DissolveValue, y as AuraValue, z as ColorMatrixValue } from "./types-CkYOC1eb.mjs";
3
- import { $ as ResolvedStyle, A as TextFormats, C as Point, E as TextBind, G as Message, H as Config$15, I as defineComponent, K as Part, L as Config$16, M as TextStyleInput, N as TextStyles, P as TextValue, Q as IsFlags, R as InputApi, T as TextApi, U as I18nApi, V as Argument, W as IntlKit, X as TypedTr, Y as TextKey, b as Config$17, et as Style, g as IntrinsicElementsFor, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, nt as TextTagStyle, q as State$14, rt as WhenFlags, s as PopupComponent, v as BindField, w as State$16, x as CountdownValue, y as BindOptions, z as State$15 } from "./types-C8rx_r_g.mjs";
2
+ import { $ as MotionKeyframe, A as ShadowValue, B as DisplacementValue, C as FoldValue, D as PixelateValue, E as MirrorValue, F as EmitterDefinition, G as GlowValue, H as FilterComponent, I as EmitterValue, J as UniformDeclaration, K as NoiseValue, L as AlphaValue, M as VignetteValue, N as WaveValue, O as RevealLineValue, P as EmitterConfig, Q as FramesValue, R as BlurValue, S as FlashValue, T as GradientMapValue, Tt as OverlayApi, U as FilterSpec, W as FilterValueOf, X as AnimPlayerValue, Y as AnimApi, Z as Config$11, _ as State$12, a as AudioApi, at as SfxDescriptor, b as BloomValue, c as MusicDescriptor, ct as defineAnimation, d as State$11, et as State$10, f as VolumesFor, h as EffectsApi, it as HapticKind, j as ShineValue, k as RevealRoundValue, l as MusicOptions, m as Config$13, mt as play, n as State$13, ot as Step, q as OutlineValue, r as UiApi, s as Config$12, t as Config$14, tt as Target, w as GradeValue, x as DissolveValue, y as AuraValue, z as ColorMatrixValue } from "./types-D-vnlN3n.mjs";
3
+ import { $ as ResolvedStyle, A as TextFormats, C as Point, E as TextBind, G as Message, H as Config$15, I as defineComponent, K as Part, L as Config$16, M as TextStyleInput, N as TextStyles, P as TextValue, Q as IsFlags, R as InputApi, T as TextApi, U as I18nApi, V as Argument, W as IntlKit, X as TypedTr, Y as TextKey, b as Config$17, et as Style, g as IntrinsicElementsFor, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, nt as TextTagStyle, q as State$14, rt as WhenFlags, s as PopupComponent, v as BindField, w as State$16, x as CountdownValue, y as BindOptions, z as State$15 } from "./types-Bl9jyah_.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 { $t as PerfSampleLine, An as type, At as MonitorSections, B as OverlayValue, Br as types_d_exports$3, Bt as PerfChange, Ct as FrameColumns, Dn as exit, Dt as FrameRing, E as types_d_exports$13, Et as FrameRecord, F as HudPart, Ft as PERF_LOG_VERSION, G as SpriteBlend, Gt as PerfEventLine, H as Shape, Ht as PerfCollectorLine, I as HudPartValue, It as PROBLEM_RULES, J as Transform, Jt as PerfHeaderLine, Kt as PerfEventName, L as NineSlice, Lt as PassKind, Mt as OverlayWhat, N as WhyEntry, Nt as PERF_CAUSES, On as slot, Ot as LongFrameEntry, P as Display, Pr as types_d_exports$17, Pt as PERF_GAP_BUCKETS, Qn as AnchorTarget, Qr as SaveUnreadableError, Qt as PerfMeasured, Rt as PassRecord, St as WhyLive, Tn as contribution, Tt as FrameReadout, Ut as PerfCounts, V as Parent, Vt as PerfChangeEntry, W as Sprite, Wt as PerfDisplay, X as sprite, Xt as PerfLongFrameLine, Yt as PerfLogLine, Z as AdaptiveScale, Zt as PerfMarkLine, _i as types_d_exports$15, an as ProblemEventDetail, cn as ShaderEventDetail, ct as PoolTrim, dn as CANVAS_RESTARTS, dt as types_d_exports$12, en as PerfSpikeLine, er as DescriptionNode, et as MonitorConfig, fn as CanvasRestart, ft as ShotsApi, g as types_d_exports$1, ht as MonitorCounts, in as PoolTrimDetail, jt as OverlayEventDetail, kn as to, kt as MONITOR_SECTIONS, li as types_d_exports$9, ln as ShaderWhat, lr as SceneSwitch, nn as PerfTelemetryLine, on as ProblemRule, pn as DEMAND_REASONS, pt as ShotsConfig, qr as types_d_exports$10, qt as PerfGapLine, rn as PerfThermalLine, sn as SHADER_WHATS, tn as PerfStartupLine, un as WarmDetail, wn as types_d_exports$6, wt as FrameReadResult, xt as RetakeWhy, z as Overlay, zt as PerfCause } from "./types-D1xdKk_t.mjs";
2
- import { A as ShadowValue, C as FoldValue, Ct as use, D as PixelateValue, E as MirrorValue, Et as types_d_exports$4, M as VignetteValue, N as WaveValue, O as RevealLineValue, S as FlashValue, St as tween, T as GradientMapValue, V as FilterArea, _t as sfx, b as BloomValue, bt as stagger, ct as defineAnimation, dt as haptic, ft as mark, gt as set, ht as sequence, i as types_d_exports$16, it as HapticKind, j as ShineValue, k as RevealRoundValue, lt as external, mt as play, p as types_d_exports$2, pt as parallel, rt as types_d_exports, st as HAPTIC_KINDS, ut as frames, v as types_d_exports$5, vt as spawn, w as GradeValue, wt as wait, x as DissolveValue, xt as stopSfx, y as AuraValue, yt as spawned } from "./types-CkYOC1eb.mjs";
3
- import { A as TextFormats, B as types_d_exports$8, D as TextFormat, F as types_d_exports$14, I as defineComponent, O as TextFormatAnswer, S as FormattedNumber, Z as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, m as popup, nt as TextTagStyle, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-C8rx_r_g.mjs";
4
- import { $ as Swipeable, A as music, At as BackResult, B as Frames, Bt as clockPlugin, C as Alpha, Ct as worldPlugin, D as Glow, Dt as scenesPlugin, E as Displacement, Et as textPlugin, F as messageDuration, Ft as inputPlugin, G as Draggable, Gt as Countdown, H as defineBundles, Ht as assetsPlugin, I as cubicBezier, It as i18nPlugin, J as Hovered, Jt as defineTextFormats, K as DropTarget, Kt as Text, L as defineMotion, Lt as flowPlugin, M as defineStyle, Mt as types_d_exports$11, N as tr, Nt as modelPlugin, O as Noise, Ot as rendererPlugin, P as messageArgument, Pt as lifecyclePlugin, Q as Pressed, R as AnimPlayer, Rt as effectsPlugin, S as defineFilter, St as flattenFeatures, T as ColorMatrix, Tt as timePlugin, U as load, Ut as animPlugin, V as defineScene, Vt as audioPlugin, W as ready, Wt as projection, X as PointerOver, Xt as label, Y as Pointer, Yt as defineTextStyles, Z as Pressable, _ as Fold, _t as defineEffect, a as defineEmitter, at as PASS_KINDS, b as Bloom, bt as schedule, c as Vignette, ct as Layer, d as RevealRound, dt as Tree, et as TapValue, f as RevealLine, ft as component, g as Grade, gt as tag, h as GradientMap, ht as system, i as screen, it as Traced, j as resolve, jt as PlatformProvider, k as Outline, kt as platformPlugin, l as Shine, lt as Now, m as Mirror, mt as resource, n as createPlugin, nt as Touchable, o as Emitter, ot as frameAt, p as Pixelate, pt as mut, q as Held, qt as bind, r as defineGame, rt as Traceable, s as Wave, st as Exiting, t as createApp, tt as Tappable, u as Shadow, ut as Order, v as Flash, vt as guide, w as Blur, wt as uiPlugin, x as Aura, xt as defineFeature, y as Dissolve, yt as hint, z as Animation, zt as debugPlugin } from "./index-DeD_X6U0.mjs";
2
+ import { A as ShadowValue, C as FoldValue, Ct as use, D as PixelateValue, E as MirrorValue, Et as types_d_exports$4, M as VignetteValue, N as WaveValue, O as RevealLineValue, S as FlashValue, St as tween, T as GradientMapValue, V as FilterArea, _t as sfx, b as BloomValue, bt as stagger, ct as defineAnimation, dt as haptic, ft as mark, gt as set, ht as sequence, i as types_d_exports$16, it as HapticKind, j as ShineValue, k as RevealRoundValue, lt as external, mt as play, p as types_d_exports$2, pt as parallel, rt as types_d_exports, st as HAPTIC_KINDS, ut as frames, v as types_d_exports$5, vt as spawn, w as GradeValue, wt as wait, x as DissolveValue, xt as stopSfx, y as AuraValue, yt as spawned } from "./types-D-vnlN3n.mjs";
3
+ import { A as TextFormats, B as types_d_exports$8, D as TextFormat, F as types_d_exports$14, I as defineComponent, O as TextFormatAnswer, S as FormattedNumber, Z as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, m as popup, nt as TextTagStyle, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-Bl9jyah_.mjs";
4
+ import { $ as Swipeable, A as music, At as BackResult, B as Frames, Bt as clockPlugin, C as Alpha, Ct as worldPlugin, D as Glow, Dt as scenesPlugin, E as Displacement, Et as textPlugin, F as messageDuration, Ft as inputPlugin, G as Draggable, Gt as Countdown, H as defineBundles, Ht as assetsPlugin, I as cubicBezier, It as i18nPlugin, J as Hovered, Jt as defineTextFormats, K as DropTarget, Kt as Text, L as defineMotion, Lt as flowPlugin, M as defineStyle, Mt as types_d_exports$11, N as tr, Nt as modelPlugin, O as Noise, Ot as rendererPlugin, P as messageArgument, Pt as lifecyclePlugin, Q as Pressed, R as AnimPlayer, Rt as effectsPlugin, S as defineFilter, St as flattenFeatures, T as ColorMatrix, Tt as timePlugin, U as load, Ut as animPlugin, V as defineScene, Vt as audioPlugin, W as ready, Wt as projection, X as PointerOver, Xt as label, Y as Pointer, Yt as defineTextStyles, Z as Pressable, _ as Fold, _t as defineEffect, a as defineEmitter, at as PASS_KINDS, b as Bloom, bt as schedule, c as Vignette, ct as Layer, d as RevealRound, dt as Tree, et as TapValue, f as RevealLine, ft as component, g as Grade, gt as tag, h as GradientMap, ht as system, i as screen, it as Traced, j as resolve, jt as PlatformProvider, k as Outline, kt as platformPlugin, l as Shine, lt as Now, m as Mirror, mt as resource, n as createPlugin, nt as Touchable, o as Emitter, ot as frameAt, p as Pixelate, pt as mut, q as Held, qt as bind, r as defineGame, rt as Traceable, s as Wave, st as Exiting, t as createApp, tt as Tappable, u as Shadow, ut as Order, v as Flash, vt as guide, w as Blur, wt as uiPlugin, x as Aura, xt as defineFeature, y as Dissolve, yt as hint, z as Animation, zt as debugPlugin } from "./index-CVmEBBm5.mjs";
5
5
  export { type AdaptiveScale, Alpha, type AnchorTarget, types_d_exports as Anim, AnimPlayer, Animation, types_d_exports$1 as Assets, types_d_exports$2 as Audio, Aura, type AuraValue, type BackResult, type BindOptions, Bloom, type BloomValue, Blur, Box, CANVAS_RESTARTS, type CanvasRestart, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, Dissolve, type DissolveValue, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, Flash, type FlashValue, types_d_exports$6 as Flow, Fold, type FoldValue, type FormattedNumber, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, Grade, type GradeValue, GradientMap, type GradientMapValue, HAPTIC_KINDS, type HapticKind, Held, Hovered, HudPart, type HudPartValue, types_d_exports$7 as I18n, types_d_exports$8 as Input, Layer, types_d_exports$9 as Lifecycle, LocalWrite, type LongFrameEntry, MONITOR_SECTIONS, Mirror, type MirrorValue, types_d_exports$10 as Model, type MonitorConfig, type MonitorCounts, type MonitorSections, NineSlice, Noise, Now, Order, Outline, Overlay, type OverlayEventDetail, type OverlayValue, type OverlayWhat, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, type PassKind, type PassRecord, type PerfCause, type PerfChange, type PerfChangeEntry, type PerfCollectorLine, type PerfCounts, type PerfDisplay, type PerfEventLine, type PerfEventName, type PerfGapLine, type PerfHeaderLine, type PerfLogLine, type PerfLongFrameLine, type PerfMarkLine, type PerfMeasured, type PerfSampleLine, type PerfSpikeLine, type PerfStartupLine, type PerfTelemetryLine, type PerfThermalLine, Pixelate, type PixelateValue, types_d_exports$11 as Platform, type PlatformProvider, Pointer, PointerOver, type PoolTrim, type PoolTrimDetail, Pressable, Pressed, type ProblemEventDetail, type ProblemRule, types_d_exports$12 as Renderer, type RetakeWhy, RevealLine, type RevealLineValue, RevealRound, type RevealRoundValue, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shadow, type ShadowValue, Shape, Shine, type ShineValue, type ShotsApi, type ShotsConfig, Sprite, type SpriteBlend, Swipeable, type TapValue, Tappable, Text, type TextFormat, type TextFormatAnswer, type TextFormatFunction, type TextFormats, type TextRunStyle, type TextTagStyle, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, Vignette, type VignetteValue, type WarmDetail, Wave, type WaveValue, type WhyEntry, type WhyLive, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as uiPlugin, $t as animPlugin, A as defineEmitter, At as Pressed, B as types_exports$12, Bt as Emitter, C as hint, Cn as SaveUnreadableError, Ct as Draggable, D as tr, Dt as Pointer, E as defineScene, En as timePlugin, Et as Hovered, F as types_exports$17, Ft as Traced, G as types_exports$7, Gt as Glow, H as types_exports$10, Ht as Blur, I as types_exports$16, It as i18nPlugin, J as types_exports$4, Jt as defineFilter, K as types_exports$6, Kt as Noise, L as types_exports$15, Lt as messageArgument, M as defineBundles, Mt as Tappable, N as load, Nt as Touchable, O as defineFeature, Ot as PointerOver, P as ready, Pt as Traceable, Q as types_exports, Qt as assetsPlugin, R as types_exports$14, Rt as messageDuration, S as guide, Sn as modelPlugin, St as inputPlugin, T as projection, Tn as lifecyclePlugin, Tt as Held, U as types_exports$9, Ut as ColorMatrix, V as types_exports$11, Vt as Alpha, W as types_exports$8, Wt as Displacement, X as types_exports$2, Xt as audioPlugin, Y as types_exports$3, Yt as debugPlugin, Z as types_exports$1, Zt as scenesPlugin, _ as Dissolve, _n as contribution, _t as stagger, a as Wave, an as frameAt, at as defineAnimation, b as cubicBezier, bn as to, bt as use, c as Shadow, cn as PERF_GAP_BUCKETS, ct as haptic, d as Pixelate, dn as SHADER_WHATS, dt as play, en as AnimPlayer, et as resolve, f as Mirror, fn as CANVAS_RESTARTS, ft as sequence, g as Flash, gt as spawned, h as Fold, hn as flowPlugin, ht as spawn, i as screen, in as PASS_KINDS, it as HAPTIC_KINDS, j as music, jt as Swipeable, k as flattenFeatures, kt as Pressable, l as RevealRound, ln as PERF_LOG_VERSION, lt as mark, m as Grade, mn as worldPlugin, mt as sfx, n as createPlugin, nn as Frames, nt as textPlugin, o as Vignette, on as MONITOR_SECTIONS, ot as external, p as GradientMap, pn as DEMAND_REASONS, pt as set, q as types_exports$5, qt as Outline, r as defineGame, rn as rendererPlugin, rt as platformPlugin, s as Shine, sn as PERF_CAUSES, st as frames, t as createApp, tn as Animation, tt as defineMotion, u as RevealLine, un as PROBLEM_RULES, ut as parallel, v as Bloom, vn as exit, vt as stopSfx, w as schedule, wn as clockPlugin, wt as DropTarget, x as defineEffect, xn as type, xt as wait, y as Aura, yn as slot, yt as tween, z as types_exports$13, zt as effectsPlugin } from "./src-1C-FPOBo.mjs";
1
+ import { $ as uiPlugin, $t as animPlugin, A as defineEmitter, At as Pressed, B as types_exports$12, Bt as Emitter, C as hint, Cn as SaveUnreadableError, Ct as Draggable, D as tr, Dt as Pointer, E as defineScene, En as timePlugin, Et as Hovered, F as types_exports$17, Ft as Traced, G as types_exports$7, Gt as Glow, H as types_exports$10, Ht as Blur, I as types_exports$16, It as i18nPlugin, J as types_exports$4, Jt as defineFilter, K as types_exports$6, Kt as Noise, L as types_exports$15, Lt as messageArgument, M as defineBundles, Mt as Tappable, N as load, Nt as Touchable, O as defineFeature, Ot as PointerOver, P as ready, Pt as Traceable, Q as types_exports, Qt as assetsPlugin, R as types_exports$14, Rt as messageDuration, S as guide, Sn as modelPlugin, St as inputPlugin, T as projection, Tn as lifecyclePlugin, Tt as Held, U as types_exports$9, Ut as ColorMatrix, V as types_exports$11, Vt as Alpha, W as types_exports$8, Wt as Displacement, X as types_exports$2, Xt as audioPlugin, Y as types_exports$3, Yt as debugPlugin, Z as types_exports$1, Zt as scenesPlugin, _ as Dissolve, _n as contribution, _t as stagger, a as Wave, an as frameAt, at as defineAnimation, b as cubicBezier, bn as to, bt as use, c as Shadow, cn as PERF_GAP_BUCKETS, ct as haptic, d as Pixelate, dn as SHADER_WHATS, dt as play, en as AnimPlayer, et as resolve, f as Mirror, fn as CANVAS_RESTARTS, ft as sequence, g as Flash, gt as spawned, h as Fold, hn as flowPlugin, ht as spawn, i as screen, in as PASS_KINDS, it as HAPTIC_KINDS, j as music, jt as Swipeable, k as flattenFeatures, kt as Pressable, l as RevealRound, ln as PERF_LOG_VERSION, lt as mark, m as Grade, mn as worldPlugin, mt as sfx, n as createPlugin, nn as Frames, nt as textPlugin, o as Vignette, on as MONITOR_SECTIONS, ot as external, p as GradientMap, pn as DEMAND_REASONS, pt as set, q as types_exports$5, qt as Outline, r as defineGame, rn as rendererPlugin, rt as platformPlugin, s as Shine, sn as PERF_CAUSES, st as frames, t as createApp, tn as Animation, tt as defineMotion, u as RevealLine, un as PROBLEM_RULES, ut as parallel, v as Bloom, vn as exit, vt as stopSfx, w as schedule, wn as clockPlugin, wt as DropTarget, x as defineEffect, xn as type, xt as wait, y as Aura, yn as slot, yt as tween, z as types_exports$13, zt as effectsPlugin } from "./src-B-zAh2a7.mjs";
2
2
  import { $ as Overlay, D as defineStyle, E as defineTokens, L as defineTextFormats, M as Countdown, N as Text, P as bind, Q as NineSlice, R as defineTextStyles, X as Display, Z as HudPart, _ as DebugTrigger, ct as Exiting, dt as Order, ft as Tree, gt as system, h as Box, ht as resource, it as Transform, lt as Layer, mt as mut, nt as Shape, pt as component, rt as Sprite, st as sprite, tt as Parent, ut as Now, vt as tag, w as popup, x as ScrollState, y as LocalWrite, z as label } from "./visual-x0TPowBE.mjs";
3
3
  import { t as defineComponent } from "./component-DGg5DqKK.mjs";
4
4
  export { Alpha, types_exports as Anim, AnimPlayer, Animation, types_exports$1 as Assets, types_exports$2 as Audio, Aura, Bloom, Blur, Box, CANVAS_RESTARTS, types_exports$3 as Clock, ColorMatrix, Countdown, DEMAND_REASONS, types_exports$4 as Debug, DebugTrigger, Displacement, Display, Dissolve, Draggable, DropTarget, types_exports$5 as Effects, Emitter, Exiting, Flash, types_exports$6 as Flow, Fold, Frames, Glow, Grade, GradientMap, HAPTIC_KINDS, Held, Hovered, HudPart, types_exports$7 as I18n, types_exports$8 as Input, Layer, types_exports$9 as Lifecycle, LocalWrite, MONITOR_SECTIONS, Mirror, types_exports$10 as Model, NineSlice, Noise, Now, Order, Outline, Overlay, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, Pixelate, types_exports$11 as Platform, Pointer, PointerOver, Pressable, Pressed, types_exports$12 as Renderer, RevealLine, RevealRound, SHADER_WHATS, SaveUnreadableError, types_exports$13 as Scenes, ScrollState, Shadow, Shape, Shine, Sprite, Swipeable, Tappable, Text, types_exports$14 as TextTypes, types_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_exports$16 as Ui, Vignette, Wave, types_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
@@ -1,6 +1,6 @@
1
1
  import { $r as Snapshot, Ar as Api$1, Ln as FlowGraph, Mr as Explained, Q as Api$2, Sr as FrameDiff, Vr as Api, _r as ComponentSchema, bn as Position, gt as RenderStats, h as Usage, t as Api$3, ut as Under, xr as EntitySnapshot, zn as JournalEntry } from "./types-D1xdKk_t.mjs";
2
- import { Y as AnimApi, a as AudioApi, g as EffectsStats, h as EffectsApi, nt as TimelinesSnapshot, r as UiApi, u as SoundEntry } from "./types-CkYOC1eb.mjs";
3
- import { c as UiNode } from "./types-C8rx_r_g.mjs";
2
+ import { Y as AnimApi, a as AudioApi, g as EffectsStats, h as EffectsApi, nt as TimelinesSnapshot, r as UiApi, u as SoundEntry } from "./types-D-vnlN3n.mjs";
3
+ import { c as UiNode } from "./types-Bl9jyah_.mjs";
4
4
  import { t as HeadlessApp } from "./headless-DFkrIVO4.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-CM7Ng3EN.mjs";
6
6
  import { n as defineSource } from "./define-3zxu6rIq.mjs";
@@ -122,8 +122,8 @@ declare const sources: Readonly<{
122
122
  readonly world: Api$1;
123
123
  }>;
124
124
  diff: Source<{
125
- readonly from: "number";
126
125
  readonly to: "number";
126
+ readonly from: "number";
127
127
  }, FrameDiff, HeadlessApp & {
128
128
  readonly world: Api$1;
129
129
  }>;
@@ -1,2 +1,2 @@
1
- import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-C2e-cjjN.mjs";
1
+ import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-CI8p6sVn.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-C2e-cjjN.mjs";
1
+ import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-CI8p6sVn.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-C8rx_r_g.mjs";
1
+ import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-Bl9jyah_.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. */
@@ -17657,6 +17657,19 @@ function wantsBackBuffer(features) {
17657
17657
  return false;
17658
17658
  }
17659
17659
  /**
17660
+ * The canvas format the platform composites without a conversion (`rgba8unorm` on Android, `bgra8unorm` on desktop).
17661
+ * A WebGPU canvas in another format makes Chromium hold a converted copy while frames are drawn: on the A26 about
17662
+ * 10 MB of GPU memory more for as long as every frame is drawn (F226). Unknown on a page without WebGPU.
17663
+ * A game with a backdrop filter keeps Pixi's bgra8unorm: Pixi copies the canvas into a pool texture of that format,
17664
+ * and a copy needs both in one format.
17665
+ *
17666
+ * @returns The preferred format, or `undefined` without `navigator.gpu`.
17667
+ */
17668
+ function preferredCanvasFormat() {
17669
+ const gpu = typeof globalThis.navigator === "undefined" ? void 0 : globalThis.navigator.gpu;
17670
+ return typeof gpu?.getPreferredCanvasFormat === "function" ? gpu.getPreferredCanvasFormat() : void 0;
17671
+ }
17672
+ /**
17660
17673
  * Loads Pixi once, creates the application and appends its canvas, at the target resolution of
17661
17674
  * now: a restore after a lost device comes back at it, override included. Pixi picks WebGL by
17662
17675
  * itself when WebGPU is missing, so only a device with neither ends up in the catch of the
@@ -17683,7 +17696,10 @@ async function createApplication(ctx, mount, deps) {
17683
17696
  state.resolution.cap = ctx.config.maxResolution;
17684
17697
  state.resolution.pending = void 0;
17685
17698
  const app = new pixi.Application();
17699
+ const backBuffer = wantsBackBuffer(ctx.deps.flow.features.all());
17700
+ const format = backBuffer ? void 0 : preferredCanvasFormat();
17686
17701
  const options = {
17702
+ ...format === void 0 ? {} : { format },
17687
17703
  preference: ctx.config.preference,
17688
17704
  background: ctx.config.background,
17689
17705
  antialias: ctx.config.antialias,
@@ -17691,7 +17707,7 @@ async function createApplication(ctx, mount, deps) {
17691
17707
  autoDensity: false,
17692
17708
  autoStart: false,
17693
17709
  sharedTicker: false,
17694
- useBackBuffer: wantsBackBuffer(ctx.deps.flow.features.all()),
17710
+ useBackBuffer: backBuffer,
17695
17711
  eventMode: "none",
17696
17712
  eventFeatures: {
17697
17713
  move: false,
@@ -68551,7 +68567,8 @@ function formatIfLoaded(ctx, message, locale) {
68551
68567
  }
68552
68568
  /**
68553
68569
  * Measures a text in every loaded locale, in the key its markup names for this frame, and reports
68554
- * the widest one that does not fit. A lazy locale the player has not picked yet cannot be
68570
+ * the widest one that does not fit. A wrapping style is measured at the element's width, so its
68571
+ * lines are compared by height. A lazy locale the player has not picked yet cannot be
68555
68572
  * measured, so it is skipped.
68556
68573
  *
68557
68574
  * @param ctx - Domain context of the ui plugin.
@@ -68567,7 +68584,7 @@ function textOverflow(ctx, element) {
68567
68584
  const parts = formatIfLoaded(ctx, content, locale);
68568
68585
  if (parts === void 0) continue;
68569
68586
  const joined = parts.map((part) => part.kind === "text" ? part.text : "").join("");
68570
- const size = ctx.deps.text.measure(joined, style);
68587
+ const size = ctx.deps.text.measure(joined, style, element.rect.w);
68571
68588
  if (size.width <= element.rect.w && size.height <= element.rect.h) continue;
68572
68589
  return {
68573
68590
  rule: "text-overflow",
@@ -1,6 +1,6 @@
1
1
  import { Bn as NodeTable, Ir as ClockSource, Jn as Hint, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Wn as Descriptor, Wr as Json, Yn as NodeFx } from "./types-D1xdKk_t.mjs";
2
- import { t as createApp } from "./index-DeD_X6U0.mjs";
3
- import { b as memory, x as saveOf, y as WithGameState } from "./types-Pm7gnYBy.mjs";
2
+ import { t as createApp } from "./index-CVmEBBm5.mjs";
3
+ import { b as memory, x as saveOf, y as WithGameState } from "./types-DHWjH6p9.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-DFkrIVO4.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
package/dist/testing.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { gn as refuseStart, k as flattenFeatures, t as createApp, vn as exit, xn as type } from "./src-1C-FPOBo.mjs";
1
+ import { gn as refuseStart, k as flattenFeatures, t as createApp, vn as exit, xn as type } from "./src-B-zAh2a7.mjs";
2
2
  import { n as saveOf, t as memory } from "./memory-DeD9wis6.mjs";
3
3
  import { n as fakeClock } from "./fake-hnJcJeYf.mjs";
4
4
  import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-yi2XmYWC.mjs";
@@ -2160,7 +2160,7 @@ type TextApi = {
2160
2160
  * is the same in a browser and in plain Bun. A block with pieces of other looks (`<span>`,
2161
2161
  * `boldStyle`) is as high as the line boxes of its lines, and the width counts `textIndent`.
2162
2162
  * Cached per style and resolved string, and per width for a `"box"` style. A call with a width is a layout's (`ui.layout` is the caller it is
2163
- * meant for): it marks the style as laid out, so a label of it with no box (one that fits its
2163
+ * meant for, and `ui.lint` measures at the laid-out width too): it marks the style as laid out, so a label of it with no box (one that fits its
2164
2164
  * row) no longer warns `wrap "box" outside layout` (F65).
2165
2165
  *
2166
2166
  * @param content - A plain string, or what `tr` returned.
@@ -1,5 +1,5 @@
1
1
  import { A as FilterSlotInputs, Ar as Api$3, M as SyncApi, Q as Api$4, Qn as AnchorTarget, Un as TypeTag, Ur as Events$3, Vr as Api$6, Wn as Descriptor, Wr as Json, ar as NumericFields, at as PixiSprite, b as Events$4, bi as Require, br as Entity, bt as FilterCache, cr as ReducedMotion, dr as TrackSegment, gr as ComponentHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, j as FilterSlotQuad, k as FilterSlot, mn as Api$2, nt as PixiFilter, oi as Events$5, ot as PixiTexture, pr as AnyComponent, rt as PixiGpuProgram, s as Events$1, st as PixiUniformGroup, t as Api$5, tr as Ease, ui as Api$1, ur as TrackOptions, vr as ComponentType, vt as Point, yi as Events$2 } from "./types-D1xdKk_t.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-C8rx_r_g.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-Bl9jyah_.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 { $ as Config$2, Hr as Config, Ir as ClockSource, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Un as TypeTag, Wr as Json, Xr as ProviderCall, Yr as PlayerStateProvider, Zr as SaveDoc, _t as Orientation, a as Config$3, d as Manifest, ei as SnapshotOf, gn as Config$1, it as PixiModule, n as AssetsIo } from "./types-D1xdKk_t.mjs";
2
- import { o as AudioContextLike, s as Config$4 } from "./types-CkYOC1eb.mjs";
3
- import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-C8rx_r_g.mjs";
4
- import { Rt as effectsPlugin, Vt as audioPlugin, i as screen, jt as PlatformProvider, kt as platformPlugin, t as createApp } from "./index-DeD_X6U0.mjs";
2
+ import { o as AudioContextLike, s as Config$4 } from "./types-D-vnlN3n.mjs";
3
+ import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-Bl9jyah_.mjs";
4
+ import { Rt as effectsPlugin, Vt as audioPlugin, i as screen, jt as PlatformProvider, kt as platformPlugin, t as createApp } from "./index-CVmEBBm5.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 { Ar as Api$1, Fr as Api$4, Q as Api, Vr as Api$2, ii as Api$3 } from "./types-D1xdKk_t.mjs";
2
- import { Y as AnimApi, r as UiApi } from "./types-CkYOC1eb.mjs";
3
- import { R as InputApi } from "./types-C8rx_r_g.mjs";
2
+ import { Y as AnimApi, r as UiApi } from "./types-D-vnlN3n.mjs";
3
+ import { R as InputApi } from "./types-Bl9jyah_.mjs";
4
4
  import { r as Repro } from "./headless-DFkrIVO4.mjs";
5
5
  import { i as ControlApp, o as InputOf } from "./types-CM7Ng3EN.mjs";
6
- import { t as commands } from "./commands-B6Kx-ScZ.mjs";
6
+ import { t as commands } from "./commands-ZNq6JvED.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-DuuabM9e.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-C6hcm5UJ.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.157",
3
+ "version": "0.15.159",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [