@moku-labs/game 0.15.104 → 0.15.105
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-CYXJyv3w.d.mts → commands-DW0HRGor.d.mts} +5 -5
- package/dist/control.d.mts +4 -4
- package/dist/{define-Cq8Df0_C.d.mts → define-DnQHkikh.d.mts} +2 -2
- package/dist/{headless-DRiVyv9T.d.mts → headless-DDAKncmX.d.mts} +1 -1
- package/dist/{index-BIofySGI.d.mts → index-DuPTdMhJ.d.mts} +7 -6
- 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-DuAOUZ-z.d.mts → runtime-RUEeOVCg.d.mts} +1 -1
- package/dist/{src-BJBCs69P.mjs → src-DnqlJ1XY.mjs} +245 -161
- package/dist/testing.d.mts +4 -4
- package/dist/testing.mjs +1 -1
- package/dist/{types-BlXBiM8d.d.mts → types-BFWYGikY.d.mts} +1 -1
- package/dist/{types-BT8kKhan.d.mts → types-COMxJbej.d.mts} +4 -4
- package/dist/{types-Ca90Yo7d.d.mts → types-Ca0PmSri.d.mts} +2 -2
- package/dist/{types-C1-VCBhy.d.mts → types-CpoZ-UDH.d.mts} +5 -3
- package/dist/{types-CayM8xne.d.mts → types-KRAWEuUs.d.mts} +14 -1
- package/dist/{visual-B_3sVlRK.d.mts → visual-pvIoUjpL.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 { Jr 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 { Jr as PlayerStateProvider } from "../types-KRAWEuUs.mjs";
|
|
2
|
+
import { Et as PlatformProvider } from "../index-DuPTdMhJ.mjs";
|
|
3
|
+
import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-COMxJbej.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 { Ur 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 { Ur as Json } from "./types-KRAWEuUs.mjs";
|
|
2
|
+
import { J as StringTable } from "./types-BFWYGikY.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-COMxJbej.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-DnqlJ1XY.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 { D as DebugSwitches, Ln as FlowState, Pn as Bookmark, Pr as Api, Qr as Snapshot, Z as Api$2, di as FrameRate, ei as StoreApi, hi as Time, kr as Api$3, pt as Captured, ri as Api$1, 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-
|
|
5
|
-
import { i as ControlApp, r as Command } from "./types-
|
|
1
|
+
import { D as DebugSwitches, Ln as FlowState, Pn as Bookmark, Pr as Api, Qr as Snapshot, Z as Api$2, di as FrameRate, ei as StoreApi, hi as Time, kr as Api$3, pt as Captured, ri as Api$1, w as ScenesApi } from "./types-KRAWEuUs.mjs";
|
|
2
|
+
import { W as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-CpoZ-UDH.mjs";
|
|
3
|
+
import { R as InputApi } from "./types-BFWYGikY.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-DDAKncmX.mjs";
|
|
5
|
+
import { i as ControlApp, r as Command } from "./types-Ca0PmSri.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 { 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-DDAKncmX.mjs";
|
|
2
|
+
import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-Ca0PmSri.mjs";
|
|
3
|
+
import { t as commands } from "./commands-DW0HRGor.mjs";
|
|
4
|
+
import { t as defineCommand } from "./define-DnQHkikh.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 { l as Source, r as Command, s as InputSchema } from "./types-
|
|
1
|
+
import { t as HeadlessApp } from "./headless-DDAKncmX.mjs";
|
|
2
|
+
import { l as Source, r as Command, s as InputSchema } from "./types-Ca0PmSri.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugins/flow/doors/define.d.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bn as RouteStep, Ln as FlowState, Rn as JournalEntry, Ur as Json, Yn as Answer, li as Api, ni as RngState, pn as Api$1 } from "./types-
|
|
1
|
+
import { Bn as RouteStep, Ln as FlowState, Rn as JournalEntry, Ur as Json, Yn as Answer, li as Api, ni as RngState, pn as Api$1 } from "./types-KRAWEuUs.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/flow/headless.d.ts
|
|
4
4
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $n as DescriptionNode, An as FeatureDescription, Ar as Config$9, C as SceneSpec, Cr as Narrowed, Dr as SystemFor, Er as SystemDefinition, Et as FrameRing, F as HudPartValue, Fn as DefineNode, G as SpriteOptions, Gn as EffectOptions, Gr as State$5, H as ShapeValue, Ir as Config$2, It as PassKind, J as TransformValue, K as SpriteValue, Kn as GuideOptions, L as NineSliceValue, Mn as FeatureTree, Mr as State$9, Or as TagType, Pr as Api$1, Q as Config$6, Rr as State$2, S as SceneDefinition, Sn as TextStylesOf, Sr as Mut, T as State$7, Tn as defineFlow, Tr as ResourceType, Tt as FrameRecord, Un as Descriptor, Ur as Json, Vn as SceneIdOf, Vr as Config$5, Wn as Effect, Wr as Root, Xn as Answered, Y as sprite, Z as Api$4, _ as AnySceneProjection, _i as Config$10, _n as GameTypes, _r as ComponentType, a as Config$1, ai as Events, ar as ProjectionMotion, bn as State$3, c as LoadBundles, ct as State$6, ei as StoreApi, er as Ease, f as ReadyBundles, fi as RateChange, gn as EmitterIdOf, hn as Config$3, hr as ComponentHandle, i as BundleSpec, ii as Config$4, ir as NumericFields, jn as FeaturePlugin, kr as Api$6, l as LoadReason, li as Api$5, m as Tier, mi as ThermalReading, mn as BundlesOf, o as DefineBundles, oi as PauseReason, or as ProjectionSpec, p as State$1, pi as State$8, pn as Api$2, qn as Hint, qr as Patch, r as BundleMap, ri as Api$3, si as State$4, sr as ReducedMotion, t as Api, ti as RngApi, u as LoadResult, ui as Config$8, v as Config$7, vi as Events$1, vn as HudKeysOf, vr as ComponentValue, vt as ViewportSize, w as ScenesApi, wr as QueryTerm, x as LayerMap, xn as TextFormatsOf, y as DefineScene, yi as Require, z as OverlayValue } from "./types-
|
|
2
|
-
import { $ as SfxDescriptor, 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, Q as HapticKind, 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, c as MusicDescriptor, ct as play, d as State$11, et as Step, f as VolumesFor, h as EffectsApi, j as EmitterValue, k as EmitterConfig, l as MusicOptions, m as Config$13, n as State$13, nt as defineAnimation, q as FramesValue, r as UiApi, s as Config$12, t as Config$14, w as GradeValue, x as DissolveValue, y as AuraValue, yt as OverlayApi, 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 WhenFlags, q as State$14, s as PopupComponent, v as BindField, w as State$16, x as CountdownValue, y as BindOptions, z as State$15 } from "./types-
|
|
1
|
+
import { $n as DescriptionNode, An as FeatureDescription, Ar as Config$9, C as SceneSpec, Cr as Narrowed, Dr as SystemFor, Er as SystemDefinition, Et as FrameRing, F as HudPartValue, Fn as DefineNode, G as SpriteOptions, Gn as EffectOptions, Gr as State$5, H as ShapeValue, Ir as Config$2, It as PassKind, J as TransformValue, K as SpriteValue, Kn as GuideOptions, L as NineSliceValue, Mn as FeatureTree, Mr as State$9, Or as TagType, Pr as Api$1, Q as Config$6, Rr as State$2, S as SceneDefinition, Sn as TextStylesOf, Sr as Mut, T as State$7, Tn as defineFlow, Tr as ResourceType, Tt as FrameRecord, Un as Descriptor, Ur as Json, Vn as SceneIdOf, Vr as Config$5, Wn as Effect, Wr as Root, Xn as Answered, Y as sprite, Z as Api$4, _ as AnySceneProjection, _i as Config$10, _n as GameTypes, _r as ComponentType, a as Config$1, ai as Events, ar as ProjectionMotion, bn as State$3, c as LoadBundles, ct as State$6, ei as StoreApi, er as Ease, f as ReadyBundles, fi as RateChange, gn as EmitterIdOf, hn as Config$3, hr as ComponentHandle, i as BundleSpec, ii as Config$4, ir as NumericFields, jn as FeaturePlugin, kr as Api$6, l as LoadReason, li as Api$5, m as Tier, mi as ThermalReading, mn as BundlesOf, o as DefineBundles, oi as PauseReason, or as ProjectionSpec, p as State$1, pi as State$8, pn as Api$2, qn as Hint, qr as Patch, r as BundleMap, ri as Api$3, si as State$4, sr as ReducedMotion, t as Api, ti as RngApi, u as LoadResult, ui as Config$8, v as Config$7, vi as Events$1, vn as HudKeysOf, vr as ComponentValue, vt as ViewportSize, w as ScenesApi, wr as QueryTerm, x as LayerMap, xn as TextFormatsOf, y as DefineScene, yi as Require, z as OverlayValue } from "./types-KRAWEuUs.mjs";
|
|
2
|
+
import { $ as SfxDescriptor, 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, Q as HapticKind, 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, c as MusicDescriptor, ct as play, d as State$11, et as Step, f as VolumesFor, h as EffectsApi, j as EmitterValue, k as EmitterConfig, l as MusicOptions, m as Config$13, n as State$13, nt as defineAnimation, q as FramesValue, r as UiApi, s as Config$12, t as Config$14, w as GradeValue, x as DissolveValue, y as AuraValue, yt as OverlayApi, z as FilterValueOf } from "./types-CpoZ-UDH.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 WhenFlags, q as State$14, s as PopupComponent, v as BindField, w as State$16, x as CountdownValue, y as BindOptions, z as State$15 } from "./types-BFWYGikY.mjs";
|
|
4
4
|
import { Log } from "@moku-labs/common/browser";
|
|
5
5
|
import { PluginCtx } from "@moku-labs/core";
|
|
6
6
|
|
|
@@ -1790,9 +1790,10 @@ declare const Aura: FilterComponent<AuraValue>;
|
|
|
1790
1790
|
* (over the A26's screen its passes fill 1.9 Mpx a frame at 2.625). List it in a feature's `filters`, as a game's own
|
|
1791
1791
|
* filter. It reads a second texture drawn by a chain of two stages, the light cut and boxed down to ¼ (⅛ when the
|
|
1792
1792
|
* radius is over 8 texels at ¼: radius 16 at the phone's 2.625, 32 at 2) and blurred there: 3 passes at any radius.
|
|
1793
|
-
* A still view is kept as a picture
|
|
1794
|
-
*
|
|
1795
|
-
*
|
|
1793
|
+
* A still view is kept as a picture. A `strength` tween leaves the chain as it was: on WebGPU the view draws on its own
|
|
1794
|
+
* quad over the held chain result, no pass of its own, and on WebGL it redraws the picture's filter, 3 passes. A
|
|
1795
|
+
* `threshold` or `radius` tween runs the chain again too, in every frame it moves. Past a sigma of 8 texels at ⅛ the
|
|
1796
|
+
* bloom stops widening.
|
|
1796
1797
|
*
|
|
1797
1798
|
* @example
|
|
1798
1799
|
* ```ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as MonitorConfig, $n as DescriptionNode, $t as PerfSpikeLine, At as OverlayEventDetail, B as Parent, Bt as PerfChangeEntry, Cn as types_d_exports$6, Ct as FrameReadResult, Dn as slot, Dt as LongFrameEntry, E as types_d_exports$13, En as exit, Et as FrameRing, F as HudPartValue, Ft as PROBLEM_RULES, Gt as PerfEventName, Ht as PerfCounts, I as NineSlice, It as PassKind, Jt as PerfLogLine, Kr as types_d_exports$10, Kt as PerfGapLine, Lt as PassRecord, M as WhyEntry, Mt as PERF_CAUSES, N as Display, Nr as types_d_exports$17, Nt as PERF_GAP_BUCKETS, On as to, Ot as MONITOR_SECTIONS, P as HudPart, Pt as PERF_LOG_VERSION, Qt as PerfSampleLine, R as Overlay, Rt as PerfCause, St as FrameColumns, Tt as FrameRecord, U as Sprite, Ut as PerfDisplay, V as Shape, Vt as PerfCollectorLine, W as SpriteBlend, Wt as PerfEventLine, X as AdaptiveScale, Xt as PerfMarkLine, Y as sprite, Yt as PerfLongFrameLine, Zn as AnchorTarget, Zr as SaveUnreadableError, Zt as PerfMeasured, an as ProblemRule, bt as RetakeWhy, ci as types_d_exports$9, cn as ShaderWhat, cr as SceneSwitch, dn as CanvasRestart, dt as ShotsApi, en as PerfStartupLine, fn as DEMAND_REASONS, ft as ShotsConfig, g as types_d_exports$1, gi as types_d_exports$15, in as ProblemEventDetail, jt as OverlayWhat, kn as type, kt as MonitorSections, ln as WarmDetail, mt as MonitorCounts, nn as PerfThermalLine, on as SHADER_WHATS, q as Transform, qt as PerfHeaderLine, rn as PoolTrimDetail, sn as ShaderEventDetail, st as PoolTrim, tn as PerfTelemetryLine, un as CANVAS_RESTARTS, ut as types_d_exports$12, wn as contribution, wt as FrameReadout, xt as WhyLive, z as OverlayValue, zr as types_d_exports$3, zt as PerfChange } from "./types-
|
|
2
|
-
import { C as FoldValue, D as ShineValue, E as RevealRoundValue, I as FilterArea, O as VignetteValue, Q as HapticKind, S as FlashValue, T as RevealLineValue, Z as types_d_exports, _t as use, at as haptic, b as BloomValue, bt as types_d_exports$4, ct as play, dt as sfx, ft as spawn, gt as tween, ht as stopSfx, i as types_d_exports$16, it as frames, lt as sequence, mt as stagger, nt as defineAnimation, ot as mark, p as types_d_exports$2, pt as spawned, rt as external, st as parallel, tt as HAPTIC_KINDS, ut as set, v as types_d_exports$5, vt as wait, w as GradeValue, x as DissolveValue, y as AuraValue } 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, 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 { $ as MonitorConfig, $n as DescriptionNode, $t as PerfSpikeLine, At as OverlayEventDetail, B as Parent, Bt as PerfChangeEntry, Cn as types_d_exports$6, Ct as FrameReadResult, Dn as slot, Dt as LongFrameEntry, E as types_d_exports$13, En as exit, Et as FrameRing, F as HudPartValue, Ft as PROBLEM_RULES, Gt as PerfEventName, Ht as PerfCounts, I as NineSlice, It as PassKind, Jt as PerfLogLine, Kr as types_d_exports$10, Kt as PerfGapLine, Lt as PassRecord, M as WhyEntry, Mt as PERF_CAUSES, N as Display, Nr as types_d_exports$17, Nt as PERF_GAP_BUCKETS, On as to, Ot as MONITOR_SECTIONS, P as HudPart, Pt as PERF_LOG_VERSION, Qt as PerfSampleLine, R as Overlay, Rt as PerfCause, St as FrameColumns, Tt as FrameRecord, U as Sprite, Ut as PerfDisplay, V as Shape, Vt as PerfCollectorLine, W as SpriteBlend, Wt as PerfEventLine, X as AdaptiveScale, Xt as PerfMarkLine, Y as sprite, Yt as PerfLongFrameLine, Zn as AnchorTarget, Zr as SaveUnreadableError, Zt as PerfMeasured, an as ProblemRule, bt as RetakeWhy, ci as types_d_exports$9, cn as ShaderWhat, cr as SceneSwitch, dn as CanvasRestart, dt as ShotsApi, en as PerfStartupLine, fn as DEMAND_REASONS, ft as ShotsConfig, g as types_d_exports$1, gi as types_d_exports$15, in as ProblemEventDetail, jt as OverlayWhat, kn as type, kt as MonitorSections, ln as WarmDetail, mt as MonitorCounts, nn as PerfThermalLine, on as SHADER_WHATS, q as Transform, qt as PerfHeaderLine, rn as PoolTrimDetail, sn as ShaderEventDetail, st as PoolTrim, tn as PerfTelemetryLine, un as CANVAS_RESTARTS, ut as types_d_exports$12, wn as contribution, wt as FrameReadout, xt as WhyLive, z as OverlayValue, zr as types_d_exports$3, zt as PerfChange } from "./types-KRAWEuUs.mjs";
|
|
2
|
+
import { C as FoldValue, D as ShineValue, E as RevealRoundValue, I as FilterArea, O as VignetteValue, Q as HapticKind, S as FlashValue, T as RevealLineValue, Z as types_d_exports, _t as use, at as haptic, b as BloomValue, bt as types_d_exports$4, ct as play, dt as sfx, ft as spawn, gt as tween, ht as stopSfx, i as types_d_exports$16, it as frames, lt as sequence, mt as stagger, nt as defineAnimation, ot as mark, p as types_d_exports$2, pt as spawned, rt as external, st as parallel, tt as HAPTIC_KINDS, ut as set, v as types_d_exports$5, vt as wait, w as GradeValue, x as DissolveValue, y as AuraValue } from "./types-CpoZ-UDH.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, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-BFWYGikY.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-DuPTdMhJ.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, 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 timePlugin, 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 clockPlugin, xt as Hovered, y as schedule, yn as lifecyclePlugin, 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 timePlugin, 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 clockPlugin, xt as Hovered, y as schedule, yn as lifecyclePlugin, yt as DropTarget, z as types_exports$8, zt as Displacement } from "./src-DnqlJ1XY.mjs";
|
|
2
2
|
import { $ as Parent, A as Countdown, F as defineTextFormats, I as defineTextStyles, J as Display, L as label, M as bind, S as popup, T as defineStyle, X as NineSlice, Y as HudPart, Z as Overlay, _ as LocalWrite, at as sprite, ct as Now, dt as component, et as Shape, ft as mut, gt as tag, h as DebugTrigger, j as Text, lt as Order, mt as system, nt as Transform, ot as Exiting, p as Box, pt as resource, st as Layer, tt as Sprite, ut as Tree, w as defineTokens, y as ScrollState } from "./visual-fyUJwUJf.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 { Br as Api, In as FlowGraph, Qr as Snapshot, Rn as JournalEntry, Z as Api$2, br as EntitySnapshot, gr as ComponentSchema, h as Usage, ht as RenderStats, jr as Explained, kr as Api$1, lt as Under, t as Api$3, xr as FrameDiff, yn as Position } 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 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 { Br as Api, In as FlowGraph, Qr as Snapshot, Rn as JournalEntry, Z as Api$2, br as EntitySnapshot, gr as ComponentSchema, h as Usage, ht as RenderStats, jr as Explained, kr as Api$1, lt as Under, t as Api$3, xr as FrameDiff, yn as Position } from "./types-KRAWEuUs.mjs";
|
|
2
|
+
import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-CpoZ-UDH.mjs";
|
|
3
|
+
import { c as UiNode } from "./types-BFWYGikY.mjs";
|
|
4
|
+
import { t as HeadlessApp } from "./headless-DDAKncmX.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-Ca0PmSri.mjs";
|
|
6
|
+
import { n as defineSource } from "./define-DnQHkikh.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-RUEeOVCg.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-RUEeOVCg.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-BFWYGikY.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. */
|
|
@@ -17757,19 +17757,17 @@ function endLoan(inputs) {
|
|
|
17757
17757
|
inputs?.hold(void 0);
|
|
17758
17758
|
}
|
|
17759
17759
|
/**
|
|
17760
|
-
* The first enabled slot of a stack, when it reads
|
|
17760
|
+
* The inputs of the first enabled slot of a stack, when it reads any: the seam stage 2 keeps (OQ23-5). The seam itself,
|
|
17761
|
+
* no object around it: a shaded frame of a view whose filter reads inputs asks twice.
|
|
17761
17762
|
*
|
|
17762
17763
|
* @param slots - The record's slots.
|
|
17763
|
-
* @returns The
|
|
17764
|
+
* @returns The seam, or `undefined`.
|
|
17764
17765
|
*/
|
|
17765
17766
|
function firstInputs(slots) {
|
|
17766
17767
|
for (let index = 0; index < slots.length; index += 1) {
|
|
17767
17768
|
const slot = slots[index];
|
|
17768
17769
|
if (slot === void 0 || !slot.filter.enabled) continue;
|
|
17769
|
-
return slot.inputs
|
|
17770
|
-
slot,
|
|
17771
|
-
inputs: slot.inputs
|
|
17772
|
-
};
|
|
17770
|
+
return slot.inputs;
|
|
17773
17771
|
}
|
|
17774
17772
|
}
|
|
17775
17773
|
/**
|
|
@@ -17922,7 +17920,7 @@ function sizeTargets(kctx, pixi, record, scales, padding) {
|
|
|
17922
17920
|
* Stage 2, the pre-pass result of the first enabled filter with inputs (spec 24 B3.9): the keeper's stand-in is
|
|
17923
17921
|
* rendered over the picture, its apply draws the chain into engine targets; the version is read after the draw, a
|
|
17924
17922
|
* scale that changed inside it resizes the targets and draws once more; the filter then holds the results. An empty
|
|
17925
|
-
* chain holds nothing.
|
|
17923
|
+
* chain holds nothing. Whatever it draws, no stage 3 drew over it yet (`heldPlaced`).
|
|
17926
17924
|
*
|
|
17927
17925
|
* @param kctx - The kept context.
|
|
17928
17926
|
* @param pixi - The module that draws.
|
|
@@ -17936,6 +17934,7 @@ function sizeTargets(kctx, pixi, record, scales, padding) {
|
|
|
17936
17934
|
function renderStage2(kctx, pixi, matrices, record, context) {
|
|
17937
17935
|
const { inputs, resolution, padding } = context;
|
|
17938
17936
|
const scales = scalesOf(inputs);
|
|
17937
|
+
record.heldPlaced = false;
|
|
17939
17938
|
if (record.s2Of !== inputs) endLoan(record.s2Of);
|
|
17940
17939
|
record.s2Of = inputs;
|
|
17941
17940
|
if (scales === void 0) {
|
|
@@ -18000,7 +17999,8 @@ function readsPlace(record) {
|
|
|
18000
17999
|
/**
|
|
18001
18000
|
* Stage 3, the filter output: the stand-in, carrying the record's filters, is rendered at `M3 = translate(Ps, Ps)`
|
|
18002
18001
|
* into the output texture. A placed filter's origin gets the picture's canvas origin first, `O + Δ`; a local one
|
|
18003
|
-
* writes nothing.
|
|
18002
|
+
* writes nothing. A render over held results places them (`heldPlaced`): the filter's apply inside it wrote each
|
|
18003
|
+
* input's scale and clamp for them, which a mesh of the record reads as they stand. A render that failed placed nothing.
|
|
18004
18004
|
*
|
|
18005
18005
|
* @param kctx - The kept context.
|
|
18006
18006
|
* @param pixi - The module that draws.
|
|
@@ -18020,7 +18020,9 @@ function renderStage3(kctx, pixi, matrices, record, now) {
|
|
|
18020
18020
|
const Ps = key[KEY.Ps] ?? 0;
|
|
18021
18021
|
if (readsPlace(record)) setOrigins(record.slots, (key[KEY.X0] ?? 0) - Ps + now.tx - (key[KEY.tx] ?? 0), (key[KEY.Y0] ?? 0) - Ps + now.ty - (key[KEY.ty] ?? 0));
|
|
18022
18022
|
matrices.m3.set(1, 0, 0, 1, Ps, Ps);
|
|
18023
|
-
|
|
18023
|
+
const rendered = kctx.host.renderTo(standIn, output, matrices.m3, true);
|
|
18024
|
+
record.heldPlaced = rendered && record.s2Of !== void 0;
|
|
18025
|
+
if (!rendered) return false;
|
|
18024
18026
|
key[KEY.r] = now.r;
|
|
18025
18027
|
key[KEY.P] = now.P;
|
|
18026
18028
|
key[KEY.s3Tx] = now.tx;
|
|
@@ -18416,6 +18418,110 @@ function flushRanges(kctx) {
|
|
|
18416
18418
|
state.drawnPictures += range.sprite === void 0 ? 0 : 1;
|
|
18417
18419
|
}
|
|
18418
18420
|
}
|
|
18421
|
+
/**
|
|
18422
|
+
* One vector of the group, over an array the caller keeps.
|
|
18423
|
+
*
|
|
18424
|
+
* @param value - The array.
|
|
18425
|
+
* @returns The uniform.
|
|
18426
|
+
*/
|
|
18427
|
+
function vector(value) {
|
|
18428
|
+
return {
|
|
18429
|
+
value,
|
|
18430
|
+
type: "vec4<f32>"
|
|
18431
|
+
};
|
|
18432
|
+
}
|
|
18433
|
+
/**
|
|
18434
|
+
* The group of the numbers a filter pass hands a body, under the names Pixi's filter system fills, and the arrays it
|
|
18435
|
+
* reads, typed. Static: a group that is not is uploaded on every draw, and a shaded view changes these only when it
|
|
18436
|
+
* moves or its picture changes size.
|
|
18437
|
+
*
|
|
18438
|
+
* @param pixi - The module that draws.
|
|
18439
|
+
* @returns The group, zeros, and its vectors.
|
|
18440
|
+
*/
|
|
18441
|
+
function filterGlobals(pixi) {
|
|
18442
|
+
const vectors = {
|
|
18443
|
+
uInputSize: /* @__PURE__ */ new Float32Array(4),
|
|
18444
|
+
uInputPixel: /* @__PURE__ */ new Float32Array(4),
|
|
18445
|
+
uInputClamp: /* @__PURE__ */ new Float32Array(4),
|
|
18446
|
+
uOutputFrame: /* @__PURE__ */ new Float32Array(4),
|
|
18447
|
+
uGlobalFrame: /* @__PURE__ */ new Float32Array(4),
|
|
18448
|
+
uOutputTexture: /* @__PURE__ */ new Float32Array(4)
|
|
18449
|
+
};
|
|
18450
|
+
return {
|
|
18451
|
+
group: new pixi.UniformGroup({
|
|
18452
|
+
uInputSize: vector(vectors.uInputSize),
|
|
18453
|
+
uInputPixel: vector(vectors.uInputPixel),
|
|
18454
|
+
uInputClamp: vector(vectors.uInputClamp),
|
|
18455
|
+
uOutputFrame: vector(vectors.uOutputFrame),
|
|
18456
|
+
uGlobalFrame: vector(vectors.uGlobalFrame),
|
|
18457
|
+
uOutputTexture: vector(vectors.uOutputTexture)
|
|
18458
|
+
}, { isStatic: true }),
|
|
18459
|
+
vectors
|
|
18460
|
+
};
|
|
18461
|
+
}
|
|
18462
|
+
/**
|
|
18463
|
+
* The unit square of a quad program, its uvs over the whole texture: the mesh's scale gives it its size.
|
|
18464
|
+
*
|
|
18465
|
+
* @param pixi - The module that draws.
|
|
18466
|
+
* @returns A new geometry.
|
|
18467
|
+
*/
|
|
18468
|
+
function unitQuad(pixi) {
|
|
18469
|
+
return new pixi.MeshGeometry({
|
|
18470
|
+
positions: new Float32Array([
|
|
18471
|
+
0,
|
|
18472
|
+
0,
|
|
18473
|
+
1,
|
|
18474
|
+
0,
|
|
18475
|
+
1,
|
|
18476
|
+
1,
|
|
18477
|
+
0,
|
|
18478
|
+
1
|
|
18479
|
+
]),
|
|
18480
|
+
uvs: new Float32Array([
|
|
18481
|
+
0,
|
|
18482
|
+
0,
|
|
18483
|
+
1,
|
|
18484
|
+
0,
|
|
18485
|
+
1,
|
|
18486
|
+
1,
|
|
18487
|
+
0,
|
|
18488
|
+
1
|
|
18489
|
+
]),
|
|
18490
|
+
indices: new Uint32Array([
|
|
18491
|
+
0,
|
|
18492
|
+
1,
|
|
18493
|
+
2,
|
|
18494
|
+
0,
|
|
18495
|
+
2,
|
|
18496
|
+
3
|
|
18497
|
+
])
|
|
18498
|
+
});
|
|
18499
|
+
}
|
|
18500
|
+
/**
|
|
18501
|
+
* The shader of a quad over a texture. `fu` is left out for a filter that binds none: Pixi throws on an undefined
|
|
18502
|
+
* resource. Each input the quad names gets that texture too, its sampler that texture's style, until the kept cache
|
|
18503
|
+
* binds the held result there (`shade.ts`): Pixi builds a group only of what is bound, and a draw over a hole throws.
|
|
18504
|
+
*
|
|
18505
|
+
* @param pixi - The module that draws.
|
|
18506
|
+
* @param quad - The slot's quad.
|
|
18507
|
+
* @param gfu - The global filter uniforms.
|
|
18508
|
+
* @param source - The texture it reads.
|
|
18509
|
+
* @returns The shader.
|
|
18510
|
+
*/
|
|
18511
|
+
function quadShader(pixi, quad, gfu, source) {
|
|
18512
|
+
const { program, fu, inputNames = [] } = quad;
|
|
18513
|
+
const resources = {
|
|
18514
|
+
gfu,
|
|
18515
|
+
uTexture: source,
|
|
18516
|
+
uSampler: source.style
|
|
18517
|
+
};
|
|
18518
|
+
if (fu !== void 0) resources.fu = fu;
|
|
18519
|
+
for (const [index, name] of inputNames.entries()) resources[name] = index % 2 === 0 ? source : source.style;
|
|
18520
|
+
return new pixi.Shader({
|
|
18521
|
+
gpuProgram: program,
|
|
18522
|
+
resources
|
|
18523
|
+
});
|
|
18524
|
+
}
|
|
18419
18525
|
//#endregion
|
|
18420
18526
|
//#region src/plugins/renderer/kept/drawn-bounds.ts
|
|
18421
18527
|
/** Every flag of a node's display status: visible, renderable, not culled (Pixi's `localDisplayStatus`). */
|
|
@@ -18533,110 +18639,6 @@ function drawnBounds(pixi, top) {
|
|
|
18533
18639
|
addDrawn$1(pixi, top, into, 0, top);
|
|
18534
18640
|
return into;
|
|
18535
18641
|
}
|
|
18536
|
-
/**
|
|
18537
|
-
* One vector of the group, over an array the caller keeps.
|
|
18538
|
-
*
|
|
18539
|
-
* @param value - The array.
|
|
18540
|
-
* @returns The uniform.
|
|
18541
|
-
*/
|
|
18542
|
-
function vector(value) {
|
|
18543
|
-
return {
|
|
18544
|
-
value,
|
|
18545
|
-
type: "vec4<f32>"
|
|
18546
|
-
};
|
|
18547
|
-
}
|
|
18548
|
-
/**
|
|
18549
|
-
* The group of the numbers a filter pass hands a body, under the names Pixi's filter system fills, and the arrays it
|
|
18550
|
-
* reads, typed. Static: a group that is not is uploaded on every draw, and a shaded view changes these only when it
|
|
18551
|
-
* moves or its picture changes size.
|
|
18552
|
-
*
|
|
18553
|
-
* @param pixi - The module that draws.
|
|
18554
|
-
* @returns The group, zeros, and its vectors.
|
|
18555
|
-
*/
|
|
18556
|
-
function filterGlobals(pixi) {
|
|
18557
|
-
const vectors = {
|
|
18558
|
-
uInputSize: /* @__PURE__ */ new Float32Array(4),
|
|
18559
|
-
uInputPixel: /* @__PURE__ */ new Float32Array(4),
|
|
18560
|
-
uInputClamp: /* @__PURE__ */ new Float32Array(4),
|
|
18561
|
-
uOutputFrame: /* @__PURE__ */ new Float32Array(4),
|
|
18562
|
-
uGlobalFrame: /* @__PURE__ */ new Float32Array(4),
|
|
18563
|
-
uOutputTexture: /* @__PURE__ */ new Float32Array(4)
|
|
18564
|
-
};
|
|
18565
|
-
return {
|
|
18566
|
-
group: new pixi.UniformGroup({
|
|
18567
|
-
uInputSize: vector(vectors.uInputSize),
|
|
18568
|
-
uInputPixel: vector(vectors.uInputPixel),
|
|
18569
|
-
uInputClamp: vector(vectors.uInputClamp),
|
|
18570
|
-
uOutputFrame: vector(vectors.uOutputFrame),
|
|
18571
|
-
uGlobalFrame: vector(vectors.uGlobalFrame),
|
|
18572
|
-
uOutputTexture: vector(vectors.uOutputTexture)
|
|
18573
|
-
}, { isStatic: true }),
|
|
18574
|
-
vectors
|
|
18575
|
-
};
|
|
18576
|
-
}
|
|
18577
|
-
/**
|
|
18578
|
-
* The unit square of a quad program, its uvs over the whole texture: the mesh's scale gives it its size.
|
|
18579
|
-
*
|
|
18580
|
-
* @param pixi - The module that draws.
|
|
18581
|
-
* @returns A new geometry.
|
|
18582
|
-
*/
|
|
18583
|
-
function unitQuad(pixi) {
|
|
18584
|
-
return new pixi.MeshGeometry({
|
|
18585
|
-
positions: new Float32Array([
|
|
18586
|
-
0,
|
|
18587
|
-
0,
|
|
18588
|
-
1,
|
|
18589
|
-
0,
|
|
18590
|
-
1,
|
|
18591
|
-
1,
|
|
18592
|
-
0,
|
|
18593
|
-
1
|
|
18594
|
-
]),
|
|
18595
|
-
uvs: new Float32Array([
|
|
18596
|
-
0,
|
|
18597
|
-
0,
|
|
18598
|
-
1,
|
|
18599
|
-
0,
|
|
18600
|
-
1,
|
|
18601
|
-
1,
|
|
18602
|
-
0,
|
|
18603
|
-
1
|
|
18604
|
-
]),
|
|
18605
|
-
indices: new Uint32Array([
|
|
18606
|
-
0,
|
|
18607
|
-
1,
|
|
18608
|
-
2,
|
|
18609
|
-
0,
|
|
18610
|
-
2,
|
|
18611
|
-
3
|
|
18612
|
-
])
|
|
18613
|
-
});
|
|
18614
|
-
}
|
|
18615
|
-
/**
|
|
18616
|
-
* The shader of a quad over a texture. `fu` is left out for a filter that binds none: Pixi throws on an undefined
|
|
18617
|
-
* resource.
|
|
18618
|
-
*
|
|
18619
|
-
* @param pixi - The module that draws.
|
|
18620
|
-
* @param quad - The slot's quad.
|
|
18621
|
-
* @param gfu - The global filter uniforms.
|
|
18622
|
-
* @param source - The texture it reads.
|
|
18623
|
-
* @returns The shader.
|
|
18624
|
-
*/
|
|
18625
|
-
function quadShader(pixi, quad, gfu, source) {
|
|
18626
|
-
const { program, fu } = quad;
|
|
18627
|
-
const texture = {
|
|
18628
|
-
gfu,
|
|
18629
|
-
uTexture: source,
|
|
18630
|
-
uSampler: source.style
|
|
18631
|
-
};
|
|
18632
|
-
return new pixi.Shader({
|
|
18633
|
-
gpuProgram: program,
|
|
18634
|
-
resources: fu === void 0 ? texture : {
|
|
18635
|
-
...texture,
|
|
18636
|
-
fu
|
|
18637
|
-
}
|
|
18638
|
-
});
|
|
18639
|
-
}
|
|
18640
18642
|
//#endregion
|
|
18641
18643
|
//#region src/plugins/renderer/kept/shade.ts
|
|
18642
18644
|
/**
|
|
@@ -18646,7 +18648,8 @@ function quadShader(pixi, quad, gfu, source) {
|
|
|
18646
18648
|
* Ps)` with no filter, one pass only when the picture, the padding or the resolution changed; a new number is drawn by
|
|
18647
18649
|
* the mesh with no pass at all. The renderer holds no shader text: `effects` hands a built program over the slot. The
|
|
18648
18650
|
* policy of the mode, when it is entered and left, lives in `record.ts`; this file holds what is made, bound and freed.
|
|
18649
|
-
* The filter's uniform group is the instance's own, read by the mesh as it stands.
|
|
18651
|
+
* The filter's uniform group is the instance's own, read by the mesh as it stands. A filter that reads inputs binds the
|
|
18652
|
+
* record's held stage 2 results under the names its quad gives (F126 stage 4).
|
|
18650
18653
|
*/
|
|
18651
18654
|
/** The numbers `renderShade` wants in the group this frame, in the order of `writeGlobals`. One array: it allocates nothing. */
|
|
18652
18655
|
const WANTED = /* @__PURE__ */ new Float32Array(24);
|
|
@@ -18810,6 +18813,27 @@ function rebuildShader(pixi, shade, quad, source) {
|
|
|
18810
18813
|
old.destroy();
|
|
18811
18814
|
}
|
|
18812
18815
|
/**
|
|
18816
|
+
* Binds the record's held stage 2 results under the names of each input the quad gives, its texture then its sampler,
|
|
18817
|
+
* written only where they differ: a write Pixi takes as a change of the group, which it builds again. An input with no
|
|
18818
|
+
* result held binds the texture the shader reads (`shade.source`): the mesh never holds a released one, which is
|
|
18819
|
+
* destroyed. Indexed, allocates nothing.
|
|
18820
|
+
*
|
|
18821
|
+
* @param shade - The shade, its shader on the slot's quad and its source the output's.
|
|
18822
|
+
* @param record - The record.
|
|
18823
|
+
*/
|
|
18824
|
+
function bindHeld(shade, record) {
|
|
18825
|
+
const names = shade.quad.inputNames;
|
|
18826
|
+
if (names === void 0) return;
|
|
18827
|
+
const { resources } = shade.shader;
|
|
18828
|
+
for (let input = 0; 2 * input + 1 < names.length; input += 1) {
|
|
18829
|
+
const texture = names[2 * input];
|
|
18830
|
+
const sampler = names[2 * input + 1];
|
|
18831
|
+
const source = record.s2[input]?.source ?? shade.source;
|
|
18832
|
+
if (texture !== void 0 && resources[texture] !== source) resources[texture] = source;
|
|
18833
|
+
if (sampler !== void 0 && resources[sampler] !== source.style) resources[sampler] = source.style;
|
|
18834
|
+
}
|
|
18835
|
+
}
|
|
18836
|
+
/**
|
|
18813
18837
|
* Copies a vector of `WANTED` into the group where it differs. Both sides are 32-bit numbers: a double would differ from
|
|
18814
18838
|
* its stored value in every frame, and the group would be uploaded in every frame.
|
|
18815
18839
|
*
|
|
@@ -18908,10 +18932,10 @@ function copyPadded(kctx, pixi, matrices, record, output) {
|
|
|
18908
18932
|
}
|
|
18909
18933
|
/**
|
|
18910
18934
|
* The frame of a shaded record: stage 3 for the mesh. The output at its size, the shader on the slot's quad and on that
|
|
18911
|
-
* texture, the padded picture copied when `s1`, the padding or the resolution
|
|
18912
|
-
* uniforms, then `keptOrigin` at 0: in the mode the place is in `uOutputFrame.xy`,
|
|
18913
|
-
* the frame answer the same. The keys stage 3 writes. A new number needs none of
|
|
18914
|
-
* uniform group. Allocates nothing while the size stands.
|
|
18935
|
+
* texture, the held results of its inputs bound, the padded picture copied when `s1`, the padding or the resolution
|
|
18936
|
+
* changed (one pass, counted), the global uniforms, then `keptOrigin` at 0: in the mode the place is in `uOutputFrame.xy`,
|
|
18937
|
+
* so `canvasPixel` and a body that reads the frame answer the same. The keys stage 3 writes. A new number needs none of
|
|
18938
|
+
* it: the mesh reads the instance's own uniform group. Allocates nothing while the size stands.
|
|
18915
18939
|
*
|
|
18916
18940
|
* @param kctx - The kept context.
|
|
18917
18941
|
* @param pixi - The module that draws.
|
|
@@ -18938,6 +18962,7 @@ function renderShade(kctx, pixi, matrices, record, now) {
|
|
|
18938
18962
|
shade.source = source;
|
|
18939
18963
|
shade.copied = -1;
|
|
18940
18964
|
}
|
|
18965
|
+
bindHeld(shade, record);
|
|
18941
18966
|
const resized = source.pixelWidth !== shade.copiedWidth || source.pixelHeight !== shade.copiedHeight;
|
|
18942
18967
|
if ((shade.copied !== record.s1Version || resized) && !copyPadded(kctx, pixi, matrices, record, output)) return false;
|
|
18943
18968
|
writeGlobals(kctx, record, shade, source, now);
|
|
@@ -19327,10 +19352,10 @@ function drawsDirect(stack) {
|
|
|
19327
19352
|
}
|
|
19328
19353
|
/**
|
|
19329
19354
|
* Tells whether the record being stepped may draw through its filter's own body (F126 stage 2): on WebGPU, one enabled
|
|
19330
|
-
* filter with a quad,
|
|
19331
|
-
* not fit: stage 3 draws `F(A·x)` in stack order, the mesh would draw `A·F(x)`,
|
|
19332
|
-
* the picture would pop at every entry. A top that blends otherwise never gets
|
|
19333
|
-
* destroyed with a parent around it has nothing left to draw on. Allocates nothing.
|
|
19355
|
+
* filter with a quad, on `"inherit"`, at the canvas resolution, not drawn direct, and inputs its mesh may bind
|
|
19356
|
+
* (`inputsFit`). An `Alpha` beside it does not fit: stage 3 draws `F(A·x)` in stack order, the mesh would draw `A·F(x)`,
|
|
19357
|
+
* and for a body that is not alpha-linear the picture would pop at every entry. A top that blends otherwise never gets
|
|
19358
|
+
* here: `pictureWhy` refuses it. A mesh destroyed with a parent around it has nothing left to draw on. Allocates nothing.
|
|
19334
19359
|
*
|
|
19335
19360
|
* @param kctx - The kept context.
|
|
19336
19361
|
* @param record - The record.
|
|
@@ -19341,10 +19366,32 @@ function shadeFits(kctx, record, stack) {
|
|
|
19341
19366
|
if (kctx.host.kind() !== "webgpu" || stack.enabled !== 1) return false;
|
|
19342
19367
|
if (stack.rs !== NOW.r || drawsDirect(stack)) return false;
|
|
19343
19368
|
const slot = enabledSlot(record.slots);
|
|
19344
|
-
const
|
|
19345
|
-
|
|
19369
|
+
const quad = slot?.quad;
|
|
19370
|
+
if (slot === void 0 || quad === void 0) return false;
|
|
19371
|
+
const followsCanvas = slot.filter.resolution === "inherit";
|
|
19346
19372
|
const meshStands = !record.shaded || record.shade?.mesh.destroyed !== true;
|
|
19347
|
-
return
|
|
19373
|
+
return followsCanvas && meshStands && inputsFit(record, slot, quad);
|
|
19374
|
+
}
|
|
19375
|
+
/**
|
|
19376
|
+
* Tells whether the inputs of a record's one enabled filter let its mesh draw (F126 stage 4). A filter with none fits
|
|
19377
|
+
* while its quad names none: a game's own slot has no inputs, and names on its quad would bind results nobody drew. One
|
|
19378
|
+
* with inputs fits while its quad names two per input, the record holds a result of each, drawn by this seam over the
|
|
19379
|
+
* picture and the chain as they are (`chainOwed`, which refuses another seam too), and stage 3 drew over them last
|
|
19380
|
+
* (`heldPlaced`): the mesh reads the scale and clamp of each input as stage 3 left them. A body that reads the screen
|
|
19381
|
+
* does not fit with inputs: a change of its chain would leave the mesh for stage 3, which reads the picture's target.
|
|
19382
|
+
* Allocates nothing.
|
|
19383
|
+
*
|
|
19384
|
+
* @param record - The record.
|
|
19385
|
+
* @param slot - Its one enabled slot.
|
|
19386
|
+
* @param quad - The slot's quad.
|
|
19387
|
+
* @returns True when they fit.
|
|
19388
|
+
*/
|
|
19389
|
+
function inputsFit(record, slot, quad) {
|
|
19390
|
+
const { inputs } = slot;
|
|
19391
|
+
const names = quad.inputNames?.length ?? 0;
|
|
19392
|
+
if (inputs === void 0) return names === 0;
|
|
19393
|
+
if (record.category === "screen" || names !== 2 * inputs.count) return false;
|
|
19394
|
+
return record.s2.length === inputs.count && record.heldPlaced && !chainOwed(record, inputs);
|
|
19348
19395
|
}
|
|
19349
19396
|
/**
|
|
19350
19397
|
* Tells whether a take the budget refused still does not fit (P6.3); the pool's bytes are the take's to have (F119).
|
|
@@ -19642,6 +19689,7 @@ function createRecord$1(kctx, pixi, entity, view, slots, category) {
|
|
|
19642
19689
|
s2InputsVersion: 0,
|
|
19643
19690
|
s2PictureVersion: 0,
|
|
19644
19691
|
s2Of: void 0,
|
|
19692
|
+
heldPlaced: false,
|
|
19645
19693
|
dirtyS1: true,
|
|
19646
19694
|
dirtyS2: false,
|
|
19647
19695
|
dirtyS3: false,
|
|
@@ -19813,9 +19861,9 @@ function neededBytes(record, now, box) {
|
|
|
19813
19861
|
const { w1, h1, Ps } = box;
|
|
19814
19862
|
let bytes = textureBytes(w1, h1, now.rs);
|
|
19815
19863
|
if (!drawsDirect(now)) bytes += textureBytes(w1 + 2 * Ps, h1 + 2 * Ps, now.r);
|
|
19816
|
-
const
|
|
19817
|
-
if (
|
|
19818
|
-
const scale =
|
|
19864
|
+
const inputs = firstInputs(record.slots);
|
|
19865
|
+
if (inputs !== void 0) for (let index = 0; index < inputs.count; index += 1) {
|
|
19866
|
+
const scale = inputs.scaleOf(index) ?? 0;
|
|
19819
19867
|
bytes += textureBytes(w1 + 2 * now.P, h1 + 2 * now.P, now.rs * scale);
|
|
19820
19868
|
}
|
|
19821
19869
|
return bytes;
|
|
@@ -19996,7 +20044,9 @@ function isEmptyBounds(bounds) {
|
|
|
19996
20044
|
/**
|
|
19997
20045
|
* Renders the stages of a take whose keys are written: the subtree picture, the pre-pass results of the first filter
|
|
19998
20046
|
* with inputs, the filter output; the budget counts the textures after. A live view whose take failed draws live
|
|
19999
|
-
* again: its filters go back on its top.
|
|
20047
|
+
* again: its filters go back on its top. A record on its mesh whose filter reads inputs leaves it after stage 2 and
|
|
20048
|
+
* draws stage 3 over the new results: the mesh would read their scale and clamp before any stage 3 wrote them. The
|
|
20049
|
+
* next frame's refresh puts one that may draw no other way back on the mesh.
|
|
20000
20050
|
*
|
|
20001
20051
|
* @param kctx - The kept context.
|
|
20002
20052
|
* @param pixi - The module that draws.
|
|
@@ -20009,7 +20059,7 @@ function isEmptyBounds(bounds) {
|
|
|
20009
20059
|
function renderStages(kctx, pixi, matrices, record, view, now) {
|
|
20010
20060
|
const live = record.mode === "live";
|
|
20011
20061
|
if (live) handFilters(kctx, pixi, record, view);
|
|
20012
|
-
const
|
|
20062
|
+
const inputs = firstInputs(record.slots);
|
|
20013
20063
|
let ok = renderStage1(kctx, pixi, matrices, record);
|
|
20014
20064
|
if (drawsDirect(now)) {
|
|
20015
20065
|
goDirect(kctx, record);
|
|
@@ -20019,12 +20069,13 @@ function renderStages(kctx, pixi, matrices, record, view, now) {
|
|
|
20019
20069
|
}
|
|
20020
20070
|
record.direct = false;
|
|
20021
20071
|
meshForTake(kctx, pixi, record, ok);
|
|
20022
|
-
if (ok &&
|
|
20023
|
-
inputs
|
|
20072
|
+
if (ok && inputs !== void 0) renderStage2(kctx, pixi, matrices, record, {
|
|
20073
|
+
inputs,
|
|
20024
20074
|
resolution: now.r,
|
|
20025
20075
|
padding: now.P
|
|
20026
20076
|
});
|
|
20027
20077
|
else if (record.s2Of !== void 0) releaseInputs(kctx, record);
|
|
20078
|
+
if (record.shaded && !shadeFits(kctx, record, now)) leaveShade(record);
|
|
20028
20079
|
if (record.shaded) record.shadedAt = kctx.state.frame;
|
|
20029
20080
|
ok = ok && (record.shaded ? renderShade : renderStage3)(kctx, pixi, matrices, record, now);
|
|
20030
20081
|
account(kctx, record);
|
|
@@ -20087,7 +20138,8 @@ function goDirect(kctx, record) {
|
|
|
20087
20138
|
record.direct = true;
|
|
20088
20139
|
}
|
|
20089
20140
|
/**
|
|
20090
|
-
* Ends the loan of stage 2 when the first filter with inputs left the stack: the results are destroyed
|
|
20141
|
+
* Ends the loan of stage 2 when the first filter with inputs left the stack: the results are destroyed, and nothing is
|
|
20142
|
+
* placed any more.
|
|
20091
20143
|
*
|
|
20092
20144
|
* @param kctx - The kept context.
|
|
20093
20145
|
* @param record - The record.
|
|
@@ -20095,6 +20147,7 @@ function goDirect(kctx, record) {
|
|
|
20095
20147
|
function releaseInputs(kctx, record) {
|
|
20096
20148
|
endLoan(record.s2Of);
|
|
20097
20149
|
record.s2Of = void 0;
|
|
20150
|
+
record.heldPlaced = false;
|
|
20098
20151
|
for (const target of record.s2.splice(0)) dropTexture(kctx, target);
|
|
20099
20152
|
}
|
|
20100
20153
|
/**
|
|
@@ -20692,7 +20745,7 @@ function outputOwed(record, hold) {
|
|
|
20692
20745
|
* @returns The `OWED`.
|
|
20693
20746
|
*/
|
|
20694
20747
|
function stagesOwed(record, hold) {
|
|
20695
|
-
const inputs = firstInputs(record.slots)
|
|
20748
|
+
const inputs = firstInputs(record.slots);
|
|
20696
20749
|
if (inputs !== void 0 && chainOwed(record, inputs)) return OWED.chain;
|
|
20697
20750
|
return inputs === void 0 && record.s2Of !== void 0 || outputOwed(record, hold) ? OWED.output : OWED.none;
|
|
20698
20751
|
}
|
|
@@ -20718,7 +20771,9 @@ function refresh$1(kctx, pixi, matrices, record, view, hold) {
|
|
|
20718
20771
|
}
|
|
20719
20772
|
/**
|
|
20720
20773
|
* Redoes what a record that does not draw direct owes, on its mesh when it is shaded or goes on it now: a stack that
|
|
20721
|
-
* stopped fitting leaves and owes stage 3, one at rest may leave, and what is left is today's tail of stage 2 and 3.
|
|
20774
|
+
* stopped fitting leaves and owes stage 3, one at rest may leave, and what is left is today's tail of stage 2 and 3. A
|
|
20775
|
+
* shaded record whose filter's chain is owed no longer fits: it leaves and draws stages 2 and 3 on its sprite, and comes
|
|
20776
|
+
* back by the count of its outputs.
|
|
20722
20777
|
*
|
|
20723
20778
|
* @param kctx - The kept context.
|
|
20724
20779
|
* @param pixi - The module that draws.
|
|
@@ -20741,7 +20796,7 @@ function refreshOutput(kctx, pixi, matrices, record, view, hold) {
|
|
|
20741
20796
|
retakeOrGoLive(kctx, pixi, matrices, record, view, why);
|
|
20742
20797
|
return true;
|
|
20743
20798
|
}
|
|
20744
|
-
const inputs = firstInputs(record.slots)
|
|
20799
|
+
const inputs = firstInputs(record.slots);
|
|
20745
20800
|
if (inputs === void 0 && record.s2Of !== void 0) releaseInputs(kctx, record);
|
|
20746
20801
|
record.direct = false;
|
|
20747
20802
|
if (!unfit && enterShadeWhenDue(kctx, pixi, record, owed, fits)) {
|
|
@@ -48088,20 +48143,23 @@ function uniformStruct(uniforms, group = 1) {
|
|
|
48088
48143
|
return `struct FilterUniforms {\n${uniforms.map((uniform) => ` ${uniform.name}: ${uniform.type},\n`).join("")}};\n\n@group(${group}) @binding(0) var<uniform> fu: FilterUniforms;\n`;
|
|
48089
48144
|
}
|
|
48090
48145
|
/**
|
|
48091
|
-
* The engine's half of each input: the texture and the sampler in
|
|
48092
|
-
* reads the input at the body's uv, its scale and its clamp applied.
|
|
48146
|
+
* The engine's half of each input: the texture and the sampler in the group of `fu`, after it (input `k` at bindings
|
|
48147
|
+
* `1 + 2k` and `2 + 2k`), and the function that reads the input at the body's uv, its scale and its clamp applied.
|
|
48148
|
+
* Nothing without inputs.
|
|
48093
48149
|
*
|
|
48094
48150
|
* @param inputs - The inputs in declaration order.
|
|
48151
|
+
* @param group - The bind group of `fu` and the inputs: 1 in a filter's source, 3 in a quad program's.
|
|
48095
48152
|
* @returns The WGSL lines, or `""`.
|
|
48096
48153
|
* @example
|
|
48097
48154
|
* ```ts
|
|
48098
|
-
* const soft = { name: "soft", from: "input", texture: "
|
|
48155
|
+
* const soft = { name: "soft", from: "input", texture: "softTexture", sampler: "softSampler", sample: "sampleSoft", scale: { name: "softScale", type: "vec2<f32>", form: "vector", size: 2 }, clamp: { name: "softClamp", type: "vec4<f32>", form: "vector", size: 4 }, stages: [], chain: () => [] } as const;
|
|
48099
48156
|
*
|
|
48100
48157
|
* inputBindings([soft]).includes("fn sampleSoft(uv: vec2<f32>) -> vec4<f32>"); // true
|
|
48158
|
+
* inputBindings([soft], 3).startsWith("@group(3) @binding(1) var softTexture: texture_2d<f32>;"); // true
|
|
48101
48159
|
* ```
|
|
48102
48160
|
*/
|
|
48103
|
-
function inputBindings(inputs) {
|
|
48104
|
-
return inputs.map((input, index) => `@group(
|
|
48161
|
+
function inputBindings(inputs, group = 1) {
|
|
48162
|
+
return inputs.map((input, index) => `@group(${group}) @binding(${1 + 2 * index}) var ${input.texture}: texture_2d<f32>;\n@group(${group}) @binding(${2 + 2 * index}) var ${input.sampler}: sampler;\n\nfn ${input.sample}(uv: vec2<f32>) -> vec4<f32> {\n return textureSampleLevel(${input.texture}, ${input.sampler}, clamp(uv * gfu.uInputSize.xy * fu.${input.scale.name}, fu.${input.clamp.name}.xy, fu.${input.clamp.name}.zw), 0.0);\n}
|
|
48105
48163
|
|
|
48106
48164
|
`).join("");
|
|
48107
48165
|
}
|
|
@@ -48258,26 +48316,36 @@ function quadBody(wgsl) {
|
|
|
48258
48316
|
return found === 1 && !QUAD_REFUSED.test(wgsl.replaceAll(COMMENT$1, "")) ? rewritten : void 0;
|
|
48259
48317
|
}
|
|
48260
48318
|
/**
|
|
48261
|
-
* The quad program of a filter: the head of the mesh, the uniform struct at group 3 (the uniforms, then the
|
|
48262
|
-
* `keptOrigin` of a body that calls `canvasPixel`, as `assemble` lists
|
|
48263
|
-
* member for member: a shader that asks for more than the group holds
|
|
48264
|
-
* error, a blank view with nothing in the logs),
|
|
48319
|
+
* The quad program of a filter: the head of the mesh, the uniform struct at group 3 (the uniforms, then the scale and
|
|
48320
|
+
* the clamp of each input, then the engine's `keptOrigin` of a body that calls `canvasPixel`, as `assemble` lists
|
|
48321
|
+
* them, so the struct matches the instance's group member for member: a shader that asks for more than the group holds
|
|
48322
|
+
* fails only as an asynchronous GPU validation error, a blank view with nothing in the logs), each input's texture and
|
|
48323
|
+
* sampler at group 3 after `fu` with its `sample<Name>` helper (the renderer binds the held chain results there), the
|
|
48324
|
+
* `canvasPixel` helper, the body as `filterBody`, the entry point. Without inputs the text is the one of a filter that
|
|
48325
|
+
* reads none.
|
|
48265
48326
|
*
|
|
48266
48327
|
* @param uniforms - The uniforms in declaration order.
|
|
48267
48328
|
* @param body - The fragment body the game wrote.
|
|
48268
48329
|
* @param origin - The `keptOrigin` uniform, for a body that calls `canvasPixel`.
|
|
48330
|
+
* @param inputs - The inputs in declaration order, each starting from the view's own input; none by default.
|
|
48269
48331
|
* @returns The WGSL source of both stages, or `undefined` for a body the rewrite does not fit.
|
|
48270
48332
|
* @example
|
|
48271
48333
|
* ```ts
|
|
48272
48334
|
* assembleQuad([], "@fragment fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> { return vec4<f32>(uv, 0.0, 1.0); }")?.includes("fn filterBody(uv: vec2<f32>) -> vec4<f32>"); // true
|
|
48273
48335
|
* assembleQuad([], "@fragment fn mainFragment(@builtin(position) at: vec4<f32>) -> @location(0) vec4<f32> { return at; }"); // undefined
|
|
48336
|
+
* assembleQuad(Bloom.filter.uniforms, BLOOM_WGSL, undefined, Bloom.filter.inputs)?.includes("@group(3) @binding(2) var brightSampler: sampler;"); // true
|
|
48274
48337
|
* ```
|
|
48275
48338
|
*/
|
|
48276
|
-
function assembleQuad(uniforms, body, origin) {
|
|
48339
|
+
function assembleQuad(uniforms, body, origin, inputs = []) {
|
|
48277
48340
|
const rewritten = quadBody(body);
|
|
48278
48341
|
if (rewritten === void 0) return void 0;
|
|
48279
|
-
const struct = uniformStruct(
|
|
48280
|
-
|
|
48342
|
+
const struct = uniformStruct([
|
|
48343
|
+
...uniforms,
|
|
48344
|
+
...inputs.flatMap((input) => [input.scale, input.clamp]),
|
|
48345
|
+
...origin === void 0 ? [] : [origin]
|
|
48346
|
+
], 3);
|
|
48347
|
+
const helper = origin === void 0 ? "" : CANVAS_PIXEL;
|
|
48348
|
+
return `${QUAD_HEADER}${struct}${inputBindings(inputs, 3)}${helper}${rewritten}${QUAD_TAIL}`;
|
|
48281
48349
|
}
|
|
48282
48350
|
//#endregion
|
|
48283
48351
|
//#region src/plugins/effects/filters/glsl.ts
|
|
@@ -48980,7 +49048,7 @@ function defineFilter(id, spec) {
|
|
|
48980
49048
|
id,
|
|
48981
49049
|
source: assemble(uniforms, inputs, spec.wgsl, origin, backdrop),
|
|
48982
49050
|
glsl: assembleGlsl(uniforms, inputs, spec.glsl, origin, backdrop),
|
|
48983
|
-
quadSource: inputs.
|
|
49051
|
+
quadSource: !backdrop && inputs.every((input) => input.from === "input") ? assembleQuad(uniforms, spec.wgsl, origin, inputs) : void 0,
|
|
48984
49052
|
uniforms,
|
|
48985
49053
|
passes,
|
|
48986
49054
|
padding,
|
|
@@ -50638,21 +50706,34 @@ function createStandIn(ectx, pixi, kind, value) {
|
|
|
50638
50706
|
*
|
|
50639
50707
|
* @param pixi - The module the renderer loaded.
|
|
50640
50708
|
* @param definition - A definition whose check answered ok.
|
|
50641
|
-
* @param program - The quad program of a kind that hands one over, drawn with the probe's own uniform group
|
|
50709
|
+
* @param program - The quad program of a kind that hands one over, drawn with the probe's own uniform group and the
|
|
50710
|
+
* names of its inputs.
|
|
50642
50711
|
* @returns The probe's filter, its quad and its teardown.
|
|
50643
50712
|
*/
|
|
50644
50713
|
function createWarmFilter(pixi, definition, program) {
|
|
50645
50714
|
const body = createOurs(pixi, definition, PROBE_VALUE);
|
|
50715
|
+
const quad = program === void 0 ? void 0 : {
|
|
50716
|
+
program,
|
|
50717
|
+
fu: body.group,
|
|
50718
|
+
inputNames: quadInputNames(definition)
|
|
50719
|
+
};
|
|
50646
50720
|
return {
|
|
50647
50721
|
filter: body.filter,
|
|
50648
|
-
quad
|
|
50649
|
-
program,
|
|
50650
|
-
fu: body.group
|
|
50651
|
-
},
|
|
50722
|
+
quad,
|
|
50652
50723
|
destroy: () => destroyBody(body)
|
|
50653
50724
|
};
|
|
50654
50725
|
}
|
|
50655
50726
|
/**
|
|
50727
|
+
* The resource names a quad binds the held result of each input under: its texture, then its sampler, in declaration
|
|
50728
|
+
* order. Made once with the quad object it goes on, never per frame.
|
|
50729
|
+
*
|
|
50730
|
+
* @param definition - The definition.
|
|
50731
|
+
* @returns The names; empty for a definition without inputs.
|
|
50732
|
+
*/
|
|
50733
|
+
function quadInputNames(definition) {
|
|
50734
|
+
return definition.inputs.flatMap((input) => [input.texture, input.sampler]);
|
|
50735
|
+
}
|
|
50736
|
+
/**
|
|
50656
50737
|
* Compares a vector uniform with a list of numbers element by element and writes the elements that
|
|
50657
50738
|
* differ: the indices `set(vector.slice(0, size))` would write, without the slice.
|
|
50658
50739
|
*
|
|
@@ -51848,7 +51929,7 @@ function quadProgramFor(ectx, pixi, instance) {
|
|
|
51848
51929
|
}
|
|
51849
51930
|
/**
|
|
51850
51931
|
* What an instance's slot carries for the quad, one object for the instance's life: the renderer builds its shader
|
|
51851
|
-
* again for another one.
|
|
51932
|
+
* again for another one. It names each input the mesh binds a held chain result under (none for a filter without).
|
|
51852
51933
|
*
|
|
51853
51934
|
* @param ectx - Domain context of the effects plugin.
|
|
51854
51935
|
* @param pixi - The module the renderer loaded.
|
|
@@ -51861,7 +51942,8 @@ function quadOf(ectx, pixi, instance) {
|
|
|
51861
51942
|
if (program === void 0) return void 0;
|
|
51862
51943
|
instance.quad ??= {
|
|
51863
51944
|
program,
|
|
51864
|
-
fu: instance.group
|
|
51945
|
+
fu: instance.group,
|
|
51946
|
+
inputNames: quadInputNames(instance.definition)
|
|
51865
51947
|
};
|
|
51866
51948
|
return instance.quad;
|
|
51867
51949
|
}
|
|
@@ -75536,8 +75618,9 @@ const BloomBlur = /*#__PURE__*/ defineFilter("effects.bloomBlur", {
|
|
|
75536
75618
|
/**
|
|
75537
75619
|
* @file effects/set — `Bloom`: light around the bright parts of a view. The one member with a chain: its input `bright`
|
|
75538
75620
|
* is the view's light above `threshold`, cut and boxed down to ¼ (⅛ for a wide radius) in one pass and blurred there in
|
|
75539
|
-
* one more; the body adds it back by `strength`. 3 passes at any radius and resolution. A
|
|
75540
|
-
* quad
|
|
75621
|
+
* one more; the body adds it back by `strength`. 3 passes at any radius and resolution. A change of `strength` rides
|
|
75622
|
+
* the view's quad over the held chain result on WebGPU; one of `threshold` or `radius` runs the chain again and redraws
|
|
75623
|
+
* the kept picture's filter (stage 3).
|
|
75541
75624
|
*/
|
|
75542
75625
|
/** The most texels the blur's sigma may reach: past it the rings stand too far apart on the boxed-down light. */
|
|
75543
75626
|
const MAX_SIGMA = 8;
|
|
@@ -75629,9 +75712,10 @@ function bloomChain(value, context) {
|
|
|
75629
75712
|
* (over the A26's screen its passes fill 1.9 Mpx a frame at 2.625). List it in a feature's `filters`, as a game's own
|
|
75630
75713
|
* filter. It reads a second texture drawn by a chain of two stages, the light cut and boxed down to ¼ (⅛ when the
|
|
75631
75714
|
* radius is over 8 texels at ¼: radius 16 at the phone's 2.625, 32 at 2) and blurred there: 3 passes at any radius.
|
|
75632
|
-
* A still view is kept as a picture
|
|
75633
|
-
*
|
|
75634
|
-
*
|
|
75715
|
+
* A still view is kept as a picture. A `strength` tween leaves the chain as it was: on WebGPU the view draws on its own
|
|
75716
|
+
* quad over the held chain result, no pass of its own, and on WebGL it redraws the picture's filter, 3 passes. A
|
|
75717
|
+
* `threshold` or `radius` tween runs the chain again too, in every frame it moves. Past a sigma of 8 texels at ⅛ the
|
|
75718
|
+
* bloom stops widening.
|
|
75635
75719
|
*
|
|
75636
75720
|
* @example
|
|
75637
75721
|
* ```ts
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Fr as ClockSource, Jn as NodeFx, Lr as FakeClock, Nn as AnyFlow, Un as Descriptor, Ur as Json, jn as FeaturePlugin, qn as Hint, zn as NodeTable } 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-
|
|
1
|
+
import { Fr as ClockSource, Jn as NodeFx, Lr as FakeClock, Nn as AnyFlow, Un as Descriptor, Ur as Json, jn as FeaturePlugin, qn as Hint, zn as NodeTable } from "./types-KRAWEuUs.mjs";
|
|
2
|
+
import { t as createApp } from "./index-DuPTdMhJ.mjs";
|
|
3
|
+
import { b as memory, x as saveOf, y as WithGameState } from "./types-COMxJbej.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-DDAKncmX.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-DnqlJ1XY.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-CCiUwvlp.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as TransformValue, Or as TagType, Pr as Api$5, Qn as ChangeHook, Un as Descriptor, Ur as Json, Xn as Answered, Z as Api$3, Zn as AnchorTarget, _r as ComponentType, ar as ProjectionMotion, dr as ViewHandle, er as Ease, et as PixiContainer, fr as AnyComponent, ir as NumericFields, kr as Api$2, li as Api, mr as AnyComponentValue, nr as MotionCause, pn as Api$1, pr as AnyComponentType, qn as Hint, rr as MotionHandle, rt as PixiModule, s as Events$1, sr as ReducedMotion, t as Api$4, tr as Motion, vt as ViewportSize, yi as Require, yr as Entity } from "./types-
|
|
1
|
+
import { J as TransformValue, Or as TagType, Pr as Api$5, Qn as ChangeHook, Un as Descriptor, Ur as Json, Xn as Answered, Z as Api$3, Zn as AnchorTarget, _r as ComponentType, ar as ProjectionMotion, dr as ViewHandle, er as Ease, et as PixiContainer, fr as AnyComponent, ir as NumericFields, kr as Api$2, li as Api, mr as AnyComponentValue, nr as MotionCause, pn as Api$1, pr as AnyComponentType, qn as Hint, rr as MotionHandle, rt as PixiModule, s as Events$1, sr as ReducedMotion, t as Api$4, tr as Motion, vt as ViewportSize, yi as Require, yr as Entity } from "./types-KRAWEuUs.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 { $r as SnapshotOf, Fr as ClockSource, Hn as TypeTag, Jr as PlayerStateProvider, Lr as FakeClock, Nn as AnyFlow, Q as Config$2, Ur as Json, Vr as Config, Xr as SaveDoc, Yr as ProviderCall, a as Config$3, d as Manifest, gt as Orientation, hn as Config$1, jn as FeaturePlugin, n as AssetsIo, rt as PixiModule } 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 { $r as SnapshotOf, Fr as ClockSource, Hn as TypeTag, Jr as PlayerStateProvider, Lr as FakeClock, Nn as AnyFlow, Q as Config$2, Ur as Json, Vr as Config, Xr as SaveDoc, Yr as ProviderCall, a as Config$3, d as Manifest, gt as Orientation, hn as Config$1, jn as FeaturePlugin, n as AssetsIo, rt as PixiModule } from "./types-KRAWEuUs.mjs";
|
|
2
|
+
import { o as AudioContextLike, s as Config$4 } from "./types-CpoZ-UDH.mjs";
|
|
3
|
+
import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-BFWYGikY.mjs";
|
|
4
|
+
import { Et as PlatformProvider, It as audioPlugin, Nt as effectsPlugin, i as screen, t as createApp, wt as platformPlugin } from "./index-DuPTdMhJ.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 { Qr as Snapshot, Ur as Json } from "./types-
|
|
2
|
-
import { t as HeadlessApp } from "./headless-
|
|
1
|
+
import { Qr as Snapshot, Ur as Json } from "./types-KRAWEuUs.mjs";
|
|
2
|
+
import { t as HeadlessApp } from "./headless-DDAKncmX.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 FilterSlotQuad, Br as Api$6, Hn as TypeTag, Hr as Events$3, O as FilterSlot, Un as Descriptor, Ur as Json, Z as Api$4, Zn as AnchorTarget, _r as ComponentType, _t as Point, ai as Events$5, at as PixiTexture, b as Events$4, er as Ease, fr as AnyComponent, hr as ComponentHandle, ir as NumericFields, it as PixiSprite, j as SyncApi, k as FilterSlotInputs, kr as Api$3, li as Api$1, lr as TrackOptions, mr as AnyComponentValue, nt as PixiGpuProgram, ot as PixiUniformGroup, pn as Api$2, rr as MotionHandle, rt as PixiModule, s as Events$1, sr as ReducedMotion, t as Api$5, tt as PixiFilter, ur as TrackSegment, vi as Events$2, yi as Require, yr as Entity, yt as FilterCache } 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 FilterSlotQuad, Br as Api$6, Hn as TypeTag, Hr as Events$3, O as FilterSlot, Un as Descriptor, Ur as Json, Z as Api$4, Zn as AnchorTarget, _r as ComponentType, _t as Point, ai as Events$5, at as PixiTexture, b as Events$4, er as Ease, fr as AnyComponent, hr as ComponentHandle, ir as NumericFields, it as PixiSprite, j as SyncApi, k as FilterSlotInputs, kr as Api$3, li as Api$1, lr as TrackOptions, mr as AnyComponentValue, nt as PixiGpuProgram, ot as PixiUniformGroup, pn as Api$2, rr as MotionHandle, rt as PixiModule, s as Events$1, sr as ReducedMotion, t as Api$5, tt as PixiFilter, ur as TrackSegment, vi as Events$2, yi as Require, yr as Entity, yt as FilterCache } from "./types-KRAWEuUs.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-BFWYGikY.mjs";
|
|
3
3
|
import { Log } from "@moku-labs/common/browser";
|
|
4
4
|
import { PluginCtx } from "@moku-labs/core";
|
|
5
5
|
|
|
@@ -1541,7 +1541,9 @@ type FilterDefinition = {
|
|
|
1541
1541
|
readonly glsl: string;
|
|
1542
1542
|
/**
|
|
1543
1543
|
* The quad program: the same body on a mesh, in the pass that draws the canvas (renderer README, "Kept pictures").
|
|
1544
|
-
*
|
|
1544
|
+
* A definition with inputs has one too: each input starts from the view's own input, and the mesh binds its held
|
|
1545
|
+
* chain result (`Bloom` rides it while its `strength` moves). `undefined` for a backdrop, an input from `"back"`, or
|
|
1546
|
+
* a body the rewrite does not fit.
|
|
1545
1547
|
*/
|
|
1546
1548
|
readonly quadSource: string | undefined;
|
|
1547
1549
|
readonly uniforms: readonly UniformSpec[];
|
|
@@ -9003,7 +9003,13 @@ type KeptRecord = {
|
|
|
9003
9003
|
s1Version: number;
|
|
9004
9004
|
s2InputsVersion: number;
|
|
9005
9005
|
s2PictureVersion: number; /** The inputs the held results were drawn by; another first filter with inputs redoes stage 2. */
|
|
9006
|
-
s2Of: FilterSlotInputs | undefined;
|
|
9006
|
+
s2Of: FilterSlotInputs | undefined;
|
|
9007
|
+
/**
|
|
9008
|
+
* Stage 3 drew over the held results last (F126 stage 4): the filter's apply then wrote each input's scale and clamp for
|
|
9009
|
+
* them into the instance's numbers, which its mesh reads as they stand. False from the record's making, after stage 2
|
|
9010
|
+
* and after its results are released.
|
|
9011
|
+
*/
|
|
9012
|
+
heldPlaced: boolean; /** Dirty flags set by collect (P10.3) and by the key compare of the flush. */
|
|
9007
9013
|
dirtyS1: boolean;
|
|
9008
9014
|
dirtyS2: boolean;
|
|
9009
9015
|
dirtyS3: boolean; /** Keys of the last take and of the last drawn frame (P2.6), indices `KEY`. */
|
|
@@ -11731,11 +11737,18 @@ type FilterSlot = {
|
|
|
11731
11737
|
* const quad: FilterSlotQuad = { program: tintProgram, fu: tintOfRow.group };
|
|
11732
11738
|
* ctx.require(rendererPlugin).sync.filters.set(row, [{ filter: tintOfRow.filter, passes: 1, cache: "local", quad }]);
|
|
11733
11739
|
* quad.program.vertex?.entryPoint; // "mainVertex"
|
|
11740
|
+
* // A Bloom on a tile reads one input, `bright`: the mesh binds its held result under two names.
|
|
11741
|
+
* bloomOfTile.quad?.inputNames; // ["brightTexture", "brightSampler"]
|
|
11734
11742
|
* ```
|
|
11735
11743
|
*/
|
|
11736
11744
|
type FilterSlotQuad = {
|
|
11737
11745
|
/** The filter's body behind Pixi's mesh groups; `GpuProgram.from` of the text effects assembles and checks. */readonly program: PixiGpuProgram; /** The uniform group of the filter's instance; `undefined` for a filter that binds none. */
|
|
11738
11746
|
readonly fu: PixiUniformGroup | undefined;
|
|
11747
|
+
/**
|
|
11748
|
+
* The resource names of each input of the filter, its texture then its sampler, in declaration order: the mesh binds
|
|
11749
|
+
* the held chain results there. Empty or left out for a filter with no inputs; a game's own slot leaves it out.
|
|
11750
|
+
*/
|
|
11751
|
+
readonly inputNames?: readonly string[];
|
|
11739
11752
|
};
|
|
11740
11753
|
/**
|
|
11741
11754
|
* The stages of a filter's inputs and the seam of the kept-picture cache, on the filter's slot. `effects` fills it;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Br as Api$2, Pr as Api$4, Z as Api, kr as Api$1, ri 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-
|
|
5
|
-
import { i as ControlApp, o as InputOf } from "./types-
|
|
6
|
-
import { t as commands } from "./commands-
|
|
1
|
+
import { Br as Api$2, Pr as Api$4, Z as Api, kr as Api$1, ri as Api$3 } from "./types-KRAWEuUs.mjs";
|
|
2
|
+
import { W as AnimApi, r as UiApi } from "./types-CpoZ-UDH.mjs";
|
|
3
|
+
import { R as InputApi } from "./types-BFWYGikY.mjs";
|
|
4
|
+
import { r as Repro } from "./headless-DDAKncmX.mjs";
|
|
5
|
+
import { i as ControlApp, o as InputOf } from "./types-Ca0PmSri.mjs";
|
|
6
|
+
import { t as commands } from "./commands-DW0HRGor.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-pvIoUjpL.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 };
|