@moku-labs/game 0.15.81 → 0.15.83
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-Dcft8otV.mjs} +102 -75
- 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-Dcft8otV.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-Dcft8otV.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. */
|
|
@@ -17191,7 +17191,10 @@ function createHostApi(ctx, deps) {
|
|
|
17191
17191
|
if (!state.ready || app === void 0) return void 0;
|
|
17192
17192
|
return extractStage(ctx, app, hidden);
|
|
17193
17193
|
},
|
|
17194
|
-
resolution: () =>
|
|
17194
|
+
resolution: () => {
|
|
17195
|
+
const app = state.app;
|
|
17196
|
+
return app === void 0 ? 1 : app.renderer.resolution;
|
|
17197
|
+
},
|
|
17195
17198
|
textures: () => {
|
|
17196
17199
|
const app = state.app;
|
|
17197
17200
|
if (!state.ready || app === void 0) return {
|
|
@@ -18758,26 +18761,15 @@ const BEFORE = {
|
|
|
18758
18761
|
shown: false
|
|
18759
18762
|
};
|
|
18760
18763
|
/**
|
|
18761
|
-
* The resolution one filter draws at: its own, or the target's for `"inherit"` (Pixi's own rule).
|
|
18762
|
-
*
|
|
18763
|
-
* @param filter - The filter.
|
|
18764
|
-
* @param resolution - The target's resolution.
|
|
18765
|
-
* @returns Texels per CSS px.
|
|
18766
|
-
*/
|
|
18767
|
-
function resolutionOf$1(filter, resolution) {
|
|
18768
|
-
const own = filter.resolution;
|
|
18769
|
-
return own === "inherit" ? resolution : own;
|
|
18770
|
-
}
|
|
18771
|
-
/**
|
|
18772
18764
|
* Reads what the enabled filters of a stack draw with: how many, the smallest resolution, the padding sum Pixi
|
|
18773
|
-
* pads by (whole pixels), and the alpha they multiply by while every one is an `AlphaFilter`.
|
|
18765
|
+
* pads by (whole pixels), and the alpha they multiply by while every one is an `AlphaFilter`. A filter on `"inherit"`
|
|
18766
|
+
* draws at the renderer resolution (Pixi's own rule), the one `markAlphaDue` wrote to `NOW`.
|
|
18774
18767
|
*
|
|
18775
18768
|
* @param slots - The record's slots.
|
|
18776
|
-
* @param resolution - The renderer resolution.
|
|
18777
18769
|
* @param alphaFilter - Pixi's `AlphaFilter` class.
|
|
18778
18770
|
* @param into - Where the numbers go.
|
|
18779
18771
|
*/
|
|
18780
|
-
function readStack(slots,
|
|
18772
|
+
function readStack(slots, alphaFilter, into) {
|
|
18781
18773
|
let enabled = 0;
|
|
18782
18774
|
let rs = Number.POSITIVE_INFINITY;
|
|
18783
18775
|
let padding = 0;
|
|
@@ -18788,12 +18780,13 @@ function readStack(slots, resolution, alphaFilter, into) {
|
|
|
18788
18780
|
if (filter === void 0 || !filter.enabled) continue;
|
|
18789
18781
|
enabled += 1;
|
|
18790
18782
|
passes += slots[index]?.passes ?? 0;
|
|
18791
|
-
|
|
18783
|
+
const own = filter.resolution;
|
|
18784
|
+
rs = own === "inherit" ? Math.min(rs, NOW.r) : Math.min(rs, own);
|
|
18792
18785
|
padding += filter.padding;
|
|
18793
18786
|
alpha *= filter instanceof alphaFilter ? filter.alpha : NaN;
|
|
18794
18787
|
}
|
|
18795
18788
|
into.enabled = enabled;
|
|
18796
|
-
into.rs = enabled === 0 ?
|
|
18789
|
+
into.rs = enabled === 0 ? NOW.r : rs;
|
|
18797
18790
|
into.P = Math.trunc(padding);
|
|
18798
18791
|
into.alpha = alpha;
|
|
18799
18792
|
into.passes = passes;
|
|
@@ -18803,22 +18796,11 @@ function readStack(slots, resolution, alphaFilter, into) {
|
|
|
18803
18796
|
* padding, at the renderer resolution. The quad then draws the picture itself at that alpha, as Pixi's alpha pass
|
|
18804
18797
|
* draws its input: no stage 3, no pass when the alpha changes.
|
|
18805
18798
|
*
|
|
18806
|
-
* @param now - This frame's numbers.
|
|
18807
|
-
* @returns True when it does.
|
|
18808
|
-
*/
|
|
18809
|
-
function drawsDirect(now) {
|
|
18810
|
-
return drawsDirectAt(now, now.r);
|
|
18811
|
-
}
|
|
18812
|
-
/**
|
|
18813
|
-
* Tells whether a stack draws direct at a renderer resolution (F54): every enabled filter an `AlphaFilter`, no
|
|
18814
|
-
* padding, at that resolution.
|
|
18815
|
-
*
|
|
18816
18799
|
* @param stack - The stack's numbers.
|
|
18817
|
-
* @param resolution - The renderer resolution.
|
|
18818
18800
|
* @returns True when it does.
|
|
18819
18801
|
*/
|
|
18820
|
-
function
|
|
18821
|
-
return !Number.isNaN(stack.alpha) && stack.P === 0 && stack.rs ===
|
|
18802
|
+
function drawsDirect(stack) {
|
|
18803
|
+
return !Number.isNaN(stack.alpha) && stack.P === 0 && stack.rs === NOW.r;
|
|
18822
18804
|
}
|
|
18823
18805
|
/**
|
|
18824
18806
|
* Tells whether a take the budget refused still does not fit (P6.3); the pool's bytes are the take's to have (F119).
|
|
@@ -20205,22 +20187,23 @@ function stepCalm(kctx, record) {
|
|
|
20205
20187
|
* Marks, before the step, the live records drawn direct that may be taken in this flush (F114): eligible, nothing
|
|
20206
20188
|
* changed under them. An alpha take costs one pass and its live draw two, so while one is due no other first take
|
|
20207
20189
|
* happens in this frame. A record due once that did not end its step kept is not due again until a change under it.
|
|
20208
|
-
* The others drawn live are counted: a first take among a crowd of them is not spread (F119).
|
|
20190
|
+
* The others drawn live are counted: a first take among a crowd of them is not spread (F119). The resolution of the
|
|
20191
|
+
* flush is read here, once, for every record it steps.
|
|
20209
20192
|
*
|
|
20210
20193
|
* @param kctx - The kept context.
|
|
20211
20194
|
* @param pixi - The module that draws.
|
|
20212
20195
|
*/
|
|
20213
20196
|
function markAlphaDue(kctx, pixi) {
|
|
20214
20197
|
const { state } = kctx;
|
|
20215
|
-
|
|
20198
|
+
NOW.r = kctx.host.resolution();
|
|
20216
20199
|
state.alphaDue = false;
|
|
20217
20200
|
state.liveWaiting = 0;
|
|
20218
20201
|
for (let index = 0; index < state.records.length; index += 1) {
|
|
20219
20202
|
const record = state.records[index];
|
|
20220
20203
|
const view = record === void 0 ? void 0 : kctx.ctx.state.sync.views.get(record.entity);
|
|
20221
20204
|
if (record === void 0 || view === void 0 || !mayBeDue(kctx, record)) continue;
|
|
20222
|
-
readStack(record.slots,
|
|
20223
|
-
const direct =
|
|
20205
|
+
readStack(record.slots, pixi.AlphaFilter, DUE);
|
|
20206
|
+
const direct = drawsDirect(DUE);
|
|
20224
20207
|
record.alphaDue = direct && eligible(kctx, record, view, DUE) === 0;
|
|
20225
20208
|
state.alphaDue ||= record.alphaDue;
|
|
20226
20209
|
if (!direct && drawnLive(kctx, record)) state.liveWaiting += 1;
|
|
@@ -20257,8 +20240,7 @@ function stepRecord(kctx, pixi, matrices, record, view) {
|
|
|
20257
20240
|
record.displays = void 0;
|
|
20258
20241
|
record.idleSeen = false;
|
|
20259
20242
|
}
|
|
20260
|
-
|
|
20261
|
-
readStack(record.slots, NOW.r, pixi.AlphaFilter, NOW);
|
|
20243
|
+
readStack(record.slots, pixi.AlphaFilter, NOW);
|
|
20262
20244
|
const why = eligible(kctx, record, view, NOW);
|
|
20263
20245
|
if (why === 0) stepEligible(kctx, pixi, matrices, record, view);
|
|
20264
20246
|
else stepIneligible(kctx, record, view, why);
|
|
@@ -20338,7 +20320,7 @@ function takenAfterInner(pixi, above) {
|
|
|
20338
20320
|
const { key } = above;
|
|
20339
20321
|
const drawn = drawnResolution(key, above.direct);
|
|
20340
20322
|
if (above.mode !== "kept" || drawn >= NOW.r || key[KEY.rs] !== drawn) return false;
|
|
20341
|
-
readStack(above.slots,
|
|
20323
|
+
readStack(above.slots, pixi.AlphaFilter, DUE);
|
|
20342
20324
|
return above.direct || DUE.rs === NOW.r;
|
|
20343
20325
|
}
|
|
20344
20326
|
/**
|
|
@@ -42528,8 +42510,9 @@ function swapIn(ctx, scene, named, build) {
|
|
|
42528
42510
|
* @file scenes plugin — the next scene built aside on a live switch (spec 31, F61 S2). The world
|
|
42529
42511
|
* mounts the coming projections into a table of its own while the old scene stays current, drawn
|
|
42530
42512
|
* 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
|
-
*
|
|
42513
|
+
* `world.projection.built()` first answers true commits it with the swap of a one-block switch, or,
|
|
42514
|
+
* under a floor on the swap (`leave.loader.holdMs`, F130), the first such frame the floor passed
|
|
42515
|
+
* in. An abort of the node discards the build and leaves the world as it stood.
|
|
42533
42516
|
*/
|
|
42534
42517
|
/** A second in ms: the frame interval is this over the frame rate. */
|
|
42535
42518
|
const SECOND_MS$1 = 1e3;
|
|
@@ -42538,6 +42521,12 @@ const BUILD_SHARE = 2 / 3;
|
|
|
42538
42521
|
/** The frame interval when `time` answers no usable frame rate: a 60 Hz frame, ≈ 16.7 ms. */
|
|
42539
42522
|
const FALLBACK_FRAME_MS = SECOND_MS$1 / 60;
|
|
42540
42523
|
/**
|
|
42524
|
+
* The frames past the counter at the look's start a floor asks for: `signals` runs before `render`, so a swap in the
|
|
42525
|
+
* 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
|
|
42526
|
+
* whole floor.
|
|
42527
|
+
*/
|
|
42528
|
+
const HOLD_FRAMES = 2;
|
|
42529
|
+
/**
|
|
42541
42530
|
* Tells whether a value is a number a frame can count with: finite and above 0. Pure.
|
|
42542
42531
|
*
|
|
42543
42532
|
* @param value - The value.
|
|
@@ -42614,24 +42603,43 @@ function endBuild(ctx, build, how) {
|
|
|
42614
42603
|
build.resolve();
|
|
42615
42604
|
}
|
|
42616
42605
|
/**
|
|
42606
|
+
* Tells whether the floor on the swap lets a built scene commit: no floor, or the clock passed it and the look was drawn
|
|
42607
|
+
* 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
|
|
42608
|
+
* floor adds no frame. While it holds, the loop is kept awake: it may stop at `idleFps: 0` during a long floor. No floor
|
|
42609
|
+
* is one read; no allocation either way.
|
|
42610
|
+
*
|
|
42611
|
+
* @param ctx - Domain context of the plugin.
|
|
42612
|
+
* @param frame - The frame counter now.
|
|
42613
|
+
* @returns True when the build may commit.
|
|
42614
|
+
*/
|
|
42615
|
+
function holdOver(ctx, frame) {
|
|
42616
|
+
const hold = ctx.state.leaving?.hold;
|
|
42617
|
+
if (hold === void 0) return true;
|
|
42618
|
+
if (ctx.deps.clock.now() >= hold.until && frame >= hold.frame + HOLD_FRAMES) return true;
|
|
42619
|
+
ctx.deps.time.wake();
|
|
42620
|
+
return false;
|
|
42621
|
+
}
|
|
42622
|
+
/**
|
|
42617
42623
|
* 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
|
|
42624
|
+
* every part of it is done and the floor on the swap passed. A world that stopped running live
|
|
42625
|
+
* during the build or its wait (a walk that went fast, as the restore of a repro walks its route,
|
|
42626
|
+
* or a pause) skips its `layout` phase, so `ui` would never lay the coming scene out: the build is
|
|
42627
|
+
* given up and the scene mounted in one block, as a switch in that mode is. While the build is not
|
|
42628
|
+
* done, a counter step and two calls, and while a floor holds it two calls more, no allocation:
|
|
42629
|
+
* the frame comes with the callback, as `snapshot()` copies.
|
|
42623
42630
|
*
|
|
42624
42631
|
* @param ctx - Domain context of the plugin.
|
|
42625
42632
|
* @param build - The running build.
|
|
42633
|
+
* @param frame - The frame counter of this frame.
|
|
42626
42634
|
*/
|
|
42627
|
-
function stepBuild(ctx, build) {
|
|
42635
|
+
function stepBuild(ctx, build, frame) {
|
|
42628
42636
|
build.frames += 1;
|
|
42629
42637
|
const world = ctx.deps.world;
|
|
42630
42638
|
if (world.ecs.mode() !== "live") {
|
|
42631
42639
|
endBuild(ctx, build, "mount");
|
|
42632
42640
|
return;
|
|
42633
42641
|
}
|
|
42634
|
-
if (world.projection.built()) endBuild(ctx, build, "commit");
|
|
42642
|
+
if (world.projection.built() && holdOver(ctx, frame)) endBuild(ctx, build, "commit");
|
|
42635
42643
|
}
|
|
42636
42644
|
/**
|
|
42637
42645
|
* Drops the running build on an abort of its node (a restore, the inbox, a stop of the runner):
|
|
@@ -42685,7 +42693,7 @@ function startBuildRecord(ctx, scene, named, budgetMs, settle) {
|
|
|
42685
42693
|
*/
|
|
42686
42694
|
function watchBuild(ctx, build, signal) {
|
|
42687
42695
|
const onAbort = () => abortBuild(ctx, build);
|
|
42688
|
-
const offFrame = ctx.deps.time.onFrame("signals", () => stepBuild(ctx, build));
|
|
42696
|
+
const offFrame = ctx.deps.time.onFrame("signals", (time) => stepBuild(ctx, build, time.frame));
|
|
42689
42697
|
signal.addEventListener("abort", onAbort, { once: true });
|
|
42690
42698
|
build.off = () => {
|
|
42691
42699
|
offFrame();
|
|
@@ -42697,9 +42705,9 @@ function watchBuild(ctx, build, signal) {
|
|
|
42697
42705
|
* Starts the build of a scene aside and answers the promise of the switch. The world mounts what
|
|
42698
42706
|
* only the coming scene lists, against the committed state, and gets the budget of a frame
|
|
42699
42707
|
* (`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.
|
|
42708
|
+
* When nothing is left for `ui` and the renderer and no floor holds the swap, the commit runs at
|
|
42709
|
+
* once, with no frame between. Otherwise a `signals` callback asks every frame whether the build is
|
|
42710
|
+
* done and the floor passed, and an abort of the node discards it.
|
|
42703
42711
|
*
|
|
42704
42712
|
* @param ctx - Domain context of the plugin.
|
|
42705
42713
|
* @param scene - The scene whose bundles are there.
|
|
@@ -42728,7 +42736,7 @@ function buildAside(ctx, scene, named, signal) {
|
|
|
42728
42736
|
resolve,
|
|
42729
42737
|
reject
|
|
42730
42738
|
});
|
|
42731
|
-
if (projection.built()) {
|
|
42739
|
+
if (projection.built() && holdOver(ctx, ctx.deps.time.snapshot().frame)) {
|
|
42732
42740
|
endBuild(ctx, build, "commit");
|
|
42733
42741
|
return;
|
|
42734
42742
|
}
|
|
@@ -43140,9 +43148,10 @@ function lookOf(loader) {
|
|
|
43140
43148
|
return {};
|
|
43141
43149
|
}
|
|
43142
43150
|
/**
|
|
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
|
|
43151
|
+
* Merges one level's loader over the one below. `afterMs` and `holdMs` are fields of their own; `texture` and
|
|
43152
|
+
* `projection` are one choice: a level that names either replaces both of the level below. A floor is written only when
|
|
43153
|
+
* above 0, so `holdMs: 0` lifts the one below. `false` turns it off; a loader written over `false` starts from the
|
|
43154
|
+
* engine's.
|
|
43146
43155
|
*
|
|
43147
43156
|
* @param below - The loader of the levels below, or `false`.
|
|
43148
43157
|
* @param over - What this level writes: nothing, `false` or fields.
|
|
@@ -43157,10 +43166,13 @@ function loaderOver(below, over) {
|
|
|
43157
43166
|
if (over === false) return false;
|
|
43158
43167
|
const base = below === false ? FALLBACK_LEAVE.loader : below;
|
|
43159
43168
|
const named = over.texture !== void 0 || over.projection !== void 0;
|
|
43160
|
-
|
|
43169
|
+
const merged = {
|
|
43161
43170
|
afterMs: over.afterMs ?? base.afterMs,
|
|
43162
43171
|
...lookOf(named ? over : base)
|
|
43163
43172
|
};
|
|
43173
|
+
const holdMs = over.holdMs ?? base.holdMs ?? 0;
|
|
43174
|
+
if (holdMs > 0) merged.holdMs = holdMs;
|
|
43175
|
+
return merged;
|
|
43164
43176
|
}
|
|
43165
43177
|
/**
|
|
43166
43178
|
* Resolves what a switch shows over the scene being left: the scene's `leave` over the config's over the engine's,
|
|
@@ -43257,10 +43269,26 @@ function leftScene(ctx, run) {
|
|
|
43257
43269
|
return ctx.state.scenes.get(current);
|
|
43258
43270
|
}
|
|
43259
43271
|
/**
|
|
43272
|
+
* 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
|
|
43273
|
+
* frame counter, read once here (`snapshot()` copies). A loader without one leaves the look as it is.
|
|
43274
|
+
*
|
|
43275
|
+
* @param ctx - Domain context of the plugin.
|
|
43276
|
+
* @param leaving - The look of the switch.
|
|
43277
|
+
* @param loader - The resolved loader.
|
|
43278
|
+
*/
|
|
43279
|
+
function stampHold(ctx, leaving, loader) {
|
|
43280
|
+
if (loader.holdMs === void 0) return;
|
|
43281
|
+
leaving.hold = {
|
|
43282
|
+
until: ctx.deps.clock.now() + loader.holdMs,
|
|
43283
|
+
frame: ctx.deps.time.snapshot().frame
|
|
43284
|
+
};
|
|
43285
|
+
}
|
|
43286
|
+
/**
|
|
43260
43287
|
* Shows the veil and the loader of a switch that starts now, before its bundles are awaited: the scene being left
|
|
43261
43288
|
* 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
|
-
*
|
|
43289
|
+
* 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
|
|
43290
|
+
* 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
|
|
43291
|
+
* listener. The look keeps the node's signal, so the `scene` stage of the same node takes it over.
|
|
43264
43292
|
*
|
|
43265
43293
|
* @param ctx - Domain context of the plugin.
|
|
43266
43294
|
* @param scene - The scene being switched to.
|
|
@@ -43283,10 +43311,13 @@ function startLeave(ctx, scene, run) {
|
|
|
43283
43311
|
};
|
|
43284
43312
|
const look = {};
|
|
43285
43313
|
if (cover !== false) look.cover = cover;
|
|
43286
|
-
if (leave.loader !== false)
|
|
43287
|
-
|
|
43288
|
-
|
|
43289
|
-
|
|
43314
|
+
if (leave.loader !== false) {
|
|
43315
|
+
look.loader = loaderLook(ctx, leave.loader, {
|
|
43316
|
+
from,
|
|
43317
|
+
to: scene
|
|
43318
|
+
}, leaving);
|
|
43319
|
+
stampHold(ctx, leaving, leave.loader);
|
|
43320
|
+
}
|
|
43290
43321
|
ctx.deps.renderer.sync.leave.show(look);
|
|
43291
43322
|
run.signal.addEventListener("abort", () => endLeave(ctx, leaving, "drop"), {
|
|
43292
43323
|
once: true,
|
|
@@ -43475,6 +43506,10 @@ const LOADER_RULES = Object.freeze({
|
|
|
43475
43506
|
ok: isDuration,
|
|
43476
43507
|
hint: "the milliseconds the loader waits for, 0 or more"
|
|
43477
43508
|
},
|
|
43509
|
+
holdMs: {
|
|
43510
|
+
ok: isDuration,
|
|
43511
|
+
hint: "the milliseconds the swap waits for, 0 or more"
|
|
43512
|
+
},
|
|
43478
43513
|
texture: {
|
|
43479
43514
|
ok: isName,
|
|
43480
43515
|
hint: "an asset key such as \"ui.loader.ring\""
|
|
@@ -43915,11 +43950,11 @@ function beginScene(ctx, node, run) {
|
|
|
43915
43950
|
* teardown that removes exactly those registrations.
|
|
43916
43951
|
*/
|
|
43917
43952
|
/**
|
|
43918
|
-
* Resolves the dependency APIs `flow`, `world`, `assets`, `time`, `model` and `renderer`
|
|
43919
|
-
* `ctx.require`.
|
|
43953
|
+
* Resolves the dependency APIs `flow`, `world`, `assets`, `time`, `clock`, `model` and `renderer`
|
|
43954
|
+
* with `ctx.require`.
|
|
43920
43955
|
*
|
|
43921
43956
|
* @param ctx - Kernel context of the scenes plugin.
|
|
43922
|
-
* @returns The
|
|
43957
|
+
* @returns The seven dependency APIs.
|
|
43923
43958
|
*/
|
|
43924
43959
|
function resolveDeps$4(ctx) {
|
|
43925
43960
|
return {
|
|
@@ -43927,6 +43962,7 @@ function resolveDeps$4(ctx) {
|
|
|
43927
43962
|
world: ctx.require(worldPlugin),
|
|
43928
43963
|
assets: ctx.require(assetsPlugin),
|
|
43929
43964
|
time: ctx.require(timePlugin),
|
|
43965
|
+
clock: ctx.require(clockPlugin),
|
|
43930
43966
|
model: ctx.require(modelPlugin),
|
|
43931
43967
|
renderer: ctx.require(rendererPlugin)
|
|
43932
43968
|
};
|
|
@@ -43995,11 +44031,6 @@ function checkConfig(config) {
|
|
|
43995
44031
|
*
|
|
43996
44032
|
* @param ctx - Kernel context of the scenes plugin.
|
|
43997
44033
|
* @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
44034
|
*/
|
|
44004
44035
|
function startScenes(ctx) {
|
|
44005
44036
|
const scenes = withDeps$5(ctx);
|
|
@@ -44022,11 +44053,6 @@ function startScenes(ctx) {
|
|
|
44022
44053
|
*
|
|
44023
44054
|
* @param teardown - What the teardown context carries.
|
|
44024
44055
|
* @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
44056
|
*/
|
|
44031
44057
|
function stopScenes(teardown) {
|
|
44032
44058
|
const state = teardown.state;
|
|
@@ -44115,6 +44141,7 @@ const scenesPlugin = /*#__PURE__*/ createPlugin$1("scenes", {
|
|
|
44115
44141
|
worldPlugin,
|
|
44116
44142
|
assetsPlugin,
|
|
44117
44143
|
timePlugin,
|
|
44144
|
+
clockPlugin,
|
|
44118
44145
|
modelPlugin,
|
|
44119
44146
|
rendererPlugin
|
|
44120
44147
|
],
|
|
@@ -71595,7 +71622,7 @@ function cubicBezier(x1, y1, x2, y2) {
|
|
|
71595
71622
|
* | assets | baseUrl | undefined |
|
|
71596
71623
|
* | assets | io | undefined, the browser fetch and the renderer textures |
|
|
71597
71624
|
* | 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
|
|
71625
|
+
* | 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
71626
|
* | anim | maxTracks | 2000 |
|
|
71600
71627
|
* | anim | reducedMotion | false |
|
|
71601
71628
|
* | 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-Dcft8otV.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.
|