@moku-labs/game 0.15.119 → 0.15.121

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.
Files changed (33) hide show
  1. package/README.md +10 -0
  2. package/dist/app/page.d.mts +1 -1
  3. package/dist/app/page.mjs +1 -1
  4. package/dist/app/system.d.mts +3 -3
  5. package/dist/app.d.mts +3 -3
  6. package/dist/app.mjs +1 -1
  7. package/dist/assets.d.mts +1 -1
  8. package/dist/{commands-CzT9eYnf.d.mts → commands-BMeGOWws.d.mts} +5 -5
  9. package/dist/control.d.mts +4 -4
  10. package/dist/{define-OPEOQ5MS.d.mts → define-h7SEyejf.d.mts} +2 -2
  11. package/dist/{headless-C5kxf9oU.d.mts → headless-CwH40XSw.d.mts} +1 -1
  12. package/dist/{index-CKF3qS2-.d.mts → index-BhMPDwA9.d.mts} +3 -3
  13. package/dist/index.d.mts +4 -4
  14. package/dist/index.mjs +2 -2
  15. package/dist/inspect.d.mts +6 -6
  16. package/dist/inspect.mjs +1 -1
  17. package/dist/jsx-dev-runtime.d.mts +1 -1
  18. package/dist/jsx-runtime.d.mts +1 -1
  19. package/dist/{runtime-BbZtyfgH.d.mts → runtime-BoK0QMVt.d.mts} +1 -1
  20. package/dist/{sources-CdWn7B5r.mjs → sources-CuG-Vma9.mjs} +1 -1
  21. package/dist/{src-_nn6V6aX.mjs → src-uuF4Ry3D.mjs} +262 -61
  22. package/dist/testing.d.mts +4 -4
  23. package/dist/testing.mjs +1 -1
  24. package/dist/{types-CATC2vK8.d.mts → types-B3OYUVNR.d.mts} +2 -2
  25. package/dist/{types-BHEOjYV3.d.mts → types-Dpd8geJW.d.mts} +12 -4
  26. package/dist/{types-BUR4LWSa.d.mts → types-DuGiHe3k.d.mts} +77 -7
  27. package/dist/{types-XygtsVg3.d.mts → types-Lh8Ql5Lv.d.mts} +4 -4
  28. package/dist/{types-cEAJaK0D.d.mts → types-wsgkqOXF.d.mts} +14 -8
  29. package/dist/{visual-CVHirfkU.d.mts → visual-BN0LF0W1.d.mts} +6 -6
  30. package/dist/{visual-CYq-xUqz.mjs → visual-x0TPowBE.mjs} +143 -41
  31. package/dist/visual.d.mts +1 -1
  32. package/dist/visual.mjs +1 -1
  33. package/package.json +1 -1
@@ -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-BUR4LWSa.mjs";
2
- import { t as createApp } from "./index-CKF3qS2-.mjs";
3
- import { b as memory, x as saveOf, y as WithGameState } from "./types-XygtsVg3.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-C5kxf9oU.mjs";
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-DuGiHe3k.mjs";
2
+ import { t as createApp } from "./index-BhMPDwA9.mjs";
3
+ import { b as memory, x as saveOf, y as WithGameState } from "./types-Lh8Ql5Lv.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-CwH40XSw.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-_nn6V6aX.mjs";
1
+ import { dn as refuseStart, gn as type, pn as exit, t as createApp, w as flattenFeatures } from "./src-uuF4Ry3D.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,5 +1,5 @@
1
- import { Qr as Snapshot, Ur as Json } from "./types-BUR4LWSa.mjs";
2
- import { t as HeadlessApp } from "./headless-C5kxf9oU.mjs";
1
+ import { $r as Snapshot, Wr as Json } from "./types-DuGiHe3k.mjs";
2
+ import { t as HeadlessApp } from "./headless-CwH40XSw.mjs";
3
3
  import { Log } from "@moku-labs/common/browser";
4
4
 
5
5
  //#region src/plugins/flow/doors/types.d.ts
@@ -1,4 +1,4 @@
1
- import { 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-BUR4LWSa.mjs";
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-DuGiHe3k.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";
@@ -220,12 +220,20 @@ type Origin = "center" | "top" | "topLeft" | {
220
220
  * const lift: TransformStyle = { offsetY: -6, scale: 1.05, origin: "center" };
221
221
  * // The title plaque of a popup, tilted by 1.5 degrees around the middle of its top edge.
222
222
  * const plaque: TransformStyle = { rotation: -0.026, origin: "top" };
223
+ * // A ribbon that unfurls from its left edge: it starts almost flat on X and a tween brings `scaleX` to 1.
224
+ * const ribbon: TransformStyle = { scaleX: 0.01, origin: "topLeft" };
223
225
  * ```
224
226
  */
225
227
  type TransformStyle = {
226
228
  /** Moves the drawn element right, in reference units. */offsetX?: number; /** Moves the drawn element down, in reference units. */
227
229
  offsetY?: number; /** Uniform scale around the origin. */
228
- scale?: number; /** Turns the drawn element around the origin, in radians, clockwise; 0 by default. */
230
+ scale?: number;
231
+ /**
232
+ * Width factor on top of `scale`, around the origin: the element is drawn `scale × scaleX` wide. Left out it is 1 and
233
+ * no key reaches the `Transform`. A `fit: "contain"` scale goes into `scale`, never into this.
234
+ */
235
+ scaleX?: number; /** Height factor on top of `scale`, around the origin, the same way as `scaleX`. */
236
+ scaleY?: number; /** Turns the drawn element around the origin, in radians, clockwise; 0 by default. */
229
237
  rotation?: number; /** The point the element scales and turns around; the centre by default. */
230
238
  origin?: Origin;
231
239
  };
@@ -2999,7 +3007,7 @@ type Guide = {
2999
3007
  screen: Rect; /** What the resolver writes on its way: one target's rect and its pose. */
3000
3008
  scratch: {
3001
3009
  part: Rect;
3002
- pose: TransformValue;
3010
+ pose: AxisPose;
3003
3011
  }; /** What `input` locks now: the window, every press, or nothing yet. */
3004
3012
  locked: "window" | "all" | "none"; /** Whether a target was shown at the last placement. */
3005
3013
  found: boolean;
@@ -3677,7 +3685,7 @@ type Anchor = {
3677
3685
  w: number;
3678
3686
  h: number;
3679
3687
  };
3680
- pose: TransformValue;
3688
+ pose: AxisPose;
3681
3689
  placed: boolean;
3682
3690
  hidden: boolean;
3683
3691
  missing: number;
@@ -3473,14 +3473,16 @@ type MotionCause = "mount" | "change" | "discard";
3473
3473
  */
3474
3474
  type ReducedMotion = "cut" | "keep";
3475
3475
  /**
3476
- * Only the numeric fields of a component value: what a tween can interpolate.
3476
+ * Only the numeric fields of a component value: what a tween can interpolate. An optional number counts too, and its
3477
+ * entry is a plain required `number`, so a tween names it with a number and never with `undefined`.
3477
3478
  *
3478
3479
  * @example
3479
3480
  * ```ts
3480
3481
  * type Numbers = NumericFields<{ x: number; texture: string }>; // { x: number }
3482
+ * type Stretch = NumericFields<{ x: number; scaleX?: number }>; // { x: number; scaleX: number }
3481
3483
  * ```
3482
3484
  */
3483
- type NumericFields<Value extends object> = { [Key in keyof Value as Value[Key] extends number ? Key : never]: Value[Key] };
3485
+ type NumericFields<Value extends object> = { [Key in keyof Value as Exclude<Value[Key], undefined> extends number ? Key : never]-?: Exclude<Value[Key], undefined> };
3484
3486
  /**
3485
3487
  * One keyframe segment of a track: the fraction of the track's `ms` it ends at (`0..1`), the
3486
3488
  * curve it eases with (the track's `ease` when left out) and the numeric fields it reaches. A
@@ -10998,6 +11000,8 @@ type TeardownScope = {
10998
11000
  * const value: TransformValue = {
10999
11001
  * x: 640, y: 340, rotation: 0, scale: 1.1, pivot: { x: 100, y: 40 }
11000
11002
  * };
11003
+ * // A ribbon title that unfurls: 1 % of its width, full height, around its centre.
11004
+ * const ribbon: TransformValue = { ...value, scale: 1, scaleX: 0.01, pivot: { x: 100, y: 40 } };
11001
11005
  * ```
11002
11006
  */
11003
11007
  type TransformValue = {
@@ -11005,6 +11009,31 @@ type TransformValue = {
11005
11009
  y: number;
11006
11010
  rotation: number;
11007
11011
  scale: number;
11012
+ /**
11013
+ * A factor on `scale` along X alone: the view draws `scale × scaleX` wide. Absent by default and read as 1, so a view
11014
+ * that never sets it is stored, snapshotted and described exactly as before. A tween, a motion or `toRest` of it starts
11015
+ * from 1 while it is absent. A child under a parent that turns and stretches on one axis is not sheared: the factors
11016
+ * compose per axis, and the rotation adds.
11017
+ *
11018
+ * @example
11019
+ * ```ts
11020
+ * // The ribbon unfurls to its full width, 260 ms after the screen opened.
11021
+ * world.ecs.spawn(owner, [Layer({ name: "ui" }), Transform({ x: 540, y: 300, scaleX: 0.01, pivot: { x: 200, y: 40 } })]);
11022
+ * view.tween(Transform, { scaleX: 1 }, { ms: 260 }); // drawn 400 wide at the end, 80 high throughout
11023
+ * ```
11024
+ */
11025
+ scaleX?: number;
11026
+ /**
11027
+ * A factor on `scale` along Y alone: the view draws `scale × scaleY` high. Absent by default and read as 1, like
11028
+ * `scaleX`.
11029
+ *
11030
+ * @example
11031
+ * ```ts
11032
+ * // A squash on landing: wider and shorter for a beat.
11033
+ * world.ecs.set(blob, Transform, { scaleX: 1.2, scaleY: 0.8 });
11034
+ * ```
11035
+ */
11036
+ scaleY?: number;
11008
11037
  pivot: Point;
11009
11038
  };
11010
11039
  /**
@@ -11290,8 +11319,8 @@ type OverlayLevelValue = {
11290
11319
  landed: boolean;
11291
11320
  };
11292
11321
  /**
11293
- * Where a view sits: reference units, radians, uniform scale, and the local point it turns
11294
- * around.
11322
+ * Where a view sits: reference units, radians, uniform scale (with an optional factor per axis), and the local point it
11323
+ * turns around.
11295
11324
  */
11296
11325
  declare const Transform: ComponentType<TransformValue>;
11297
11326
  /**
@@ -11525,6 +11554,22 @@ type CoverFrame = {
11525
11554
  texture: PixiTexture;
11526
11555
  users: Set<Entity>;
11527
11556
  };
11557
+ /**
11558
+ * The scratch pose of a hot loop: a `TransformValue` whose per-axis factors are always there. `rootPoseInto` writes both
11559
+ * on every call (1 when the entity has none), so a reused object never carries the factor of the entity before. A pose
11560
+ * that may reach the ECS stays a `TransformValue`, which carries a factor only when it is not 1.
11561
+ *
11562
+ * @example
11563
+ * ```ts
11564
+ * // A reader that asks every frame keeps one pose and passes it in again.
11565
+ * const pose: AxisPose = { x: 0, y: 0, rotation: 0, scale: 1, scaleX: 1, scaleY: 1, pivot: { x: 0, y: 0 } };
11566
+ * rootPoseInto(ctx.require(worldPlugin).ecs, host, pose); // pose.scaleX is 1 for a host without the field
11567
+ * ```
11568
+ */
11569
+ type AxisPose = TransformValue & {
11570
+ scaleX: number;
11571
+ scaleY: number;
11572
+ };
11528
11573
  /**
11529
11574
  * One layer of the scene: its container, the sort rule its children follow, the reasons that hide the container
11530
11575
  * (`hidden.ts`), and whether it is the scene's HUD layer (`above: "overlays"`).
@@ -11681,6 +11726,23 @@ type TexturesApi = {
11681
11726
  * ```
11682
11727
  */
11683
11728
  invalidate(keys: readonly string[]): void;
11729
+ /**
11730
+ * Tells whether a view draws one of these asset keys now: a sprite or nine-slice view, shown or hidden, the magenta
11731
+ * placeholder of a key no provider answers included. `assets` asks before it unloads a bundle, so the budget never
11732
+ * frees a texture a view still holds. Reads the table of keys the views keep; allocates nothing. Particles, filter
11733
+ * inputs, inline images in text and the leave loader take textures without a view of this table: they do not count.
11734
+ *
11735
+ * @param keys - The asset keys of a bundle.
11736
+ * @returns `true` when at least one key has a view; `false` for no keys and while inert (no root, headless).
11737
+ * @example
11738
+ * ```ts
11739
+ * // `assets` before the budget unloads "board": a view still shows its cells.
11740
+ * const renderer = ctx.require(rendererPlugin);
11741
+ * renderer.sync.textures.used(["board.cell", "board.bg"]); // true: the board still shows its cells
11742
+ * renderer.sync.textures.used(["splash.logo"]); // false: no view draws it
11743
+ * ```
11744
+ */
11745
+ used(keys: readonly string[]): boolean;
11684
11746
  /**
11685
11747
  * Puts textures on the GPU before a screen shows them: each texture's source is queued once and uploaded with Pixi's
11686
11748
  * `renderer.texture.initSource` before the stage pass of a drawn frame, `renderer.uploads` a frame (one by default),
@@ -13024,7 +13086,7 @@ type HitWalk = {
13024
13086
  * handed to a call that is not inlined is boxed, once per view.
13025
13087
  */
13026
13088
  alphas: Float64Array; /** The root pose of the entity whose box is tested, written in place. */
13027
- pose: TransformValue; /** The reference point brought into an entity's own space, written in place. */
13089
+ pose: AxisPose; /** The reference point brought into an entity's own space, written in place. */
13028
13090
  local: Point; /** The reference x. */
13029
13091
  x: number; /** The reference y. */
13030
13092
  y: number; /** The filter of `hitTest`; `undefined` while `hitAll` collects. */
@@ -14391,7 +14453,15 @@ type Config = {
14391
14453
  type State = {
14392
14454
  /** `undefined` means headless: manifest only, no fetches, no textures. */io: AssetsIo | undefined; /** Empty until `onStart` read it. */
14393
14455
  manifest: Manifest; /** Asset key to the bundle that carries it. */
14394
- bundleOfKey: Map<string, string>; /** Scene id to its declaration, read from the `scenes` key of `flow.features`. */
14456
+ bundleOfKey: Map<string, string>; /** Bundle name to its asset keys, frozen, built with `bundleOfKey`: the budget and an unload read it, never `files.map`. */
14457
+ keysOf: Map<string, readonly string[]>; /** Bundles the budget unloaded since the last rest: a view that asks again for one of them starts the hold (F184). */
14458
+ budgetUnloaded: Set<string>;
14459
+ /**
14460
+ * Bundles a view asked again for right after the budget unloaded them: never a budget victim again, until they leave
14461
+ * another way (`"request"`, `"leave"`), so an untracked consumer costs one evict/reload at most (F184).
14462
+ */
14463
+ reloadHeld: Set<string>; /** Bundles the "asked again" warning named already: one line per bundle per session (F184). */
14464
+ thrashWarned: Set<string>; /** Scene id to its declaration, read from the `scenes` key of `flow.features`. */
14395
14465
  scenes: Map<string, SceneDefinition>; /** Flow id to the feature that owns it, read from the `flows` key of `flow.features`. */
14396
14466
  featureOfFlow: Map<string, string>;
14397
14467
  records: Map<string, BundleRecord>; /** Bundles of the node entered last. They are never unloaded. */
@@ -14828,4 +14898,4 @@ type BundleCompanion = {
14828
14898
  unload(bundle: string): void;
14829
14899
  };
14830
14900
  //#endregion
14831
- export { MonitorConfig as $, DescriptionNode as $n, SnapshotOf as $r, PerfSpikeLine as $t, FilterSlotQuad as A, FeatureDescription as An, Config$4 as Ar, OverlayEventDetail as At, Parent as B, RouteStep as Bn, Api$5 as Br, PerfChangeEntry as Bt, SceneSpec as C, types_d_exports$3 as Cn, Narrowed as Cr, FrameReadResult as Ct, DebugSwitches as D, slot as Dn, SystemFor as Dr, LongFrameEntry as Dt, types_d_exports$1 as E, exit as En, SystemDefinition as Er, FrameRing as Et, HudPartValue as F, DefineNode as Fn, ClockSource as Fr, PROBLEM_RULES as Ft, SpriteOptions as G, EffectOptions as Gn, State$6 as Gr, PerfEventName as Gt, ShapeValue as H, TypeTag as Hn, Events$5 as Hr, PerfCounts as Ht, NineSlice$1 as I, FlowGraph as In, Config$5 as Ir, PassKind as It, TransformValue as J, NodeFx as Jn, PlayerStateProvider as Jr, PerfLogLine as Jt, SpriteValue as K, GuideOptions as Kn, types_d_exports$6 as Kr, PerfGapLine as Kt, NineSliceValue as L, FlowState as Ln, FakeClock as Lr, PassRecord as Lt, WhyEntry as M, FeatureTree as Mn, State$4 as Mr, PERF_CAUSES as Mt, Display as N, AnyFlow as Nn, types_d_exports$4 as Nr, PERF_GAP_BUCKETS as Nt, FilterSlot as O, to as On, TagType as Or, MONITOR_SECTIONS as Ot, HudPart as P, Bookmark as Pn, Api$4 as Pr, PERF_LOG_VERSION as Pt, Config$2 as Q, ChangeHook as Qn, Snapshot as Qr, PerfSampleLine as Qt, Overlay as R, JournalEntry as Rn, State$5 as Rr, PerfCause as Rt, SceneDefinition as S, TextStylesOf as Sn, Mut as Sr, FrameColumns as St, State$1 as T, defineFlow as Tn, ResourceType as Tr, FrameRecord as Tt, Sprite as U, Descriptor as Un, Json as Ur, PerfDisplay as Ut, Shape as V, SceneIdOf as Vn, Config$6 as Vr, PerfCollectorLine as Vt, SpriteBlend as W, Effect as Wn, Root as Wr, PerfEventLine as Wt, AdaptiveScale as X, Answered as Xn, SaveDoc as Xr, PerfMarkLine as Xt, sprite as Y, Answer as Yn, ProviderCall as Yr, PerfLongFrameLine as Yt, Api$1 as Z, AnchorTarget as Zn, SaveUnreadableError as Zr, PerfMeasured as Zt, AnySceneProjection as _, Config$9 as _i, GameTypes as _n, ComponentType as _r, Point as _t, Config as a, Events$6 as ai, ProblemRule as an, ProjectionMotion as ar, PixiTexture as at, Events$1 as b, State$3 as bn, EntitySnapshot as br, RetakeWhy as bt, LoadBundles as c, types_d_exports$7 as ci, ShaderWhat as cn, SceneSwitch as cr, State$2 as ct, Manifest as d, FrameRate as di, CanvasRestart as dn, ViewHandle as dr, ShotsApi as dt, StoreApi as ei, PerfStartupLine as en, Ease as er, PixiContainer as et, ReadyBundles as f, RateChange as fi, DEMAND_REASONS as fn, AnyComponent as fr, ShotsConfig as ft, types_d_exports as g, types_d_exports$8 as gi, EmitterIdOf as gn, ComponentSchema as gr, Orientation as gt, Usage as h, Time as hi, Config$3 as hn, ComponentHandle as hr, RenderStats as ht, BundleSpec as i, Config$7 as ii, ProblemEventDetail as in, NumericFields as ir, PixiSprite as it, SyncApi as j, FeaturePlugin as jn, Explained as jr, OverlayWhat as jt, FilterSlotInputs as k, type as kn, Api$3 as kr, MonitorSections as kt, LoadReason as l, Api$7 as li, WarmDetail as ln, TrackOptions as lr, Under as lt, Tier as m, ThermalReading as mi, BundlesOf as mn, AnyComponentValue as mr, MonitorCounts as mt, AssetsIo as n, RngState as ni, PerfThermalLine as nn, MotionCause as nr, PixiGpuProgram as nt, DefineBundles as o, PauseReason as oi, SHADER_WHATS as on, ProjectionSpec as or, PixiUniformGroup as ot, State as p, State$8 as pi, Api$2 as pn, AnyComponentType as pr, Captured as pt, Transform as q, Hint as qn, Patch as qr, PerfHeaderLine as qt, BundleMap as r, Api$6 as ri, PoolTrimDetail as rn, MotionHandle as rr, PixiModule as rt, Events as s, State$7 as si, ShaderEventDetail as sn, ReducedMotion as sr, PoolTrim as st, Api as t, RngApi as ti, PerfTelemetryLine as tn, Motion as tr, PixiFilter as tt, LoadResult as u, Config$8 as ui, CANVAS_RESTARTS as un, TrackSegment as ur, types_d_exports$2 as ut, Config$1 as v, Events$8 as vi, HudKeysOf as vn, ComponentValue as vr, ViewportSize as vt, ScenesApi as w, contribution as wn, QueryTerm as wr, FrameReadout as wt, LayerMap as x, TextFormatsOf as xn, FrameDiff as xr, WhyLive as xt, DefineScene as y, Require as yi, Position as yn, Entity as yr, FilterCache as yt, OverlayValue as z, NodeTable as zn, types_d_exports$5 as zr, PerfChange as zt };
14901
+ export { Config$2 as $, ChangeHook as $n, Snapshot as $r, PerfSampleLine as $t, FilterSlotInputs as A, type as An, Api$3 as Ar, MonitorSections as At, OverlayValue as B, NodeTable as Bn, types_d_exports$5 as Br, PerfChange as Bt, SceneSpec as C, TextStylesOf as Cn, Mut as Cr, FrameColumns as Ct, AxisPose as D, exit as Dn, SystemDefinition as Dr, FrameRing as Dt, types_d_exports$1 as E, defineFlow as En, ResourceType as Er, FrameRecord as Et, HudPart as F, Bookmark as Fn, Api$4 as Fr, PERF_LOG_VERSION as Ft, SpriteBlend as G, Effect as Gn, Root as Gr, PerfEventLine as Gt, Shape as H, SceneIdOf as Hn, Config$6 as Hr, PerfCollectorLine as Ht, HudPartValue as I, DefineNode as In, ClockSource as Ir, PROBLEM_RULES as It, Transform as J, Hint as Jn, Patch as Jr, PerfHeaderLine as Jt, SpriteOptions as K, EffectOptions as Kn, State$6 as Kr, PerfEventName as Kt, NineSlice$1 as L, FlowGraph as Ln, Config$5 as Lr, PassKind as Lt, SyncApi as M, FeaturePlugin as Mn, Explained as Mr, OverlayWhat as Mt, WhyEntry as N, FeatureTree as Nn, State$4 as Nr, PERF_CAUSES as Nt, DebugSwitches as O, slot as On, SystemFor as Or, LongFrameEntry as Ot, Display as P, AnyFlow as Pn, types_d_exports$4 as Pr, PERF_GAP_BUCKETS as Pt, Api$1 as Q, AnchorTarget as Qn, SaveUnreadableError as Qr, PerfMeasured as Qt, NineSliceValue as R, FlowState as Rn, FakeClock as Rr, PassRecord as Rt, SceneDefinition as S, TextFormatsOf as Sn, FrameDiff as Sr, WhyLive as St, State$1 as T, contribution as Tn, QueryTerm as Tr, FrameReadout as Tt, ShapeValue as U, TypeTag as Un, Events$5 as Ur, PerfCounts as Ut, Parent as V, RouteStep as Vn, Api$5 as Vr, PerfChangeEntry as Vt, Sprite as W, Descriptor as Wn, Json as Wr, PerfDisplay as Wt, sprite as X, Answer as Xn, ProviderCall as Xr, PerfLongFrameLine as Xt, TransformValue as Y, NodeFx as Yn, PlayerStateProvider as Yr, PerfLogLine as Yt, AdaptiveScale as Z, Answered as Zn, SaveDoc as Zr, PerfMarkLine as Zt, AnySceneProjection as _, types_d_exports$8 as _i, EmitterIdOf as _n, ComponentSchema as _r, Orientation as _t, Config as a, Config$7 as ai, ProblemEventDetail as an, NumericFields as ar, PixiSprite as at, Events$1 as b, Require as bi, Position as bn, Entity as br, FilterCache as bt, LoadBundles as c, State$7 as ci, ShaderEventDetail as cn, ReducedMotion as cr, PoolTrim as ct, Manifest as d, Config$8 as di, CANVAS_RESTARTS as dn, TrackSegment as dr, types_d_exports$2 as dt, SnapshotOf as ei, PerfSpikeLine as en, DescriptionNode as er, MonitorConfig as et, ReadyBundles as f, FrameRate as fi, CanvasRestart as fn, ViewHandle as fr, ShotsApi as ft, types_d_exports as g, Time as gi, Config$3 as gn, ComponentHandle as gr, RenderStats as gt, Usage as h, ThermalReading as hi, BundlesOf as hn, AnyComponentValue as hr, MonitorCounts as ht, BundleSpec as i, Api$6 as ii, PoolTrimDetail as in, MotionHandle as ir, PixiModule as it, FilterSlotQuad as j, FeatureDescription as jn, Config$4 as jr, OverlayEventDetail as jt, FilterSlot as k, to as kn, TagType as kr, MONITOR_SECTIONS as kt, LoadReason as l, types_d_exports$7 as li, ShaderWhat as ln, SceneSwitch as lr, State$2 as lt, Tier as m, State$8 as mi, Api$2 as mn, AnyComponentType as mr, Captured as mt, AssetsIo as n, RngApi as ni, PerfTelemetryLine as nn, Motion as nr, PixiFilter as nt, DefineBundles as o, Events$6 as oi, ProblemRule as on, ProjectionMotion as or, PixiTexture as ot, State as p, RateChange as pi, DEMAND_REASONS as pn, AnyComponent as pr, ShotsConfig as pt, SpriteValue as q, GuideOptions as qn, types_d_exports$6 as qr, PerfGapLine as qt, BundleMap as r, RngState as ri, PerfThermalLine as rn, MotionCause as rr, PixiGpuProgram as rt, Events as s, PauseReason as si, SHADER_WHATS as sn, ProjectionSpec as sr, PixiUniformGroup as st, Api as t, StoreApi as ti, PerfStartupLine as tn, Ease as tr, PixiContainer as tt, LoadResult as u, Api$7 as ui, WarmDetail as un, TrackOptions as ur, Under as ut, Config$1 as v, Config$9 as vi, GameTypes as vn, ComponentType as vr, Point as vt, ScenesApi as w, types_d_exports$3 as wn, Narrowed as wr, FrameReadResult as wt, LayerMap as x, State$3 as xn, EntitySnapshot as xr, RetakeWhy as xt, DefineScene as y, Events$8 as yi, HudKeysOf as yn, ComponentValue as yr, ViewportSize as yt, Overlay as z, JournalEntry as zn, State$5 as zr, PerfCause as zt };
@@ -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-BUR4LWSa.mjs";
2
- import { o as AudioContextLike, s as Config$4 } from "./types-cEAJaK0D.mjs";
3
- import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-BHEOjYV3.mjs";
4
- import { Et as PlatformProvider, It as audioPlugin, Nt as effectsPlugin, i as screen, t as createApp, wt as platformPlugin } from "./index-CKF3qS2-.mjs";
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-DuGiHe3k.mjs";
2
+ import { o as AudioContextLike, s as Config$4 } from "./types-wsgkqOXF.mjs";
3
+ import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-Dpd8geJW.mjs";
4
+ import { Et as PlatformProvider, It as audioPlugin, Nt as effectsPlugin, i as screen, t as createApp, wt as platformPlugin } from "./index-BhMPDwA9.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 { 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-BUR4LWSa.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-BHEOjYV3.mjs";
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-DuGiHe3k.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-Dpd8geJW.mjs";
3
3
  import { Log } from "@moku-labs/common/browser";
4
4
  import { PluginCtx } from "@moku-labs/core";
5
5
 
@@ -875,7 +875,8 @@ type Target = {
875
875
  };
876
876
  /**
877
877
  * The pose `at(target)` answers with: where the target rests in root (reference) space, its rest
878
- * `Transform` composed through the `Parent` chain, or the identity pose when nothing is there.
878
+ * `Transform` composed through the `Parent` chain, or the identity pose when nothing is there. The per-axis factors
879
+ * of the target (`scaleX`, `scaleY`) are not carried: `at()` answers the uniform `scale` only.
879
880
  *
880
881
  * @example
881
882
  * ```ts
@@ -1034,20 +1035,23 @@ type Events = {
1034
1035
  /**
1035
1036
  * One key of a keyframe track in `defineMotion`: where on the track it sits (`at`, 0..1 of
1036
1037
  * `transition.ms`), the curve of the segment that ends on it (default `"inOut"`) and the pose.
1037
- * `dx` and `dy` are offsets from the rest pose in reference units; `rotation` (radians), `scale`
1038
- * and `alpha` are absolute. A field the key leaves out holds the previous key's value.
1038
+ * `dx` and `dy` are offsets from the rest pose in reference units; `rotation` (radians), `scale`,
1039
+ * `scaleX`, `scaleY` and `alpha` are absolute. `scaleX` and `scaleY` stretch one axis on top of `scale`; a view
1040
+ * that sets neither rests at 1. A field the key leaves out holds the previous key's value.
1039
1041
  *
1040
1042
  * An enter walk starts on the first key and ends on the rest pose at `at: 1`; an exit walk starts
1041
1043
  * where the view is and ends on the last key, the pose the element leaves in.
1042
1044
  *
1043
- * In a loop (`loop: { track }`) every Transform field is an offset added to the rest pose: `dx`, `dy`, `rotation`
1044
- * and `scale` (`scale: 0.05` grows a scale-1 view to 1.05). `alpha` stays absolute. The loop
1045
- * stands on its first key until that key's `at`, and its last key repeats its first one.
1045
+ * In a loop (`loop: { track }`) every Transform field is an offset added to the rest pose: `dx`, `dy`, `rotation`,
1046
+ * `scale`, `scaleX` and `scaleY` (`scale: 0.05` grows a scale-1 view to 1.05, `scaleX: 0.05` widens it alone). `alpha`
1047
+ * stays absolute. The loop stands on its first key until that key's `at`, and its last key repeats its first one.
1046
1048
  *
1047
1049
  * @example
1048
1050
  * ```ts
1049
1051
  * // A popup board at 42 % of its swing: 14 u below its rest, tilted 5°, slightly larger.
1050
1052
  * const key: MotionKeyframe = { at: 0.42, ease: "out", Transform: { dy: 14, rotation: 0.087, scale: 1.04 } };
1053
+ * // A ribbon at 65 % of its unfurl: 8 % wider than its rest, as tall as it rests.
1054
+ * const unfurl: MotionKeyframe = { at: 0.65, Transform: { scaleX: 1.08 } };
1051
1055
  * ```
1052
1056
  */
1053
1057
  type MotionKeyframe = {
@@ -1058,6 +1062,8 @@ type MotionKeyframe = {
1058
1062
  readonly dy?: number;
1059
1063
  readonly rotation?: number;
1060
1064
  readonly scale?: number;
1065
+ readonly scaleX?: number;
1066
+ readonly scaleY?: number;
1061
1067
  };
1062
1068
  readonly Shape?: {
1063
1069
  readonly alpha?: number;
@@ -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-BUR4LWSa.mjs";
2
- import { W as AnimApi, r as UiApi } from "./types-cEAJaK0D.mjs";
3
- import { R as InputApi } from "./types-BHEOjYV3.mjs";
4
- import { r as Repro } from "./headless-C5kxf9oU.mjs";
5
- import { i as ControlApp, o as InputOf } from "./types-CATC2vK8.mjs";
6
- import { t as commands } from "./commands-CzT9eYnf.mjs";
1
+ import { Ar as Api$1, Fr as Api$4, Q as Api, Vr as Api$2, ii as Api$3 } from "./types-DuGiHe3k.mjs";
2
+ import { W as AnimApi, r as UiApi } from "./types-wsgkqOXF.mjs";
3
+ import { R as InputApi } from "./types-Dpd8geJW.mjs";
4
+ import { r as Repro } from "./headless-CwH40XSw.mjs";
5
+ import { i as ControlApp, o as InputOf } from "./types-B3OYUVNR.mjs";
6
+ import { t as commands } from "./commands-BMeGOWws.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. */