@moku-labs/game 0.15.114 → 0.15.116
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.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-TKBQMWqI.mjs → src-DK7VPqPx.mjs} +20 -13
- package/dist/testing.mjs +1 -1
- package/package.json +1 -1
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-DK7VPqPx.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/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as HAPTIC_KINDS, $t as PASS_KINDS, A as types_exports$17, At as Traced, B as types_exports$7, Bt as Glow, C as defineFeature, Ct as PointerOver, D as defineBundles, Dt as Tappable, E as music, Et as Swipeable, F as types_exports$12, Ft as Emitter, G as types_exports$2, Gt as audioPlugin, H as types_exports$5, Ht as Outline, I as types_exports$11, It as Alpha, J as uiPlugin, Jt as animPlugin, K as types_exports$1, Kt as scenesPlugin, L as types_exports$10, Lt as Blur, M as types_exports$15, Mt as messageArgument, N as types_exports$14, Nt as messageDuration, O as load, Ot as Touchable, P as types_exports$13, Pt as effectsPlugin, Q as platformPlugin, Qt as rendererPlugin, R as types_exports$9, Rt as ColorMatrix, S as tr, St as Pointer, T as defineEmitter, Tt as Pressed, U as types_exports$4, Ut as defineFilter, V as types_exports$6, Vt as Noise, W as types_exports$3, Wt as debugPlugin, X as defineMotion, Xt as Animation, Y as resolve, Yt as AnimPlayer, Z as textPlugin, Zt as Frames, _ as guide, _n as modelPlugin, _t as inputPlugin, a as Vignette, an as PROBLEM_RULES, at as parallel, b as projection, bn as lifecyclePlugin, bt as Held, c as RevealLine, cn as DEMAND_REASONS, ct as set, d as Flash, dt as spawned, en as frameAt, et as defineAnimation, f as Dissolve, fn as contribution, ft as stagger, g as defineEffect, gn as type, gt as wait, h as cubicBezier, hn as to, ht as use, i as screen, in as PERF_LOG_VERSION, it as mark, j as types_exports$16, jt as i18nPlugin, k as ready, kt as Traceable, l as Grade, ln as worldPlugin, lt as sfx, m as Aura, mn as slot, mt as tween, n as createPlugin, nn as PERF_CAUSES, nt as frames, o as Shine, on as SHADER_WHATS, ot as play, p as Bloom, pn as exit, pt as stopSfx, q as types_exports, qt as assetsPlugin, r as defineGame, rn as PERF_GAP_BUCKETS, rt as haptic, s as RevealRound, sn as CANVAS_RESTARTS, st as sequence, t as createApp, tn as MONITOR_SECTIONS, tt as external, u as Fold, un as flowPlugin, ut as spawn, v as hint, vn as SaveUnreadableError, vt as Draggable, w as flattenFeatures, wt as Pressable, x as defineScene, xn as timePlugin, xt as Hovered, y as schedule, yn as clockPlugin, yt as DropTarget, z as types_exports$8, zt as Displacement } from "./src-
|
|
1
|
+
import { $ as HAPTIC_KINDS, $t as PASS_KINDS, A as types_exports$17, At as Traced, B as types_exports$7, Bt as Glow, C as defineFeature, Ct as PointerOver, D as defineBundles, Dt as Tappable, E as music, Et as Swipeable, F as types_exports$12, Ft as Emitter, G as types_exports$2, Gt as audioPlugin, H as types_exports$5, Ht as Outline, I as types_exports$11, It as Alpha, J as uiPlugin, Jt as animPlugin, K as types_exports$1, Kt as scenesPlugin, L as types_exports$10, Lt as Blur, M as types_exports$15, Mt as messageArgument, N as types_exports$14, Nt as messageDuration, O as load, Ot as Touchable, P as types_exports$13, Pt as effectsPlugin, Q as platformPlugin, Qt as rendererPlugin, R as types_exports$9, Rt as ColorMatrix, S as tr, St as Pointer, T as defineEmitter, Tt as Pressed, U as types_exports$4, Ut as defineFilter, V as types_exports$6, Vt as Noise, W as types_exports$3, Wt as debugPlugin, X as defineMotion, Xt as Animation, Y as resolve, Yt as AnimPlayer, Z as textPlugin, Zt as Frames, _ as guide, _n as modelPlugin, _t as inputPlugin, a as Vignette, an as PROBLEM_RULES, at as parallel, b as projection, bn as lifecyclePlugin, bt as Held, c as RevealLine, cn as DEMAND_REASONS, ct as set, d as Flash, dt as spawned, en as frameAt, et as defineAnimation, f as Dissolve, fn as contribution, ft as stagger, g as defineEffect, gn as type, gt as wait, h as cubicBezier, hn as to, ht as use, i as screen, in as PERF_LOG_VERSION, it as mark, j as types_exports$16, jt as i18nPlugin, k as ready, kt as Traceable, l as Grade, ln as worldPlugin, lt as sfx, m as Aura, mn as slot, mt as tween, n as createPlugin, nn as PERF_CAUSES, nt as frames, o as Shine, on as SHADER_WHATS, ot as play, p as Bloom, pn as exit, pt as stopSfx, q as types_exports, qt as assetsPlugin, r as defineGame, rn as PERF_GAP_BUCKETS, rt as haptic, s as RevealRound, sn as CANVAS_RESTARTS, st as sequence, t as createApp, tn as MONITOR_SECTIONS, tt as external, u as Fold, un as flowPlugin, ut as spawn, v as hint, vn as SaveUnreadableError, vt as Draggable, w as flattenFeatures, wt as Pressable, x as defineScene, xn as timePlugin, xt as Hovered, y as schedule, yn as clockPlugin, yt as DropTarget, z as types_exports$8, zt as Displacement } from "./src-DK7VPqPx.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-CvFDvkA_.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 };
|
|
@@ -20052,7 +20052,7 @@ function goLive(kctx, record, view, putBack) {
|
|
|
20052
20052
|
/**
|
|
20053
20053
|
* Undoes the render group the cache made of a top that is drawn live again: drawn with its filters inside a parent's
|
|
20054
20054
|
* filter pass, a top that stays a render group draws other pixels than the container it was (found by the browser
|
|
20055
|
-
* leg, T4). Its subtree's colour
|
|
20055
|
+
* leg, T4). Its subtree's colour and display status are worked out again. The next take makes it one again.
|
|
20056
20056
|
*
|
|
20057
20057
|
* @param kctx - The kept context.
|
|
20058
20058
|
* @param record - The record.
|
|
@@ -20062,23 +20062,29 @@ function ungroup(kctx, record) {
|
|
|
20062
20062
|
if (!madeGroups.has(record.top)) return;
|
|
20063
20063
|
if (!record.top.destroyed) {
|
|
20064
20064
|
record.top.disableRenderGroup();
|
|
20065
|
-
|
|
20065
|
+
reflag(record.top);
|
|
20066
20066
|
}
|
|
20067
20067
|
madeGroups.delete(record.top);
|
|
20068
20068
|
}
|
|
20069
20069
|
/**
|
|
20070
|
-
* Makes Pixi work out the colour of a top's subtree again after it stopped being a render
|
|
20071
|
-
* `disableRenderGroup` hands the children to the parent's group with
|
|
20072
|
-
*
|
|
20073
|
-
* `
|
|
20074
|
-
*
|
|
20070
|
+
* Makes Pixi work out the colour and the display status of a top's subtree again after it stopped being a render
|
|
20071
|
+
* group. Pixi's `disableRenderGroup` hands the children to the parent's group with what they had inside the group they
|
|
20072
|
+
* left, which leaves out the top's own: a top at alpha 0.5 would draw its subtree at 1 from then on, and a top the cache
|
|
20073
|
+
* hid (`renderable` false) would leave its subtree counted as drawn (Pixi's `enableRenderGroup` flags them, the way
|
|
20074
|
+
* back does not). Pixi pools the group it gave back, and the next take of another view gets it with its batcher: a node
|
|
20075
|
+
* still counted as drawn writes its vertices there at every move of it, and the other picture is taken from them
|
|
20076
|
+
* (F173). An alpha and a `renderable` written away and back, through Pixi's public setters, flag the top, and Pixi's
|
|
20077
|
+
* next update carries both flags down the subtree; nothing is drawn in between.
|
|
20075
20078
|
*
|
|
20076
20079
|
* @param top - The top, no render group any more.
|
|
20077
20080
|
*/
|
|
20078
|
-
function
|
|
20081
|
+
function reflag(top) {
|
|
20079
20082
|
const alpha = top.alpha;
|
|
20083
|
+
const renderable = top.renderable;
|
|
20080
20084
|
top.alpha = alpha === 0 ? 1 : 0;
|
|
20081
20085
|
top.alpha = alpha;
|
|
20086
|
+
top.renderable = !renderable;
|
|
20087
|
+
top.renderable = renderable;
|
|
20082
20088
|
}
|
|
20083
20089
|
/**
|
|
20084
20090
|
* The `before` of a filter write the cache makes: none marks, the frame is decided already and draws the same pixels.
|
|
@@ -67511,9 +67517,10 @@ const CONTENT_ROW_STYLE = Object.freeze({
|
|
|
67511
67517
|
/**
|
|
67512
67518
|
* The props, besides `style`, `state` and `content`, that a live element is written from: `bind`,
|
|
67513
67519
|
* `texture`, `name` and `fit` reach its visual, `intent`, `payload`, `point`, `local` and `escape`
|
|
67514
|
-
* its input, `components` its extras
|
|
67515
|
-
*
|
|
67516
|
-
*
|
|
67520
|
+
* its input, `components` its extras. Every other prop is read from the node where it is used, at
|
|
67521
|
+
* every patch: `hosts`, the props of a windowed scroll, the props of a text field, and the
|
|
67522
|
+
* children. `motion` writes nothing: the patch stores it on the element at every render, and a new
|
|
67523
|
+
* identity of the same look rewrites nothing a running tween holds (F168).
|
|
67517
67524
|
*/
|
|
67518
67525
|
const WRITTEN = [
|
|
67519
67526
|
"bind",
|
|
@@ -67521,7 +67528,6 @@ const WRITTEN = [
|
|
|
67521
67528
|
"name",
|
|
67522
67529
|
"fit",
|
|
67523
67530
|
"components",
|
|
67524
|
-
"motion",
|
|
67525
67531
|
"intent",
|
|
67526
67532
|
"payload",
|
|
67527
67533
|
"point",
|
|
@@ -68417,7 +68423,8 @@ function createReconciler(ctx, modules, fields) {
|
|
|
68417
68423
|
* for, no component set, no rest recorded, no rest pose moved. What still runs for it reads a
|
|
68418
68424
|
* prop the comparison leaves out, or costs nothing: the check of a windowed scroll's props; the
|
|
68419
68425
|
* node of this render kept on the element, which the hosts, the rows of a windowed scroll, a
|
|
68420
|
-
* text field and the measure of a text read later; its motion
|
|
68426
|
+
* text field and the measure of a text read later; its motion, whose identity alone changes
|
|
68427
|
+
* nothing written (F168), and its instance; the host set;
|
|
68421
68428
|
* the props of a text field; the loop of a new motion; and the diff of its children.
|
|
68422
68429
|
*
|
|
68423
68430
|
* @param root - The root being reconciled.
|
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-DK7VPqPx.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";
|