@moku-labs/game 0.15.81 → 0.15.82
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-DU1w0Rsf.d.mts → commands-DKjkHK5b.d.mts} +5 -5
- package/dist/control.d.mts +4 -4
- package/dist/{define-LTU9cqPG.d.mts → define-DcB9KOfh.d.mts} +2 -2
- package/dist/{headless-CdFTpj8K.d.mts → headless-B8JIqsZk.d.mts} +1 -1
- package/dist/{index-cktcVt-3.d.mts → index-DTHVVLFB.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-CglxMAXj.d.mts → runtime-B3CsJr_p.d.mts} +1 -1
- package/dist/{src-BbpVjR2U.mjs → src-DX2UW8sT.mjs} +83 -38
- package/dist/testing.d.mts +4 -4
- package/dist/testing.mjs +1 -1
- package/dist/{types-CQ_B2CbW.d.mts → types-CPWi_CLI.d.mts} +1 -1
- package/dist/{types-CYSXO-4b.d.mts → types-D-5dwalj.d.mts} +4 -4
- package/dist/{types-BaMaybxt.d.mts → types-DJCC9CAp.d.mts} +2 -2
- package/dist/{types-Dhc7xlyk.d.mts → types-DfHytzox.d.mts} +30 -5
- package/dist/{types-C-X_2Nrp.d.mts → types-DsRV-ph1.d.mts} +2 -2
- package/dist/{visual-DYqbc3ro.d.mts → visual-B76IxxTL.d.mts} +6 -6
- package/dist/visual.d.mts +1 -1
- package/llms.txt +1 -1
- package/package.json +1 -1
package/dist/app/page.d.mts
CHANGED
package/dist/app/system.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Br 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 { Br as PlayerStateProvider } from "../types-DfHytzox.mjs";
|
|
2
|
+
import { ht as PlatformProvider } from "../index-DTHVVLFB.mjs";
|
|
3
|
+
import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-D-5dwalj.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 { Fr 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 { Fr as Json } from "./types-DfHytzox.mjs";
|
|
2
|
+
import { U as StringTable } from "./types-CPWi_CLI.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-D-5dwalj.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-DX2UW8sT.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 { An as FlowState, D as DebugSwitches, Dn as Bookmark, Kr as StoreApi, Wr as Snapshot, X as Api$1, Yr as Api, ri as FrameRate, si as Time, st as Captured, w as ScenesApi, xr as Api$2 } 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 { An as FlowState, D as DebugSwitches, Dn as Bookmark, Kr as StoreApi, Wr as Snapshot, X as Api$1, Yr as Api, ri as FrameRate, si as Time, st as Captured, w as ScenesApi, xr as Api$2 } from "./types-DfHytzox.mjs";
|
|
2
|
+
import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-DJCC9CAp.mjs";
|
|
3
|
+
import { N as InputApi } from "./types-CPWi_CLI.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-B8JIqsZk.mjs";
|
|
5
|
+
import { n as Command, r as ControlApp } from "./types-DsRV-ph1.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-B8JIqsZk.mjs";
|
|
2
|
+
import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-DsRV-ph1.mjs";
|
|
3
|
+
import { t as commands } from "./commands-DKjkHK5b.mjs";
|
|
4
|
+
import { t as defineCommand } from "./define-DcB9KOfh.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-B8JIqsZk.mjs";
|
|
2
|
+
import { c as Source, n as Command, o as InputSchema } from "./types-DsRV-ph1.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/flow/doors/define.d.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { An as FlowState, Fr as Json, Hn as Answer, Jr as RngState, Nn as RouteStep, jn as JournalEntry, sn as Api$1, ti as Api } from "./types-
|
|
1
|
+
import { An as FlowState, Fr as Json, Hn as Answer, Jr as RngState, Nn as RouteStep, jn as JournalEntry, sn as Api$1, ti as Api } from "./types-DfHytzox.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/flow/headless.d.ts
|
|
4
4
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $n as ReducedMotion, $r as State$4, Ar as State$2, At as PassKind, Bn as Hint, C as SceneSpec, Cn as FeatureDescription, Er as Api$1, Fr as Json, G as SpriteValue, Gn as DescriptionNode, Hn as Answer, I as NineSliceValue, In as Descriptor, Ir as Root, J as sprite, Kn as Ease, Kr as StoreApi, Ln as Effect, Lr as State$5, Nr as Config$5, On as DefineNode, Or as Config$2, P as HudPartValue, Pn as SceneIdOf, Qn as ProjectionSpec, Qr as PauseReason, R as OverlayValue, Rn as EffectOptions, S as SceneDefinition, Sr as Config$9, T as State$7, Tn as FeatureTree, V as ShapeValue, W as SpriteOptions, X as Api$4, Xn as NumericFields, Xr as Config$4, Yr as Api$3, Z as Config$6, Zn as ProjectionMotion, Zr as Events, _ as AnySceneProjection, _r as ResourceType, a as Config$1, ai as State$8, br as TagType, bt as FrameRing, c as LoadBundles, cn as BundlesOf, di as Require, dn as GameTypes, f as ReadyBundles, fn as HudKeysOf, ft as ViewportSize, gr as QueryTerm, hn as TextStylesOf, hr as Narrowed, i as BundleSpec, ii as RateChange, it as State$6, l as LoadReason, li as Config$10, ln as Config$3, lr as ComponentType, m as Tier, mn as State$3, mr as Mut, ni as Config$8, o as DefineBundles, oi as ThermalReading, p as State$1, q as TransformValue, qr as RngApi, r as BundleMap, sn as Api$2, sr as ComponentHandle, t as Api, ti as Api$5, u as LoadResult, ui as Events$1, un as EmitterIdOf, ur as ComponentValue, v as Config$7, vn as defineFlow, vr as SystemDefinition, w as ScenesApi, wn as FeaturePlugin, wr as State$9, x as LayerMap, xr as Api$6, y as DefineScene, yr as SystemFor, yt as FrameRecord, zn as GuideOptions, zr as Patch } 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 { $n as ReducedMotion, $r as State$4, Ar as State$2, At as PassKind, Bn as Hint, C as SceneSpec, Cn as FeatureDescription, Er as Api$1, Fr as Json, G as SpriteValue, Gn as DescriptionNode, Hn as Answer, I as NineSliceValue, In as Descriptor, Ir as Root, J as sprite, Kn as Ease, Kr as StoreApi, Ln as Effect, Lr as State$5, Nr as Config$5, On as DefineNode, Or as Config$2, P as HudPartValue, Pn as SceneIdOf, Qn as ProjectionSpec, Qr as PauseReason, R as OverlayValue, Rn as EffectOptions, S as SceneDefinition, Sr as Config$9, T as State$7, Tn as FeatureTree, V as ShapeValue, W as SpriteOptions, X as Api$4, Xn as NumericFields, Xr as Config$4, Yr as Api$3, Z as Config$6, Zn as ProjectionMotion, Zr as Events, _ as AnySceneProjection, _r as ResourceType, a as Config$1, ai as State$8, br as TagType, bt as FrameRing, c as LoadBundles, cn as BundlesOf, di as Require, dn as GameTypes, f as ReadyBundles, fn as HudKeysOf, ft as ViewportSize, gr as QueryTerm, hn as TextStylesOf, hr as Narrowed, i as BundleSpec, ii as RateChange, it as State$6, l as LoadReason, li as Config$10, ln as Config$3, lr as ComponentType, m as Tier, mn as State$3, mr as Mut, ni as Config$8, o as DefineBundles, oi as ThermalReading, p as State$1, q as TransformValue, qr as RngApi, r as BundleMap, sn as Api$2, sr as ComponentHandle, t as Api, ti as Api$5, u as LoadResult, ui as Events$1, un as EmitterIdOf, ur as ComponentValue, v as Config$7, vn as defineFlow, vr as SystemDefinition, w as ScenesApi, wn as FeaturePlugin, wr as State$9, x as LayerMap, xr as Api$6, y as DefineScene, yr as SystemFor, yt as FrameRecord, zn as GuideOptions, zr as Patch } from "./types-DfHytzox.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-DJCC9CAp.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-CPWi_CLI.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 ProblemRule, At as PassKind, B as Shape, Bt as PerfGapLine, Ct as MonitorSections, Dt as PERF_GAP_BUCKETS, E as types_d_exports$13, Et as PERF_CAUSES, F as NineSlice, Ft as PerfCollectorLine, Gn as DescriptionNode, Gt as PerfMeasured, H as Sprite, Ht as PerfLogLine, It as PerfCounts, J as sprite, Jt as PerfStartupLine, K as Transform, Kt as PerfSampleLine, L as Overlay, Lt as PerfDisplay, M as Display, Mt as PerfCause, N as HudPart, Nt as PerfChange, Ot as PERF_LOG_VERSION, P as HudPartValue, Pt as PerfChangeEntry, Q as MonitorConfig, Qt as ProblemEventDetail, R as OverlayValue, Rr as types_d_exports$10, Rt as PerfEventLine, Sn as type, St as MONITOR_SECTIONS, Tr as types_d_exports$17, Tt as OverlayWhat, U as SpriteBlend, Un as AnchorTarget, Ur as SaveUnreadableError, Ut as PerfLongFrameLine, Vt as PerfHeaderLine, Wt as PerfMarkLine, Xt as PerfThermalLine, Y as AdaptiveScale, Yt as PerfTelemetryLine, Zt as PoolTrimDetail, _n as contribution, _t as FrameReadResult, an as CanvasRestart, bn as slot, bt as FrameRing, ci as types_d_exports$15, ct as MonitorCounts, ei as types_d_exports$9, en as SHADER_WHATS, er as SceneSwitch, g as types_d_exports$1, gn as types_d_exports$6, gt as FrameColumns, ht as WhyLive, in as CANVAS_RESTARTS, j as WhyEntry, jr as types_d_exports$3, jt as PassRecord, kt as PROBLEM_RULES, mt as RetakeWhy, nn as ShaderWhat, on as DEMAND_REASONS, ot as types_d_exports$12, qt as PerfSpikeLine, rn as WarmDetail, rt as PoolTrim, tn as ShaderEventDetail, vt as FrameReadout, wt as OverlayEventDetail, xn as to, xt as LongFrameEntry, yn as exit, yt as FrameRecord, z as Parent, zt as PerfEventName } 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 ProblemRule, At as PassKind, B as Shape, Bt as PerfGapLine, Ct as MonitorSections, Dt as PERF_GAP_BUCKETS, E as types_d_exports$13, Et as PERF_CAUSES, F as NineSlice, Ft as PerfCollectorLine, Gn as DescriptionNode, Gt as PerfMeasured, H as Sprite, Ht as PerfLogLine, It as PerfCounts, J as sprite, Jt as PerfStartupLine, K as Transform, Kt as PerfSampleLine, L as Overlay, Lt as PerfDisplay, M as Display, Mt as PerfCause, N as HudPart, Nt as PerfChange, Ot as PERF_LOG_VERSION, P as HudPartValue, Pt as PerfChangeEntry, Q as MonitorConfig, Qt as ProblemEventDetail, R as OverlayValue, Rr as types_d_exports$10, Rt as PerfEventLine, Sn as type, St as MONITOR_SECTIONS, Tr as types_d_exports$17, Tt as OverlayWhat, U as SpriteBlend, Un as AnchorTarget, Ur as SaveUnreadableError, Ut as PerfLongFrameLine, Vt as PerfHeaderLine, Wt as PerfMarkLine, Xt as PerfThermalLine, Y as AdaptiveScale, Yt as PerfTelemetryLine, Zt as PoolTrimDetail, _n as contribution, _t as FrameReadResult, an as CanvasRestart, bn as slot, bt as FrameRing, ci as types_d_exports$15, ct as MonitorCounts, ei as types_d_exports$9, en as SHADER_WHATS, er as SceneSwitch, g as types_d_exports$1, gn as types_d_exports$6, gt as FrameColumns, ht as WhyLive, in as CANVAS_RESTARTS, j as WhyEntry, jr as types_d_exports$3, jt as PassRecord, kt as PROBLEM_RULES, mt as RetakeWhy, nn as ShaderWhat, on as DEMAND_REASONS, ot as types_d_exports$12, qt as PerfSpikeLine, rn as WarmDetail, rt as PoolTrim, tn as ShaderEventDetail, vt as FrameReadout, wt as OverlayEventDetail, xn as to, xt as LongFrameEntry, yn as exit, yt as FrameRecord, z as Parent, zt as PerfEventName } from "./types-DfHytzox.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-DJCC9CAp.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-CPWi_CLI.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-DTHVVLFB.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, CANVAS_RESTARTS, type CanvasRestart, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, 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, type RetakeWhy, 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, type WhyEntry, type WhyLive, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, 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 worldPlugin, 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 DEMAND_REASONS, 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 CANVAS_RESTARTS, _ as defineBundles, _t as Tappable, a as cubicBezier, an as to, at as use, b as types_exports$17, bt as Traced, c as hint, cn as SaveUnreadableError, ct as Draggable, d as defineScene, dn as clockPlugin, dt as Hovered, en as flowPlugin, 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 slot, it as tween, j as types_exports$6, jt as Noise, k as types_exports$8, kt as Displacement, l as schedule, ln as lifecyclePlugin, lt as DropTarget, m as flattenFeatures, mt as Pressable, n as createPlugin, nn as contribution, nt as stagger, o as defineEffect, on as type, ot as wait, p as defineFeature, pt as PointerOver, q as haptic, qt as PERF_GAP_BUCKETS, r as defineGame, rn as exit, rt as stopSfx, s as guide, sn as modelPlugin, st as inputPlugin, t as createApp, tt as spawned, u as projection, un as timePlugin, 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 worldPlugin, 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 DEMAND_REASONS, 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 CANVAS_RESTARTS, _ as defineBundles, _t as Tappable, a as cubicBezier, an as to, at as use, b as types_exports$17, bt as Traced, c as hint, cn as SaveUnreadableError, ct as Draggable, d as defineScene, dn as clockPlugin, dt as Hovered, en as flowPlugin, 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 slot, it as tween, j as types_exports$6, jt as Noise, k as types_exports$8, kt as Displacement, l as schedule, ln as lifecyclePlugin, lt as DropTarget, m as flattenFeatures, mt as Pressable, n as createPlugin, nn as contribution, nt as stagger, o as defineEffect, on as type, ot as wait, p as defineFeature, pt as PointerOver, q as haptic, qt as PERF_GAP_BUCKETS, r as defineGame, rn as exit, rt as stopSfx, s as guide, sn as modelPlugin, st as inputPlugin, t as createApp, tt as spawned, u as projection, un as timePlugin, 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-DX2UW8sT.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, CANVAS_RESTARTS, 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 { Cr as Explained, Mr as Api, Wr as Snapshot, X as Api$2, at as Under, cr as ComponentSchema, fr as EntitySnapshot, h as Usage, jn as JournalEntry, kn as FlowGraph, lt as RenderStats, pn as Position, pr as FrameDiff, t as Api$3, xr as Api$1 } 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 { Cr as Explained, Mr as Api, Wr as Snapshot, X as Api$2, at as Under, cr as ComponentSchema, fr as EntitySnapshot, h as Usage, jn as JournalEntry, kn as FlowGraph, lt as RenderStats, pn as Position, pr as FrameDiff, t as Api$3, xr as Api$1 } from "./types-DfHytzox.mjs";
|
|
2
|
+
import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-DJCC9CAp.mjs";
|
|
3
|
+
import { c as UiNode } from "./types-CPWi_CLI.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-B8JIqsZk.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-DsRV-ph1.mjs";
|
|
6
|
+
import { n as defineSource } from "./define-DcB9KOfh.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-B3CsJr_p.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-B3CsJr_p.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-CPWi_CLI.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. */
|
|
@@ -42528,8 +42528,9 @@ function swapIn(ctx, scene, named, build) {
|
|
|
42528
42528
|
* @file scenes plugin — the next scene built aside on a live switch (spec 31, F61 S2). The world
|
|
42529
42529
|
* mounts the coming projections into a table of its own while the old scene stays current, drawn
|
|
42530
42530
|
* and alive; `ui` and the renderer do their part under the budget of a frame (`buildMs`); the frame
|
|
42531
|
-
* `world.projection.built()` first answers true commits it with the swap of a one-block switch
|
|
42532
|
-
*
|
|
42531
|
+
* `world.projection.built()` first answers true commits it with the swap of a one-block switch, or,
|
|
42532
|
+
* under a floor on the swap (`leave.loader.holdMs`, F130), the first such frame the floor passed
|
|
42533
|
+
* in. An abort of the node discards the build and leaves the world as it stood.
|
|
42533
42534
|
*/
|
|
42534
42535
|
/** A second in ms: the frame interval is this over the frame rate. */
|
|
42535
42536
|
const SECOND_MS$1 = 1e3;
|
|
@@ -42538,6 +42539,12 @@ const BUILD_SHARE = 2 / 3;
|
|
|
42538
42539
|
/** The frame interval when `time` answers no usable frame rate: a 60 Hz frame, ≈ 16.7 ms. */
|
|
42539
42540
|
const FALLBACK_FRAME_MS = SECOND_MS$1 / 60;
|
|
42540
42541
|
/**
|
|
42542
|
+
* The frames past the counter at the look's start a floor asks for: `signals` runs before `render`, so a swap in the
|
|
42543
|
+
* first frame has no `render` of the look behind it, and a swap in the second has one, even when one long frame ate the
|
|
42544
|
+
* whole floor.
|
|
42545
|
+
*/
|
|
42546
|
+
const HOLD_FRAMES = 2;
|
|
42547
|
+
/**
|
|
42541
42548
|
* Tells whether a value is a number a frame can count with: finite and above 0. Pure.
|
|
42542
42549
|
*
|
|
42543
42550
|
* @param value - The value.
|
|
@@ -42614,24 +42621,43 @@ function endBuild(ctx, build, how) {
|
|
|
42614
42621
|
build.resolve();
|
|
42615
42622
|
}
|
|
42616
42623
|
/**
|
|
42624
|
+
* Tells whether the floor on the swap lets a built scene commit: no floor, or the clock passed it and the look was drawn
|
|
42625
|
+
* once. The count is the look's, never the build's, so a switch slower than the floor is many frames past it and the
|
|
42626
|
+
* floor adds no frame. While it holds, the loop is kept awake: it may stop at `idleFps: 0` during a long floor. No floor
|
|
42627
|
+
* is one read; no allocation either way.
|
|
42628
|
+
*
|
|
42629
|
+
* @param ctx - Domain context of the plugin.
|
|
42630
|
+
* @param frame - The frame counter now.
|
|
42631
|
+
* @returns True when the build may commit.
|
|
42632
|
+
*/
|
|
42633
|
+
function holdOver(ctx, frame) {
|
|
42634
|
+
const hold = ctx.state.leaving?.hold;
|
|
42635
|
+
if (hold === void 0) return true;
|
|
42636
|
+
if (ctx.deps.clock.now() >= hold.until && frame >= hold.frame + HOLD_FRAMES) return true;
|
|
42637
|
+
ctx.deps.time.wake();
|
|
42638
|
+
return false;
|
|
42639
|
+
}
|
|
42640
|
+
/**
|
|
42617
42641
|
* The `signals` callback of a running build: counts the frame and commits the build the frame
|
|
42618
|
-
* every part of it is done. A world that stopped running live
|
|
42619
|
-
* fast, as the restore of a repro walks its route,
|
|
42620
|
-
* would never lay the coming scene out: the build is
|
|
42621
|
-
* as a switch in that mode is. While the build is not
|
|
42622
|
-
* allocation
|
|
42642
|
+
* every part of it is done and the floor on the swap passed. A world that stopped running live
|
|
42643
|
+
* during the build or its wait (a walk that went fast, as the restore of a repro walks its route,
|
|
42644
|
+
* or a pause) skips its `layout` phase, so `ui` would never lay the coming scene out: the build is
|
|
42645
|
+
* given up and the scene mounted in one block, as a switch in that mode is. While the build is not
|
|
42646
|
+
* done, a counter step and two calls, and while a floor holds it two calls more, no allocation:
|
|
42647
|
+
* the frame comes with the callback, as `snapshot()` copies.
|
|
42623
42648
|
*
|
|
42624
42649
|
* @param ctx - Domain context of the plugin.
|
|
42625
42650
|
* @param build - The running build.
|
|
42651
|
+
* @param frame - The frame counter of this frame.
|
|
42626
42652
|
*/
|
|
42627
|
-
function stepBuild(ctx, build) {
|
|
42653
|
+
function stepBuild(ctx, build, frame) {
|
|
42628
42654
|
build.frames += 1;
|
|
42629
42655
|
const world = ctx.deps.world;
|
|
42630
42656
|
if (world.ecs.mode() !== "live") {
|
|
42631
42657
|
endBuild(ctx, build, "mount");
|
|
42632
42658
|
return;
|
|
42633
42659
|
}
|
|
42634
|
-
if (world.projection.built()) endBuild(ctx, build, "commit");
|
|
42660
|
+
if (world.projection.built() && holdOver(ctx, frame)) endBuild(ctx, build, "commit");
|
|
42635
42661
|
}
|
|
42636
42662
|
/**
|
|
42637
42663
|
* Drops the running build on an abort of its node (a restore, the inbox, a stop of the runner):
|
|
@@ -42685,7 +42711,7 @@ function startBuildRecord(ctx, scene, named, budgetMs, settle) {
|
|
|
42685
42711
|
*/
|
|
42686
42712
|
function watchBuild(ctx, build, signal) {
|
|
42687
42713
|
const onAbort = () => abortBuild(ctx, build);
|
|
42688
|
-
const offFrame = ctx.deps.time.onFrame("signals", () => stepBuild(ctx, build));
|
|
42714
|
+
const offFrame = ctx.deps.time.onFrame("signals", (time) => stepBuild(ctx, build, time.frame));
|
|
42689
42715
|
signal.addEventListener("abort", onAbort, { once: true });
|
|
42690
42716
|
build.off = () => {
|
|
42691
42717
|
offFrame();
|
|
@@ -42697,9 +42723,9 @@ function watchBuild(ctx, build, signal) {
|
|
|
42697
42723
|
* Starts the build of a scene aside and answers the promise of the switch. The world mounts what
|
|
42698
42724
|
* only the coming scene lists, against the committed state, and gets the budget of a frame
|
|
42699
42725
|
* (`budgetOf`); the coming bundles are held from now.
|
|
42700
|
-
* When nothing is left for `ui` and the renderer
|
|
42701
|
-
* Otherwise a `signals` callback asks every frame whether the build is
|
|
42702
|
-
* node discards it.
|
|
42726
|
+
* When nothing is left for `ui` and the renderer and no floor holds the swap, the commit runs at
|
|
42727
|
+
* once, with no frame between. Otherwise a `signals` callback asks every frame whether the build is
|
|
42728
|
+
* done and the floor passed, and an abort of the node discards it.
|
|
42703
42729
|
*
|
|
42704
42730
|
* @param ctx - Domain context of the plugin.
|
|
42705
42731
|
* @param scene - The scene whose bundles are there.
|
|
@@ -42728,7 +42754,7 @@ function buildAside(ctx, scene, named, signal) {
|
|
|
42728
42754
|
resolve,
|
|
42729
42755
|
reject
|
|
42730
42756
|
});
|
|
42731
|
-
if (projection.built()) {
|
|
42757
|
+
if (projection.built() && holdOver(ctx, ctx.deps.time.snapshot().frame)) {
|
|
42732
42758
|
endBuild(ctx, build, "commit");
|
|
42733
42759
|
return;
|
|
42734
42760
|
}
|
|
@@ -43140,9 +43166,10 @@ function lookOf(loader) {
|
|
|
43140
43166
|
return {};
|
|
43141
43167
|
}
|
|
43142
43168
|
/**
|
|
43143
|
-
* Merges one level's loader over the one below. `afterMs`
|
|
43144
|
-
* choice: a level that names either replaces both of the level below.
|
|
43145
|
-
* `false` starts from the
|
|
43169
|
+
* Merges one level's loader over the one below. `afterMs` and `holdMs` are fields of their own; `texture` and
|
|
43170
|
+
* `projection` are one choice: a level that names either replaces both of the level below. A floor is written only when
|
|
43171
|
+
* above 0, so `holdMs: 0` lifts the one below. `false` turns it off; a loader written over `false` starts from the
|
|
43172
|
+
* engine's.
|
|
43146
43173
|
*
|
|
43147
43174
|
* @param below - The loader of the levels below, or `false`.
|
|
43148
43175
|
* @param over - What this level writes: nothing, `false` or fields.
|
|
@@ -43157,10 +43184,13 @@ function loaderOver(below, over) {
|
|
|
43157
43184
|
if (over === false) return false;
|
|
43158
43185
|
const base = below === false ? FALLBACK_LEAVE.loader : below;
|
|
43159
43186
|
const named = over.texture !== void 0 || over.projection !== void 0;
|
|
43160
|
-
|
|
43187
|
+
const merged = {
|
|
43161
43188
|
afterMs: over.afterMs ?? base.afterMs,
|
|
43162
43189
|
...lookOf(named ? over : base)
|
|
43163
43190
|
};
|
|
43191
|
+
const holdMs = over.holdMs ?? base.holdMs ?? 0;
|
|
43192
|
+
if (holdMs > 0) merged.holdMs = holdMs;
|
|
43193
|
+
return merged;
|
|
43164
43194
|
}
|
|
43165
43195
|
/**
|
|
43166
43196
|
* Resolves what a switch shows over the scene being left: the scene's `leave` over the config's over the engine's,
|
|
@@ -43257,10 +43287,26 @@ function leftScene(ctx, run) {
|
|
|
43257
43287
|
return ctx.state.scenes.get(current);
|
|
43258
43288
|
}
|
|
43259
43289
|
/**
|
|
43290
|
+
* Stamps the floor of a loader on the look of a switch that starts now: the clock moment the swap may happen at, and the
|
|
43291
|
+
* frame counter, read once here (`snapshot()` copies). A loader without one leaves the look as it is.
|
|
43292
|
+
*
|
|
43293
|
+
* @param ctx - Domain context of the plugin.
|
|
43294
|
+
* @param leaving - The look of the switch.
|
|
43295
|
+
* @param loader - The resolved loader.
|
|
43296
|
+
*/
|
|
43297
|
+
function stampHold(ctx, leaving, loader) {
|
|
43298
|
+
if (loader.holdMs === void 0) return;
|
|
43299
|
+
leaving.hold = {
|
|
43300
|
+
until: ctx.deps.clock.now() + loader.holdMs,
|
|
43301
|
+
frame: ctx.deps.time.snapshot().frame
|
|
43302
|
+
};
|
|
43303
|
+
}
|
|
43304
|
+
/**
|
|
43260
43305
|
* Shows the veil and the loader of a switch that starts now, before its bundles are awaited: the scene being left
|
|
43261
43306
|
* decides, and the scene being entered sets the veil's colour and alpha (`enter.cover`). A loader projection is fed
|
|
43262
|
-
* the switch from now on, and shown or mounted only once its loader is due.
|
|
43263
|
-
*
|
|
43307
|
+
* the switch from now on, and shown or mounted only once its loader is due. A loader with a floor stamps it here, on the
|
|
43308
|
+
* look's clock and frame counter: the swap of `build.ts` waits for it. An abort of the node drops both at once, from its
|
|
43309
|
+
* listener. The look keeps the node's signal, so the `scene` stage of the same node takes it over.
|
|
43264
43310
|
*
|
|
43265
43311
|
* @param ctx - Domain context of the plugin.
|
|
43266
43312
|
* @param scene - The scene being switched to.
|
|
@@ -43283,10 +43329,13 @@ function startLeave(ctx, scene, run) {
|
|
|
43283
43329
|
};
|
|
43284
43330
|
const look = {};
|
|
43285
43331
|
if (cover !== false) look.cover = cover;
|
|
43286
|
-
if (leave.loader !== false)
|
|
43287
|
-
|
|
43288
|
-
|
|
43289
|
-
|
|
43332
|
+
if (leave.loader !== false) {
|
|
43333
|
+
look.loader = loaderLook(ctx, leave.loader, {
|
|
43334
|
+
from,
|
|
43335
|
+
to: scene
|
|
43336
|
+
}, leaving);
|
|
43337
|
+
stampHold(ctx, leaving, leave.loader);
|
|
43338
|
+
}
|
|
43290
43339
|
ctx.deps.renderer.sync.leave.show(look);
|
|
43291
43340
|
run.signal.addEventListener("abort", () => endLeave(ctx, leaving, "drop"), {
|
|
43292
43341
|
once: true,
|
|
@@ -43475,6 +43524,10 @@ const LOADER_RULES = Object.freeze({
|
|
|
43475
43524
|
ok: isDuration,
|
|
43476
43525
|
hint: "the milliseconds the loader waits for, 0 or more"
|
|
43477
43526
|
},
|
|
43527
|
+
holdMs: {
|
|
43528
|
+
ok: isDuration,
|
|
43529
|
+
hint: "the milliseconds the swap waits for, 0 or more"
|
|
43530
|
+
},
|
|
43478
43531
|
texture: {
|
|
43479
43532
|
ok: isName,
|
|
43480
43533
|
hint: "an asset key such as \"ui.loader.ring\""
|
|
@@ -43915,11 +43968,11 @@ function beginScene(ctx, node, run) {
|
|
|
43915
43968
|
* teardown that removes exactly those registrations.
|
|
43916
43969
|
*/
|
|
43917
43970
|
/**
|
|
43918
|
-
* Resolves the dependency APIs `flow`, `world`, `assets`, `time`, `model` and `renderer`
|
|
43919
|
-
* `ctx.require`.
|
|
43971
|
+
* Resolves the dependency APIs `flow`, `world`, `assets`, `time`, `clock`, `model` and `renderer`
|
|
43972
|
+
* with `ctx.require`.
|
|
43920
43973
|
*
|
|
43921
43974
|
* @param ctx - Kernel context of the scenes plugin.
|
|
43922
|
-
* @returns The
|
|
43975
|
+
* @returns The seven dependency APIs.
|
|
43923
43976
|
*/
|
|
43924
43977
|
function resolveDeps$4(ctx) {
|
|
43925
43978
|
return {
|
|
@@ -43927,6 +43980,7 @@ function resolveDeps$4(ctx) {
|
|
|
43927
43980
|
world: ctx.require(worldPlugin),
|
|
43928
43981
|
assets: ctx.require(assetsPlugin),
|
|
43929
43982
|
time: ctx.require(timePlugin),
|
|
43983
|
+
clock: ctx.require(clockPlugin),
|
|
43930
43984
|
model: ctx.require(modelPlugin),
|
|
43931
43985
|
renderer: ctx.require(rendererPlugin)
|
|
43932
43986
|
};
|
|
@@ -43995,11 +44049,6 @@ function checkConfig(config) {
|
|
|
43995
44049
|
*
|
|
43996
44050
|
* @param ctx - Kernel context of the scenes plugin.
|
|
43997
44051
|
* @throws {Error} When two features declare the same scene id.
|
|
43998
|
-
* @example
|
|
43999
|
-
* ```ts
|
|
44000
|
-
* startScenes(ctx);
|
|
44001
|
-
* ctx.state.scenes.get("board")?.bundle; // "board", read out of the feature description
|
|
44002
|
-
* ```
|
|
44003
44052
|
*/
|
|
44004
44053
|
function startScenes(ctx) {
|
|
44005
44054
|
const scenes = withDeps$5(ctx);
|
|
@@ -44022,11 +44071,6 @@ function startScenes(ctx) {
|
|
|
44022
44071
|
*
|
|
44023
44072
|
* @param teardown - What the teardown context carries.
|
|
44024
44073
|
* @param teardown.state - The plugin state.
|
|
44025
|
-
* @example
|
|
44026
|
-
* ```ts
|
|
44027
|
-
* stopScenes({ state });
|
|
44028
|
-
* state.scenes.size; // 0, and the runner calls this plugin no more
|
|
44029
|
-
* ```
|
|
44030
44074
|
*/
|
|
44031
44075
|
function stopScenes(teardown) {
|
|
44032
44076
|
const state = teardown.state;
|
|
@@ -44115,6 +44159,7 @@ const scenesPlugin = /*#__PURE__*/ createPlugin$1("scenes", {
|
|
|
44115
44159
|
worldPlugin,
|
|
44116
44160
|
assetsPlugin,
|
|
44117
44161
|
timePlugin,
|
|
44162
|
+
clockPlugin,
|
|
44118
44163
|
modelPlugin,
|
|
44119
44164
|
rendererPlugin
|
|
44120
44165
|
],
|
|
@@ -71595,7 +71640,7 @@ function cubicBezier(x1, y1, x2, y2) {
|
|
|
71595
71640
|
* | assets | baseUrl | undefined |
|
|
71596
71641
|
* | assets | io | undefined, the browser fetch and the renderer textures |
|
|
71597
71642
|
* | scenes | buildMs | "auto", two thirds of a frame ((1000 / time.rate().fps) * 2 / 3, 11.1 ms at 60 Hz), read at each build start; a number fixes it |
|
|
71598
|
-
* | scenes | leave | { cover: { color: 0x000000, alpha: 0.45, inMs: 50, outMs: 150 }, loader: { afterMs: 400 } }, what a live switch shows over the scene being left: a veil from its start and a loader (the engine's ring, a `texture` or a `projection`) once it took `afterMs
|
|
71643
|
+
* | scenes | leave | { cover: { color: 0x000000, alpha: 0.45, inMs: 50, outMs: 150 }, loader: { afterMs: 400 } }, what a live switch shows over the scene being left: a veil from its start and a loader (the engine's ring, a `texture` or a `projection`) once it took `afterMs`, with `loader.holdMs` (default 0) a floor on the swap; a scene's `leave` is merged over it field by field, a field left out keeps this default, `false` turns a part or the whole off |
|
|
71599
71644
|
* | anim | maxTracks | 2000 |
|
|
71600
71645
|
* | anim | reducedMotion | false |
|
|
71601
71646
|
* | i18n | locale | "en" |
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Bn as Hint, Dr as ClockSource, En as AnyFlow, Fr as Json, In as Descriptor, Mn as NodeTable, Vn as NodeFx, kr as FakeClock, wn 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 { Bn as Hint, Dr as ClockSource, En as AnyFlow, Fr as Json, In as Descriptor, Mn as NodeTable, Vn as NodeFx, kr as FakeClock, wn as FeaturePlugin } from "./types-DfHytzox.mjs";
|
|
2
|
+
import { t as createApp } from "./index-DTHVVLFB.mjs";
|
|
3
|
+
import { b as saveOf, v as WithGameState, y as memory } from "./types-D-5dwalj.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-B8JIqsZk.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 { m as flattenFeatures, on as type, rn as exit, t as createApp, tn as refuseStart } from "./src-
|
|
1
|
+
import { m as flattenFeatures, on as type, rn as exit, t as createApp, tn as refuseStart } from "./src-DX2UW8sT.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,4 +1,4 @@
|
|
|
1
|
-
import { $n as ReducedMotion, Bn as Hint, Er as Api$5, Fr as Json, Hn as Answer, In as Descriptor, Jn as MotionCause, Kn as Ease, Un as AnchorTarget, Wn as ChangeHook, X as Api$3, Xn as NumericFields, Yn as MotionHandle, Zn as ProjectionMotion, ar as AnyComponentType, br as TagType, di as Require, dr as Entity, ft as ViewportSize, ir as AnyComponent, lr as ComponentType, or as AnyComponentValue, q as TransformValue, qn as Motion, rr as ViewHandle, s as Events$1, sn as Api$1, t as Api$4, ti as Api, xr as Api$2 } from "./types-
|
|
1
|
+
import { $n as ReducedMotion, Bn as Hint, Er as Api$5, Fr as Json, Hn as Answer, In as Descriptor, Jn as MotionCause, Kn as Ease, Un as AnchorTarget, Wn as ChangeHook, X as Api$3, Xn as NumericFields, Yn as MotionHandle, Zn as ProjectionMotion, ar as AnyComponentType, br as TagType, di as Require, dr as Entity, ft as ViewportSize, ir as AnyComponent, lr as ComponentType, or as AnyComponentValue, q as TransformValue, qn as Motion, rr as ViewHandle, s as Events$1, sn as Api$1, t as Api$4, ti as Api, xr as Api$2 } from "./types-DfHytzox.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,7 +1,7 @@
|
|
|
1
|
-
import { Br as PlayerStateProvider, Dr as ClockSource, En as AnyFlow, Fn as TypeTag, Fr as Json, Gr as SnapshotOf, Hr as SaveDoc, Nr as Config, Vr as ProviderCall, Z as Config$2, a as Config$3, d as Manifest, et as PixiModule, kr as FakeClock, ln as Config$1, n as AssetsIo, ut as Orientation, wn 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 { Br as PlayerStateProvider, Dr as ClockSource, En as AnyFlow, Fn as TypeTag, Fr as Json, Gr as SnapshotOf, Hr as SaveDoc, Nr as Config, Vr as ProviderCall, Z as Config$2, a as Config$3, d as Manifest, et as PixiModule, kr as FakeClock, ln as Config$1, n as AssetsIo, ut as Orientation, wn as FeaturePlugin } from "./types-DfHytzox.mjs";
|
|
2
|
+
import { o as AudioContextLike, s as Config$4 } from "./types-DJCC9CAp.mjs";
|
|
3
|
+
import { R as I18nApi, U as StringTable, W as TextKey } from "./types-CPWi_CLI.mjs";
|
|
4
|
+
import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-DTHVVLFB.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 { $ as PixiFilter, $n as ReducedMotion, A as SyncApi, Fn as TypeTag, Fr as Json, In as Descriptor, Kn as Ease, Mr as Api$6, O as FilterSlot, Pr as Events$3, Un as AnchorTarget, X as Api$4, Xn as NumericFields, Yn as MotionHandle, Zr as Events$5, b as Events$4, di as Require, dr as Entity, dt as Point, et as PixiModule, ir as AnyComponent, k as FilterSlotInputs, lr as ComponentType, nr as TrackSegment, nt as PixiTexture, or as AnyComponentValue, pt as FilterCache, s as Events$1, sn as Api$2, sr as ComponentHandle, t as Api$5, ti as Api$1, tr as TrackOptions, tt as PixiSprite, ui as Events$2, xr as Api$3 } 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 PixiFilter, $n as ReducedMotion, A as SyncApi, Fn as TypeTag, Fr as Json, In as Descriptor, Kn as Ease, Mr as Api$6, O as FilterSlot, Pr as Events$3, Un as AnchorTarget, X as Api$4, Xn as NumericFields, Yn as MotionHandle, Zr as Events$5, b as Events$4, di as Require, dr as Entity, dt as Point, et as PixiModule, ir as AnyComponent, k as FilterSlotInputs, lr as ComponentType, nr as TrackSegment, nt as PixiTexture, or as AnyComponentValue, pt as FilterCache, s as Events$1, sn as Api$2, sr as ComponentHandle, t as Api$5, ti as Api$1, tr as TrackOptions, tt as PixiSprite, ui as Events$2, xr as Api$3 } from "./types-DfHytzox.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-CPWi_CLI.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
import { PluginCtx } from "@moku-labs/core";
|
|
5
5
|
|
|
@@ -12752,7 +12752,8 @@ type SceneCover = {
|
|
|
12752
12752
|
* both of the level below, and with both named `projection` is drawn. A projection loader draws in a layer of its own
|
|
12753
12753
|
* that the scene being left declares: kept built and hidden while that scene stands, shown once the loader is due (the
|
|
12754
12754
|
* whole layer is drawn above the veil while it shows), and faded out with the veil after the swap. `scenes` hands its
|
|
12755
|
-
* `from` the switch (`SceneSwitch`): where it goes and how far its bundles loaded.
|
|
12755
|
+
* `from` the switch (`SceneSwitch`): where it goes and how far its bundles loaded. `holdMs` is a floor on the swap: the
|
|
12756
|
+
* next scene builds at once and the old one stays until the floor passed.
|
|
12756
12757
|
*
|
|
12757
12758
|
* @example
|
|
12758
12759
|
* ```ts
|
|
@@ -12760,10 +12761,17 @@ type SceneCover = {
|
|
|
12760
12761
|
* const loader: SceneLoader<"ui.loader.ring"> = { texture: "ui.loader.ring" };
|
|
12761
12762
|
* // The game's own loading screen, the projection "loading" in the layer "loading", after 250 ms.
|
|
12762
12763
|
* const screen: SceneLoader = { afterMs: 250, projection: "loading" };
|
|
12764
|
+
* // A circle that opens over 260 ms, however fast the scene comes: shown from the first drawn frame, the swap held.
|
|
12765
|
+
* const opening: SceneLoader = { afterMs: 0, holdMs: 260, projection: "opening" };
|
|
12763
12766
|
* ```
|
|
12764
12767
|
*/
|
|
12765
12768
|
type SceneLoader<Asset extends string = string> = {
|
|
12766
|
-
/** Milliseconds after the switch start the loader waits for
|
|
12769
|
+
/** Milliseconds after the switch start the loader waits for; 0 shows it from the first drawn frame. Default 400. */afterMs?: number;
|
|
12770
|
+
/**
|
|
12771
|
+
* Milliseconds after the switch start before the swap may happen, on the clock of the look: a floor, so a switch
|
|
12772
|
+
* slower than it gets nothing added. Merged like `afterMs`: 0 lifts the floor of the level below. Default 0.
|
|
12773
|
+
*/
|
|
12774
|
+
holdMs?: number; /** An asset key of the game: the texture turns at the centre of the frame. */
|
|
12767
12775
|
texture?: Asset;
|
|
12768
12776
|
/**
|
|
12769
12777
|
* The name of a registered projection: kept built and hidden while the scene stands, shown once the loader is due,
|
|
@@ -12933,7 +12941,7 @@ type Config$1 = {
|
|
|
12933
12941
|
/**
|
|
12934
12942
|
* What a live switch shows over the scene being left, for every scene; a scene's own `leave` is merged over it field
|
|
12935
12943
|
* by field. A field left out keeps the engine's default, `{ cover: { color: 0x000000, alpha: 0.45, inMs: 50,
|
|
12936
|
-
* outMs: 150 }, loader: { afterMs: 400 } }
|
|
12944
|
+
* outMs: 150 }, loader: { afterMs: 400 } }`, which holds no swap (no `holdMs`); `false` turns a part or the whole off.
|
|
12937
12945
|
*
|
|
12938
12946
|
* @example
|
|
12939
12947
|
* ```ts
|
|
@@ -12942,6 +12950,11 @@ type Config$1 = {
|
|
|
12942
12950
|
* plugins: [...screen, boardFeature],
|
|
12943
12951
|
* pluginConfigs: { scenes: { leave: { cover: { alpha: 0.6 }, loader: { afterMs: 300, texture: "ui.loader.ring" } } } }
|
|
12944
12952
|
* });
|
|
12953
|
+
* // A circle that opens over 260 ms from the first drawn frame, however fast the next scene comes.
|
|
12954
|
+
* createApp({
|
|
12955
|
+
* plugins: [...screen, boardFeature],
|
|
12956
|
+
* pluginConfigs: { scenes: { leave: { loader: { afterMs: 0, holdMs: 260, projection: "opening" } } } }
|
|
12957
|
+
* });
|
|
12945
12958
|
* // No veil and no loader on any switch.
|
|
12946
12959
|
* createApp({ plugins: [...screen, boardFeature], pluginConfigs: { scenes: { leave: false } } });
|
|
12947
12960
|
* ```
|
|
@@ -13052,6 +13065,15 @@ type Leaving = {
|
|
|
13052
13065
|
*/
|
|
13053
13066
|
projection?: string; /** Milliseconds the veil fades out over after the swap, 0 without a veil: a loader shown goes with it. */
|
|
13054
13067
|
outMs: number;
|
|
13068
|
+
/**
|
|
13069
|
+
* The floor on the swap (F130), for a loader that is on with `holdMs` above 0: the clock moment the swap may happen at,
|
|
13070
|
+
* and the frame counter at the look's start. Absent: no floor. `state.leaving` is always the running switch's look
|
|
13071
|
+
* (`dropLeftOver` and `leaveFor` keep it so), which is why the build reads it there.
|
|
13072
|
+
*/
|
|
13073
|
+
hold?: {
|
|
13074
|
+
until: number;
|
|
13075
|
+
frame: number;
|
|
13076
|
+
};
|
|
13055
13077
|
/**
|
|
13056
13078
|
* The loader projection the switch feeds its `SceneSwitch` (F107 part 1), from its start to its swap or drop. Absent
|
|
13057
13079
|
* when it feeds none: a ring, a texture, a loader turned off, or a projection another owner shows.
|
|
@@ -13094,10 +13116,12 @@ type BundleProgress = Events["assets:bundle-progress"];
|
|
|
13094
13116
|
*/
|
|
13095
13117
|
type FullCover = Required<SceneCover>;
|
|
13096
13118
|
/**
|
|
13097
|
-
* A loader with its delay
|
|
13119
|
+
* A loader with its delay, at most one look and its floor on the swap, absent for no floor: what a level of `leave`
|
|
13120
|
+
* resolves to.
|
|
13098
13121
|
*/
|
|
13099
13122
|
type FullLoader = {
|
|
13100
13123
|
afterMs: number;
|
|
13124
|
+
holdMs?: number;
|
|
13101
13125
|
texture?: string;
|
|
13102
13126
|
projection?: string;
|
|
13103
13127
|
};
|
|
@@ -13181,7 +13205,8 @@ type Deps$1 = {
|
|
|
13181
13205
|
flow: Api$2;
|
|
13182
13206
|
world: Api$3;
|
|
13183
13207
|
assets: Api;
|
|
13184
|
-
time: Api$7;
|
|
13208
|
+
time: Api$7; /** The clock of the look, which a floor on the swap is counted on. */
|
|
13209
|
+
clock: Api$4;
|
|
13185
13210
|
model: Api$5;
|
|
13186
13211
|
/**
|
|
13187
13212
|
* Whether the renderer draws, which chooses the path of a switch, and the performance log of
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Fr as Json, Wr as Snapshot } from "./types-
|
|
2
|
-
import { t as HeadlessApp } from "./headless-
|
|
1
|
+
import { Fr as Json, Wr as Snapshot } from "./types-DfHytzox.mjs";
|
|
2
|
+
import { t as HeadlessApp } from "./headless-B8JIqsZk.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
|
|
5
5
|
//#region src/plugins/flow/doors/types.d.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Er as Api$4, Mr as Api$2, X as Api, Yr as Api$3, xr as Api$1 } 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 { Er as Api$4, Mr as Api$2, X as Api, Yr as Api$3, xr as Api$1 } from "./types-DfHytzox.mjs";
|
|
2
|
+
import { P as AnimApi, r as UiApi } from "./types-DJCC9CAp.mjs";
|
|
3
|
+
import { N as InputApi } from "./types-CPWi_CLI.mjs";
|
|
4
|
+
import { r as Repro } from "./headless-B8JIqsZk.mjs";
|
|
5
|
+
import { a as InputOf, r as ControlApp } from "./types-DsRV-ph1.mjs";
|
|
6
|
+
import { t as commands } from "./commands-DKjkHK5b.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-B76IxxTL.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/llms.txt
CHANGED
|
@@ -561,7 +561,7 @@ The graph. Modules `runner`, `gate`, `inbox`, `fx`, `features`. Runner methods s
|
|
|
561
561
|
- Overlays: `Overlay({ dim, dimColor, cover, hud, fade, hold })` on the root of an overlay (in `components`) keeps everything drawn before it as one picture, retaken in the frame anything in it changes, and with `cover: "opaque"` draws none of it once landed at alpha 1; `hold: true` (default `false`) holds the endless loops under it while it stands, as under a cover or a blurred picture (their phase follows time), so a dimmed sheet over a sharp scene draws no frame at rest; the engine draws the dim (`dim × level`, right under the root); the level follows the root's own enter and exit motion, `fade` (250 ms) only when it has none; level and landing are read through `app.renderer.sync.debug.overlays()`. A `backdrop: true` filter inside the kept range runs no pass while the picture stands (its look is in the picture) and is drawn again in the frame the overlay is gone. Types: `OverlayValue` (the component's value) and `HudPartValue` (a part of the HUD an overlay keeps shown or lets fade).
|
|
562
562
|
- HUD: a scene layer `{ above: "overlays" }` is the HUD layer, drawn above every overlay and never in a picture; a scene with a HUD layer and no `ui` gets `ui` right under it. Its roots never take the keyboard: Escape and the Back press reach the top sheet under it. `HudPart({ key })` tags a HUD view; an overlay's `hud` (`"all"`, `"none"` or keys) names the parts that stay shown, the others fade with its level and take no tap. Keys are typed by `defineGame<{ …, hud: "energy" | "gems" }>()`.
|
|
563
563
|
- Endless loops of views under an opaque or blurred overlay write nothing (`renderer.sync.loopsHeld(entity)`, the seam anim asks before an endless loop writes); their phase follows time.
|
|
564
|
-
- Scene switch look: from the start of a live switch (before its bundles and textures are awaited) the renderer draws a veil over the scene being left, above every layer, and, when the switch is not done `afterMs` after its start, a loader above it until the swap; then the veil fades out over the new scene. Config `scenes.leave` (default `{ cover: { color: 0x000000, alpha: 0.45, inMs: 50, outMs: 150 }, loader: { afterMs: 400 } }`) and a scene's `leave` (`defineScene("ward", { ..., leave: false })`) are merged field by field (the scene being left decides; `false` turns a part or the whole off); the loader is the engine's white ring, `loader: { texture: "ui.loader.ring" }` a game texture turning, or `loader: { projection: "loading" }` a projection in a layer of its own the scene declares (no other projection of the scene may draw there), kept built and hidden while the scene stands and shown once the loader is due; `scenes` feeds that loader the switch (`projection.feed`), so its `from(player, session, sw)` reads a `SceneSwitch`: `{ from: "ward", to: "ward", progress: 0 }` while the ward stands, then `{ from: "ward", to: "board", progress }`, the share of the board's bundles loaded (from `assets:bundle-progress`; a bundle loaded at the start or once the scene stage has its loads counts whole), 0 to 1 in steps of 0.01, the last exactly 1; an abort or a throw drops both at once; fast walks, a world that is not live, headless apps and the first scene show nothing. The scene being entered sets the veil's colour and alpha: `defineScene("night", { ..., enter: { cover: { color: 0x0b1020, alpha: 0.7 } } })` wins over what the scene being left resolved, field by field; `inMs`/`outMs` stay the left scene's and a veil turned off stays off. Types `SceneLeave`, `SceneCover`, `SceneLoader`, `SceneEnter` (`Scenes`).
|
|
564
|
+
- Scene switch look: from the start of a live switch (before its bundles and textures are awaited) the renderer draws a veil over the scene being left, above every layer, and, when the switch is not done `afterMs` after its start, a loader above it until the swap; then the veil fades out over the new scene. Config `scenes.leave` (default `{ cover: { color: 0x000000, alpha: 0.45, inMs: 50, outMs: 150 }, loader: { afterMs: 400 } }`) and a scene's `leave` (`defineScene("ward", { ..., leave: false })`) are merged field by field (the scene being left decides; `false` turns a part or the whole off); the loader is the engine's white ring, `loader: { texture: "ui.loader.ring" }` a game texture turning, or `loader: { projection: "loading" }` a projection in a layer of its own the scene declares (no other projection of the scene may draw there), kept built and hidden while the scene stands and shown once the loader is due; `scenes` feeds that loader the switch (`projection.feed`), so its `from(player, session, sw)` reads a `SceneSwitch`: `{ from: "ward", to: "ward", progress: 0 }` while the ward stands, then `{ from: "ward", to: "board", progress }`, the share of the board's bundles loaded (from `assets:bundle-progress`; a bundle loaded at the start or once the scene stage has its loads counts whole), 0 to 1 in steps of 0.01, the last exactly 1; `loader: { holdMs: 260 }` (default 0) is a floor on the swap: the next scene builds at once and the old one stays until 260 ms after the switch start and one drawn frame of the look, so a switch slower than it gets nothing added; an abort or a throw drops both at once; fast walks, a world that is not live, headless apps and the first scene show nothing and hold nothing. The scene being entered sets the veil's colour and alpha: `defineScene("night", { ..., enter: { cover: { color: 0x0b1020, alpha: 0.7 } } })` wins over what the scene being left resolved, field by field; `inMs`/`outMs` stay the left scene's and a veil turned off stays off. Types `SceneLeave`, `SceneCover`, `SceneLoader`, `SceneEnter` (`Scenes`).
|
|
565
565
|
- A scene names bundles on top of its `bundle` from the committed state: `defineScene("ward", { bundle: "episodes-kit", bundles: ({ session }) => [session.episode], layers: {}, projections: [wardRoom] })`. `bundles` is read each time a node enters the scene, and every way in (a live entry, a restore, the `safeNode` recovery) waits for all of them before the scene is mounted and the node's gate opens. The keys are `BundleKey`s of `generated/assets.ts`.
|
|
566
566
|
- `app.assets`: `load(bundle)`, `warm(bundle)` (loads it if needed, then puts its textures and atlas pages on the GPU through `renderer.sync.textures.upload`, `renderer.uploads` a drawn frame; joins a running or finished warm; an unload forgets it; resolves also when the renderer could not upload; headless at once), `unload(bundle)`, `isLoaded(bundle)`, `has(bundle)` (the manifest carries it, loaded or not), `texture(key)`, `font(key)`, `audio(key)`, `usage()`. Per bundle in a feature's `assets.ts`: `defineBundles({ ep01: { tier: "feature", release: "leave", mipmaps: ["items/**"] } })`. `release: "leave"` also unloads the bundle, with reason `"leave"`, at the next rest once nothing holds it: not pinned by the node entered, not named by the mounted scene, no node of its feature on the stack; a bundle the outgoing scene named leaves one rest later. The default `"budget"` leaves only under the texture budget. `mipmaps` (`true` or globs relative to `assets/`) uploads the textures with their full chain; such a texture stays loose in a pack. A sub-feature with resources gets its own bundles, named like its folder, with `dir` and `parent` in the manifest; a code-only one has none. The effect `ready(bundle | bundles)` (root export, also from `defineGame`) lets a node rest on a load and stay answerable: its handler (fast mode too) answers `true` headless, throws for an unknown bundle, answers `true` when every bundle is loaded and warmed or its last warm failed (`ctx.log.warn("assets:ready-failed", { bundle, error })`, cleared by a later successful load), otherwise starts `warm` for what is missing, answers `false` and posts `{ type: "ready" }` into `flow.inbox` once all of it settled. Recipe: a rest node `inbox: ["elapsed", "ready"]` with outcomes `ready` and `back`, and a transit node `if ((await fx(ready(list))) === false) return out.wait();`. `companions.add({ load(bundle), unload(bundle) })` adds what loads and unloads with every bundle; `i18n` adds the strings of a sub-feature that way, only when `assets` is composed. Events `assets:bundle-loaded`, `assets:bundle-progress`, `assets:bundle-unloaded` (`reason: "budget" | "request" | "leave"`), `assets:replaced` (dev). Config: `manifest`, `textureBudgetMb: 192`, `preloadDepth: 2`, `baseUrl`, `io`.
|
|
567
567
|
- `resource(name, defaults)` clones plain JSON defaults into every world. `resource(name, () => value)` calls the factory once per world on first read, so the value may hold a `Map` or a function: `const Looks = resource("boardLooks", () => ({ shown: new Map<World.Entity, { look: string }>() }))`. A system keeps its own state there; `snapshot()` leaves a value that is not JSON out.
|