@moku-labs/game 0.15.62 → 0.15.64
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.
- package/dist/app/page.d.mts +1 -1
- package/dist/app/system.d.mts +3 -3
- package/dist/app.d.mts +3 -3
- package/dist/app.mjs +1 -1
- package/dist/assets.d.mts +1 -1
- package/dist/{commands-DYDKZ1Or.d.mts → commands-DIV4J08P.d.mts} +5 -5
- package/dist/control.d.mts +4 -4
- package/dist/{define-CrU__uf4.d.mts → define-CvDuGXk8.d.mts} +2 -2
- package/dist/{headless-CNSKAjpu.d.mts → headless-BdfPq6Rk.d.mts} +1 -1
- package/dist/{index-ekj880BS.d.mts → index-CHD467pK.d.mts} +3 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/inspect.d.mts +6 -6
- package/dist/jsx-dev-runtime.d.mts +1 -1
- package/dist/jsx-runtime.d.mts +1 -1
- package/dist/{runtime-BPaFrcH9.d.mts → runtime-BOpDKzS4.d.mts} +1 -1
- package/dist/{src-wOJvrjq4.mjs → src-C-Kg9eZz.mjs} +70 -21
- package/dist/testing.d.mts +4 -4
- package/dist/testing.mjs +1 -1
- package/dist/{types-DM9nHPZk.d.mts → types-BPl5XDYf.d.mts} +4 -4
- package/dist/{types-1ufktOx9.d.mts → types-C9LTGx_J.d.mts} +2 -2
- package/dist/{types-euMfY7to.d.mts → types-CafT9oPU.d.mts} +1 -1
- package/dist/{types-C9_Yl4LK.d.mts → types-CmwjkCj5.d.mts} +10 -1
- package/dist/{types-CitRPWkC.d.mts → types-mVR9T1OR.d.mts} +8 -4
- package/dist/{visual-CcCvIcsL.d.mts → visual-ztvu_rvb.d.mts} +6 -6
- package/dist/visual.d.mts +1 -1
- package/package.json +2 -2
package/dist/app/page.d.mts
CHANGED
package/dist/app/system.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Fr as PlayerStateProvider } from "../types-
|
|
2
|
-
import { ht as PlatformProvider } from "../index-
|
|
3
|
-
import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-
|
|
1
|
+
import { Fr as PlayerStateProvider } from "../types-CmwjkCj5.mjs";
|
|
2
|
+
import { ht as PlatformProvider } from "../index-CHD467pK.mjs";
|
|
3
|
+
import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-BPl5XDYf.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-
|
|
2
|
-
import { U as StringTable } from "./types-
|
|
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-
|
|
1
|
+
import { Ar as Json } from "./types-CmwjkCj5.mjs";
|
|
2
|
+
import { U as StringTable } from "./types-CafT9oPU.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-BPl5XDYf.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-
|
|
1
|
+
import { Ft as audioPlugin, H as platformPlugin, i as screen, m as flattenFeatures, t as createApp, wt as effectsPlugin } from "./src-C-Kg9eZz.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,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-
|
|
2
|
-
import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-
|
|
3
|
-
import { N as InputApi } from "./types-
|
|
4
|
-
import { t as HeadlessApp } from "./headless-
|
|
5
|
-
import { n as Command, r as ControlApp } from "./types-
|
|
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-CmwjkCj5.mjs";
|
|
2
|
+
import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-mVR9T1OR.mjs";
|
|
3
|
+
import { N as InputApi } from "./types-CafT9oPU.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-BdfPq6Rk.mjs";
|
|
5
|
+
import { n as Command, r as ControlApp } from "./types-C9LTGx_J.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/flow/doors/commands.d.ts
|
|
8
8
|
/**
|
package/dist/control.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as HeadlessApp } from "./headless-
|
|
2
|
-
import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-
|
|
3
|
-
import { t as commands } from "./commands-
|
|
4
|
-
import { t as defineCommand } from "./define-
|
|
1
|
+
import { t as HeadlessApp } from "./headless-BdfPq6Rk.mjs";
|
|
2
|
+
import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-C9LTGx_J.mjs";
|
|
3
|
+
import { t as commands } from "./commands-DIV4J08P.mjs";
|
|
4
|
+
import { t as defineCommand } from "./define-CvDuGXk8.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-
|
|
2
|
-
import { c as Source, n as Command, o as InputSchema } from "./types-
|
|
1
|
+
import { t as HeadlessApp } from "./headless-BdfPq6Rk.mjs";
|
|
2
|
+
import { c as Source, n as Command, o as InputSchema } from "./types-C9LTGx_J.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-
|
|
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-CmwjkCj5.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-
|
|
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-
|
|
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-
|
|
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-CmwjkCj5.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-mVR9T1OR.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-CafT9oPU.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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-CmwjkCj5.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-mVR9T1OR.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-CafT9oPU.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-CHD467pK.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-
|
|
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-C-Kg9eZz.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 };
|
package/dist/inspect.d.mts
CHANGED
|
@@ -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-
|
|
2
|
-
import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-
|
|
3
|
-
import { c as UiNode } from "./types-
|
|
4
|
-
import { t as HeadlessApp } from "./headless-
|
|
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-
|
|
6
|
-
import { n as defineSource } from "./define-
|
|
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-CmwjkCj5.mjs";
|
|
2
|
+
import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-mVR9T1OR.mjs";
|
|
3
|
+
import { c as UiNode } from "./types-CafT9oPU.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-BdfPq6Rk.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-C9LTGx_J.mjs";
|
|
6
|
+
import { n as defineSource } from "./define-CvDuGXk8.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-
|
|
1
|
+
import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-BOpDKzS4.mjs";
|
|
2
2
|
export { Fragment, type JSX, jsx, jsxDEV, jsxs };
|
package/dist/jsx-runtime.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-
|
|
1
|
+
import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-BOpDKzS4.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-
|
|
1
|
+
import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-CafT9oPU.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:
|
|
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
|
/**
|
|
@@ -31044,7 +31072,8 @@ function stopSync(state) {
|
|
|
31044
31072
|
//#endregion
|
|
31045
31073
|
//#region src/plugins/renderer/viewport/resize.ts
|
|
31046
31074
|
/**
|
|
31047
|
-
* 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).
|
|
31048
31077
|
*
|
|
31049
31078
|
* @param vctx - Domain context of the viewport module.
|
|
31050
31079
|
* @returns The size of the mount, or zero while inert.
|
|
@@ -31055,9 +31084,10 @@ function measureMount(vctx) {
|
|
|
31055
31084
|
width: 0,
|
|
31056
31085
|
height: 0
|
|
31057
31086
|
};
|
|
31087
|
+
const box = mount.getBoundingClientRect();
|
|
31058
31088
|
return {
|
|
31059
|
-
width:
|
|
31060
|
-
height:
|
|
31089
|
+
width: box.width,
|
|
31090
|
+
height: box.height
|
|
31061
31091
|
};
|
|
31062
31092
|
}
|
|
31063
31093
|
/**
|
|
@@ -32677,7 +32707,8 @@ function warnOutside(sctx, entity, key) {
|
|
|
32677
32707
|
}
|
|
32678
32708
|
/**
|
|
32679
32709
|
* The HUD parts: every part of the HUD layer is drawn with the factor of the overlays' levels of this frame, and the
|
|
32680
|
-
* parts leaving or not fully back take no tap. A part outside the HUD layer is warned once and drawn as it is.
|
|
32710
|
+
* parts leaving or not fully back take no tap. A part outside the HUD layer is warned once and drawn as it is. Before the
|
|
32711
|
+
* first layers exist (a scene built aside on a cold page, committed after this frame's pass) no part is warned (F117).
|
|
32681
32712
|
*
|
|
32682
32713
|
* @param sctx - Domain context of the sync module.
|
|
32683
32714
|
*/
|
|
@@ -32686,6 +32717,7 @@ function stepParts(sctx) {
|
|
|
32686
32717
|
const overlay = state.overlay;
|
|
32687
32718
|
if (overlay.parts.size === 0 && overlay.offTops.size === 0) return;
|
|
32688
32719
|
const hud = state.hudLayer;
|
|
32720
|
+
const layered = (state.layerList?.length ?? 0) > 0;
|
|
32689
32721
|
const ecs = sctx.ctx.deps.world.ecs;
|
|
32690
32722
|
if (overlay.nextOff.size > 0) overlay.nextOff.clear();
|
|
32691
32723
|
for (const entity of overlay.parts) {
|
|
@@ -32693,7 +32725,7 @@ function stepParts(sctx) {
|
|
|
32693
32725
|
if (view === void 0) continue;
|
|
32694
32726
|
const key = ecs.get(entity, HudPart)?.key ?? "";
|
|
32695
32727
|
if (hud === void 0 || layerOf$1(sctx, entity) !== hud) {
|
|
32696
|
-
warnOutside(sctx, entity, key);
|
|
32728
|
+
if (layered) warnOutside(sctx, entity, key);
|
|
32697
32729
|
applyHud(sctx, entity, view, 1);
|
|
32698
32730
|
continue;
|
|
32699
32731
|
}
|
|
@@ -40004,7 +40036,8 @@ function releaseMarkedRest(ctx, run) {
|
|
|
40004
40036
|
/**
|
|
40005
40037
|
* The `load` stage of entering a node: the bundles of the node become the pinned set, the release
|
|
40006
40038
|
* a rest marked runs, and in live mode the node waits for its bundles. A bundle the preload did not
|
|
40007
|
-
* reach is a dev warning, except a `"leave"` bundle, which the preload skips on purpose
|
|
40039
|
+
* reach is a dev warning, except a `"leave"` bundle, which the preload skips on purpose, and the
|
|
40040
|
+
* bundles of a node entered before any live rest, which no preload could reach (F117).
|
|
40008
40041
|
*
|
|
40009
40042
|
* @param ctx - Domain context of the plugin.
|
|
40010
40043
|
* @param node - The node being entered.
|
|
@@ -40021,7 +40054,7 @@ async function enterNode(ctx, node, run) {
|
|
|
40021
40054
|
if (state.io === void 0 || run.mode === "fast") return;
|
|
40022
40055
|
for (const name of bundles) {
|
|
40023
40056
|
const isLeaving = state.manifest.bundles[name]?.release === "leave";
|
|
40024
|
-
if (state.records.get(name)?.status !== "loaded" && !isLeaving) ctx.log.warn("assets: the node waited for a bundle", {
|
|
40057
|
+
if (state.restedLive && state.records.get(name)?.status !== "loaded" && !isLeaving) ctx.log.warn("assets: the node waited for a bundle", {
|
|
40025
40058
|
bundle: name,
|
|
40026
40059
|
path: node.path
|
|
40027
40060
|
});
|
|
@@ -40152,6 +40185,7 @@ function releaseAll(state) {
|
|
|
40152
40185
|
state.sceneComing = [];
|
|
40153
40186
|
state.exiting = 0;
|
|
40154
40187
|
state.restPending = false;
|
|
40188
|
+
state.restedLive = false;
|
|
40155
40189
|
state.stamps = void 0;
|
|
40156
40190
|
state.swapping = void 0;
|
|
40157
40191
|
state.io = void 0;
|
|
@@ -40896,7 +40930,10 @@ function createHandlers$5(ctx, reload) {
|
|
|
40896
40930
|
assets ??= withDeps$6(ctx);
|
|
40897
40931
|
if (assets.state.io === void 0) return;
|
|
40898
40932
|
const live = assets.deps.flow.state().mode !== "fast";
|
|
40899
|
-
if (live)
|
|
40933
|
+
if (live) {
|
|
40934
|
+
assets.state.restPending = true;
|
|
40935
|
+
assets.state.restedLive = true;
|
|
40936
|
+
}
|
|
40900
40937
|
enforceBudget(assets);
|
|
40901
40938
|
if (!live) return;
|
|
40902
40939
|
startPreload(assets);
|
|
@@ -40972,6 +41009,7 @@ function createAssetsState() {
|
|
|
40972
41009
|
exiting: 0,
|
|
40973
41010
|
companions: [],
|
|
40974
41011
|
restPending: false,
|
|
41012
|
+
restedLive: false,
|
|
40975
41013
|
readyFailed: emptySet$2(),
|
|
40976
41014
|
warmed: emptyMap$3()
|
|
40977
41015
|
};
|
|
@@ -48515,25 +48553,34 @@ function hasEnabledFilter(ectx, view) {
|
|
|
48515
48553
|
return false;
|
|
48516
48554
|
}
|
|
48517
48555
|
/**
|
|
48518
|
-
*
|
|
48519
|
-
*
|
|
48520
|
-
*
|
|
48556
|
+
* Frames in a row the render passes stay over the budget before it warns. A scene that appears draws every filtered
|
|
48557
|
+
* view live until its first take, one take a frame, and a take frame pays the take on top of the views still live: a
|
|
48558
|
+
* board of A Memory Missing went 26 of 24 for a few frames on a cold start (F117). A second at 60 Hz outlasts that.
|
|
48559
|
+
*/
|
|
48560
|
+
const STEADY_FRAMES = 60;
|
|
48561
|
+
/**
|
|
48562
|
+
* Warns once per steady crossing of the pass budget: the renderer's render passes over `config.maxPasses` for
|
|
48563
|
+
* `STEADY_FRAMES` frames in a row. The count walks the renderer's filtered views, so it is read only while a view
|
|
48564
|
+
* carries a filter; with none the frame draws at most one pass and the budget cannot trip.
|
|
48521
48565
|
*
|
|
48522
48566
|
* @param ectx - Domain context of the effects plugin.
|
|
48523
48567
|
*/
|
|
48524
48568
|
function checkPassBudget(ectx) {
|
|
48525
48569
|
const { state, config, deps } = ectx;
|
|
48526
48570
|
if (state.views.size === 0) {
|
|
48527
|
-
state.over.passes =
|
|
48571
|
+
state.over.passes = 0;
|
|
48528
48572
|
return;
|
|
48529
48573
|
}
|
|
48530
48574
|
const passes = deps.renderer.sync.renderPasses();
|
|
48531
|
-
|
|
48532
|
-
|
|
48575
|
+
if (passes <= config.maxPasses) {
|
|
48576
|
+
state.over.passes = 0;
|
|
48577
|
+
return;
|
|
48578
|
+
}
|
|
48579
|
+
state.over.passes += 1;
|
|
48580
|
+
if (state.over.passes === STEADY_FRAMES) ectx.log.warn("effects:pass-budget", {
|
|
48533
48581
|
passes,
|
|
48534
48582
|
budget: config.maxPasses
|
|
48535
48583
|
});
|
|
48536
|
-
state.over.passes = overPasses;
|
|
48537
48584
|
}
|
|
48538
48585
|
/** The components a view's box and scale are read from (`coversScreen`): one plain array, never frozen. */
|
|
48539
48586
|
const BOX_COMPONENTS = [
|
|
@@ -49397,6 +49444,8 @@ function createInstance(ectx, pixi, host, baked, emitting) {
|
|
|
49397
49444
|
Transform(pose),
|
|
49398
49445
|
...placementOf(ecs, host)
|
|
49399
49446
|
]);
|
|
49447
|
+
const projection = ectx.deps.world.projection;
|
|
49448
|
+
if (projection.isBuilding(host)) projection.adopt(entity);
|
|
49400
49449
|
const instance = {
|
|
49401
49450
|
id: baked.id,
|
|
49402
49451
|
baked,
|
|
@@ -49902,7 +49951,7 @@ function createEffectsState() {
|
|
|
49902
49951
|
particles: 0,
|
|
49903
49952
|
over: {
|
|
49904
49953
|
particles: false,
|
|
49905
|
-
passes:
|
|
49954
|
+
passes: 0,
|
|
49906
49955
|
fullScreen: false
|
|
49907
49956
|
},
|
|
49908
49957
|
removers: [],
|
|
@@ -50128,7 +50177,7 @@ function stopEffects(state) {
|
|
|
50128
50177
|
state.particles = 0;
|
|
50129
50178
|
state.over = {
|
|
50130
50179
|
particles: false,
|
|
50131
|
-
passes:
|
|
50180
|
+
passes: 0,
|
|
50132
50181
|
fullScreen: false
|
|
50133
50182
|
};
|
|
50134
50183
|
state.diagnostics.off.clear();
|
|
@@ -66769,7 +66818,7 @@ function place(state, element, frame, lookup) {
|
|
|
66769
66818
|
function solveRoot(state, rootElement, size, lookup) {
|
|
66770
66819
|
const node = state.byEntity.get(rootElement.entity);
|
|
66771
66820
|
if (state.yoga === void 0 || node === void 0) return false;
|
|
66772
|
-
node.calculateLayout(size.w, size.h, state.yoga.DIRECTION_LTR);
|
|
66821
|
+
node.calculateLayout(Math.ceil(size.w), Math.ceil(size.h), state.yoga.DIRECTION_LTR);
|
|
66773
66822
|
state.solves += 1;
|
|
66774
66823
|
return place(state, rootElement, {
|
|
66775
66824
|
origin: {
|
package/dist/testing.d.mts
CHANGED
|
@@ -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-
|
|
2
|
-
import { t as createApp } from "./index-
|
|
3
|
-
import { b as saveOf, v as WithGameState, y as memory } from "./types-
|
|
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-
|
|
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-CmwjkCj5.mjs";
|
|
2
|
+
import { t as createApp } from "./index-CHD467pK.mjs";
|
|
3
|
+
import { b as saveOf, v as WithGameState, y as memory } from "./types-BPl5XDYf.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-BdfPq6Rk.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-
|
|
1
|
+
import { an as type, en as refuseStart, m as flattenFeatures, nn as exit, t as createApp } from "./src-C-Kg9eZz.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-
|
|
2
|
-
import { o as AudioContextLike, s as Config$4 } from "./types-
|
|
3
|
-
import { R as I18nApi, U as StringTable, W as TextKey } from "./types-
|
|
4
|
-
import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-
|
|
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-CmwjkCj5.mjs";
|
|
2
|
+
import { o as AudioContextLike, s as Config$4 } from "./types-mVR9T1OR.mjs";
|
|
3
|
+
import { R as I18nApi, U as StringTable, W as TextKey } from "./types-CafT9oPU.mjs";
|
|
4
|
+
import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-CHD467pK.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-
|
|
2
|
-
import { t as HeadlessApp } from "./headless-
|
|
1
|
+
import { Ar as Json, zr as Snapshot } from "./types-CmwjkCj5.mjs";
|
|
2
|
+
import { t as HeadlessApp } from "./headless-BdfPq6Rk.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
|
|
5
5
|
//#region src/plugins/flow/doors/types.d.ts
|
|
@@ -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-
|
|
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-CmwjkCj5.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";
|
|
@@ -10133,7 +10133,11 @@ type AdaptiveScale = {
|
|
|
10133
10133
|
* ```
|
|
10134
10134
|
*/
|
|
10135
10135
|
type Config$2 = {
|
|
10136
|
-
/**
|
|
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
|
/**
|
|
@@ -13590,6 +13594,11 @@ type State = {
|
|
|
13590
13594
|
exiting: number; /** Registered companions, in registration order. */
|
|
13591
13595
|
companions: BundleCompanion[]; /** A live rest was announced; the arriving node's `load` stage runs the release. */
|
|
13592
13596
|
restPending: boolean;
|
|
13597
|
+
/**
|
|
13598
|
+
* A live rest was announced on this page, so the background preload had its chance: until then a node entered live
|
|
13599
|
+
* (the first scene of a cold boot or a restore) waits for its bundles without a warning (F117).
|
|
13600
|
+
*/
|
|
13601
|
+
restedLive: boolean;
|
|
13593
13602
|
/**
|
|
13594
13603
|
* Bundles whose warm for a `ready` effect failed (not an abort): `ready` counts them as there, so a node never
|
|
13595
13604
|
* hangs on them, until a later load of the bundle succeeds (F52).
|
|
@@ -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-
|
|
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-
|
|
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-CmwjkCj5.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-CafT9oPU.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
import { PluginCtx } from "@moku-labs/core";
|
|
5
5
|
|
|
@@ -2280,10 +2280,14 @@ type State$2 = {
|
|
|
2280
2280
|
viewList: FilteredView[]; /** The filter kinds in registration order, one per `index`: the change sets the filter sync reads, by index. */
|
|
2281
2281
|
kindList: FilterKind[]; /** Where the filter sync stands between two runs. */
|
|
2282
2282
|
filterSync: FilterSyncState; /** Keys of the one-shot warnings: `"emitter:fx.x"`, `"texture:board.cell"`, `"atlas:fx.x"`. */
|
|
2283
|
-
warned: Set<string>;
|
|
2283
|
+
warned: Set<string>;
|
|
2284
|
+
/**
|
|
2285
|
+
* Whether each budget warning is in force, so a crossing warns once; for the passes, the frames in a row over the
|
|
2286
|
+
* budget, so only a steady crossing warns.
|
|
2287
|
+
*/
|
|
2284
2288
|
over: {
|
|
2285
2289
|
particles: boolean;
|
|
2286
|
-
passes:
|
|
2290
|
+
passes: number;
|
|
2287
2291
|
fullScreen: boolean;
|
|
2288
2292
|
}; /** The teardown closure, the two systems and the world hooks. */
|
|
2289
2293
|
removers: Array<() => void>;
|
|
@@ -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-
|
|
2
|
-
import { P as AnimApi, r as UiApi } from "./types-
|
|
3
|
-
import { N as InputApi } from "./types-
|
|
4
|
-
import { r as Repro } from "./headless-
|
|
5
|
-
import { a as InputOf, r as ControlApp } from "./types-
|
|
6
|
-
import { t as commands } from "./commands-
|
|
1
|
+
import { Dr as Api$2, Wr as Api$3, Y as Api, gr as Api$1, xr as Api$4 } from "./types-CmwjkCj5.mjs";
|
|
2
|
+
import { P as AnimApi, r as UiApi } from "./types-mVR9T1OR.mjs";
|
|
3
|
+
import { N as InputApi } from "./types-CafT9oPU.mjs";
|
|
4
|
+
import { r as Repro } from "./headless-BdfPq6Rk.mjs";
|
|
5
|
+
import { a as InputOf, r as ControlApp } from "./types-C9LTGx_J.mjs";
|
|
6
|
+
import { t as commands } from "./commands-DIV4J08P.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-
|
|
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-ztvu_rvb.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.
|
|
3
|
+
"version": "0.15.64",
|
|
4
4
|
"description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"@moku-labs/ci": "1.5.7",
|
|
163
163
|
"@moku-labs/common": "0.3.10",
|
|
164
164
|
"@moku-labs/core": "1.7.6",
|
|
165
|
-
"@moku-labs/native": "0.3.
|
|
165
|
+
"@moku-labs/native": "0.3.11",
|
|
166
166
|
"@moku-labs/system": "0.3.7",
|
|
167
167
|
"@types/bun": "1.4.2",
|
|
168
168
|
"@vitest/coverage-istanbul": "4.0.18",
|