@moku-labs/game 0.15.61 → 0.15.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { m as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-4kZDzbGr.mjs";
1
+ import { m as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-B71pyqu9.mjs";
2
2
 
3
3
  //#region src/app/page.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { Fr as PlayerStateProvider } from "../types-7R8isoBg.mjs";
2
- import { ht as PlatformProvider } from "../index-Df4d-Oim.mjs";
3
- import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-4kZDzbGr.mjs";
1
+ import { Fr as PlayerStateProvider } from "../types-CNMfNFbW.mjs";
2
+ import { ht as PlatformProvider } from "../index-DRIKBqg7.mjs";
3
+ import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-B71pyqu9.mjs";
4
4
  import { Back, Haptics, KeepAwake, Lifecycle, Store } from "@moku-labs/system";
5
5
 
6
6
  //#region src/app/system.d.ts
package/dist/app.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { Ar as Json } from "./types-7R8isoBg.mjs";
2
- import { U as StringTable } from "./types-Coe9cZb-.mjs";
3
- import { a as GameHandle, c as MemoryProvider, d as SaveKind, f as Scenario, g as SystemName, i as GameDefinition, l as PageAgent, n as GameApp, o as GamePluginConfigs, p as ScreenSeams, r as GameConfig, s as HeadlessSeams, v as WithGameState } from "./types-4kZDzbGr.mjs";
1
+ import { Ar as Json } from "./types-CNMfNFbW.mjs";
2
+ import { U as StringTable } from "./types-f5zHtSKV.mjs";
3
+ import { a as GameHandle, c as MemoryProvider, d as SaveKind, f as Scenario, g as SystemName, i as GameDefinition, l as PageAgent, n as GameApp, o as GamePluginConfigs, p as ScreenSeams, r as GameConfig, s as HeadlessSeams, v as WithGameState } from "./types-B71pyqu9.mjs";
4
4
  import { AnyPluginInstance } from "@moku-labs/core";
5
5
 
6
6
  //#region src/app/define.d.ts
package/dist/app.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { Ft as audioPlugin, H as platformPlugin, i as screen, m as flattenFeatures, t as createApp, wt as effectsPlugin } from "./src-BT3RExYK.mjs";
1
+ import { Ft as audioPlugin, H as platformPlugin, i as screen, m as flattenFeatures, t as createApp, wt as effectsPlugin } from "./src-BLCYY1gz.mjs";
2
2
  import { t as memory } from "./memory-CWlqhS7l.mjs";
3
3
  import { n as fakeClock, r as isFakeClock } from "./fake-hnJcJeYf.mjs";
4
4
  //#region src/app/define.ts
package/dist/assets.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { d as Manifest } from "./types-7R8isoBg.mjs";
1
+ import { d as Manifest } from "./types-CNMfNFbW.mjs";
2
2
 
3
3
  //#region src/plugins/assets/scan/cli.d.ts
4
4
  /**
@@ -1,8 +1,8 @@
1
- import { D as DebugSwitches, Qr as FrameRate, Sn as Bookmark, Tn as FlowState, Vr as StoreApi, Wr as Api, Y as Api$1, gr as Api$2, ni as Time, ot as Captured, w as ScenesApi, zr as Snapshot } from "./types-7R8isoBg.mjs";
2
- import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-CXIyJrtZ.mjs";
3
- import { N as InputApi } from "./types-Coe9cZb-.mjs";
4
- import { t as HeadlessApp } from "./headless-DQpf6n1Q.mjs";
5
- import { n as Command, r as ControlApp } from "./types-CCRVRCAk.mjs";
1
+ import { D as DebugSwitches, Qr as FrameRate, Sn as Bookmark, Tn as FlowState, Vr as StoreApi, Wr as Api, Y as Api$1, gr as Api$2, ni as Time, ot as Captured, w as ScenesApi, zr as Snapshot } from "./types-CNMfNFbW.mjs";
2
+ import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-XoQyY8NV.mjs";
3
+ import { N as InputApi } from "./types-f5zHtSKV.mjs";
4
+ import { t as HeadlessApp } from "./headless-BL5fruJy.mjs";
5
+ import { n as Command, r as ControlApp } from "./types-Bc59p8EZ.mjs";
6
6
 
7
7
  //#region src/plugins/flow/doors/commands.d.ts
8
8
  /**
@@ -1,7 +1,7 @@
1
- import { t as HeadlessApp } from "./headless-DQpf6n1Q.mjs";
2
- import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-CCRVRCAk.mjs";
3
- import { t as commands } from "./commands-CuuOqz1U.mjs";
4
- import { t as defineCommand } from "./define-BUuFysVM.mjs";
1
+ import { t as HeadlessApp } from "./headless-BL5fruJy.mjs";
2
+ import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-Bc59p8EZ.mjs";
3
+ import { t as commands } from "./commands-BUcpkjkJ.mjs";
4
+ import { t as defineCommand } from "./define-Zcp-8PpW.mjs";
5
5
 
6
6
  //#region src/plugins/flow/doors/dev.d.ts
7
7
  /**
@@ -1,5 +1,5 @@
1
- import { t as HeadlessApp } from "./headless-DQpf6n1Q.mjs";
2
- import { c as Source, n as Command, o as InputSchema } from "./types-CCRVRCAk.mjs";
1
+ import { t as HeadlessApp } from "./headless-BL5fruJy.mjs";
2
+ import { c as Source, n as Command, o as InputSchema } from "./types-Bc59p8EZ.mjs";
3
3
 
4
4
  //#region src/plugins/flow/doors/define.d.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { Ar as Json, En as JournalEntry, Ln as Answer, On as RouteStep, Tn as FlowState, Ur as RngState, Xr as Api, nn as Api$1 } from "./types-7R8isoBg.mjs";
1
+ import { Ar as Json, En as JournalEntry, Ln as Answer, On as RouteStep, Tn as FlowState, Ur as RngState, Xr as Api, nn as Api$1 } from "./types-CNMfNFbW.mjs";
2
2
 
3
3
  //#region src/plugins/flow/headless.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { $r as RateChange, Ar as Json, B as ShapeValue, Bn as DescriptionNode, C as SceneSpec, Cn as DefineNode, Cr as Config$2, Dt as PassKind, F as NineSliceValue, Fn as Hint, Gn as NumericFields, Gr as Config$4, Hr as RngApi, Jn as ReducedMotion, Jr as State$4, K as TransformValue, Kn as ProjectionMotion, Kr as Events, L as OverlayValue, Ln as Answer, Mn as Effect, Mr as State$5, N as HudPartValue, Nn as EffectOptions, Or as Config$5, Pn as GuideOptions, Pr as Patch, S as SceneDefinition, T as State$7, Tr as State$2, U as SpriteOptions, Vn as Ease, Vr as StoreApi, W as SpriteValue, Wr as Api$3, X as Config$6, Xr as Api$5, Y as Api$4, Zr as Config$8, _ as AnySceneProjection, _r as Config$9, _t as FrameRing, a as Config$1, ai as Events$1, an as EmitterIdOf, ar as ComponentValue, bn as FeatureTree, c as LoadBundles, dr as QueryTerm, dt as ViewportSize, ei as State$8, f as ReadyBundles, fr as ResourceType, gr as Api$6, gt as FrameRecord, hr as TagType, i as BundleSpec, ii as Config$10, in as Config$3, ir as ComponentType, jn as Descriptor, jr as Root, kn as SceneIdOf, l as LoadReason, ln as State$3, lr as Mut, m as Tier, mr as SystemFor, nn as Api$2, nr as ComponentHandle, o as DefineBundles, oi as Require, on as GameTypes, p as State$1, pn as defineFlow, pr as SystemDefinition, q as sprite, qn as ProjectionSpec, qr as PauseReason, r as BundleMap, rn as BundlesOf, rt as State$6, sn as HudKeysOf, t as Api, ti as ThermalReading, u as LoadResult, un as TextStylesOf, ur as Narrowed, v as Config$7, vn as FeatureDescription, w as ScenesApi, x as LayerMap, xr as Api$1, y as DefineScene, yn as FeaturePlugin, yr as State$9 } from "./types-7R8isoBg.mjs";
2
- import { A as GlowValue, B as Target, C as BlurValue, D as FilterComponent, F as AnimPlayerValue, H as HapticKind, I as Config$11, K as defineAnimation, L as FramesValue, M as OutlineValue, N as UniformDeclaration, O as FilterSpec, P as AnimApi, Q as play, R as MotionKeyframe, S as AlphaValue, T as DisplacementValue, U as SfxDescriptor, W as Step, _ as State$12, a as AudioApi, b as EmitterDefinition, c as MusicDescriptor, d as State$11, f as VolumesFor, h as EffectsApi, j as NoiseValue, k as FilterValueOf, l as MusicOptions, lt as OverlayApi, m as Config$13, n as State$13, r as UiApi, s as Config$12, t as Config$14, w as ColorMatrixValue, x as EmitterValue, y as EmitterConfig, z as State$10 } from "./types-CXIyJrtZ.mjs";
3
- import { B as Message, C as State$16, D as TextStyleInput, G as TypedTr, H as State$14, I as Argument, J as ResolvedStyle, L as Config$15, M as Config$16, N as InputApi, O as TextStyles, P as State$15, R as I18nApi, S as Point, T as TextBind, V as Part, W as TextKey, Y as Style, Z as WhenFlags, b as Config$17, g as IntrinsicElementsFor, h as defineTokens, j as defineComponent, k as TextValue, q as IsFlags, s as PopupComponent, v as BindField, w as TextApi, x as CountdownValue, y as BindOptions, z as IntlKit } from "./types-Coe9cZb-.mjs";
1
+ import { $r as RateChange, Ar as Json, B as ShapeValue, Bn as DescriptionNode, C as SceneSpec, Cn as DefineNode, Cr as Config$2, Dt as PassKind, F as NineSliceValue, Fn as Hint, Gn as NumericFields, Gr as Config$4, Hr as RngApi, Jn as ReducedMotion, Jr as State$4, K as TransformValue, Kn as ProjectionMotion, Kr as Events, L as OverlayValue, Ln as Answer, Mn as Effect, Mr as State$5, N as HudPartValue, Nn as EffectOptions, Or as Config$5, Pn as GuideOptions, Pr as Patch, S as SceneDefinition, T as State$7, Tr as State$2, U as SpriteOptions, Vn as Ease, Vr as StoreApi, W as SpriteValue, Wr as Api$3, X as Config$6, Xr as Api$5, Y as Api$4, Zr as Config$8, _ as AnySceneProjection, _r as Config$9, _t as FrameRing, a as Config$1, ai as Events$1, an as EmitterIdOf, ar as ComponentValue, bn as FeatureTree, c as LoadBundles, dr as QueryTerm, dt as ViewportSize, ei as State$8, f as ReadyBundles, fr as ResourceType, gr as Api$6, gt as FrameRecord, hr as TagType, i as BundleSpec, ii as Config$10, in as Config$3, ir as ComponentType, jn as Descriptor, jr as Root, kn as SceneIdOf, l as LoadReason, ln as State$3, lr as Mut, m as Tier, mr as SystemFor, nn as Api$2, nr as ComponentHandle, o as DefineBundles, oi as Require, on as GameTypes, p as State$1, pn as defineFlow, pr as SystemDefinition, q as sprite, qn as ProjectionSpec, qr as PauseReason, r as BundleMap, rn as BundlesOf, rt as State$6, sn as HudKeysOf, t as Api, ti as ThermalReading, u as LoadResult, un as TextStylesOf, ur as Narrowed, v as Config$7, vn as FeatureDescription, w as ScenesApi, x as LayerMap, xr as Api$1, y as DefineScene, yn as FeaturePlugin, yr as State$9 } from "./types-CNMfNFbW.mjs";
2
+ import { A as GlowValue, B as Target, C as BlurValue, D as FilterComponent, F as AnimPlayerValue, H as HapticKind, I as Config$11, K as defineAnimation, L as FramesValue, M as OutlineValue, N as UniformDeclaration, O as FilterSpec, P as AnimApi, Q as play, R as MotionKeyframe, S as AlphaValue, T as DisplacementValue, U as SfxDescriptor, W as Step, _ as State$12, a as AudioApi, b as EmitterDefinition, c as MusicDescriptor, d as State$11, f as VolumesFor, h as EffectsApi, j as NoiseValue, k as FilterValueOf, l as MusicOptions, lt as OverlayApi, m as Config$13, n as State$13, r as UiApi, s as Config$12, t as Config$14, w as ColorMatrixValue, x as EmitterValue, y as EmitterConfig, z as State$10 } from "./types-XoQyY8NV.mjs";
3
+ import { B as Message, C as State$16, D as TextStyleInput, G as TypedTr, H as State$14, I as Argument, J as ResolvedStyle, L as Config$15, M as Config$16, N as InputApi, O as TextStyles, P as State$15, R as I18nApi, S as Point, T as TextBind, V as Part, W as TextKey, Y as Style, Z as WhenFlags, b as Config$17, g as IntrinsicElementsFor, h as defineTokens, j as defineComponent, k as TextValue, q as IsFlags, s as PopupComponent, v as BindField, w as TextApi, x as CountdownValue, y as BindOptions, z as IntlKit } from "./types-f5zHtSKV.mjs";
4
4
  import { Log } from "@moku-labs/common/browser";
5
5
  import { PluginCtx } from "@moku-labs/core";
6
6
 
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { $t as ShaderWhat, At as PerfChange, Bn as DescriptionNode, Bt as PerfLongFrameLine, Ct as PERF_CAUSES, Dt as PassKind, E as types_d_exports$13, Er as types_d_exports$3, Et as PROBLEM_RULES, Ft as PerfEventLine, G as Transform, Gt as PerfStartupLine, H as SpriteBlend, Ht as PerfMeasured, I as Overlay, It as PerfEventName, J as AdaptiveScale, Jt as PoolTrimDetail, Kt as PerfTelemetryLine, L as OverlayValue, Lt as PerfGapLine, M as HudPart, Mt as PerfCollectorLine, N as HudPartValue, Nr as types_d_exports$10, Nt as PerfCounts, Ot as PassRecord, P as NineSlice, Pt as PerfDisplay, Qt as ShaderEventDetail, R as Parent, Rn as AnchorTarget, Rr as SaveUnreadableError, Rt as PerfHeaderLine, St as OverlayWhat, Tt as PERF_LOG_VERSION, Ut as PerfSampleLine, V as Sprite, Vt as PerfMarkLine, Wt as PerfSpikeLine, Xt as ProblemRule, Yn as SceneSwitch, Yr as types_d_exports$9, Yt as ProblemEventDetail, Z as MonitorConfig, Zt as SHADER_WHATS, _n as type, _t as FrameRing, at as types_d_exports$12, br as types_d_exports$17, bt as MonitorSections, dn as types_d_exports$6, en as WarmDetail, fn as contribution, g as types_d_exports$1, gn as to, gt as FrameRecord, hn as slot, ht as FrameReadout, j as Display, jt as PerfChangeEntry, kt as PerfCause, mn as exit, mt as FrameReadResult, nt as PoolTrim, pt as FrameColumns, q as sprite, qt as PerfThermalLine, ri as types_d_exports$15, st as MonitorCounts, tn as DEMAND_REASONS, vt as LongFrameEntry, wt as PERF_GAP_BUCKETS, xt as OverlayEventDetail, yt as MONITOR_SECTIONS, z as Shape, zt as PerfLogLine } from "./types-7R8isoBg.mjs";
2
- import { $ as sequence, E as FilterArea, G as HAPTIC_KINDS, H as HapticKind, J as frames, K as defineAnimation, Q as play, V as types_d_exports, X as mark, Y as haptic, Z as parallel, at as stopSfx, ct as wait, et as set, i as types_d_exports$16, it as stagger, nt as spawn, ot as tween, p as types_d_exports$2, q as external, rt as spawned, st as use, tt as sfx, ut as types_d_exports$4, v as types_d_exports$5 } from "./types-CXIyJrtZ.mjs";
3
- import { A as types_d_exports$14, E as TextFormat, F as types_d_exports$8, K as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as defineComponent, m as popup, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-Coe9cZb-.mjs";
4
- import { $ as system, A as Draggable, At as Text, B as Touchable, C as AnimPlayer, Ct as debugPlugin, D as defineBundles, Dt as animPlugin, E as defineScene, Et as assetsPlugin, F as PointerOver, G as Exiting, H as Traced, I as Pressable, J as Order, K as Layer, L as Pressed, M as Held, Mt as defineTextStyles, N as Hovered, Nt as label, O as load, Ot as projection, P as Pointer, Q as resource, R as Swipeable, S as defineMotion, St as effectsPlugin, T as Frames, Tt as audioPlugin, U as PASS_KINDS, V as Traceable, W as frameAt, X as component, Y as Tree, Z as mut, _ as defineStyle, _t as modelPlugin, a as defineEmitter, at as defineFeature, b as messageDuration, bt as i18nPlugin, c as Alpha, ct as uiPlugin, d as Displacement, dt as scenesPlugin, et as tag, f as Glow, ft as rendererPlugin, g as resolve, gt as types_d_exports$11, h as music, ht as PlatformProvider, i as screen, it as schedule, j as DropTarget, jt as bind, k as ready, kt as Countdown, l as Blur, lt as timePlugin, m as Outline, mt as BackResult, n as createPlugin, nt as guide, o as Emitter, ot as flattenFeatures, p as Noise, pt as platformPlugin, q as Now, r as defineGame, rt as hint, s as defineFilter, st as worldPlugin, t as createApp, tt as defineEffect, u as ColorMatrix, ut as textPlugin, v as tr, vt as lifecyclePlugin, w as Animation, wt as clockPlugin, x as cubicBezier, xt as flowPlugin, y as messageArgument, yt as inputPlugin, z as Tappable } from "./index-Df4d-Oim.mjs";
1
+ import { $t as ShaderWhat, At as PerfChange, Bn as DescriptionNode, Bt as PerfLongFrameLine, Ct as PERF_CAUSES, Dt as PassKind, E as types_d_exports$13, Er as types_d_exports$3, Et as PROBLEM_RULES, Ft as PerfEventLine, G as Transform, Gt as PerfStartupLine, H as SpriteBlend, Ht as PerfMeasured, I as Overlay, It as PerfEventName, J as AdaptiveScale, Jt as PoolTrimDetail, Kt as PerfTelemetryLine, L as OverlayValue, Lt as PerfGapLine, M as HudPart, Mt as PerfCollectorLine, N as HudPartValue, Nr as types_d_exports$10, Nt as PerfCounts, Ot as PassRecord, P as NineSlice, Pt as PerfDisplay, Qt as ShaderEventDetail, R as Parent, Rn as AnchorTarget, Rr as SaveUnreadableError, Rt as PerfHeaderLine, St as OverlayWhat, Tt as PERF_LOG_VERSION, Ut as PerfSampleLine, V as Sprite, Vt as PerfMarkLine, Wt as PerfSpikeLine, Xt as ProblemRule, Yn as SceneSwitch, Yr as types_d_exports$9, Yt as ProblemEventDetail, Z as MonitorConfig, Zt as SHADER_WHATS, _n as type, _t as FrameRing, at as types_d_exports$12, br as types_d_exports$17, bt as MonitorSections, dn as types_d_exports$6, en as WarmDetail, fn as contribution, g as types_d_exports$1, gn as to, gt as FrameRecord, hn as slot, ht as FrameReadout, j as Display, jt as PerfChangeEntry, kt as PerfCause, mn as exit, mt as FrameReadResult, nt as PoolTrim, pt as FrameColumns, q as sprite, qt as PerfThermalLine, ri as types_d_exports$15, st as MonitorCounts, tn as DEMAND_REASONS, vt as LongFrameEntry, wt as PERF_GAP_BUCKETS, xt as OverlayEventDetail, yt as MONITOR_SECTIONS, z as Shape, zt as PerfLogLine } from "./types-CNMfNFbW.mjs";
2
+ import { $ as sequence, E as FilterArea, G as HAPTIC_KINDS, H as HapticKind, J as frames, K as defineAnimation, Q as play, V as types_d_exports, X as mark, Y as haptic, Z as parallel, at as stopSfx, ct as wait, et as set, i as types_d_exports$16, it as stagger, nt as spawn, ot as tween, p as types_d_exports$2, q as external, rt as spawned, st as use, tt as sfx, ut as types_d_exports$4, v as types_d_exports$5 } from "./types-XoQyY8NV.mjs";
3
+ import { A as types_d_exports$14, E as TextFormat, F as types_d_exports$8, K as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as defineComponent, m as popup, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-f5zHtSKV.mjs";
4
+ import { $ as system, A as Draggable, At as Text, B as Touchable, C as AnimPlayer, Ct as debugPlugin, D as defineBundles, Dt as animPlugin, E as defineScene, Et as assetsPlugin, F as PointerOver, G as Exiting, H as Traced, I as Pressable, J as Order, K as Layer, L as Pressed, M as Held, Mt as defineTextStyles, N as Hovered, Nt as label, O as load, Ot as projection, P as Pointer, Q as resource, R as Swipeable, S as defineMotion, St as effectsPlugin, T as Frames, Tt as audioPlugin, U as PASS_KINDS, V as Traceable, W as frameAt, X as component, Y as Tree, Z as mut, _ as defineStyle, _t as modelPlugin, a as defineEmitter, at as defineFeature, b as messageDuration, bt as i18nPlugin, c as Alpha, ct as uiPlugin, d as Displacement, dt as scenesPlugin, et as tag, f as Glow, ft as rendererPlugin, g as resolve, gt as types_d_exports$11, h as music, ht as PlatformProvider, i as screen, it as schedule, j as DropTarget, jt as bind, k as ready, kt as Countdown, l as Blur, lt as timePlugin, m as Outline, mt as BackResult, n as createPlugin, nt as guide, o as Emitter, ot as flattenFeatures, p as Noise, pt as platformPlugin, q as Now, r as defineGame, rt as hint, s as defineFilter, st as worldPlugin, t as createApp, tt as defineEffect, u as ColorMatrix, ut as textPlugin, v as tr, vt as lifecyclePlugin, w as Animation, wt as clockPlugin, x as cubicBezier, xt as flowPlugin, y as messageArgument, yt as inputPlugin, z as Tappable } from "./index-DRIKBqg7.mjs";
5
5
  export { type AdaptiveScale, Alpha, type AnchorTarget, types_d_exports as Anim, AnimPlayer, Animation, types_d_exports$1 as Assets, types_d_exports$2 as Audio, type BackResult, type BindOptions, Blur, Box, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, types_d_exports$6 as Flow, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, HAPTIC_KINDS, type HapticKind, Held, Hovered, HudPart, type HudPartValue, types_d_exports$7 as I18n, types_d_exports$8 as Input, Layer, types_d_exports$9 as Lifecycle, LocalWrite, type LongFrameEntry, MONITOR_SECTIONS, types_d_exports$10 as Model, type MonitorConfig, type MonitorCounts, type MonitorSections, NineSlice, Noise, Now, Order, Outline, Overlay, type OverlayEventDetail, type OverlayValue, type OverlayWhat, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, type PassKind, type PassRecord, type PerfCause, type PerfChange, type PerfChangeEntry, type PerfCollectorLine, type PerfCounts, type PerfDisplay, type PerfEventLine, type PerfEventName, type PerfGapLine, type PerfHeaderLine, type PerfLogLine, type PerfLongFrameLine, type PerfMarkLine, type PerfMeasured, type PerfSampleLine, type PerfSpikeLine, type PerfStartupLine, type PerfTelemetryLine, type PerfThermalLine, types_d_exports$11 as Platform, type PlatformProvider, Pointer, PointerOver, type PoolTrim, type PoolTrimDetail, Pressable, Pressed, type ProblemEventDetail, type ProblemRule, types_d_exports$12 as Renderer, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shape, Sprite, type SpriteBlend, Swipeable, Tappable, Text, type TextFormat, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, type WarmDetail, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as sfx, $t as flowPlugin, A as types_exports$7, At as Glow, B as defineMotion, Bt as Animation, C as types_exports$14, Ct as messageDuration, D as types_exports$10, Dt as Blur, E as types_exports$11, Et as Alpha, F as types_exports$2, Ft as audioPlugin, G as external, Gt as MONITOR_SECTIONS, H as platformPlugin, Ht as rendererPlugin, I as types_exports$1, It as scenesPlugin, J as mark, Jt as PERF_LOG_VERSION, K as frames, Kt as PERF_CAUSES, L as types_exports, Lt as assetsPlugin, M as types_exports$5, Mt as Outline, N as types_exports$4, Nt as defineFilter, O as types_exports$9, Ot as ColorMatrix, P as types_exports$3, Pt as debugPlugin, Q as set, Qt as worldPlugin, R as uiPlugin, Rt as animPlugin, S as types_exports$15, St as messageArgument, T as types_exports$12, Tt as Emitter, U as HAPTIC_KINDS, Ut as PASS_KINDS, V as textPlugin, Vt as Frames, W as defineAnimation, Wt as frameAt, X as play, Xt as SHADER_WHATS, Y as parallel, Yt as PROBLEM_RULES, Z as sequence, Zt as DEMAND_REASONS, _ as defineBundles, _t as Tappable, a as cubicBezier, an as type, at as use, b as types_exports$17, bt as Traced, c as hint, cn as lifecyclePlugin, ct as Draggable, d as defineScene, dt as Hovered, et as spawn, f as tr, ft as Pointer, g as music, gt as Swipeable, h as defineEmitter, ht as Pressed, i as screen, in as to, it as tween, j as types_exports$6, jt as Noise, k as types_exports$8, kt as Displacement, l as schedule, ln as timePlugin, lt as DropTarget, m as flattenFeatures, mt as Pressable, n as createPlugin, nn as exit, nt as stagger, o as defineEffect, on as modelPlugin, ot as wait, p as defineFeature, pt as PointerOver, q as haptic, qt as PERF_GAP_BUCKETS, r as defineGame, rn as slot, rt as stopSfx, s as guide, sn as SaveUnreadableError, st as inputPlugin, t as createApp, tn as contribution, tt as spawned, u as projection, un as clockPlugin, ut as Held, v as load, vt as Touchable, w as types_exports$13, wt as effectsPlugin, x as types_exports$16, xt as i18nPlugin, y as ready, yt as Traceable, z as resolve, zt as AnimPlayer } from "./src-BT3RExYK.mjs";
1
+ import { $ as sfx, $t as flowPlugin, A as types_exports$7, At as Glow, B as defineMotion, Bt as Animation, C as types_exports$14, Ct as messageDuration, D as types_exports$10, Dt as Blur, E as types_exports$11, Et as Alpha, F as types_exports$2, Ft as audioPlugin, G as external, Gt as MONITOR_SECTIONS, H as platformPlugin, Ht as rendererPlugin, I as types_exports$1, It as scenesPlugin, J as mark, Jt as PERF_LOG_VERSION, K as frames, Kt as PERF_CAUSES, L as types_exports, Lt as assetsPlugin, M as types_exports$5, Mt as Outline, N as types_exports$4, Nt as defineFilter, O as types_exports$9, Ot as ColorMatrix, P as types_exports$3, Pt as debugPlugin, Q as set, Qt as worldPlugin, R as uiPlugin, Rt as animPlugin, S as types_exports$15, St as messageArgument, T as types_exports$12, Tt as Emitter, U as HAPTIC_KINDS, Ut as PASS_KINDS, V as textPlugin, Vt as Frames, W as defineAnimation, Wt as frameAt, X as play, Xt as SHADER_WHATS, Y as parallel, Yt as PROBLEM_RULES, Z as sequence, Zt as DEMAND_REASONS, _ as defineBundles, _t as Tappable, a as cubicBezier, an as type, at as use, b as types_exports$17, bt as Traced, c as hint, cn as lifecyclePlugin, ct as Draggable, d as defineScene, dt as Hovered, et as spawn, f as tr, ft as Pointer, g as music, gt as Swipeable, h as defineEmitter, ht as Pressed, i as screen, in as to, it as tween, j as types_exports$6, jt as Noise, k as types_exports$8, kt as Displacement, l as schedule, ln as timePlugin, lt as DropTarget, m as flattenFeatures, mt as Pressable, n as createPlugin, nn as exit, nt as stagger, o as defineEffect, on as modelPlugin, ot as wait, p as defineFeature, pt as PointerOver, q as haptic, qt as PERF_GAP_BUCKETS, r as defineGame, rn as slot, rt as stopSfx, s as guide, sn as SaveUnreadableError, st as inputPlugin, t as createApp, tn as contribution, tt as spawned, u as projection, un as clockPlugin, ut as Held, v as load, vt as Touchable, w as types_exports$13, wt as effectsPlugin, x as types_exports$16, xt as i18nPlugin, y as ready, yt as Traceable, z as resolve, zt as AnimPlayer } from "./src-BLCYY1gz.mjs";
2
2
  import { $ as Layer, B as Display, C as defineStyle, E as bind, G as Parent, H as NineSlice, J as Transform, K as Shape, O as defineTextStyles, Q as Exiting, S as defineTokens, T as Text, U as Overlay, V as HudPart, Z as sprite, _ as ScrollState, at as resource, b as popup, ct as tag, d as Box, et as Now, h as LocalWrite, it as mut, k as label, nt as Tree, ot as system, p as DebugTrigger, q as Sprite, rt as component, tt as Order, w as Countdown } from "./visual-B7TxMv1J.mjs";
3
3
  import { t as defineComponent } from "./component-DGg5DqKK.mjs";
4
4
  export { Alpha, types_exports as Anim, AnimPlayer, Animation, types_exports$1 as Assets, types_exports$2 as Audio, Blur, Box, types_exports$3 as Clock, ColorMatrix, Countdown, DEMAND_REASONS, types_exports$4 as Debug, DebugTrigger, Displacement, Display, Draggable, DropTarget, types_exports$5 as Effects, Emitter, Exiting, types_exports$6 as Flow, Frames, Glow, HAPTIC_KINDS, Held, Hovered, HudPart, types_exports$7 as I18n, types_exports$8 as Input, Layer, types_exports$9 as Lifecycle, LocalWrite, MONITOR_SECTIONS, types_exports$10 as Model, NineSlice, Noise, Now, Order, Outline, Overlay, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, types_exports$11 as Platform, Pointer, PointerOver, Pressable, Pressed, types_exports$12 as Renderer, SHADER_WHATS, SaveUnreadableError, types_exports$13 as Scenes, ScrollState, Shape, Sprite, Swipeable, Tappable, Text, types_exports$14 as TextTypes, types_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_exports$16 as Ui, types_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
@@ -1,9 +1,9 @@
1
- import { Dr as Api, En as JournalEntry, Y as Api$2, cn as Position, cr as FrameDiff, ct as RenderStats, gr as Api$1, h as Usage, it as Under, rr as ComponentSchema, sr as EntitySnapshot, t as Api$3, vr as Explained, wn as FlowGraph, zr as Snapshot } from "./types-7R8isoBg.mjs";
2
- import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-CXIyJrtZ.mjs";
3
- import { c as UiNode } from "./types-Coe9cZb-.mjs";
4
- import { t as HeadlessApp } from "./headless-DQpf6n1Q.mjs";
5
- import { a as InputOf, c as Source, i as InputArguments, l as WatchApp, o as InputSchema, t as CheatEntry, u as WatchInput } from "./types-CCRVRCAk.mjs";
6
- import { n as defineSource } from "./define-BUuFysVM.mjs";
1
+ import { Dr as Api, En as JournalEntry, Y as Api$2, cn as Position, cr as FrameDiff, ct as RenderStats, gr as Api$1, h as Usage, it as Under, rr as ComponentSchema, sr as EntitySnapshot, t as Api$3, vr as Explained, wn as FlowGraph, zr as Snapshot } from "./types-CNMfNFbW.mjs";
2
+ import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-XoQyY8NV.mjs";
3
+ import { c as UiNode } from "./types-f5zHtSKV.mjs";
4
+ import { t as HeadlessApp } from "./headless-BL5fruJy.mjs";
5
+ import { a as InputOf, c as Source, i as InputArguments, l as WatchApp, o as InputSchema, t as CheatEntry, u as WatchInput } from "./types-Bc59p8EZ.mjs";
6
+ import { n as defineSource } from "./define-Zcp-8PpW.mjs";
7
7
 
8
8
  //#region src/plugins/flow/doors/read.d.ts
9
9
  /**
@@ -1,2 +1,2 @@
1
- import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-BZbU369G.mjs";
1
+ import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-BrW9Aw12.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-BZbU369G.mjs";
1
+ import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-BrW9Aw12.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-Coe9cZb-.mjs";
1
+ import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-f5zHtSKV.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. */
@@ -15641,8 +15641,32 @@ function refreshResolution(ctx, reason) {
15641
15641
  return askResolution(state, targetResolution(state.resolution), reason);
15642
15642
  }
15643
15643
  /**
15644
+ * How far past a whole device pixel a box of whole device pixels may measure: browsers keep layout sizes in 1/64 CSS
15645
+ * px, so the A26's window of 2340 rows at 2.77 measures 844.765625 CSS px, 2340.0008 device px. One more row would
15646
+ * be resampled over the whole canvas; a twentieth of a device pixel left uncovered is never seen.
15647
+ */
15648
+ const PIXEL_SLACK = .05;
15649
+ /**
15650
+ * The CSS length to hand Pixi so its backing store covers a CSS length: Pixi rounds `length × resolution` to whole
15651
+ * device pixels, so the length is raised to the next whole device pixel first. A product a rounding error past a
15652
+ * whole pixel stays on that pixel.
15653
+ *
15654
+ * @param length - The CSS length to cover.
15655
+ * @param resolution - Device pixels per CSS pixel.
15656
+ * @returns The CSS length of the covering backing store.
15657
+ * @example
15658
+ * ```ts
15659
+ * coverLength(844.77, 2.625); // 2218 / 2.625, about 844.95
15660
+ * ```
15661
+ */
15662
+ function coverLength(length, resolution) {
15663
+ return Math.ceil(length * resolution - PIXEL_SLACK) / resolution;
15664
+ }
15665
+ /**
15644
15666
  * Resizes the renderer to a CSS-pixel size, at the pending resolution when one differs from what
15645
15667
  * Pixi draws at; the listeners hear the change. The pending change is gone afterwards either way.
15668
+ * The backing store is rounded up to whole device pixels and the canvas box is the size itself,
15669
+ * fractions kept, so the canvas covers its mount to the last device pixel (F116).
15646
15670
  *
15647
15671
  * @param state - The host branch of the plugin state.
15648
15672
  * @param width - New CSS width of the canvas.
@@ -15654,11 +15678,13 @@ function resizeAt(state, width, height) {
15654
15678
  const { pending } = state.resolution;
15655
15679
  const from = app.renderer.resolution;
15656
15680
  state.resolution.pending = void 0;
15681
+ app.canvas.style.width = `${width}px`;
15682
+ app.canvas.style.height = `${height}px`;
15657
15683
  if (pending === void 0 || pending.value === from) {
15658
- app.renderer.resize(width, height);
15684
+ app.renderer.resize(coverLength(width, from), coverLength(height, from));
15659
15685
  return;
15660
15686
  }
15661
- app.renderer.resize(width, height, pending.value);
15687
+ app.renderer.resize(coverLength(width, pending.value), coverLength(height, pending.value), pending.value);
15662
15688
  for (const fn of state.onResolutionChange) fn(from, pending.value, pending.reason);
15663
15689
  }
15664
15690
  /**
@@ -16410,7 +16436,7 @@ async function createApplication(ctx, mount, deps) {
16410
16436
  background: ctx.config.background,
16411
16437
  antialias: ctx.config.antialias,
16412
16438
  resolution: targetResolution(state.resolution),
16413
- autoDensity: true,
16439
+ autoDensity: false,
16414
16440
  autoStart: false,
16415
16441
  sharedTicker: false,
16416
16442
  useBackBuffer: wantsBackBuffer(ctx.deps.flow.features.all())
@@ -16421,6 +16447,8 @@ async function createApplication(ctx, mount, deps) {
16421
16447
  state.mount = mount;
16422
16448
  state.kind = app.renderer.name === "webgpu" ? "webgpu" : "webgl";
16423
16449
  app.canvas.style.display = "block";
16450
+ app.canvas.style.width = "100%";
16451
+ app.canvas.style.height = "100%";
16424
16452
  mount.append(app.canvas);
16425
16453
  }
16426
16454
  /**
@@ -18389,7 +18417,39 @@ function readStack(slots, resolution, alphaFilter, into) {
18389
18417
  * @returns True when it does.
18390
18418
  */
18391
18419
  function drawsDirect(now) {
18392
- return !Number.isNaN(now.alpha) && now.P === 0 && now.rs === now.r;
18420
+ return drawsDirectAt(now, now.r);
18421
+ }
18422
+ /**
18423
+ * Tells whether a stack draws direct at a renderer resolution (F54): every enabled filter an `AlphaFilter`, no
18424
+ * padding, at that resolution.
18425
+ *
18426
+ * @param stack - The stack's numbers.
18427
+ * @param resolution - The renderer resolution.
18428
+ * @returns True when it does.
18429
+ */
18430
+ function drawsDirectAt(stack, resolution) {
18431
+ return !Number.isNaN(stack.alpha) && stack.P === 0 && stack.rs === resolution;
18432
+ }
18433
+ /**
18434
+ * Tells whether a take the budget refused still does not fit (P6.3).
18435
+ *
18436
+ * @param state - The kept state.
18437
+ * @param record - The record.
18438
+ * @returns True when it still does not fit.
18439
+ */
18440
+ function refusalHolds(state, record) {
18441
+ return record.refused > 0 && state.bytes + record.refused - record.bytes > state.budget;
18442
+ }
18443
+ /**
18444
+ * Tells whether a first take waits for the next frame (F114): a stack drawn direct never does; any other waits when
18445
+ * this frame took one already or an alpha is due.
18446
+ *
18447
+ * @param state - The kept state.
18448
+ * @param direct - The stack draws direct.
18449
+ * @returns True when it waits.
18450
+ */
18451
+ function heldBack(state, direct) {
18452
+ return !direct && (state.firstTakes > 0 || state.alphaDue);
18393
18453
  }
18394
18454
  /**
18395
18455
  * Tells whether a blend mode draws over what is under it as a picture does.
@@ -18821,8 +18881,8 @@ function writeTakeKeys(record, now, box) {
18821
18881
  key[KEY.h1] = box.h1;
18822
18882
  }
18823
18883
  /**
18824
- * Refuses a take that would render nothing and remembers it (F114): the record attempts nothing until a change under
18825
- * its top or a move of it.
18884
+ * Refuses a take that cannot succeed until something changes (nothing to render, a `Display` without `onDemand`, too
18885
+ * big for a texture) and remembers it (F114): the record attempts nothing until a change under its top or a move of it.
18826
18886
  *
18827
18887
  * @param record - The record.
18828
18888
  * @returns False, the refusal.
@@ -19229,8 +19289,9 @@ function spareAbove(kctx, record) {
19229
19289
  }
19230
19290
  /**
19231
19291
  * A live record's frame (P4.2): still frames are counted, and a zoom or turn of an ancestor counts as still (F113); at
19232
- * two (eight after churning) the record is taken, a bare view in a wrapper of its own (D4). A record with a node under
19233
- * its top that blends otherwise stays live, before any wrap (F68).
19292
+ * two, none for a stack drawn direct, eight after churning, the record is taken, a bare view in a wrapper of its own
19293
+ * (D4). An idle record waits for a change or a move; one first take a frame, and none while an alpha is due (F114). A
19294
+ * record with a node under its top that blends otherwise stays live, before any wrap (F68).
19234
19295
  *
19235
19296
  * @param kctx - The kept context.
19236
19297
  * @param pixi - The module that draws.
@@ -19248,9 +19309,9 @@ function stepLive(kctx, pixi, matrices, record, view) {
19248
19309
  record.still = changed ? 0 : record.still + 1;
19249
19310
  if (moved) record.idle = false;
19250
19311
  if (changed || record.still < waitOf(record) || record.idle) return;
19251
- if (record.refused > 0 && state.bytes + record.refused - record.bytes > state.budget) return;
19312
+ if (refusalHolds(state, record)) return;
19252
19313
  if (blendedBelow(kctx, record)) return;
19253
- if (!drawsDirect(NOW) && (state.firstTakes > 0 || state.alphaDue)) return;
19314
+ if (heldBack(state, drawsDirect(NOW))) return;
19254
19315
  wrapBare(kctx, record, view);
19255
19316
  if (!takePicture(kctx, pixi, matrices, record, view, NOW, turned)) {
19256
19317
  record.still = 0;
@@ -19459,7 +19520,7 @@ function markAlphaDue(kctx, pixi) {
19459
19520
  const view = record === void 0 ? void 0 : kctx.ctx.state.sync.views.get(record.entity);
19460
19521
  if (record === void 0 || view === void 0 || !mayBeDue(kctx, record)) continue;
19461
19522
  readStack(record.slots, resolution, pixi.AlphaFilter, DUE);
19462
- record.alphaDue = !Number.isNaN(DUE.alpha) && DUE.P === 0 && DUE.rs === resolution && eligible(kctx, record, view, DUE);
19523
+ record.alphaDue = drawsDirectAt(DUE, resolution) && eligible(kctx, record, view, DUE);
19463
19524
  state.alphaDue ||= record.alphaDue;
19464
19525
  }
19465
19526
  }
@@ -19472,9 +19533,7 @@ function markAlphaDue(kctx, pixi) {
19472
19533
  * @returns True when it may.
19473
19534
  */
19474
19535
  function mayBeDue(kctx, record) {
19475
- const { state } = kctx;
19476
- const refused = record.refused > 0 && state.bytes + record.refused - record.bytes > state.budget;
19477
- return record.mode === "live" && !record.dirtyS1 && !record.idle && !record.calm && !record.alphaMissed && !record.blended && !refused;
19536
+ return record.mode === "live" && !record.dirtyS1 && !record.idle && !record.calm && !record.alphaMissed && !record.blended && !refusalHolds(kctx.state, record);
19478
19537
  }
19479
19538
  /**
19480
19539
  * One drawn frame of a record, inside the flush: eligibility, the keys of this frame, the policy of its life, the quad
@@ -19531,8 +19590,8 @@ function stepEligible(kctx, pixi, matrices, record, view) {
19531
19590
  record.key[KEY.lastTy] = NOW.ty;
19532
19591
  }
19533
19592
  /**
19534
- * The frame of a record that may not be kept: a kept one is drawn live again, calm when it was taken in the frame
19535
- * before (F114), and its still frames start over.
19593
+ * The frame of a record that may not be kept: a kept one is drawn live again, calm when it was taken in this frame or
19594
+ * the one before (F114), and its still frames start over.
19536
19595
  *
19537
19596
  * @param kctx - The kept context.
19538
19597
  * @param record - The record.
@@ -31013,7 +31072,8 @@ function stopSync(state) {
31013
31072
  //#endregion
31014
31073
  //#region src/plugins/renderer/viewport/resize.ts
31015
31074
  /**
31016
- * Measures the mount in CSS pixels.
31075
+ * Measures the mount in CSS pixels, fractions kept: at a fractional `devicePixelRatio` the window is 844.8 CSS px
31076
+ * tall, and `clientHeight` would round it to whole pixels and leave the last device rows of the page uncovered (F116).
31017
31077
  *
31018
31078
  * @param vctx - Domain context of the viewport module.
31019
31079
  * @returns The size of the mount, or zero while inert.
@@ -31024,9 +31084,10 @@ function measureMount(vctx) {
31024
31084
  width: 0,
31025
31085
  height: 0
31026
31086
  };
31087
+ const box = mount.getBoundingClientRect();
31027
31088
  return {
31028
- width: mount.clientWidth,
31029
- height: mount.clientHeight
31089
+ width: box.width,
31090
+ height: box.height
31030
31091
  };
31031
31092
  }
31032
31093
  /**
@@ -66738,7 +66799,7 @@ function place(state, element, frame, lookup) {
66738
66799
  function solveRoot(state, rootElement, size, lookup) {
66739
66800
  const node = state.byEntity.get(rootElement.entity);
66740
66801
  if (state.yoga === void 0 || node === void 0) return false;
66741
- node.calculateLayout(size.w, size.h, state.yoga.DIRECTION_LTR);
66802
+ node.calculateLayout(Math.ceil(size.w), Math.ceil(size.h), state.yoga.DIRECTION_LTR);
66742
66803
  state.solves += 1;
66743
66804
  return place(state, rootElement, {
66744
66805
  origin: {
@@ -1,7 +1,7 @@
1
- import { Ar as Json, Dn as NodeTable, Fn as Hint, In as NodeFx, Sr as ClockSource, jn as Descriptor, wr as FakeClock, xn as AnyFlow, yn as FeaturePlugin } from "./types-7R8isoBg.mjs";
2
- import { t as createApp } from "./index-Df4d-Oim.mjs";
3
- import { b as saveOf, v as WithGameState, y as memory } from "./types-4kZDzbGr.mjs";
4
- import { a as createHeadless, i as ReproResult, n as HeadlessGame, o as runRepro, r as Repro, s as stepFrames, t as HeadlessApp } from "./headless-DQpf6n1Q.mjs";
1
+ import { Ar as Json, Dn as NodeTable, Fn as Hint, In as NodeFx, Sr as ClockSource, jn as Descriptor, wr as FakeClock, xn as AnyFlow, yn as FeaturePlugin } from "./types-CNMfNFbW.mjs";
2
+ import { t as createApp } from "./index-DRIKBqg7.mjs";
3
+ import { b as saveOf, v as WithGameState, y as memory } from "./types-B71pyqu9.mjs";
4
+ import { a as createHeadless, i as ReproResult, n as HeadlessGame, o as runRepro, r as Repro, s as stepFrames, t as HeadlessApp } from "./headless-BL5fruJy.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
7
7
  //#region src/plugins/clock/fake.d.ts
package/dist/testing.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { an as type, en as refuseStart, m as flattenFeatures, nn as exit, t as createApp } from "./src-BT3RExYK.mjs";
1
+ import { an as type, en as refuseStart, m as flattenFeatures, nn as exit, t as createApp } from "./src-BLCYY1gz.mjs";
2
2
  import { n as saveOf, t as memory } from "./memory-CWlqhS7l.mjs";
3
3
  import { n as fakeClock } from "./fake-hnJcJeYf.mjs";
4
4
  import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-CCiUwvlp.mjs";
@@ -1,7 +1,7 @@
1
- import { $ as PixiModule, An as TypeTag, Ar as Json, Br as SnapshotOf, Fr as PlayerStateProvider, Ir as ProviderCall, Lr as SaveDoc, Or as Config, Sr as ClockSource, X as Config$2, a as Config$3, d as Manifest, in as Config$1, lt as Orientation, n as AssetsIo, wr as FakeClock, xn as AnyFlow, yn as FeaturePlugin } from "./types-7R8isoBg.mjs";
2
- import { o as AudioContextLike, s as Config$4 } from "./types-CXIyJrtZ.mjs";
3
- import { R as I18nApi, U as StringTable, W as TextKey } from "./types-Coe9cZb-.mjs";
4
- import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-Df4d-Oim.mjs";
1
+ import { $ as PixiModule, An as TypeTag, Ar as Json, Br as SnapshotOf, Fr as PlayerStateProvider, Ir as ProviderCall, Lr as SaveDoc, Or as Config, Sr as ClockSource, X as Config$2, a as Config$3, d as Manifest, in as Config$1, lt as Orientation, n as AssetsIo, wr as FakeClock, xn as AnyFlow, yn as FeaturePlugin } from "./types-CNMfNFbW.mjs";
2
+ import { o as AudioContextLike, s as Config$4 } from "./types-XoQyY8NV.mjs";
3
+ import { R as I18nApi, U as StringTable, W as TextKey } from "./types-f5zHtSKV.mjs";
4
+ import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-DRIKBqg7.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
7
7
  //#region src/plugins/model/store/providers/memory.d.ts
@@ -1,5 +1,5 @@
1
- import { Ar as Json, zr as Snapshot } from "./types-7R8isoBg.mjs";
2
- import { t as HeadlessApp } from "./headless-DQpf6n1Q.mjs";
1
+ import { Ar as Json, zr as Snapshot } from "./types-CNMfNFbW.mjs";
2
+ import { t as HeadlessApp } from "./headless-BL5fruJy.mjs";
3
3
  import { Log } from "@moku-labs/common/browser";
4
4
 
5
5
  //#region src/plugins/flow/doors/types.d.ts
@@ -8871,7 +8871,7 @@ type KeptState = {
8871
8871
  * record that owes nothing is drawn from its picture as it stands, without its step (E5). Set by `collect`, spent by
8872
8872
  * the next flush.
8873
8873
  */
8874
- calm: boolean; /** First takes of records not drawn direct in this flush: one per frame (F114). */
8874
+ calm: boolean; /** First takes in this flush (F114): every one counts; a stack drawn direct is never held back by the count. */
8875
8875
  firstTakes: number; /** A record drawn direct is due in this flush: the first takes of the others wait for the next (F114). */
8876
8876
  alphaDue: boolean;
8877
8877
  };
@@ -10133,7 +10133,11 @@ type AdaptiveScale = {
10133
10133
  * ```
10134
10134
  */
10135
10135
  type Config$2 = {
10136
- /** Where the canvas goes: a selector or an element. `undefined` keeps the plugin inert. */mount: string | HTMLElement | undefined; /** Clear colour. Also the colour of the bars around the frame. */
10136
+ /**
10137
+ * Where the canvas goes: a selector or an element. `undefined` keeps the plugin inert. The canvas takes the
10138
+ * mount's border box, fractions of a CSS pixel kept, so the mount has no border, padding, scrollbar or transform.
10139
+ */
10140
+ mount: string | HTMLElement | undefined; /** Clear colour. Also the colour of the bars around the frame. */
10137
10141
  background: number; /** Antialias the whole canvas. Off by default: pixel art and sprites do not need it. */
10138
10142
  antialias: boolean;
10139
10143
  /**
@@ -1,5 +1,5 @@
1
- import { $ as PixiModule, $n as AnyComponent, A as SyncApi, An as TypeTag, Ar as Json, Dr as Api$6, Gn as NumericFields, Jn as ReducedMotion, Kr as Events$5, O as FilterSlot, Q as PixiFilter, Rn as AnchorTarget, Vn as Ease, Wn as MotionHandle, Xn as TrackOptions, Xr as Api$1, Y as Api$4, Zn as TrackSegment, ai as Events$2, b as Events$4, et as PixiSprite, ft as FilterCache, gr as Api$3, ir as ComponentType, jn as Descriptor, k as FilterSlotInputs, kr as Events$3, nn as Api$2, nr as ComponentHandle, oi as Require, or as Entity, s as Events$1, t as Api$5, tr as AnyComponentValue, tt as PixiTexture, ut as Point } from "./types-7R8isoBg.mjs";
2
- import { N as InputApi, R as I18nApi, X as StylesState, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, w as TextApi } from "./types-Coe9cZb-.mjs";
1
+ import { $ as PixiModule, $n as AnyComponent, A as SyncApi, An as TypeTag, Ar as Json, Dr as Api$6, Gn as NumericFields, Jn as ReducedMotion, Kr as Events$5, O as FilterSlot, Q as PixiFilter, Rn as AnchorTarget, Vn as Ease, Wn as MotionHandle, Xn as TrackOptions, Xr as Api$1, Y as Api$4, Zn as TrackSegment, ai as Events$2, b as Events$4, et as PixiSprite, ft as FilterCache, gr as Api$3, ir as ComponentType, jn as Descriptor, k as FilterSlotInputs, kr as Events$3, nn as Api$2, nr as ComponentHandle, oi as Require, or as Entity, s as Events$1, t as Api$5, tr as AnyComponentValue, tt as PixiTexture, ut as Point } from "./types-CNMfNFbW.mjs";
2
+ import { N as InputApi, R as I18nApi, X as StylesState, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, w as TextApi } from "./types-f5zHtSKV.mjs";
3
3
  import { Log } from "@moku-labs/common/browser";
4
4
  import { PluginCtx } from "@moku-labs/core";
5
5
 
@@ -1,4 +1,4 @@
1
- import { $n as AnyComponent, Ar as Json, Fn as Hint, Gn as NumericFields, Hn as Motion, Jn as ReducedMotion, K as TransformValue, Kn as ProjectionMotion, Ln as Answer, Qn as ViewHandle, Rn as AnchorTarget, Un as MotionCause, Vn as Ease, Wn as MotionHandle, Xr as Api, Y as Api$3, dt as ViewportSize, er as AnyComponentType, gr as Api$2, hr as TagType, ir as ComponentType, jn as Descriptor, nn as Api$1, oi as Require, or as Entity, s as Events$1, t as Api$4, tr as AnyComponentValue, xr as Api$5, zn as ChangeHook } from "./types-7R8isoBg.mjs";
1
+ import { $n as AnyComponent, Ar as Json, Fn as Hint, Gn as NumericFields, Hn as Motion, Jn as ReducedMotion, K as TransformValue, Kn as ProjectionMotion, Ln as Answer, Qn as ViewHandle, Rn as AnchorTarget, Un as MotionCause, Vn as Ease, Wn as MotionHandle, Xr as Api, Y as Api$3, dt as ViewportSize, er as AnyComponentType, gr as Api$2, hr as TagType, ir as ComponentType, jn as Descriptor, nn as Api$1, oi as Require, or as Entity, s as Events$1, t as Api$4, tr as AnyComponentValue, xr as Api$5, zn as ChangeHook } from "./types-CNMfNFbW.mjs";
2
2
  import { Log } from "@moku-labs/common/browser";
3
3
  import { PluginCtx } from "@moku-labs/core";
4
4
  import { Node, Yoga } from "yoga-layout/load";
@@ -1,9 +1,9 @@
1
- import { Dr as Api$2, Wr as Api$3, Y as Api, gr as Api$1, xr as Api$4 } from "./types-7R8isoBg.mjs";
2
- import { P as AnimApi, r as UiApi } from "./types-CXIyJrtZ.mjs";
3
- import { N as InputApi } from "./types-Coe9cZb-.mjs";
4
- import { r as Repro } from "./headless-DQpf6n1Q.mjs";
5
- import { a as InputOf, r as ControlApp } from "./types-CCRVRCAk.mjs";
6
- import { t as commands } from "./commands-CuuOqz1U.mjs";
1
+ import { Dr as Api$2, Wr as Api$3, Y as Api, gr as Api$1, xr as Api$4 } from "./types-CNMfNFbW.mjs";
2
+ import { P as AnimApi, r as UiApi } from "./types-XoQyY8NV.mjs";
3
+ import { N as InputApi } from "./types-f5zHtSKV.mjs";
4
+ import { r as Repro } from "./headless-BL5fruJy.mjs";
5
+ import { a as InputOf, r as ControlApp } from "./types-Bc59p8EZ.mjs";
6
+ import { t as commands } from "./commands-BUcpkjkJ.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-6N8f0J47.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-BnPy4Zjg.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.61",
3
+ "version": "0.15.63",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [