@moku-labs/game 0.15.136 → 0.15.138
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-DSoMdMbD.d.mts → commands-CMjr-l0G.d.mts} +5 -5
- package/dist/control.d.mts +4 -4
- package/dist/{define-Df7Jv9a0.d.mts → define-BOkBbW3j.d.mts} +2 -2
- package/dist/{headless-C-lBbJ3-.d.mts → headless-C-huIWPC.d.mts} +1 -1
- package/dist/{index-yxNL4-V2.d.mts → index-L1eOJ9Yk.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-Bnf_PoB5.d.mts → runtime-CPXrJn3t.d.mts} +1 -1
- package/dist/{src-DCe6t6UY.mjs → src-C9ePWG1I.mjs} +193 -61
- package/dist/testing.d.mts +4 -4
- package/dist/testing.mjs +1 -1
- package/dist/{types-VUbyAmMP.d.mts → types-B6aCYfGI.d.mts} +2 -2
- package/dist/{types-DzZhjatf.d.mts → types-CYMAselq.d.mts} +2 -2
- package/dist/{types-aTYAEQpf.d.mts → types-DdmrhNgV.d.mts} +4 -4
- package/dist/{types-DfsSTLx7.d.mts → types-DfA-806E.d.mts} +33 -3
- package/dist/{types-DI754bnG.d.mts → types-bwV1xlDq.d.mts} +1 -1
- package/dist/{visual-IciKRSBi.d.mts → visual-CHiUlYSu.d.mts} +6 -6
- package/dist/visual.d.mts +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 { Yr as PlayerStateProvider } from "../types-
|
|
2
|
-
import { Et as PlatformProvider } from "../index-
|
|
3
|
-
import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-
|
|
1
|
+
import { Yr as PlayerStateProvider } from "../types-DfA-806E.mjs";
|
|
2
|
+
import { Et as PlatformProvider } from "../index-L1eOJ9Yk.mjs";
|
|
3
|
+
import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-DdmrhNgV.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 { Wr as Json } from "./types-
|
|
2
|
-
import { J as StringTable } from "./types-
|
|
3
|
-
import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-
|
|
1
|
+
import { Wr as Json } from "./types-DfA-806E.mjs";
|
|
2
|
+
import { J as StringTable } from "./types-bwV1xlDq.mjs";
|
|
3
|
+
import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-DdmrhNgV.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 { Gt as audioPlugin, Pt as effectsPlugin, Q as platformPlugin, i as screen, t as createApp, w as flattenFeatures } from "./src-
|
|
1
|
+
import { Gt as audioPlugin, Pt as effectsPlugin, Q as platformPlugin, i as screen, t as createApp, w as flattenFeatures } from "./src-C9ePWG1I.mjs";
|
|
2
2
|
import { t as memory } from "./memory-DeD9wis6.mjs";
|
|
3
3
|
import { n as fakeClock, r as isFakeClock } from "./fake-hnJcJeYf.mjs";
|
|
4
4
|
//#region src/app/define.ts
|
package/dist/assets.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $r as Snapshot, Ar as Api$3, Fn as Bookmark, Fr as Api, O as DebugSwitches, Q as Api$2, Rn as FlowState, fi as FrameRate, gi as Time, ii as Api$1, mt as Captured, ti as StoreApi, w as ScenesApi } from "./types-
|
|
2
|
-
import { W as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-
|
|
3
|
-
import { R as InputApi } from "./types-
|
|
4
|
-
import { t as HeadlessApp } from "./headless-C-
|
|
5
|
-
import { i as ControlApp, r as Command } from "./types-
|
|
1
|
+
import { $r as Snapshot, Ar as Api$3, Fn as Bookmark, Fr as Api, O as DebugSwitches, Q as Api$2, Rn as FlowState, fi as FrameRate, gi as Time, ii as Api$1, mt as Captured, ti as StoreApi, w as ScenesApi } from "./types-DfA-806E.mjs";
|
|
2
|
+
import { W as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-CYMAselq.mjs";
|
|
3
|
+
import { R as InputApi } from "./types-bwV1xlDq.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-C-huIWPC.mjs";
|
|
5
|
+
import { i as ControlApp, r as Command } from "./types-B6aCYfGI.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-C-
|
|
2
|
-
import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-
|
|
3
|
-
import { t as commands } from "./commands-
|
|
4
|
-
import { t as defineCommand } from "./define-
|
|
1
|
+
import { t as HeadlessApp } from "./headless-C-huIWPC.mjs";
|
|
2
|
+
import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-B6aCYfGI.mjs";
|
|
3
|
+
import { t as commands } from "./commands-CMjr-l0G.mjs";
|
|
4
|
+
import { t as defineCommand } from "./define-BOkBbW3j.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-C-
|
|
2
|
-
import { l as Source, r as Command, s as InputSchema } from "./types-
|
|
1
|
+
import { t as HeadlessApp } from "./headless-C-huIWPC.mjs";
|
|
2
|
+
import { l as Source, r as Command, s as InputSchema } from "./types-B6aCYfGI.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/flow/doors/define.d.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rn as FlowState, Vn as RouteStep, Wr as Json, Xn as Answer, mn as Api$1, ri as RngState, ui as Api, zn as JournalEntry } from "./types-
|
|
1
|
+
import { Rn as FlowState, Vn as RouteStep, Wr as Json, Xn as Answer, mn as Api$1, ri as RngState, ui as Api, zn as JournalEntry } from "./types-DfA-806E.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/flow/headless.d.ts
|
|
4
4
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as Config$6, Ar as Api$6, B as OverlayValue, C as SceneSpec, Cn as TextStylesOf, Cr as Mut, Dr as SystemDefinition, Dt as FrameRing, En as defineFlow, Er as ResourceType, Et as FrameRecord, Fr as Api$1, Gn as Effect, Gr as Root, Hn as SceneIdOf, Hr as Config$5, I as HudPartValue, In as DefineNode, Jn as Hint, Jr as Patch, K as SpriteOptions, Kn as EffectOptions, Kr as State$5, Lr as Config$2, Lt as PassKind, Mn as FeaturePlugin, Nn as FeatureTree, Nr as State$9, Or as SystemFor, Q as Api$4, R as NineSliceValue, S as SceneDefinition, Sn as TextFormatsOf, T as State$7, Tr as QueryTerm, U as ShapeValue, Wn as Descriptor, Wr as Json, X as sprite, Y as TransformValue, Zn as Answered, _ as AnySceneProjection, _n as EmitterIdOf, a as Config$1, ai as Config$4, ar as NumericFields, bi as Require, c as LoadBundles, ci as State$4, cr as ReducedMotion, di as Config$8, er as DescriptionNode, f as ReadyBundles, gn as Config$3, gr as ComponentHandle, hi as ThermalReading, hn as BundlesOf, i as BundleSpec, ii as Api$3, jn as FeatureDescription, jr as Config$9, kr as TagType, l as LoadReason, lt as State$6, m as Tier, mi as State$8, mn as Api$2, ni as RngApi, o as DefineBundles, oi as Events, or as ProjectionMotion, p as State$1, pi as RateChange, q as SpriteValue, qn as GuideOptions, r as BundleMap, si as PauseReason, sr as ProjectionSpec, t as Api, ti as StoreApi, tr as Ease, u as LoadResult, ui as Api$5, v as Config$7, vi as Config$10, vn as GameTypes, vr as ComponentType, w as ScenesApi, wr as Narrowed, x as LayerMap, xn as State$3, y as DefineScene, yi as Events$1, yn as HudKeysOf, yr as ComponentValue, yt as ViewportSize, zr as State$2 } from "./types-
|
|
2
|
-
import { $ as HapticKind, A as EmitterDefinition, B as GlowValue, C as FoldValue, D as ShineValue, E as RevealRoundValue, F as DisplacementValue, G as AnimPlayerValue, H as OutlineValue, J as MotionKeyframe, K as Config$11, L as FilterComponent, M as AlphaValue, N as BlurValue, O as VignetteValue, P as ColorMatrixValue, R as FilterSpec, S as FlashValue, T as RevealLineValue, U as UniformDeclaration, V as NoiseValue, W as AnimApi, X as Target, Y as State$10, _ as State$12, a as AudioApi, b as BloomValue, bt as OverlayApi, c as MusicDescriptor, d as State$11, et as SfxDescriptor, f as VolumesFor, h as EffectsApi, j as EmitterValue, k as EmitterConfig, l as MusicOptions, lt as play, m as Config$13, n as State$13, q as FramesValue, r as UiApi, rt as defineAnimation, s as Config$12, t as Config$14, tt as Step, w as GradeValue, x as DissolveValue, y as AuraValue, z as FilterValueOf } from "./types-
|
|
3
|
-
import { $ as ResolvedStyle, A as TextFormats, C as Point, E as TextBind, G as Message, H as Config$15, I as defineComponent, K as Part, L as Config$16, M as TextStyleInput, N as TextStyles, P as TextValue, Q as IsFlags, R as InputApi, T as TextApi, U as I18nApi, V as Argument, W as IntlKit, X as TypedTr, Y as TextKey, b as Config$17, et as Style, g as IntrinsicElementsFor, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, nt as TextTagStyle, q as State$14, rt as WhenFlags, s as PopupComponent, v as BindField, w as State$16, x as CountdownValue, y as BindOptions, z as State$15 } from "./types-
|
|
1
|
+
import { $ as Config$6, Ar as Api$6, B as OverlayValue, C as SceneSpec, Cn as TextStylesOf, Cr as Mut, Dr as SystemDefinition, Dt as FrameRing, En as defineFlow, Er as ResourceType, Et as FrameRecord, Fr as Api$1, Gn as Effect, Gr as Root, Hn as SceneIdOf, Hr as Config$5, I as HudPartValue, In as DefineNode, Jn as Hint, Jr as Patch, K as SpriteOptions, Kn as EffectOptions, Kr as State$5, Lr as Config$2, Lt as PassKind, Mn as FeaturePlugin, Nn as FeatureTree, Nr as State$9, Or as SystemFor, Q as Api$4, R as NineSliceValue, S as SceneDefinition, Sn as TextFormatsOf, T as State$7, Tr as QueryTerm, U as ShapeValue, Wn as Descriptor, Wr as Json, X as sprite, Y as TransformValue, Zn as Answered, _ as AnySceneProjection, _n as EmitterIdOf, a as Config$1, ai as Config$4, ar as NumericFields, bi as Require, c as LoadBundles, ci as State$4, cr as ReducedMotion, di as Config$8, er as DescriptionNode, f as ReadyBundles, gn as Config$3, gr as ComponentHandle, hi as ThermalReading, hn as BundlesOf, i as BundleSpec, ii as Api$3, jn as FeatureDescription, jr as Config$9, kr as TagType, l as LoadReason, lt as State$6, m as Tier, mi as State$8, mn as Api$2, ni as RngApi, o as DefineBundles, oi as Events, or as ProjectionMotion, p as State$1, pi as RateChange, q as SpriteValue, qn as GuideOptions, r as BundleMap, si as PauseReason, sr as ProjectionSpec, t as Api, ti as StoreApi, tr as Ease, u as LoadResult, ui as Api$5, v as Config$7, vi as Config$10, vn as GameTypes, vr as ComponentType, w as ScenesApi, wr as Narrowed, x as LayerMap, xn as State$3, y as DefineScene, yi as Events$1, yn as HudKeysOf, yr as ComponentValue, yt as ViewportSize, zr as State$2 } from "./types-DfA-806E.mjs";
|
|
2
|
+
import { $ as HapticKind, A as EmitterDefinition, B as GlowValue, C as FoldValue, D as ShineValue, E as RevealRoundValue, F as DisplacementValue, G as AnimPlayerValue, H as OutlineValue, J as MotionKeyframe, K as Config$11, L as FilterComponent, M as AlphaValue, N as BlurValue, O as VignetteValue, P as ColorMatrixValue, R as FilterSpec, S as FlashValue, T as RevealLineValue, U as UniformDeclaration, V as NoiseValue, W as AnimApi, X as Target, Y as State$10, _ as State$12, a as AudioApi, b as BloomValue, bt as OverlayApi, c as MusicDescriptor, d as State$11, et as SfxDescriptor, f as VolumesFor, h as EffectsApi, j as EmitterValue, k as EmitterConfig, l as MusicOptions, lt as play, m as Config$13, n as State$13, q as FramesValue, r as UiApi, rt as defineAnimation, s as Config$12, t as Config$14, tt as Step, w as GradeValue, x as DissolveValue, y as AuraValue, z as FilterValueOf } from "./types-CYMAselq.mjs";
|
|
3
|
+
import { $ as ResolvedStyle, A as TextFormats, C as Point, E as TextBind, G as Message, H as Config$15, I as defineComponent, K as Part, L as Config$16, M as TextStyleInput, N as TextStyles, P as TextValue, Q as IsFlags, R as InputApi, T as TextApi, U as I18nApi, V as Argument, W as IntlKit, X as TypedTr, Y as TextKey, b as Config$17, et as Style, g as IntrinsicElementsFor, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, nt as TextTagStyle, q as State$14, rt as WhenFlags, s as PopupComponent, v as BindField, w as State$16, x as CountdownValue, y as BindOptions, z as State$15 } from "./types-bwV1xlDq.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 PerfSampleLine, An as type, At as MonitorSections, B as OverlayValue, Br as types_d_exports$3, Bt as PerfChange, Ct as FrameColumns, Dn as exit, Dt as FrameRing, E as types_d_exports$13, Et as FrameRecord, F as HudPart, Ft as PERF_LOG_VERSION, G as SpriteBlend, Gt as PerfEventLine, H as Shape, Ht as PerfCollectorLine, I as HudPartValue, It as PROBLEM_RULES, J as Transform, Jt as PerfHeaderLine, Kt as PerfEventName, L as NineSlice, Lt as PassKind, Mt as OverlayWhat, N as WhyEntry, Nt as PERF_CAUSES, On as slot, Ot as LongFrameEntry, P as Display, Pr as types_d_exports$17, Pt as PERF_GAP_BUCKETS, Qn as AnchorTarget, Qr as SaveUnreadableError, Qt as PerfMeasured, Rt as PassRecord, St as WhyLive, Tn as contribution, Tt as FrameReadout, Ut as PerfCounts, V as Parent, Vt as PerfChangeEntry, W as Sprite, Wt as PerfDisplay, X as sprite, Xt as PerfLongFrameLine, Yt as PerfLogLine, Z as AdaptiveScale, Zt as PerfMarkLine, _i as types_d_exports$15, an as ProblemEventDetail, cn as ShaderEventDetail, ct as PoolTrim, dn as CANVAS_RESTARTS, dt as types_d_exports$12, en as PerfSpikeLine, er as DescriptionNode, et as MonitorConfig, fn as CanvasRestart, ft as ShotsApi, g as types_d_exports$1, ht as MonitorCounts, in as PoolTrimDetail, jt as OverlayEventDetail, kn as to, kt as MONITOR_SECTIONS, li as types_d_exports$9, ln as ShaderWhat, lr as SceneSwitch, nn as PerfTelemetryLine, on as ProblemRule, pn as DEMAND_REASONS, pt as ShotsConfig, qr as types_d_exports$10, qt as PerfGapLine, rn as PerfThermalLine, sn as SHADER_WHATS, tn as PerfStartupLine, un as WarmDetail, wn as types_d_exports$6, wt as FrameReadResult, xt as RetakeWhy, z as Overlay, zt as PerfCause } from "./types-
|
|
2
|
-
import { $ as HapticKind, C as FoldValue, D as ShineValue, E as RevealRoundValue, I as FilterArea, O as VignetteValue, Q as types_d_exports, S as FlashValue, T as RevealLineValue, _t as tween, at as frames, b as BloomValue, ct as parallel, dt as set, ft as sfx, gt as stopSfx, ht as stagger, i as types_d_exports$16, it as external, lt as play, mt as spawned, nt as HAPTIC_KINDS, ot as haptic, p as types_d_exports$2, pt as spawn, rt as defineAnimation, st as mark, ut as sequence, v as types_d_exports$5, vt as use, w as GradeValue, x as DissolveValue, xt as types_d_exports$4, y as AuraValue, yt as wait } from "./types-
|
|
3
|
-
import { A as TextFormats, B as types_d_exports$8, D as TextFormat, F as types_d_exports$14, I as defineComponent, O as TextFormatAnswer, S as FormattedNumber, Z as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, m as popup, nt as TextTagStyle, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-
|
|
4
|
-
import { $ as Traced, A as messageDuration, At as inputPlugin, B as Draggable, Bt as Countdown, C as Noise, Ct as rendererPlugin, D as defineStyle, Dt as types_d_exports$11, E as resolve, Et as PlatformProvider, F as Frames, Ft as clockPlugin, G as PointerOver, Gt as label, H as Held, Ht as bind, I as defineScene, It as audioPlugin, J as Swipeable, K as Pressable, L as defineBundles, Lt as assetsPlugin, M as defineMotion, Mt as flowPlugin, N as AnimPlayer, Nt as effectsPlugin, O as tr, Ot as modelPlugin, P as Animation, Pt as debugPlugin, Q as Traceable, R as load, Rt as animPlugin, S as Glow, St as scenesPlugin, T as music, Tt as BackResult, U as Hovered, Ut as defineTextFormats, V as DropTarget, Vt as Text, W as Pointer, Wt as defineTextStyles, X as Tappable, Y as TapValue, Z as Touchable, _ as defineFilter, _t as flattenFeatures, a as defineEmitter, at as Order, b as ColorMatrix, bt as timePlugin, c as Shine, ct as mut, d as Grade, dt as tag, et as PASS_KINDS, f as Fold, ft as defineEffect, g as Aura, gt as defineFeature, h as Bloom, ht as schedule, i as screen, it as Now, j as cubicBezier, jt as i18nPlugin, k as messageArgument, kt as lifecyclePlugin, l as RevealRound, lt as resource, m as Dissolve, mt as hint, n as createPlugin, nt as Exiting, o as Emitter, ot as Tree, p as Flash, pt as guide, q as Pressed, r as defineGame, rt as Layer, s as Vignette, st as component, t as createApp, tt as frameAt, u as RevealLine, ut as system, v as Alpha, vt as worldPlugin, w as Outline, wt as platformPlugin, x as Displacement, xt as textPlugin, y as Blur, yt as uiPlugin, z as ready, zt as projection } from "./index-
|
|
1
|
+
import { $t as PerfSampleLine, An as type, At as MonitorSections, B as OverlayValue, Br as types_d_exports$3, Bt as PerfChange, Ct as FrameColumns, Dn as exit, Dt as FrameRing, E as types_d_exports$13, Et as FrameRecord, F as HudPart, Ft as PERF_LOG_VERSION, G as SpriteBlend, Gt as PerfEventLine, H as Shape, Ht as PerfCollectorLine, I as HudPartValue, It as PROBLEM_RULES, J as Transform, Jt as PerfHeaderLine, Kt as PerfEventName, L as NineSlice, Lt as PassKind, Mt as OverlayWhat, N as WhyEntry, Nt as PERF_CAUSES, On as slot, Ot as LongFrameEntry, P as Display, Pr as types_d_exports$17, Pt as PERF_GAP_BUCKETS, Qn as AnchorTarget, Qr as SaveUnreadableError, Qt as PerfMeasured, Rt as PassRecord, St as WhyLive, Tn as contribution, Tt as FrameReadout, Ut as PerfCounts, V as Parent, Vt as PerfChangeEntry, W as Sprite, Wt as PerfDisplay, X as sprite, Xt as PerfLongFrameLine, Yt as PerfLogLine, Z as AdaptiveScale, Zt as PerfMarkLine, _i as types_d_exports$15, an as ProblemEventDetail, cn as ShaderEventDetail, ct as PoolTrim, dn as CANVAS_RESTARTS, dt as types_d_exports$12, en as PerfSpikeLine, er as DescriptionNode, et as MonitorConfig, fn as CanvasRestart, ft as ShotsApi, g as types_d_exports$1, ht as MonitorCounts, in as PoolTrimDetail, jt as OverlayEventDetail, kn as to, kt as MONITOR_SECTIONS, li as types_d_exports$9, ln as ShaderWhat, lr as SceneSwitch, nn as PerfTelemetryLine, on as ProblemRule, pn as DEMAND_REASONS, pt as ShotsConfig, qr as types_d_exports$10, qt as PerfGapLine, rn as PerfThermalLine, sn as SHADER_WHATS, tn as PerfStartupLine, un as WarmDetail, wn as types_d_exports$6, wt as FrameReadResult, xt as RetakeWhy, z as Overlay, zt as PerfCause } from "./types-DfA-806E.mjs";
|
|
2
|
+
import { $ as HapticKind, C as FoldValue, D as ShineValue, E as RevealRoundValue, I as FilterArea, O as VignetteValue, Q as types_d_exports, S as FlashValue, T as RevealLineValue, _t as tween, at as frames, b as BloomValue, ct as parallel, dt as set, ft as sfx, gt as stopSfx, ht as stagger, i as types_d_exports$16, it as external, lt as play, mt as spawned, nt as HAPTIC_KINDS, ot as haptic, p as types_d_exports$2, pt as spawn, rt as defineAnimation, st as mark, ut as sequence, v as types_d_exports$5, vt as use, w as GradeValue, x as DissolveValue, xt as types_d_exports$4, y as AuraValue, yt as wait } from "./types-CYMAselq.mjs";
|
|
3
|
+
import { A as TextFormats, B as types_d_exports$8, D as TextFormat, F as types_d_exports$14, I as defineComponent, O as TextFormatAnswer, S as FormattedNumber, Z as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, m as popup, nt as TextTagStyle, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-bwV1xlDq.mjs";
|
|
4
|
+
import { $ as Traced, A as messageDuration, At as inputPlugin, B as Draggable, Bt as Countdown, C as Noise, Ct as rendererPlugin, D as defineStyle, Dt as types_d_exports$11, E as resolve, Et as PlatformProvider, F as Frames, Ft as clockPlugin, G as PointerOver, Gt as label, H as Held, Ht as bind, I as defineScene, It as audioPlugin, J as Swipeable, K as Pressable, L as defineBundles, Lt as assetsPlugin, M as defineMotion, Mt as flowPlugin, N as AnimPlayer, Nt as effectsPlugin, O as tr, Ot as modelPlugin, P as Animation, Pt as debugPlugin, Q as Traceable, R as load, Rt as animPlugin, S as Glow, St as scenesPlugin, T as music, Tt as BackResult, U as Hovered, Ut as defineTextFormats, V as DropTarget, Vt as Text, W as Pointer, Wt as defineTextStyles, X as Tappable, Y as TapValue, Z as Touchable, _ as defineFilter, _t as flattenFeatures, a as defineEmitter, at as Order, b as ColorMatrix, bt as timePlugin, c as Shine, ct as mut, d as Grade, dt as tag, et as PASS_KINDS, f as Fold, ft as defineEffect, g as Aura, gt as defineFeature, h as Bloom, ht as schedule, i as screen, it as Now, j as cubicBezier, jt as i18nPlugin, k as messageArgument, kt as lifecyclePlugin, l as RevealRound, lt as resource, m as Dissolve, mt as hint, n as createPlugin, nt as Exiting, o as Emitter, ot as Tree, p as Flash, pt as guide, q as Pressed, r as defineGame, rt as Layer, s as Vignette, st as component, t as createApp, tt as frameAt, u as RevealLine, ut as system, v as Alpha, vt as worldPlugin, w as Outline, wt as platformPlugin, x as Displacement, xt as textPlugin, y as Blur, yt as uiPlugin, z as ready, zt as projection } from "./index-L1eOJ9Yk.mjs";
|
|
5
5
|
export { type AdaptiveScale, Alpha, type AnchorTarget, types_d_exports as Anim, AnimPlayer, Animation, types_d_exports$1 as Assets, types_d_exports$2 as Audio, Aura, type AuraValue, type BackResult, type BindOptions, Bloom, type BloomValue, Blur, Box, CANVAS_RESTARTS, type CanvasRestart, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, Dissolve, type DissolveValue, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, Flash, type FlashValue, types_d_exports$6 as Flow, Fold, type FoldValue, type FormattedNumber, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, Grade, type GradeValue, 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, RevealLine, type RevealLineValue, RevealRound, type RevealRoundValue, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shape, Shine, type ShineValue, type ShotsApi, type ShotsConfig, Sprite, type SpriteBlend, Swipeable, type TapValue, Tappable, Text, type TextFormat, type TextFormatAnswer, type TextFormatFunction, type TextFormats, type TextRunStyle, type TextTagStyle, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, Vignette, type VignetteValue, type WarmDetail, type WhyEntry, type WhyLive, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as HAPTIC_KINDS, $t as PASS_KINDS, A as types_exports$17, At as Traced, B as types_exports$7, Bt as Glow, C as defineFeature, Ct as PointerOver, D as defineBundles, Dt as Tappable, E as music, Et as Swipeable, F as types_exports$12, Ft as Emitter, G as types_exports$2, Gt as audioPlugin, H as types_exports$5, Ht as Outline, I as types_exports$11, It as Alpha, J as uiPlugin, Jt as animPlugin, K as types_exports$1, Kt as scenesPlugin, L as types_exports$10, Lt as Blur, M as types_exports$15, Mt as messageArgument, N as types_exports$14, Nt as messageDuration, O as load, Ot as Touchable, P as types_exports$13, Pt as effectsPlugin, Q as platformPlugin, Qt as rendererPlugin, R as types_exports$9, Rt as ColorMatrix, S as tr, St as Pointer, T as defineEmitter, Tt as Pressed, U as types_exports$4, Ut as defineFilter, V as types_exports$6, Vt as Noise, W as types_exports$3, Wt as debugPlugin, X as defineMotion, Xt as Animation, Y as resolve, Yt as AnimPlayer, Z as textPlugin, Zt as Frames, _ as guide, _n as modelPlugin, _t as inputPlugin, a as Vignette, an as PROBLEM_RULES, at as parallel, b as projection, bn as lifecyclePlugin, bt as Held, c as RevealLine, cn as DEMAND_REASONS, ct as set, d as Flash, dt as spawned, en as frameAt, et as defineAnimation, f as Dissolve, fn as contribution, ft as stagger, g as defineEffect, gn as type, gt as wait, h as cubicBezier, hn as to, ht as use, i as screen, in as PERF_LOG_VERSION, it as mark, j as types_exports$16, jt as i18nPlugin, k as ready, kt as Traceable, l as Grade, ln as worldPlugin, lt as sfx, m as Aura, mn as slot, mt as tween, n as createPlugin, nn as PERF_CAUSES, nt as frames, o as Shine, on as SHADER_WHATS, ot as play, p as Bloom, pn as exit, pt as stopSfx, q as types_exports, qt as assetsPlugin, r as defineGame, rn as PERF_GAP_BUCKETS, rt as haptic, s as RevealRound, sn as CANVAS_RESTARTS, st as sequence, t as createApp, tn as MONITOR_SECTIONS, tt as external, u as Fold, un as flowPlugin, ut as spawn, v as hint, vn as SaveUnreadableError, vt as Draggable, w as flattenFeatures, wt as Pressable, x as defineScene, xn as timePlugin, xt as Hovered, y as schedule, yn as clockPlugin, yt as DropTarget, z as types_exports$8, zt as Displacement } from "./src-
|
|
1
|
+
import { $ as HAPTIC_KINDS, $t as PASS_KINDS, A as types_exports$17, At as Traced, B as types_exports$7, Bt as Glow, C as defineFeature, Ct as PointerOver, D as defineBundles, Dt as Tappable, E as music, Et as Swipeable, F as types_exports$12, Ft as Emitter, G as types_exports$2, Gt as audioPlugin, H as types_exports$5, Ht as Outline, I as types_exports$11, It as Alpha, J as uiPlugin, Jt as animPlugin, K as types_exports$1, Kt as scenesPlugin, L as types_exports$10, Lt as Blur, M as types_exports$15, Mt as messageArgument, N as types_exports$14, Nt as messageDuration, O as load, Ot as Touchable, P as types_exports$13, Pt as effectsPlugin, Q as platformPlugin, Qt as rendererPlugin, R as types_exports$9, Rt as ColorMatrix, S as tr, St as Pointer, T as defineEmitter, Tt as Pressed, U as types_exports$4, Ut as defineFilter, V as types_exports$6, Vt as Noise, W as types_exports$3, Wt as debugPlugin, X as defineMotion, Xt as Animation, Y as resolve, Yt as AnimPlayer, Z as textPlugin, Zt as Frames, _ as guide, _n as modelPlugin, _t as inputPlugin, a as Vignette, an as PROBLEM_RULES, at as parallel, b as projection, bn as lifecyclePlugin, bt as Held, c as RevealLine, cn as DEMAND_REASONS, ct as set, d as Flash, dt as spawned, en as frameAt, et as defineAnimation, f as Dissolve, fn as contribution, ft as stagger, g as defineEffect, gn as type, gt as wait, h as cubicBezier, hn as to, ht as use, i as screen, in as PERF_LOG_VERSION, it as mark, j as types_exports$16, jt as i18nPlugin, k as ready, kt as Traceable, l as Grade, ln as worldPlugin, lt as sfx, m as Aura, mn as slot, mt as tween, n as createPlugin, nn as PERF_CAUSES, nt as frames, o as Shine, on as SHADER_WHATS, ot as play, p as Bloom, pn as exit, pt as stopSfx, q as types_exports, qt as assetsPlugin, r as defineGame, rn as PERF_GAP_BUCKETS, rt as haptic, s as RevealRound, sn as CANVAS_RESTARTS, st as sequence, t as createApp, tn as MONITOR_SECTIONS, tt as external, u as Fold, un as flowPlugin, ut as spawn, v as hint, vn as SaveUnreadableError, vt as Draggable, w as flattenFeatures, wt as Pressable, x as defineScene, xn as timePlugin, xt as Hovered, y as schedule, yn as clockPlugin, yt as DropTarget, z as types_exports$8, zt as Displacement } from "./src-C9ePWG1I.mjs";
|
|
2
2
|
import { $ as Overlay, D as defineStyle, E as defineTokens, L as defineTextFormats, M as Countdown, N as Text, P as bind, Q as NineSlice, R as defineTextStyles, X as Display, Z as HudPart, _ as DebugTrigger, ct as Exiting, dt as Order, ft as Tree, gt as system, h as Box, ht as resource, it as Transform, lt as Layer, mt as mut, nt as Shape, pt as component, rt as Sprite, st as sprite, tt as Parent, ut as Now, vt as tag, w as popup, x as ScrollState, y as LocalWrite, z as label } from "./visual-x0TPowBE.mjs";
|
|
3
3
|
import { t as defineComponent } from "./component-DGg5DqKK.mjs";
|
|
4
4
|
export { Alpha, types_exports as Anim, AnimPlayer, Animation, types_exports$1 as Assets, types_exports$2 as Audio, Aura, Bloom, Blur, Box, CANVAS_RESTARTS, types_exports$3 as Clock, ColorMatrix, Countdown, DEMAND_REASONS, types_exports$4 as Debug, DebugTrigger, Displacement, Display, Dissolve, Draggable, DropTarget, types_exports$5 as Effects, Emitter, Exiting, Flash, types_exports$6 as Flow, Fold, Frames, Glow, Grade, 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, RevealLine, RevealRound, SHADER_WHATS, SaveUnreadableError, types_exports$13 as Scenes, ScrollState, Shape, Shine, Sprite, Swipeable, Tappable, Text, types_exports$14 as TextTypes, types_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_exports$16 as Ui, Vignette, types_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
|
package/dist/inspect.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $r as Snapshot, Ar as Api$1, Ln as FlowGraph, Mr as Explained, Q as Api$2, Sr as FrameDiff, Vr as Api, _r as ComponentSchema, bn as Position, gt as RenderStats, h as Usage, t as Api$3, ut as Under, xr as EntitySnapshot, zn as JournalEntry } from "./types-
|
|
2
|
-
import { W as AnimApi, Z as TimelinesSnapshot, 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-C-
|
|
5
|
-
import { a as InputArguments, d as WatchApp, f as WatchInput, l as Source, o as InputOf, s as InputSchema, t as CheatEntry } from "./types-
|
|
6
|
-
import { n as defineSource } from "./define-
|
|
1
|
+
import { $r as Snapshot, Ar as Api$1, Ln as FlowGraph, Mr as Explained, Q as Api$2, Sr as FrameDiff, Vr as Api, _r as ComponentSchema, bn as Position, gt as RenderStats, h as Usage, t as Api$3, ut as Under, xr as EntitySnapshot, zn as JournalEntry } from "./types-DfA-806E.mjs";
|
|
2
|
+
import { W as AnimApi, Z as TimelinesSnapshot, a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-CYMAselq.mjs";
|
|
3
|
+
import { c as UiNode } from "./types-bwV1xlDq.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-C-huIWPC.mjs";
|
|
5
|
+
import { a as InputArguments, d as WatchApp, f as WatchInput, l as Source, o as InputOf, s as InputSchema, t as CheatEntry } from "./types-B6aCYfGI.mjs";
|
|
6
|
+
import { n as defineSource } from "./define-BOkBbW3j.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-CPXrJn3t.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-CPXrJn3t.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-bwV1xlDq.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. */
|
|
@@ -3232,7 +3232,7 @@ function enqueue$2(state, work) {
|
|
|
3232
3232
|
* @param signal - The node's abort signal.
|
|
3233
3233
|
* @returns The controller of the child signal.
|
|
3234
3234
|
*/
|
|
3235
|
-
function childOf(signal) {
|
|
3235
|
+
function childOf$1(signal) {
|
|
3236
3236
|
const child = new AbortController();
|
|
3237
3237
|
if (signal.aborted) {
|
|
3238
3238
|
child.abort(signal.reason);
|
|
@@ -3255,7 +3255,7 @@ function childOf(signal) {
|
|
|
3255
3255
|
* @returns The signal the guide handler is called with.
|
|
3256
3256
|
*/
|
|
3257
3257
|
function beginGuide(state, signal) {
|
|
3258
|
-
const child = childOf(signal);
|
|
3258
|
+
const child = childOf$1(signal);
|
|
3259
3259
|
state.guides.push(child);
|
|
3260
3260
|
child.signal.addEventListener("abort", () => {
|
|
3261
3261
|
const index = state.guides.indexOf(child);
|
|
@@ -3284,7 +3284,7 @@ function openForAnswers(ctx, gate, descriptor, answers, signal) {
|
|
|
3284
3284
|
at: ctx.deps.clock.now()
|
|
3285
3285
|
}));
|
|
3286
3286
|
if (ctx.state.fx.mode !== "live") return answered;
|
|
3287
|
-
const shown = childOf(signal);
|
|
3287
|
+
const shown = childOf$1(signal);
|
|
3288
3288
|
invoke(ctx.state.fx, ctx.log, descriptor, shown.signal);
|
|
3289
3289
|
return answered.finally(() => {
|
|
3290
3290
|
shown.abort();
|
|
@@ -4519,14 +4519,32 @@ function collectGraph(ctx, features) {
|
|
|
4519
4519
|
return graph.flows;
|
|
4520
4520
|
}
|
|
4521
4521
|
/**
|
|
4522
|
-
*
|
|
4522
|
+
* Freezes a described graph and everything in it: the flows, their nodes, edges and slots.
|
|
4523
|
+
*
|
|
4524
|
+
* @param value - A part of the graph.
|
|
4525
|
+
*/
|
|
4526
|
+
function freezeDeep(value) {
|
|
4527
|
+
if (typeof value !== "object" || value === null || Object.isFrozen(value)) return;
|
|
4528
|
+
Object.freeze(value);
|
|
4529
|
+
for (const child of Object.values(value)) freezeDeep(child);
|
|
4530
|
+
}
|
|
4531
|
+
/**
|
|
4532
|
+
* Renders the whole graph as JSON. It reads the flows as data, so it works before `run()`. Once
|
|
4533
|
+
* `run()` sealed the features the graph cannot change: it is rendered once, frozen, and the same
|
|
4534
|
+
* object answers every later call (F196: the look-ahead of every rest rendered it again, twice).
|
|
4523
4535
|
*
|
|
4524
4536
|
* @param ctx - Domain context of the flow plugin.
|
|
4525
4537
|
* @param features - Features API: owners and slot contributions.
|
|
4526
4538
|
* @returns The graph.
|
|
4527
4539
|
*/
|
|
4528
4540
|
function graphOf(ctx, features) {
|
|
4529
|
-
|
|
4541
|
+
const runner = ctx.state.runner;
|
|
4542
|
+
if (runner.described !== void 0) return runner.described;
|
|
4543
|
+
const graph = describeGraph(collectGraph(ctx, features), features);
|
|
4544
|
+
if (!ctx.state.features.sealed) return graph;
|
|
4545
|
+
freezeDeep(graph);
|
|
4546
|
+
runner.described = graph;
|
|
4547
|
+
return graph;
|
|
4530
4548
|
}
|
|
4531
4549
|
/**
|
|
4532
4550
|
* Validates the collected graph. Warnings are logged, problems stop `run()` in one error.
|
|
@@ -7949,7 +7967,7 @@ function emptyMarks() {
|
|
|
7949
7967
|
*
|
|
7950
7968
|
* @returns An empty set.
|
|
7951
7969
|
*/
|
|
7952
|
-
function emptyNames
|
|
7970
|
+
function emptyNames() {
|
|
7953
7971
|
return /* @__PURE__ */ new Set();
|
|
7954
7972
|
}
|
|
7955
7973
|
/**
|
|
@@ -8353,7 +8371,7 @@ function recordFrame(ctx, frame) {
|
|
|
8353
8371
|
marks: emptyMarks(),
|
|
8354
8372
|
markList: [],
|
|
8355
8373
|
markFrames: 0,
|
|
8356
|
-
warned: emptyNames
|
|
8374
|
+
warned: emptyNames()
|
|
8357
8375
|
};
|
|
8358
8376
|
state.history = history;
|
|
8359
8377
|
if (history.newest === void 0) startRecording(ctx, history, frame);
|
|
@@ -28984,7 +29002,7 @@ function passesOf(slots) {
|
|
|
28984
29002
|
return enabled ? 1 + passes : 0;
|
|
28985
29003
|
}
|
|
28986
29004
|
/** What the count of the filtered views reads while it walks the filters: set before the walk, one at a time. */
|
|
28987
|
-
const walk = {
|
|
29005
|
+
const walk$1 = {
|
|
28988
29006
|
sync: void 0,
|
|
28989
29007
|
kept: void 0,
|
|
28990
29008
|
passes: 0
|
|
@@ -28997,7 +29015,7 @@ const walk = {
|
|
|
28997
29015
|
* @param entity - The entity.
|
|
28998
29016
|
*/
|
|
28999
29017
|
function addFiltered(slots, entity) {
|
|
29000
|
-
const { sync, kept } = walk;
|
|
29018
|
+
const { sync, kept } = walk$1;
|
|
29001
29019
|
if (sync === void 0 || kept === void 0 || sync.root === void 0) return;
|
|
29002
29020
|
const cache = sync.passes;
|
|
29003
29021
|
for (const slot of slots) {
|
|
@@ -29006,7 +29024,7 @@ function addFiltered(slots, entity) {
|
|
|
29006
29024
|
cache.count += 1;
|
|
29007
29025
|
}
|
|
29008
29026
|
if (kept.byEntity.get(entity)?.mode === "kept") return;
|
|
29009
|
-
if (isDrawn(sync.views.get(entity), sync.root)) walk.passes += passesOf(slots);
|
|
29027
|
+
if (isDrawn(sync.views.get(entity), sync.root)) walk$1.passes += passesOf(slots);
|
|
29010
29028
|
}
|
|
29011
29029
|
/**
|
|
29012
29030
|
* Counts the passes the filtered views drawn under the root cost into the cache, a view drawn from its kept picture and
|
|
@@ -29019,14 +29037,14 @@ function addFiltered(slots, entity) {
|
|
|
29019
29037
|
function countFiltered(state, kept) {
|
|
29020
29038
|
const cache = state.passes;
|
|
29021
29039
|
const before = cache.count;
|
|
29022
|
-
walk.sync = state;
|
|
29023
|
-
walk.kept = kept;
|
|
29024
|
-
walk.passes = 0;
|
|
29040
|
+
walk$1.sync = state;
|
|
29041
|
+
walk$1.kept = kept;
|
|
29042
|
+
walk$1.passes = 0;
|
|
29025
29043
|
cache.count = 0;
|
|
29026
29044
|
state.filters.forEach(addFiltered);
|
|
29027
|
-
cache.filtered = walk.passes;
|
|
29028
|
-
walk.sync = void 0;
|
|
29029
|
-
walk.kept = void 0;
|
|
29045
|
+
cache.filtered = walk$1.passes;
|
|
29046
|
+
walk$1.sync = void 0;
|
|
29047
|
+
walk$1.kept = void 0;
|
|
29030
29048
|
for (let index = cache.count; index < before; index += 1) cache.filters[index] = void 0;
|
|
29031
29049
|
}
|
|
29032
29050
|
/** What the count of the views drawn live reads while it walks the filters: set before the walk, one at a time. */
|
|
@@ -34232,28 +34250,53 @@ function displayObjectOf(sctx, entity) {
|
|
|
34232
34250
|
* child whose `Parent` names another entity, or none, by now: it moved in the same frame (a hosted view a restore
|
|
34233
34251
|
* hung under the rebuilt host, F44), and the later steps of this pass hang it where it belongs.
|
|
34234
34252
|
*
|
|
34253
|
+
* The children are read from the host itself, front first: a detach takes the child at the read position out, so the
|
|
34254
|
+
* next one moves into it, and Pixi's `removeChild` finds it near the front. A scan of every view per parent that left
|
|
34255
|
+
* made the close of a window quadratic in its views (F195: 12–15 ms of the album's close frame on the A26). An object
|
|
34256
|
+
* of the host that tops no view (a dim, a mask, a picture's quad) is not a child, and is passed over.
|
|
34257
|
+
*
|
|
34235
34258
|
* @param sctx - Domain context of the sync module.
|
|
34236
34259
|
* @param entity - The parent entity.
|
|
34237
34260
|
* @param host - The container its children hang in.
|
|
34238
34261
|
*/
|
|
34239
34262
|
function detachChildren(sctx, entity, host) {
|
|
34240
34263
|
const state = sctx.ctx.state.sync;
|
|
34241
|
-
const
|
|
34242
|
-
|
|
34243
|
-
|
|
34244
|
-
|
|
34245
|
-
|
|
34264
|
+
const children = host.children;
|
|
34265
|
+
let orphans;
|
|
34266
|
+
let at = 0;
|
|
34267
|
+
while (at < children.length) {
|
|
34268
|
+
const child = childOf(state, children[at]);
|
|
34269
|
+
if (child === void 0 || child === entity) {
|
|
34270
|
+
at += 1;
|
|
34271
|
+
continue;
|
|
34272
|
+
}
|
|
34273
|
+
const object = children[at];
|
|
34274
|
+
if (object === void 0) break;
|
|
34246
34275
|
markView(sctx, child);
|
|
34247
34276
|
detach$1(object);
|
|
34248
34277
|
state.orphans.add(child);
|
|
34249
|
-
if (isLostOrphan(sctx, child, entity))
|
|
34278
|
+
if (isLostOrphan(sctx, child, entity)) {
|
|
34279
|
+
orphans ??= [];
|
|
34280
|
+
orphans.push(child);
|
|
34281
|
+
}
|
|
34250
34282
|
}
|
|
34251
|
-
if (orphans
|
|
34283
|
+
if (orphans !== void 0) sctx.ctx.log.warn("renderer: parent left before its children", {
|
|
34252
34284
|
parent: entity,
|
|
34253
34285
|
orphans
|
|
34254
34286
|
});
|
|
34255
34287
|
}
|
|
34256
34288
|
/**
|
|
34289
|
+
* The entity whose view an object of a host tops, through the top-to-view and the object-to-entity tables.
|
|
34290
|
+
*
|
|
34291
|
+
* @param state - The sync branch of the plugin state.
|
|
34292
|
+
* @param object - An object hanging in a host.
|
|
34293
|
+
* @returns The entity, or `undefined` for an object that tops no view.
|
|
34294
|
+
*/
|
|
34295
|
+
function childOf(state, object) {
|
|
34296
|
+
const view = object === void 0 ? void 0 : state.viewOfTop.get(object);
|
|
34297
|
+
return view === void 0 ? void 0 : state.entityOf.get(view.object);
|
|
34298
|
+
}
|
|
34299
|
+
/**
|
|
34257
34300
|
* Tells whether a child of a parent that left is an orphan worth a warning: it does not go in this pass, it plays no
|
|
34258
34301
|
* exit, and its `Parent` still names the parent that left.
|
|
34259
34302
|
*
|
|
@@ -43763,26 +43806,26 @@ function enforceBudget(ctx, except) {
|
|
|
43763
43806
|
}
|
|
43764
43807
|
}
|
|
43765
43808
|
/**
|
|
43766
|
-
* Creates an empty set of names. It lives in its own non-exported function because lint rule L5
|
|
43767
|
-
* refuses a collection built inside an exported declaration.
|
|
43768
|
-
*
|
|
43769
|
-
* @returns An empty set.
|
|
43770
|
-
*/
|
|
43771
|
-
function emptyNames() {
|
|
43772
|
-
return /* @__PURE__ */ new Set();
|
|
43773
|
-
}
|
|
43774
|
-
/**
|
|
43775
43809
|
* Lists the features with a node on the flow stack: for every frame, the outer frames of a
|
|
43776
43810
|
* sub-flow included, the owner `flow.describe()` gives the node the frame addresses. A node with
|
|
43777
|
-
* no owner adds nothing. Read once per release or preload pass
|
|
43811
|
+
* no owner adds nothing. Read once per release or preload pass, into the one set of the plugin state, filled again
|
|
43812
|
+
* only when the stack or the graph is another (F196): the answer holds until the next call.
|
|
43778
43813
|
*
|
|
43779
43814
|
* @param ctx - Domain context of the plugin.
|
|
43780
43815
|
* @returns The feature names.
|
|
43781
43816
|
*/
|
|
43782
43817
|
function featuresOnStack(ctx) {
|
|
43818
|
+
const state = ctx.state;
|
|
43819
|
+
const stack = ctx.deps.flow.state().stack;
|
|
43783
43820
|
const graph = ctx.deps.flow.describe();
|
|
43784
|
-
const features =
|
|
43785
|
-
|
|
43821
|
+
const features = state.stackFeatures;
|
|
43822
|
+
if (state.stackFeaturesOf?.stack === stack && state.stackFeaturesOf.graph === graph) return features;
|
|
43823
|
+
features.clear();
|
|
43824
|
+
state.stackFeaturesOf = {
|
|
43825
|
+
stack,
|
|
43826
|
+
graph
|
|
43827
|
+
};
|
|
43828
|
+
for (const frame of stack) {
|
|
43786
43829
|
const owner = graph.flows[frame.flow]?.nodes[frame.node]?.owner;
|
|
43787
43830
|
if (owner !== void 0) features.add(owner);
|
|
43788
43831
|
}
|
|
@@ -44028,6 +44071,8 @@ function createBrowserIo(renderer) {
|
|
|
44028
44071
|
//#region src/plugins/assets/preload.ts
|
|
44029
44072
|
/** The answer of a flow or scene that names no bundle: one frozen list, so asking allocates nothing. */
|
|
44030
44073
|
const NO_NAMES = Object.freeze([]);
|
|
44074
|
+
/** The entries one frame takes in a walk's flattened frames: its flow, then its node. */
|
|
44075
|
+
const FRAME_WIDTH = 2;
|
|
44031
44076
|
/**
|
|
44032
44077
|
* Indexes the `feature`-tier bundles of the manifest by feature, in the manifest's order.
|
|
44033
44078
|
*
|
|
@@ -44252,26 +44297,106 @@ function follow(graph, visit, target, queue, visited) {
|
|
|
44252
44297
|
/**
|
|
44253
44298
|
* Walks the graph breadth-first from the node the game stands on and lists the bundles worth
|
|
44254
44299
|
* preloading: ordered by distance and then by name, without the `lazy` tier, without what is
|
|
44255
|
-
* already there or loading outside the running queue, and cut where the budget would break.
|
|
44300
|
+
* already there or loading outside the running queue, and cut where the budget would break. A rest
|
|
44301
|
+
* at the place of the last walk, with the same committed state, graph, manifest, scenes and depth,
|
|
44302
|
+
* walks nothing: it filters the last order again, since the statuses and the budget move (F196).
|
|
44303
|
+
* The answer is the plugin's scratch list, valid until the next call.
|
|
44256
44304
|
*
|
|
44257
44305
|
* @param ctx - Domain context of the plugin.
|
|
44258
44306
|
* @param depth - How many edges to look ahead.
|
|
44259
44307
|
* @returns The bundle names in load order.
|
|
44260
|
-
* @example
|
|
44261
|
-
* ```ts
|
|
44262
|
-
* // Resting on "board/awaitIntent" with a depth of two edges.
|
|
44263
|
-
* neighbourhood(ctx, 2); // ["board", "board.chains", "shop", "home", "reward"]
|
|
44264
|
-
* ```
|
|
44265
44308
|
*/
|
|
44266
44309
|
function neighbourhood(ctx, depth) {
|
|
44267
44310
|
const current = ctx.state.current;
|
|
44268
|
-
if (current === void 0) return
|
|
44311
|
+
if (current === void 0) return NO_NAMES;
|
|
44312
|
+
return affordable(ctx, walkOrder(ctx, current, depth));
|
|
44313
|
+
}
|
|
44314
|
+
/**
|
|
44315
|
+
* Tells whether the last walk was made at this place, for this committed state, graph, manifest,
|
|
44316
|
+
* scenes and depth. Field reads and a loop over the frames, no allocation.
|
|
44317
|
+
*
|
|
44318
|
+
* @param ctx - Domain context of the plugin.
|
|
44319
|
+
* @param walk - The last walk.
|
|
44320
|
+
* @param current - The node the game stands on.
|
|
44321
|
+
* @param depth - How many edges the walk looks ahead.
|
|
44322
|
+
* @returns True when its order holds now.
|
|
44323
|
+
*/
|
|
44324
|
+
function isSameWalk(ctx, walk, current, depth) {
|
|
44325
|
+
const { player, session } = ctx.deps.model.store.snapshot();
|
|
44326
|
+
const state = ctx.state;
|
|
44327
|
+
return walk.flow === current.flow && walk.node === current.node && walk.depth === depth && walk.player === player && walk.session === session && walk.manifest === state.manifest && walk.scenes === state.scenes && walk.graph === ctx.deps.flow.describe() && isSameFrames(walk.frames, ctx.deps.flow.state().stack);
|
|
44328
|
+
}
|
|
44329
|
+
/**
|
|
44330
|
+
* Tells whether the frames below the top of the flow stack are the ones a walk kept, flattened.
|
|
44331
|
+
*
|
|
44332
|
+
* @param kept - Flow and node of each frame below the top, one after the other.
|
|
44333
|
+
* @param stack - The flow stack now, the top last.
|
|
44334
|
+
* @returns True for the same flows and nodes in the same order.
|
|
44335
|
+
*/
|
|
44336
|
+
function isSameFrames(kept, stack) {
|
|
44337
|
+
if (kept.length !== (stack.length - 1) * FRAME_WIDTH) return false;
|
|
44338
|
+
for (let at = 0; at < stack.length - 1; at += 1) if (!isKeptFrame(stack[at], kept, at * FRAME_WIDTH)) return false;
|
|
44339
|
+
return true;
|
|
44340
|
+
}
|
|
44341
|
+
/**
|
|
44342
|
+
* Tells whether one frame of the stack is the flow and node a walk kept at an offset of its flat list.
|
|
44343
|
+
*
|
|
44344
|
+
* @param frame - The frame of the stack now.
|
|
44345
|
+
* @param kept - The flattened frames the walk kept.
|
|
44346
|
+
* @param offset - Where the frame's flow sits in `kept`; its node follows.
|
|
44347
|
+
* @returns True for the same flow and node.
|
|
44348
|
+
*/
|
|
44349
|
+
function isKeptFrame(frame, kept, offset) {
|
|
44350
|
+
return frame?.flow === kept[offset] && frame?.node === kept[offset + 1];
|
|
44351
|
+
}
|
|
44352
|
+
/**
|
|
44353
|
+
* The order the walk from the node the game stands on gives: the last walk's when it holds (see
|
|
44354
|
+
* `isSameWalk`), else a new walk, kept for the next rest.
|
|
44355
|
+
*
|
|
44356
|
+
* @param ctx - Domain context of the plugin.
|
|
44357
|
+
* @param current - The node the game stands on.
|
|
44358
|
+
* @param depth - How many edges to look ahead.
|
|
44359
|
+
* @returns The bundle names by distance and then by name, never written after the walk.
|
|
44360
|
+
*/
|
|
44361
|
+
function walkOrder(ctx, current, depth) {
|
|
44362
|
+
const last = ctx.state.lookAhead;
|
|
44363
|
+
if (last !== void 0 && isSameWalk(ctx, last, current, depth)) return last.ordered;
|
|
44269
44364
|
const graph = ctx.deps.flow.describe();
|
|
44270
44365
|
const stack = ctx.deps.flow.state().stack;
|
|
44366
|
+
const state = committedState$1(ctx);
|
|
44367
|
+
const below = stack.slice(0, -1);
|
|
44368
|
+
const ordered = walk(ctx, graph, current, below, depth, state);
|
|
44369
|
+
ctx.state.lookAhead = {
|
|
44370
|
+
flow: current.flow,
|
|
44371
|
+
node: current.node,
|
|
44372
|
+
frames: below.flatMap((frame) => [frame.flow, frame.node]),
|
|
44373
|
+
player: state.player,
|
|
44374
|
+
session: state.session,
|
|
44375
|
+
graph,
|
|
44376
|
+
manifest: ctx.state.manifest,
|
|
44377
|
+
scenes: ctx.state.scenes,
|
|
44378
|
+
depth,
|
|
44379
|
+
ordered
|
|
44380
|
+
};
|
|
44381
|
+
return ordered;
|
|
44382
|
+
}
|
|
44383
|
+
/**
|
|
44384
|
+
* Walks the graph breadth-first from a node and orders the bundles it reaches: by the distance
|
|
44385
|
+
* each was first seen at, then by name.
|
|
44386
|
+
*
|
|
44387
|
+
* @param ctx - Domain context of the plugin.
|
|
44388
|
+
* @param graph - The graph description.
|
|
44389
|
+
* @param current - The node the walk starts at.
|
|
44390
|
+
* @param below - The frames of the flow stack below it.
|
|
44391
|
+
* @param depth - How many edges to look ahead.
|
|
44392
|
+
* @param state - The committed player and session of now.
|
|
44393
|
+
* @returns The bundle names in order.
|
|
44394
|
+
*/
|
|
44395
|
+
function walk(ctx, graph, current, below, depth, state) {
|
|
44271
44396
|
const queue = [{
|
|
44272
44397
|
flow: current.flow,
|
|
44273
44398
|
node: current.node,
|
|
44274
|
-
frames:
|
|
44399
|
+
frames: below.map((frame) => ({
|
|
44275
44400
|
flow: frame.flow,
|
|
44276
44401
|
node: frame.node
|
|
44277
44402
|
})),
|
|
@@ -44279,7 +44404,6 @@ function neighbourhood(ctx, depth) {
|
|
|
44279
44404
|
}];
|
|
44280
44405
|
const visited = seenIds(`${current.flow}/${current.node}`);
|
|
44281
44406
|
const distances = emptyDistances();
|
|
44282
|
-
const state = committedState$1(ctx);
|
|
44283
44407
|
for (const visit of queue) {
|
|
44284
44408
|
const node = graph.flows[visit.flow]?.nodes[visit.node];
|
|
44285
44409
|
if (node === void 0) continue;
|
|
@@ -44288,7 +44412,7 @@ function neighbourhood(ctx, depth) {
|
|
|
44288
44412
|
if (visit.distance >= depth) continue;
|
|
44289
44413
|
for (const target of Object.values(graph.flows[visit.flow]?.edges[visit.node] ?? {})) follow(graph, visit, target, queue, visited);
|
|
44290
44414
|
}
|
|
44291
|
-
return
|
|
44415
|
+
return [...distances.entries()].toSorted((left, right) => left[1] - right[1] || left[0].localeCompare(right[0])).map(([name]) => name);
|
|
44292
44416
|
}
|
|
44293
44417
|
/**
|
|
44294
44418
|
* Tells whether the preload still has to bring a bundle: it is not there yet, or it is loading
|
|
@@ -44310,22 +44434,25 @@ function isStillWanted(state, name) {
|
|
|
44310
44434
|
* everything behind the first bundle that would break the budget are dropped. Preload never
|
|
44311
44435
|
* evicts.
|
|
44312
44436
|
*
|
|
44437
|
+
* It writes into the scratch list of the plugin state, so a rest allocates no answer.
|
|
44438
|
+
*
|
|
44313
44439
|
* @param ctx - Domain context of the plugin.
|
|
44314
|
-
* @param
|
|
44315
|
-
* @returns The bundle names in load order.
|
|
44440
|
+
* @param ordered - The bundle names by distance and then by name.
|
|
44441
|
+
* @returns The bundle names in load order: the scratch list, valid until the next call.
|
|
44316
44442
|
*/
|
|
44317
|
-
function affordable(ctx,
|
|
44318
|
-
const
|
|
44319
|
-
|
|
44443
|
+
function affordable(ctx, ordered) {
|
|
44444
|
+
const wanted = ctx.state.wantedScratch;
|
|
44445
|
+
while (wanted.length > 0) wanted.pop();
|
|
44320
44446
|
const onStack = featuresOnStack(ctx);
|
|
44321
|
-
|
|
44447
|
+
const running = ctx.state.runningMb;
|
|
44448
|
+
running[0] = usedMb(ctx.state);
|
|
44322
44449
|
for (const name of ordered) {
|
|
44323
44450
|
const entry = ctx.state.manifest.bundles[name];
|
|
44324
44451
|
if (entry === void 0 || entry.tier === "lazy") continue;
|
|
44325
44452
|
if (entry.release === "leave" && !isHeld$1(ctx, name, entry, onStack)) continue;
|
|
44326
44453
|
if (!isStillWanted(ctx.state, name)) continue;
|
|
44327
|
-
if (running + entry.mb > ctx.config.textureBudgetMb) break;
|
|
44328
|
-
running
|
|
44454
|
+
if ((running[0] ?? 0) + entry.mb > ctx.config.textureBudgetMb) break;
|
|
44455
|
+
running[0] = (running[0] ?? 0) + entry.mb;
|
|
44329
44456
|
wanted.push(name);
|
|
44330
44457
|
}
|
|
44331
44458
|
return wanted;
|
|
@@ -44375,8 +44502,13 @@ function stopPreload(state) {
|
|
|
44375
44502
|
* @returns True when the running queue already brings exactly these bundles.
|
|
44376
44503
|
*/
|
|
44377
44504
|
function isSameQueue(state, queue, bundles) {
|
|
44378
|
-
|
|
44379
|
-
|
|
44505
|
+
let at = 0;
|
|
44506
|
+
for (const name of queue.bundles) {
|
|
44507
|
+
if (state.records.get(name)?.status === "loaded") continue;
|
|
44508
|
+
if (bundles[at] !== name) return false;
|
|
44509
|
+
at += 1;
|
|
44510
|
+
}
|
|
44511
|
+
return at === bundles.length;
|
|
44380
44512
|
}
|
|
44381
44513
|
/**
|
|
44382
44514
|
* Points the background preload at the neighbourhood of the node the game rests on. The same
|
|
@@ -44385,11 +44517,6 @@ function isSameQueue(state, queue, bundles) {
|
|
|
44385
44517
|
* headless app do nothing.
|
|
44386
44518
|
*
|
|
44387
44519
|
* @param ctx - Domain context of the plugin.
|
|
44388
|
-
* @example
|
|
44389
|
-
* ```ts
|
|
44390
|
-
* // What the `flow:rest` hook does after it enforced the budget.
|
|
44391
|
-
* startPreload(ctx); // state.queue.bundles is the neighbourhood, loading in the background
|
|
44392
|
-
* ```
|
|
44393
44520
|
*/
|
|
44394
44521
|
function startPreload(ctx) {
|
|
44395
44522
|
const state = ctx.state;
|
|
@@ -44399,7 +44526,7 @@ function startPreload(ctx) {
|
|
|
44399
44526
|
stopPreload(state);
|
|
44400
44527
|
if (bundles.length === 0) return;
|
|
44401
44528
|
const queue = {
|
|
44402
|
-
bundles,
|
|
44529
|
+
bundles: [...bundles],
|
|
44403
44530
|
controller: new AbortController()
|
|
44404
44531
|
};
|
|
44405
44532
|
state.queue = queue;
|
|
@@ -45632,6 +45759,11 @@ function createAssetsState() {
|
|
|
45632
45759
|
featureOfFlow: emptyMap$3(),
|
|
45633
45760
|
featureIndex: void 0,
|
|
45634
45761
|
namedMemo: emptyWeakMap$1(),
|
|
45762
|
+
lookAhead: void 0,
|
|
45763
|
+
wantedScratch: [],
|
|
45764
|
+
stackFeatures: emptySet$2(),
|
|
45765
|
+
stackFeaturesOf: void 0,
|
|
45766
|
+
runningMb: /* @__PURE__ */ new Float64Array(1),
|
|
45635
45767
|
records: emptyMap$3(),
|
|
45636
45768
|
pinned: emptySet$2(),
|
|
45637
45769
|
sceneId: void 0,
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Bn as NodeTable, Ir as ClockSource, Jn as Hint, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Wn as Descriptor, Wr as Json, Yn as NodeFx } from "./types-
|
|
2
|
-
import { t as createApp } from "./index-
|
|
3
|
-
import { b as memory, x as saveOf, y as WithGameState } 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-C-
|
|
1
|
+
import { Bn as NodeTable, Ir as ClockSource, Jn as Hint, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Wn as Descriptor, Wr as Json, Yn as NodeFx } from "./types-DfA-806E.mjs";
|
|
2
|
+
import { t as createApp } from "./index-L1eOJ9Yk.mjs";
|
|
3
|
+
import { b as memory, x as saveOf, y as WithGameState } from "./types-DdmrhNgV.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-C-huIWPC.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 { dn as refuseStart, gn as type, pn as exit, t as createApp, w as flattenFeatures } from "./src-
|
|
1
|
+
import { dn as refuseStart, gn as type, pn as exit, t as createApp, w as flattenFeatures } from "./src-C9ePWG1I.mjs";
|
|
2
2
|
import { n as saveOf, t as memory } from "./memory-DeD9wis6.mjs";
|
|
3
3
|
import { n as fakeClock } from "./fake-hnJcJeYf.mjs";
|
|
4
4
|
import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-BuXptVI_.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $r as Snapshot, Wr as Json } from "./types-
|
|
2
|
-
import { t as HeadlessApp } from "./headless-C-
|
|
1
|
+
import { $r as Snapshot, Wr as Json } from "./types-DfA-806E.mjs";
|
|
2
|
+
import { t as HeadlessApp } from "./headless-C-huIWPC.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
|
|
5
5
|
//#region src/plugins/flow/doors/types.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as FilterSlotInputs, Ar as Api$3, M as SyncApi, Q as Api$4, Qn as AnchorTarget, Un as TypeTag, Ur as Events$3, Vr as Api$6, Wn as Descriptor, Wr as Json, ar as NumericFields, at as PixiSprite, b as Events$4, bi as Require, br as Entity, bt as FilterCache, cr as ReducedMotion, dr as TrackSegment, gr as ComponentHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, j as FilterSlotQuad, k as FilterSlot, mn as Api$2, nt as PixiFilter, oi as Events$5, ot as PixiTexture, pr as AnyComponent, rt as PixiGpuProgram, s as Events$1, st as PixiUniformGroup, t as Api$5, tr as Ease, ui as Api$1, ur as TrackOptions, vr as ComponentType, vt as Point, yi as Events$2 } from "./types-
|
|
2
|
-
import { R as InputApi, T as TextApi, U as I18nApi, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, tt as StylesState } from "./types-
|
|
1
|
+
import { A as FilterSlotInputs, Ar as Api$3, M as SyncApi, Q as Api$4, Qn as AnchorTarget, Un as TypeTag, Ur as Events$3, Vr as Api$6, Wn as Descriptor, Wr as Json, ar as NumericFields, at as PixiSprite, b as Events$4, bi as Require, br as Entity, bt as FilterCache, cr as ReducedMotion, dr as TrackSegment, gr as ComponentHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, j as FilterSlotQuad, k as FilterSlot, mn as Api$2, nt as PixiFilter, oi as Events$5, ot as PixiTexture, pr as AnyComponent, rt as PixiGpuProgram, s as Events$1, st as PixiUniformGroup, t as Api$5, tr as Ease, ui as Api$1, ur as TrackOptions, vr as ComponentType, vt as Point, yi as Events$2 } from "./types-DfA-806E.mjs";
|
|
2
|
+
import { R as InputApi, T as TextApi, U as I18nApi, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, tt as StylesState } from "./types-bwV1xlDq.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
import { PluginCtx } from "@moku-labs/core";
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as Config$2, Hr as Config, Ir as ClockSource, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Un as TypeTag, Wr as Json, Xr as ProviderCall, Yr as PlayerStateProvider, Zr as SaveDoc, _t as Orientation, a as Config$3, d as Manifest, ei as SnapshotOf, gn as Config$1, it as PixiModule, n as AssetsIo } from "./types-
|
|
2
|
-
import { o as AudioContextLike, s as Config$4 } from "./types-
|
|
3
|
-
import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-
|
|
4
|
-
import { Et as PlatformProvider, It as audioPlugin, Nt as effectsPlugin, i as screen, t as createApp, wt as platformPlugin } from "./index-
|
|
1
|
+
import { $ as Config$2, Hr as Config, Ir as ClockSource, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Un as TypeTag, Wr as Json, Xr as ProviderCall, Yr as PlayerStateProvider, Zr as SaveDoc, _t as Orientation, a as Config$3, d as Manifest, ei as SnapshotOf, gn as Config$1, it as PixiModule, n as AssetsIo } from "./types-DfA-806E.mjs";
|
|
2
|
+
import { o as AudioContextLike, s as Config$4 } from "./types-CYMAselq.mjs";
|
|
3
|
+
import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-bwV1xlDq.mjs";
|
|
4
|
+
import { Et as PlatformProvider, It as audioPlugin, Nt as effectsPlugin, i as screen, t as createApp, wt as platformPlugin } from "./index-L1eOJ9Yk.mjs";
|
|
5
5
|
import { AnyPluginInstance } from "@moku-labs/core";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/model/store/providers/memory.d.ts
|
|
@@ -6485,7 +6485,8 @@ type LoopSeam = {
|
|
|
6485
6485
|
*/
|
|
6486
6486
|
type RunnerState = {
|
|
6487
6487
|
/** Flush started by a background pause. `onStop` awaits it. */flushing: Promise<void> | undefined; /** Every flow of the graph by id, collected at `run()`. */
|
|
6488
|
-
flows: Map<string, AnyFlow>;
|
|
6488
|
+
flows: Map<string, AnyFlow>; /** The frozen `describe()` of the graph, rendered once after `run()` sealed the features (F196). */
|
|
6489
|
+
described?: FlowGraph;
|
|
6489
6490
|
enterCallbacks: Record<Stage, EnterCallback[]>; /** The position: one frame per nesting level. */
|
|
6490
6491
|
stack: Frame[];
|
|
6491
6492
|
/**
|
|
@@ -6711,7 +6712,8 @@ type RunnerApi = {
|
|
|
6711
6712
|
restore(bookmark: Bookmark): Promise<void>;
|
|
6712
6713
|
/**
|
|
6713
6714
|
* Renders the whole graph as JSON, without running the game. It reads the flows as data, so
|
|
6714
|
-
* it works before `run()`.
|
|
6715
|
+
* it works before `run()`. After `run()` the graph cannot change: every call answers the same
|
|
6716
|
+
* deeply frozen graph, so a caller that wants to edit it copies it first.
|
|
6715
6717
|
*
|
|
6716
6718
|
* @returns Nodes, flags, outcomes, edges, slots and who contributed.
|
|
6717
6719
|
* @example
|
|
@@ -14031,7 +14033,7 @@ type RunContext = {
|
|
|
14031
14033
|
signal: AbortSignal;
|
|
14032
14034
|
};
|
|
14033
14035
|
declare namespace types_d_exports {
|
|
14034
|
-
export { Api, AssetKind, AssetStamps, AssetsCtx, AssetsIo, AtlasFrame, AtlasPage, AudioAsset, AudioMime, BundleCompanion, BundleMap, BundleRecord, BundleRelease, BundleSpec, BundleUsage, Config, CreateTextureOptions, DecodedImage, DefineBundles, Deps, Events, FetchResponse, FlowRest, FontAsset, FontPage, HotSwap, Inflight, KernelSlice, LoadBundles, LoadReason, LoadResult, LoadedAssets, LoadedFont, Manifest, ManifestBundle, ManifestFile, NineBorders, NineSlice, PreloadQueue, ReadyBundles, State, Texture, Tier, Usage, WarmEntry };
|
|
14036
|
+
export { Api, AssetKind, AssetStamps, AssetsCtx, AssetsIo, AtlasFrame, AtlasPage, AudioAsset, AudioMime, BundleCompanion, BundleMap, BundleRecord, BundleRelease, BundleSpec, BundleUsage, Config, CreateTextureOptions, DecodedImage, DefineBundles, Deps, Events, FetchResponse, FlowRest, FontAsset, FontPage, HotSwap, Inflight, KernelSlice, LoadBundles, LoadReason, LoadResult, LoadedAssets, LoadedFont, LookAhead, Manifest, ManifestBundle, ManifestFile, NineBorders, NineSlice, PreloadQueue, ReadyBundles, State, Texture, Tier, Usage, WarmEntry };
|
|
14035
14037
|
}
|
|
14036
14038
|
/**
|
|
14037
14039
|
* When a bundle is loaded. `boot` and `core` stay for the whole session, `scene` and `feature`
|
|
@@ -14593,6 +14595,22 @@ type Config = {
|
|
|
14593
14595
|
baseUrl: string | undefined; /** I/O seam. `undefined`: the browser pair plus `renderer.sync.textures`, or headless. */
|
|
14594
14596
|
io: AssetsIo | undefined;
|
|
14595
14597
|
};
|
|
14598
|
+
/**
|
|
14599
|
+
* One walk of the look-ahead, kept with what it read: the place (the node and the frames below it, flattened to
|
|
14600
|
+
* flow and node pairs), the committed trees, the graph, the manifest, the scenes and the depth.
|
|
14601
|
+
*/
|
|
14602
|
+
type LookAhead = {
|
|
14603
|
+
flow: string;
|
|
14604
|
+
node: string;
|
|
14605
|
+
frames: string[];
|
|
14606
|
+
player: unknown;
|
|
14607
|
+
session: unknown;
|
|
14608
|
+
graph: unknown;
|
|
14609
|
+
manifest: Manifest;
|
|
14610
|
+
scenes: Map<string, SceneDefinition>;
|
|
14611
|
+
depth: number; /** The bundle names the walk reached, by distance and then by name, before the budget filter. */
|
|
14612
|
+
ordered: readonly string[];
|
|
14613
|
+
};
|
|
14596
14614
|
/**
|
|
14597
14615
|
* assets plugin state.
|
|
14598
14616
|
*/
|
|
@@ -14626,6 +14644,18 @@ type State = {
|
|
|
14626
14644
|
readonly byFeature: ReadonlyMap<string, readonly string[]>;
|
|
14627
14645
|
} | undefined; /** The last answer of each scene to `bundles`, by declaration: the look-ahead asks a scene once per committed state. */
|
|
14628
14646
|
namedMemo: WeakMap<SceneDefinition, NamedMemo>;
|
|
14647
|
+
/**
|
|
14648
|
+
* The last walk of the look-ahead and what it was walked for: the next rest at the same place, with the same
|
|
14649
|
+
* committed state, graph, manifest, scenes and depth, takes its order and walks nothing (F196).
|
|
14650
|
+
*/
|
|
14651
|
+
lookAhead: LookAhead | undefined; /** The list the budget filter of the look-ahead writes into, reused by every rest: a new queue copies it (F196). */
|
|
14652
|
+
wantedScratch: string[]; /** The features on the flow stack, as `featuresOnStack` answers them (F196). */
|
|
14653
|
+
stackFeatures: Set<string>; /** One cell for the megabytes the budget filter of the look-ahead adds up: a typed cell boxes no number (F196). */
|
|
14654
|
+
runningMb: Float64Array; /** The flow stack and the graph `stackFeatures` was filled for. */
|
|
14655
|
+
stackFeaturesOf: {
|
|
14656
|
+
readonly stack: FlowState["stack"];
|
|
14657
|
+
readonly graph: FlowGraph;
|
|
14658
|
+
} | undefined;
|
|
14629
14659
|
records: Map<string, BundleRecord>; /** Bundles of the node entered last. They are never unloaded. */
|
|
14630
14660
|
pinned: Set<string>; /** The scene of the node entered last. A node without `scene` keeps it. */
|
|
14631
14661
|
sceneId: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as ChangeHook, Ar as Api$2, D as AxisPose, Fr as Api$5, Jn as Hint, Q as Api$3, Qn as AnchorTarget, Wn as Descriptor, Wr as Json, Y as TransformValue, Zn as Answered, ar as NumericFields, bi as Require, br as Entity, cr as ReducedMotion, fr as ViewHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, kr as TagType, mn as Api$1, mr as AnyComponentType, nr as Motion, or as ProjectionMotion, pr as AnyComponent, rr as MotionCause, s as Events$1, t as Api$4, tr as Ease, tt as PixiContainer, ui as Api, vr as ComponentType, yt as ViewportSize } from "./types-
|
|
1
|
+
import { $n as ChangeHook, Ar as Api$2, D as AxisPose, Fr as Api$5, Jn as Hint, Q as Api$3, Qn as AnchorTarget, Wn as Descriptor, Wr as Json, Y as TransformValue, Zn as Answered, ar as NumericFields, bi as Require, br as Entity, cr as ReducedMotion, fr as ViewHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, kr as TagType, mn as Api$1, mr as AnyComponentType, nr as Motion, or as ProjectionMotion, pr as AnyComponent, rr as MotionCause, s as Events$1, t as Api$4, tr as Ease, tt as PixiContainer, ui as Api, vr as ComponentType, yt as ViewportSize } from "./types-DfA-806E.mjs";
|
|
2
2
|
import { Log } from "@moku-labs/common/browser";
|
|
3
3
|
import { PluginCtx } from "@moku-labs/core";
|
|
4
4
|
import { Node, Yoga } from "yoga-layout/load";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Ar as Api$1, Fr as Api$4, Q as Api, Vr as Api$2, ii as Api$3 } from "./types-
|
|
2
|
-
import { W as AnimApi, r as UiApi } from "./types-
|
|
3
|
-
import { R as InputApi } from "./types-
|
|
4
|
-
import { r as Repro } from "./headless-C-
|
|
5
|
-
import { i as ControlApp, o as InputOf } from "./types-
|
|
6
|
-
import { t as commands } from "./commands-
|
|
1
|
+
import { Ar as Api$1, Fr as Api$4, Q as Api, Vr as Api$2, ii as Api$3 } from "./types-DfA-806E.mjs";
|
|
2
|
+
import { W as AnimApi, r as UiApi } from "./types-CYMAselq.mjs";
|
|
3
|
+
import { R as InputApi } from "./types-bwV1xlDq.mjs";
|
|
4
|
+
import { r as Repro } from "./headless-C-huIWPC.mjs";
|
|
5
|
+
import { i as ControlApp, o as InputOf } from "./types-B6aCYfGI.mjs";
|
|
6
|
+
import { t as commands } from "./commands-CMjr-l0G.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-CHiUlYSu.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 };
|