@kolkrabbi/design-editor 0.2.0 → 0.3.0
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/README.md +41 -26
- package/dist/{BufferResource-CKQMSOM4.js → BufferResource-BfLgK37S.js} +42 -34
- package/dist/{CanvasPool-ilDNHrRx.js → CanvasPool-YNSF8hsR.js} +9 -9
- package/dist/CanvasRenderer-Bl0rlqNq.js +2 -0
- package/dist/{browserAll-CJ593myQ.js → FederatedEventTarget-BJgROaRQ.js} +119 -127
- package/dist/FilterSystem-BUrPNXx-.js +1323 -0
- package/dist/{Geometry-D3fkwmax.js → Geometry-C5s5KpWq.js} +492 -411
- package/dist/{OrbitControls-CE3qSrHQ.js → OrbitControls-Cql8Rn2i.js} +1944 -1914
- package/dist/{RenderTargetSystem-umK0aqrs.js → RenderTargetSystem-oFwWv5IW.js} +1107 -612
- package/dist/WebGLRenderer-CXxpVIx3.js +2 -0
- package/dist/WebGPURenderer-BwLEUYBa.js +2 -0
- package/dist/browserAll-CAzdTUbR.js +6 -0
- package/dist/canvasUtils-BoNfkAod.js +168 -0
- package/dist/{rolldown-runtime-B0aSnxlc.js → chunk-3b4jIN3o.js} +4 -11
- package/dist/design-editor.css +2 -2
- package/dist/design-editor.js +7675 -8478
- package/dist/{getTextureBatchBindGroup-ChWkOJ3t.js → getTextureBatchBindGroup-CNWhZRbV.js} +5 -5
- package/dist/{host-6EhdLf5-.js → host-CVR9RL_W.js} +8 -6
- package/dist/{host-DPFYZP9I.js → host-be1CWhN1.js} +4 -2
- package/dist/init-jApIMi04.js +4 -0
- package/dist/{phase-D3rwI6OO.js → phase-t_DhU5Nm.js} +2 -2
- package/dist/pipeline-CMpuPUaX.js +11995 -0
- package/dist/{src-zDOFeQWX.js → src-QwKcYKfv.js} +747 -746
- package/dist/webworkerAll-DEZhpG90.js +2 -0
- package/package.json +32 -26
- package/LICENSE +0 -21
- package/dist/CanvasRenderer-CDbc3nH9.js +0 -3396
- package/dist/WebGLRenderer-DVKPZbKc.js +0 -2145
- package/dist/WebGPURenderer-DHSBocAL.js +0 -1656
- package/dist/canvasUtils-CXoNqK7T.js +0 -168
- package/dist/defaultFilter.vert-C9efGgir.js +0 -888
- package/dist/init-4Y6mtayI.js +0 -441
- package/dist/pipeline-DfTD40M-.js +0 -4825
- package/dist/webworkerAll-wTH3MKcZ.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
3
|
-
var
|
|
1
|
+
import { A as e, C as t, D as n, E as r, F as i, H as a, J as o, K as s, L as c, Q as l, T as u, U as d, W as f, X as p, Y as m, _ as h, at as g, c as _, d as v, et as y, f as b, h as ee, i as te, it as ne, j as re, m as ie, n as ae, o as oe, ot as x, q as se, r as S, rt as C, s as ce, t as le, tt as ue, u as w, v as de, w as fe, x as pe, y as me, z as he } from "./Geometry-C5s5KpWq.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/CustomRenderPipe.mjs
|
|
3
|
+
var ge = class {
|
|
4
4
|
constructor(e) {
|
|
5
5
|
this._renderer = e;
|
|
6
6
|
}
|
|
@@ -19,17 +19,17 @@ var de = class {
|
|
|
19
19
|
this._renderer = null;
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
ge.extension = {
|
|
23
23
|
type: [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
g.WebGLPipes,
|
|
25
|
+
g.WebGPUPipes,
|
|
26
|
+
g.CanvasPipes
|
|
27
27
|
],
|
|
28
28
|
name: "customRender"
|
|
29
29
|
};
|
|
30
30
|
//#endregion
|
|
31
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
32
|
-
var
|
|
31
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/sprite/BatchableSprite.mjs
|
|
32
|
+
var _e = class {
|
|
33
33
|
constructor() {
|
|
34
34
|
this.batcherName = "default", this.topology = "triangle-list", this.attributeSize = 4, this.indexSize = 6, this.packAsQuad = !0, this.roundPixels = 0, this._attributeStart = 0, this._batcher = null, this._batch = null;
|
|
35
35
|
}
|
|
@@ -47,8 +47,8 @@ var fe = class {
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
//#endregion
|
|
50
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
51
|
-
function
|
|
50
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/utils/executeInstructions.mjs
|
|
51
|
+
function ve(e, t) {
|
|
52
52
|
let n = e.instructionSet, r = n.instructions;
|
|
53
53
|
for (let e = 0; e < n.instructionSize; e++) {
|
|
54
54
|
let n = r[e];
|
|
@@ -56,8 +56,8 @@ function pe(e, t) {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
60
|
-
var
|
|
59
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/RenderGroupPipe.mjs
|
|
60
|
+
var ye = class {
|
|
61
61
|
constructor(e) {
|
|
62
62
|
this._renderer = e;
|
|
63
63
|
}
|
|
@@ -71,24 +71,28 @@ var A = class {
|
|
|
71
71
|
this._renderer = null;
|
|
72
72
|
}
|
|
73
73
|
_addRenderableDirect(e, t) {
|
|
74
|
-
this._renderer.renderPipes.batch.break(t), e._batchableRenderGroup &&= (
|
|
74
|
+
this._renderer.renderPipes.batch.break(t), e._batchableRenderGroup &&= (s.return(e._batchableRenderGroup), null), t.add(e);
|
|
75
75
|
}
|
|
76
76
|
_addRenderableCacheAsTexture(e, t) {
|
|
77
|
-
let n = e._batchableRenderGroup ??=
|
|
77
|
+
let n = e._batchableRenderGroup ??= s.get(_e);
|
|
78
78
|
n.renderable = e.root, n.transform = e.root.relativeGroupTransform, n.texture = e.texture, n.bounds = e._textureBounds, t.add(e), this._renderer.renderPipes.blendMode.pushBlendMode(e, e.root.groupBlendMode, t), this._renderer.renderPipes.batch.addToBatch(n, t), this._renderer.renderPipes.blendMode.popBlendMode(t);
|
|
79
79
|
}
|
|
80
80
|
_executeCacheAsTexture(e) {
|
|
81
81
|
if (e.textureNeedsUpdate) {
|
|
82
82
|
e.textureNeedsUpdate = !1;
|
|
83
|
-
let t = new
|
|
84
|
-
this._renderer.renderTarget.push(
|
|
83
|
+
let t = new y().translate(-e._textureBounds.x, -e._textureBounds.y);
|
|
84
|
+
this._renderer.renderTarget.push({
|
|
85
|
+
target: e.texture,
|
|
86
|
+
clear: !0,
|
|
87
|
+
frame: e.texture.frame
|
|
88
|
+
}), this._renderer.globalUniforms.push({
|
|
85
89
|
worldTransformMatrix: t,
|
|
86
90
|
worldColor: 4294967295,
|
|
87
91
|
offset: {
|
|
88
92
|
x: 0,
|
|
89
93
|
y: 0
|
|
90
94
|
}
|
|
91
|
-
}),
|
|
95
|
+
}), ve(e, this._renderer.renderPipes), this._renderer.renderTarget.finishRenderPass(), this._renderer.renderTarget.pop(), this._renderer.globalUniforms.pop();
|
|
92
96
|
}
|
|
93
97
|
e._batchableRenderGroup._batcher.updateElement(e._batchableRenderGroup), e._batchableRenderGroup._batcher.geometry.buffers[0].update();
|
|
94
98
|
}
|
|
@@ -96,20 +100,333 @@ var A = class {
|
|
|
96
100
|
this._renderer.globalUniforms.push({
|
|
97
101
|
worldTransformMatrix: e.inverseParentTextureTransform,
|
|
98
102
|
worldColor: e.worldColorAlpha
|
|
99
|
-
}),
|
|
103
|
+
}), ve(e, this._renderer.renderPipes), this._renderer.globalUniforms.pop();
|
|
100
104
|
}
|
|
101
105
|
};
|
|
102
|
-
|
|
106
|
+
ye.extension = {
|
|
103
107
|
type: [
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
108
|
+
g.WebGLPipes,
|
|
109
|
+
g.WebGPUPipes,
|
|
110
|
+
g.CanvasPipes
|
|
107
111
|
],
|
|
108
112
|
name: "renderGroup"
|
|
109
113
|
};
|
|
110
114
|
//#endregion
|
|
111
|
-
//#region node_modules/.pnpm/
|
|
112
|
-
var
|
|
115
|
+
//#region ../../node_modules/.pnpm/earcut@3.2.3/node_modules/earcut/src/earcut.js
|
|
116
|
+
var T = /* @__PURE__ */ new Set(), be = !1;
|
|
117
|
+
function xe(e, t, n = 2) {
|
|
118
|
+
let r = t && t.length, i = r ? t[0] * n : e.length;
|
|
119
|
+
T.size && T.clear();
|
|
120
|
+
let a = Se(e, 0, i, n, !0), o = [];
|
|
121
|
+
if (!a || a.next === a.prev) return o;
|
|
122
|
+
let s = 0, c = 0, l = 0;
|
|
123
|
+
if (r && (a = ke(e, t, a, n)), e.length > 80 * n) {
|
|
124
|
+
s = e[0], c = e[1];
|
|
125
|
+
let t = s, r = c;
|
|
126
|
+
for (let a = n; a < i; a += n) {
|
|
127
|
+
let n = e[a], i = e[a + 1];
|
|
128
|
+
n < s && (s = n), i < c && (c = i), n > t && (t = n), i > r && (r = i);
|
|
129
|
+
}
|
|
130
|
+
l = Math.max(t - s, r - c), l = l === 0 ? 0 : 32767 / l;
|
|
131
|
+
}
|
|
132
|
+
return Ce(a, o, s, c, l), o;
|
|
133
|
+
}
|
|
134
|
+
function Se(e, t, n, r, i) {
|
|
135
|
+
let a = null;
|
|
136
|
+
if (i === $e(e, t, n, r) > 0) for (let i = t; i < n; i += r) a = Ze(i / r | 0, e[i], e[i + 1], a);
|
|
137
|
+
else for (let i = n - r; i >= t; i -= r) a = Ze(i / r | 0, e[i], e[i + 1], a);
|
|
138
|
+
return a && L(a, a.next) && (B(a), a = a.next), a;
|
|
139
|
+
}
|
|
140
|
+
function E(e, t = e) {
|
|
141
|
+
let n = t === e, r = e, i;
|
|
142
|
+
do
|
|
143
|
+
i = !1, r !== r.next && (T.size === 0 || !T.has(r)) && (L(r, r.next) || I(r.prev, r, r.next) === 0) ? ((n || r === t) && (t = r.prev), be = !0, B(r), r = r.prev, i = !0) : (n || r !== t) && (r = r.next, i = !n);
|
|
144
|
+
while (i || r !== t);
|
|
145
|
+
return t;
|
|
146
|
+
}
|
|
147
|
+
function Ce(e, t, n, r, i) {
|
|
148
|
+
i && He(e, n, r, i);
|
|
149
|
+
let a = e, o = !1;
|
|
150
|
+
for (; e.prev !== e.next;) {
|
|
151
|
+
let s = e.prev, c = e.next;
|
|
152
|
+
if (I(s, e, c) < 0 && (i ? Te(e, n, r, i) : we(e))) {
|
|
153
|
+
t.push(s.i, e.i, c.i), B(e), e = c, a = c;
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
if (e = c, e === a) {
|
|
157
|
+
if (be = !1, e = E(e), be) {
|
|
158
|
+
a = e;
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
if (!o) {
|
|
162
|
+
e = Ee(e, t), a = e, o = !0;
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
De(e, t, n, r, i);
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
function we(e) {
|
|
171
|
+
let t = e.prev, n = e, r = e.next, i = t.x, a = n.x, o = r.x, s = t.y, c = n.y, l = r.y, u = Math.min(i, a, o), d = Math.min(s, c, l), f = Math.max(i, a, o), p = Math.max(s, c, l), m = r.next;
|
|
172
|
+
for (; m !== t;) {
|
|
173
|
+
if (m.x >= u && m.x <= f && m.y >= d && m.y <= p && !(i === m.x && s === m.y) && F(i, s, a, c, o, l, m.x, m.y) && I(m.prev, m, m.next) >= 0) return !1;
|
|
174
|
+
m = m.next;
|
|
175
|
+
}
|
|
176
|
+
return !0;
|
|
177
|
+
}
|
|
178
|
+
function Te(e, t, n, r) {
|
|
179
|
+
let i = e.prev, a = e, o = e.next, s = i.x, c = a.x, l = o.x, u = i.y, d = a.y, f = o.y, p = Math.min(s, c, l), m = Math.min(u, d, f), h = Math.max(s, c, l), g = Math.max(u, d, f), _ = We(p, m, t, n, r), v = We(h, g, t, n, r), y = e.prevZ;
|
|
180
|
+
for (; y && y.z >= _;) {
|
|
181
|
+
if (y.x >= p && y.x <= h && y.y >= m && y.y <= g && y !== o && !(s === y.x && u === y.y) && F(s, u, c, d, l, f, y.x, y.y) && I(y.prev, y, y.next) >= 0) return !1;
|
|
182
|
+
y = y.prevZ;
|
|
183
|
+
}
|
|
184
|
+
let b = e.nextZ;
|
|
185
|
+
for (; b && b.z <= v;) {
|
|
186
|
+
if (b.x >= p && b.x <= h && b.y >= m && b.y <= g && b !== o && !(s === b.x && u === b.y) && F(s, u, c, d, l, f, b.x, b.y) && I(b.prev, b, b.next) >= 0) return !1;
|
|
187
|
+
b = b.nextZ;
|
|
188
|
+
}
|
|
189
|
+
return !0;
|
|
190
|
+
}
|
|
191
|
+
function Ee(e, t) {
|
|
192
|
+
let n = e, r = !1;
|
|
193
|
+
do {
|
|
194
|
+
let i = n.prev, a = n.next.next;
|
|
195
|
+
qe(i, n, n.next, a, !1) && z(i, a) && z(a, i) && (t.push(i.i, n.i, a.i), B(n), B(n.next), n = e = a, r = !0), n = n.next;
|
|
196
|
+
} while (n !== e);
|
|
197
|
+
return r ? E(n) : n;
|
|
198
|
+
}
|
|
199
|
+
function De(e, t, n, r, i) {
|
|
200
|
+
let a = e;
|
|
201
|
+
do {
|
|
202
|
+
let e = a.next.next;
|
|
203
|
+
for (; e !== a.prev;) {
|
|
204
|
+
if (a.i !== e.i && Ke(a, e)) {
|
|
205
|
+
let o = Xe(a, e);
|
|
206
|
+
a = E(a, a.next), o = E(o, o.next), Ce(a, t, n, r, i), Ce(o, t, n, r, i);
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
e = e.next;
|
|
210
|
+
}
|
|
211
|
+
a = a.next;
|
|
212
|
+
} while (a !== e);
|
|
213
|
+
}
|
|
214
|
+
var Oe = !1;
|
|
215
|
+
function ke(e, t, n, r) {
|
|
216
|
+
let i = [];
|
|
217
|
+
for (let n = 0, a = t.length; n < a; n++) {
|
|
218
|
+
let o = Se(e, t[n] * r, n < a - 1 ? t[n + 1] * r : e.length, r, !1);
|
|
219
|
+
o === o.next && T.add(o), i.push(Ge(o));
|
|
220
|
+
}
|
|
221
|
+
i.sort(Ae), Fe(e.length / r, t.length), Ie(n, n), Oe = !0;
|
|
222
|
+
for (let e = 0; e < i.length; e++) n = je(i[e], n);
|
|
223
|
+
return Oe = !1, E(n);
|
|
224
|
+
}
|
|
225
|
+
function Ae(e, t) {
|
|
226
|
+
return e.x - t.x || e.y - t.y || (e.next.y - e.y) / (e.next.x - e.x) - (t.next.y - t.y) / (t.next.x - t.x);
|
|
227
|
+
}
|
|
228
|
+
function je(e, t) {
|
|
229
|
+
let n = Be(e, t);
|
|
230
|
+
if (!n) return t;
|
|
231
|
+
let r = Xe(n, e), i = r.next;
|
|
232
|
+
return Ie(n, i.next), E(r, r.next), E(n, n.next);
|
|
233
|
+
}
|
|
234
|
+
var Me = 16, D = new Float64Array(), O = 0, Ne = [], Pe = [];
|
|
235
|
+
function Fe(e, t) {
|
|
236
|
+
let n = Math.ceil((e + 2 * t) / Me) + t + 2;
|
|
237
|
+
D.length < n * 4 && (D = new Float64Array(n * 4)), O = 0;
|
|
238
|
+
}
|
|
239
|
+
function Ie(e, t) {
|
|
240
|
+
let n = e;
|
|
241
|
+
do {
|
|
242
|
+
let e = O++;
|
|
243
|
+
Ne[e] = n;
|
|
244
|
+
let r = Infinity, i = Infinity, a = -Infinity, o = -Infinity, s = 0;
|
|
245
|
+
do {
|
|
246
|
+
let t = n.next;
|
|
247
|
+
n.z = e, n.x < r && (r = n.x), n.x > a && (a = n.x), n.y < i && (i = n.y), n.y > o && (o = n.y), t.x < r && (r = t.x), t.x > a && (a = t.x), t.y < i && (i = t.y), t.y > o && (o = t.y), n = t;
|
|
248
|
+
} while (++s < Me && n !== t);
|
|
249
|
+
Pe[e] = n;
|
|
250
|
+
let c = e * 4;
|
|
251
|
+
D[c] = r, D[c + 1] = i, D[c + 2] = a, D[c + 3] = o;
|
|
252
|
+
} while (n !== t);
|
|
253
|
+
}
|
|
254
|
+
function Le(e, t) {
|
|
255
|
+
let n = e.z * 4;
|
|
256
|
+
t.x < D[n] && (D[n] = t.x), t.y < D[n + 1] && (D[n + 1] = t.y), t.x > D[n + 2] && (D[n + 2] = t.x), t.y > D[n + 3] && (D[n + 3] = t.y);
|
|
257
|
+
}
|
|
258
|
+
function Re(e) {
|
|
259
|
+
let t = Pe[e];
|
|
260
|
+
for (; t.prev.next !== t;) t = t.next;
|
|
261
|
+
return Pe[e] = t, t;
|
|
262
|
+
}
|
|
263
|
+
function ze(e) {
|
|
264
|
+
let t = Ne[e];
|
|
265
|
+
for (; t.prev.next !== t;) t = t.next;
|
|
266
|
+
return Ne[e] = t, t;
|
|
267
|
+
}
|
|
268
|
+
function Be(e, t) {
|
|
269
|
+
let n = t, r = e.x, i = e.y, a = -Infinity, o;
|
|
270
|
+
if (L(e, n)) return n;
|
|
271
|
+
for (let t = 0, s = 0; t < O; t++, s += 4) {
|
|
272
|
+
if (i < D[s + 1] || i > D[s + 3] || D[s] > r || D[s + 2] <= a) continue;
|
|
273
|
+
let c = Re(t);
|
|
274
|
+
n = ze(t);
|
|
275
|
+
do {
|
|
276
|
+
if (n.prev.next === n) {
|
|
277
|
+
if (L(e, n.next)) return n.next;
|
|
278
|
+
if (i <= n.y && i >= n.next.y && n.next.y !== n.y) {
|
|
279
|
+
let e = n.x + (i - n.y) * (n.next.x - n.x) / (n.next.y - n.y);
|
|
280
|
+
if (e <= r && e > a && (a = e, o = n.x < n.next.x ? n : n.next, e === r)) return o;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
n = n.next;
|
|
284
|
+
} while (n !== c);
|
|
285
|
+
}
|
|
286
|
+
if (!o) return null;
|
|
287
|
+
let s = o.x, c = o.y, l = Math.min(i, c), u = Math.max(i, c), d = Infinity;
|
|
288
|
+
for (let t = 0, f = 0; t < O; t++, f += 4) {
|
|
289
|
+
if (D[f + 2] < s || D[f] > r || D[f + 3] < l || D[f + 1] > u) continue;
|
|
290
|
+
let p = Re(t);
|
|
291
|
+
n = ze(t);
|
|
292
|
+
do {
|
|
293
|
+
if (n.prev.next === n && r >= n.x && n.x >= s && r !== n.x && F(i < c ? r : a, i, s, c, i < c ? a : r, i, n.x, n.y)) {
|
|
294
|
+
let t = Math.abs(i - n.y) / (r - n.x);
|
|
295
|
+
(z(n, e) || n.y === i && n.next.y === i && n.next.x > r) && (t < d || t === d && (n.x > o.x || n.x === o.x && Ve(o, n))) && (o = n, d = t);
|
|
296
|
+
}
|
|
297
|
+
n = n.next;
|
|
298
|
+
} while (n !== p);
|
|
299
|
+
}
|
|
300
|
+
return o;
|
|
301
|
+
}
|
|
302
|
+
function Ve(e, t) {
|
|
303
|
+
return I(e.prev, e, t.prev) < 0 && I(t.next, e, e.next) < 0;
|
|
304
|
+
}
|
|
305
|
+
var k = [], A = [], j = new Uint32Array(), M = new Uint32Array(), N = new Uint32Array(256);
|
|
306
|
+
function He(e, t, n, r) {
|
|
307
|
+
let i = e, a = 0;
|
|
308
|
+
do
|
|
309
|
+
i.z = We(i.x, i.y, t, n, r), k[a++] = i, i = i.next;
|
|
310
|
+
while (i !== e);
|
|
311
|
+
Ue(a);
|
|
312
|
+
let o = null;
|
|
313
|
+
for (let e = 0; e < a; e++) {
|
|
314
|
+
let t = k[e];
|
|
315
|
+
t.prevZ = o, o && (o.nextZ = t), o = t;
|
|
316
|
+
}
|
|
317
|
+
o.nextZ = null;
|
|
318
|
+
}
|
|
319
|
+
function Ue(e) {
|
|
320
|
+
if (e <= 32) {
|
|
321
|
+
for (let t = 1; t < e; t++) {
|
|
322
|
+
let e = k[t], n = e.z, r = t - 1;
|
|
323
|
+
for (; r >= 0 && k[r].z > n;) k[r + 1] = k[r], r--;
|
|
324
|
+
k[r + 1] = e;
|
|
325
|
+
}
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
j.length < e && (j = new Uint32Array(e), M = new Uint32Array(e), A = Array(e));
|
|
329
|
+
for (let t = 0; t < e; t++) j[t] = k[t].z;
|
|
330
|
+
P(e, k, j, A, M, 0), P(e, A, M, k, j, 8), P(e, k, j, A, M, 16), P(e, A, M, k, j, 24);
|
|
331
|
+
}
|
|
332
|
+
function P(e, t, n, r, i, a) {
|
|
333
|
+
N.fill(0);
|
|
334
|
+
for (let t = 0; t < e; t++) N[n[t] >>> a & 255]++;
|
|
335
|
+
let o = 0;
|
|
336
|
+
for (let e = 0; e < 256; e++) {
|
|
337
|
+
let t = N[e];
|
|
338
|
+
N[e] = o, o += t;
|
|
339
|
+
}
|
|
340
|
+
for (let o = 0; o < e; o++) {
|
|
341
|
+
let e = n[o], s = N[e >>> a & 255]++;
|
|
342
|
+
r[s] = t[o], i[s] = e;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
function We(e, t, n, r, i) {
|
|
346
|
+
return e = (e - n) * i | 0, t = (t - r) * i | 0, e = (e | e << 8) & 16711935, e = (e | e << 4) & 252645135, e = (e | e << 2) & 858993459, e = (e | e << 1) & 1431655765, t = (t | t << 8) & 16711935, t = (t | t << 4) & 252645135, t = (t | t << 2) & 858993459, t = (t | t << 1) & 1431655765, e | t << 1;
|
|
347
|
+
}
|
|
348
|
+
function Ge(e) {
|
|
349
|
+
let t = e, n = e;
|
|
350
|
+
do
|
|
351
|
+
(t.x < n.x || t.x === n.x && t.y < n.y) && (n = t), t = t.next;
|
|
352
|
+
while (t !== e);
|
|
353
|
+
return n;
|
|
354
|
+
}
|
|
355
|
+
function F(e, t, n, r, i, a, o, s) {
|
|
356
|
+
return (i - o) * (t - s) >= (e - o) * (a - s) && (e - o) * (r - s) >= (n - o) * (t - s) && (n - o) * (a - s) >= (i - o) * (r - s);
|
|
357
|
+
}
|
|
358
|
+
function Ke(e, t) {
|
|
359
|
+
let n = L(e, t) && I(e.prev, e, e.next) > 0 && I(t.prev, t, t.next) > 0;
|
|
360
|
+
return e.next.i !== t.i && (n || z(e, t) && z(t, e) && (I(e.prev, e, t.prev) !== 0 || I(e, t.prev, t) !== 0)) && !Je(e, t) && (n || Ye(e, t));
|
|
361
|
+
}
|
|
362
|
+
function I(e, t, n) {
|
|
363
|
+
return (t.y - e.y) * (n.x - t.x) - (t.x - e.x) * (n.y - t.y);
|
|
364
|
+
}
|
|
365
|
+
function L(e, t) {
|
|
366
|
+
return e.x === t.x && e.y === t.y;
|
|
367
|
+
}
|
|
368
|
+
function qe(e, t, n, r, i = !0) {
|
|
369
|
+
let a = I(e, t, n), o = I(e, t, r), s = I(n, r, e), c = I(n, r, t);
|
|
370
|
+
return (a > 0 && o < 0 || a < 0 && o > 0) && (s > 0 && c < 0 || s < 0 && c > 0) ? !0 : i ? !!(a === 0 && R(e, n, t) || o === 0 && R(e, r, t) || s === 0 && R(n, e, r) || c === 0 && R(n, t, r)) : !1;
|
|
371
|
+
}
|
|
372
|
+
function R(e, t, n) {
|
|
373
|
+
return t.x <= Math.max(e.x, n.x) && t.x >= Math.min(e.x, n.x) && t.y <= Math.max(e.y, n.y) && t.y >= Math.min(e.y, n.y);
|
|
374
|
+
}
|
|
375
|
+
function Je(e, t) {
|
|
376
|
+
let n = Math.min(e.x, t.x), r = Math.max(e.x, t.x), i = Math.min(e.y, t.y), a = Math.max(e.y, t.y), o = e;
|
|
377
|
+
do {
|
|
378
|
+
let s = o.next;
|
|
379
|
+
if (o.x > r && s.x > r || o.x < n && s.x < n || o.y > a && s.y > a || o.y < i && s.y < i) {
|
|
380
|
+
o = s;
|
|
381
|
+
continue;
|
|
382
|
+
}
|
|
383
|
+
if (o.i !== e.i && s.i !== e.i && o.i !== t.i && s.i !== t.i && qe(o, s, e, t)) return !0;
|
|
384
|
+
o = s;
|
|
385
|
+
} while (o !== e);
|
|
386
|
+
return !1;
|
|
387
|
+
}
|
|
388
|
+
function z(e, t) {
|
|
389
|
+
return I(e.prev, e, e.next) < 0 ? I(e, t, e.next) >= 0 && I(e, e.prev, t) >= 0 : I(e, t, e.prev) < 0 || I(e, e.next, t) < 0;
|
|
390
|
+
}
|
|
391
|
+
function Ye(e, t) {
|
|
392
|
+
let n = e, r = !1, i = (e.x + t.x) / 2, a = (e.y + t.y) / 2;
|
|
393
|
+
do {
|
|
394
|
+
let e = n.next;
|
|
395
|
+
n.y > a != e.y > a && i < (e.x - n.x) * (a - n.y) / (e.y - n.y) + n.x && (r = !r), n = e;
|
|
396
|
+
} while (n !== e);
|
|
397
|
+
return r;
|
|
398
|
+
}
|
|
399
|
+
function Xe(e, t) {
|
|
400
|
+
let n = Qe(e.i, e.x, e.y), r = Qe(t.i, t.x, t.y), i = e.next, a = t.prev;
|
|
401
|
+
return e.next = t, t.prev = e, n.next = i, i.prev = n, r.next = n, n.prev = r, a.next = r, r.prev = a, r;
|
|
402
|
+
}
|
|
403
|
+
function Ze(e, t, n, r) {
|
|
404
|
+
let i = Qe(e, t, n);
|
|
405
|
+
return r ? (i.next = r.next, i.prev = r, r.next.prev = i, r.next = i) : (i.prev = i, i.next = i), i;
|
|
406
|
+
}
|
|
407
|
+
function B(e) {
|
|
408
|
+
e.next.prev = e.prev, e.prev.next = e.next, e.prevZ && (e.prevZ.nextZ = e.nextZ), e.nextZ && (e.nextZ.prevZ = e.prevZ), Oe && Le(e.prev, e.next);
|
|
409
|
+
}
|
|
410
|
+
function Qe(e, t, n) {
|
|
411
|
+
return {
|
|
412
|
+
i: e,
|
|
413
|
+
x: t,
|
|
414
|
+
y: n,
|
|
415
|
+
prev: null,
|
|
416
|
+
next: null,
|
|
417
|
+
z: 0,
|
|
418
|
+
prevZ: null,
|
|
419
|
+
nextZ: null
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
function $e(e, t, n, r) {
|
|
423
|
+
let i = 0;
|
|
424
|
+
for (let a = t, o = n - r; a < n; a += r) i += (e[o] - e[a]) * (e[a + 1] + e[o + 1]), o = a;
|
|
425
|
+
return i;
|
|
426
|
+
}
|
|
427
|
+
//#endregion
|
|
428
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/utils.mjs
|
|
429
|
+
var et = xe.default || xe, tt = class {
|
|
113
430
|
constructor(e) {
|
|
114
431
|
this._renderer = e;
|
|
115
432
|
}
|
|
@@ -132,26 +449,26 @@ var j = class {
|
|
|
132
449
|
return e._gpuData[this._renderer.uid] || this._initGPUSprite(e);
|
|
133
450
|
}
|
|
134
451
|
_initGPUSprite(e) {
|
|
135
|
-
let t = new
|
|
452
|
+
let t = new _e();
|
|
136
453
|
return t.renderable = e, t.transform = e.groupTransform, t.texture = e._texture, t.bounds = e.visualBounds, t.roundPixels = this._renderer._roundPixels | e._roundPixels, e._gpuData[this._renderer.uid] = t, t;
|
|
137
454
|
}
|
|
138
455
|
destroy() {
|
|
139
456
|
this._renderer = null;
|
|
140
457
|
}
|
|
141
458
|
};
|
|
142
|
-
|
|
459
|
+
tt.extension = {
|
|
143
460
|
type: [
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
461
|
+
g.WebGLPipes,
|
|
462
|
+
g.WebGPUPipes,
|
|
463
|
+
g.CanvasPipes
|
|
147
464
|
],
|
|
148
465
|
name: "sprite"
|
|
149
466
|
};
|
|
150
467
|
//#endregion
|
|
151
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
152
|
-
var
|
|
468
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/data/ViewableBuffer.mjs
|
|
469
|
+
var nt = class {
|
|
153
470
|
constructor(e) {
|
|
154
|
-
|
|
471
|
+
typeof e == "number" ? this.rawBinaryData = new ArrayBuffer(e) : e instanceof Uint8Array ? this.rawBinaryData = e.buffer : this.rawBinaryData = e, this.uint32View = new Uint32Array(this.rawBinaryData), this.float32View = new Float32Array(this.rawBinaryData), this.size = this.rawBinaryData.byteLength;
|
|
155
472
|
}
|
|
156
473
|
get int8View() {
|
|
157
474
|
return this._int8View ||= new Int8Array(this.rawBinaryData), this._int8View;
|
|
@@ -191,8 +508,8 @@ var me = class {
|
|
|
191
508
|
}
|
|
192
509
|
};
|
|
193
510
|
//#endregion
|
|
194
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
195
|
-
function
|
|
511
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/buffer/utils/fastCopy.mjs
|
|
512
|
+
function rt(e, t, n, r) {
|
|
196
513
|
if (n ??= 0, r ??= Math.min(e.byteLength - n, t.byteLength), !(n & 7) && !(r & 7)) {
|
|
197
514
|
let i = r / 8;
|
|
198
515
|
new Float64Array(t, 0, i).set(new Float64Array(e, n, i));
|
|
@@ -202,20 +519,20 @@ function M(e, t, n, r) {
|
|
|
202
519
|
} else new Uint8Array(t).set(new Uint8Array(e, n, r));
|
|
203
520
|
}
|
|
204
521
|
//#endregion
|
|
205
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
206
|
-
var
|
|
522
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/state/const.mjs
|
|
523
|
+
var it = {
|
|
207
524
|
normal: "normal-npm",
|
|
208
525
|
add: "add-npm",
|
|
209
526
|
screen: "screen-npm"
|
|
210
|
-
},
|
|
527
|
+
}, V = /* @__PURE__ */ ((e) => (e[e.DISABLED = 0] = "DISABLED", e[e.RENDERING_MASK_ADD = 1] = "RENDERING_MASK_ADD", e[e.MASK_ACTIVE = 2] = "MASK_ACTIVE", e[e.INVERSE_MASK_ACTIVE = 3] = "INVERSE_MASK_ACTIVE", e[e.RENDERING_MASK_REMOVE = 4] = "RENDERING_MASK_REMOVE", e[e.NONE = 5] = "NONE", e))(V || {});
|
|
211
528
|
//#endregion
|
|
212
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
213
|
-
function
|
|
214
|
-
return t.alphaMode === "no-premultiply-alpha" &&
|
|
529
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/state/getAdjustedBlendModeBlend.mjs
|
|
530
|
+
function at(e, t) {
|
|
531
|
+
return t.alphaMode === "no-premultiply-alpha" && it[e] || e;
|
|
215
532
|
}
|
|
216
533
|
//#endregion
|
|
217
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
218
|
-
var
|
|
534
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/batcher/gl/utils/checkMaxIfStatementsInShader.mjs
|
|
535
|
+
var ot = [
|
|
219
536
|
"precision mediump float;",
|
|
220
537
|
"void main(void){",
|
|
221
538
|
"float test = 0.1;",
|
|
@@ -223,17 +540,17 @@ var _e = [
|
|
|
223
540
|
"gl_FragColor = vec4(0.0);",
|
|
224
541
|
"}"
|
|
225
542
|
].join("\n");
|
|
226
|
-
function
|
|
543
|
+
function st(e) {
|
|
227
544
|
let t = "";
|
|
228
545
|
for (let n = 0; n < e; ++n) n > 0 && (t += "\nelse "), n < e - 1 && (t += `if(test == ${n}.0){}`);
|
|
229
546
|
return t;
|
|
230
547
|
}
|
|
231
|
-
function
|
|
548
|
+
function ct(e, t) {
|
|
232
549
|
if (e === 0) throw Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");
|
|
233
550
|
let n = t.createShader(t.FRAGMENT_SHADER);
|
|
234
551
|
try {
|
|
235
552
|
for (;;) {
|
|
236
|
-
let r =
|
|
553
|
+
let r = ot.replace(/%forloop%/gi, st(e));
|
|
237
554
|
if (t.shaderSource(n, r), t.compileShader(n), !t.getShaderParameter(n, t.COMPILE_STATUS)) e = e / 2 | 0;
|
|
238
555
|
else break;
|
|
239
556
|
}
|
|
@@ -243,16 +560,16 @@ function ye(e, t) {
|
|
|
243
560
|
return e;
|
|
244
561
|
}
|
|
245
562
|
//#endregion
|
|
246
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
247
|
-
var
|
|
248
|
-
function
|
|
249
|
-
if (
|
|
250
|
-
let e =
|
|
251
|
-
return
|
|
563
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/batcher/gl/utils/maxRecommendedTextures.mjs
|
|
564
|
+
var H = null;
|
|
565
|
+
function lt() {
|
|
566
|
+
if (H) return H;
|
|
567
|
+
let e = ee();
|
|
568
|
+
return H = e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS), H = ct(H, e), e.getExtension("WEBGL_lose_context")?.loseContext(), H;
|
|
252
569
|
}
|
|
253
570
|
//#endregion
|
|
254
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
255
|
-
var
|
|
571
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/batcher/shared/BatchTextureArray.mjs
|
|
572
|
+
var ut = class {
|
|
256
573
|
constructor() {
|
|
257
574
|
this.ids = /* @__PURE__ */ Object.create(null), this.textures = [], this.count = 0;
|
|
258
575
|
}
|
|
@@ -263,36 +580,36 @@ var xe = class {
|
|
|
263
580
|
}
|
|
264
581
|
this.count = 0;
|
|
265
582
|
}
|
|
266
|
-
},
|
|
583
|
+
}, dt = class {
|
|
267
584
|
constructor() {
|
|
268
|
-
this.renderPipeId = "batch", this.action = "startBatch", this.start = 0, this.size = 0, this.textures = new
|
|
585
|
+
this.renderPipeId = "batch", this.action = "startBatch", this.start = 0, this.size = 0, this.textures = new ut(), this.blendMode = "normal", this.topology = "triangle-strip", this.canBundle = !0;
|
|
269
586
|
}
|
|
270
587
|
destroy() {
|
|
271
588
|
this.textures = null, this.gpuBindGroup = null, this.bindGroup = null, this.batcher = null, this.elements = null;
|
|
272
589
|
}
|
|
273
|
-
},
|
|
274
|
-
|
|
275
|
-
if (
|
|
276
|
-
|
|
590
|
+
}, U = [], W = 0;
|
|
591
|
+
se.register({ clear: () => {
|
|
592
|
+
if (U.length > 0) for (let e of U) e && e.destroy();
|
|
593
|
+
U.length = 0, W = 0;
|
|
277
594
|
} });
|
|
278
|
-
function
|
|
279
|
-
return
|
|
595
|
+
function ft() {
|
|
596
|
+
return W > 0 ? U[--W] : new dt();
|
|
280
597
|
}
|
|
281
|
-
function
|
|
282
|
-
e.elements = null,
|
|
598
|
+
function pt(e) {
|
|
599
|
+
e.elements = null, U[W++] = e;
|
|
283
600
|
}
|
|
284
|
-
var
|
|
601
|
+
var G = 0, mt = class e {
|
|
285
602
|
constructor(t) {
|
|
286
|
-
this.uid =
|
|
603
|
+
this.uid = l("batcher"), this.dirty = !0, this.batchIndex = 0, this.batches = [], this._elements = [], t = {
|
|
287
604
|
...e.defaultOptions,
|
|
288
605
|
...t
|
|
289
|
-
}, t.maxTextures || (
|
|
606
|
+
}, t.maxTextures || (m("v8.8.0", "maxTextures is a required option for Batcher now, please pass it in the options"), t.maxTextures = lt());
|
|
290
607
|
let { maxTextures: n, attributesInitialSize: r, indicesInitialSize: i } = t;
|
|
291
|
-
this.attributeBuffer = new
|
|
608
|
+
this.attributeBuffer = new nt(r * 4), this.indexBuffer = new Uint16Array(i), this.maxTextures = n;
|
|
292
609
|
}
|
|
293
610
|
begin() {
|
|
294
611
|
this.elementSize = 0, this.elementStart = 0, this.indexSize = 0, this.attributeSize = 0;
|
|
295
|
-
for (let e = 0; e < this.batchIndex; e++)
|
|
612
|
+
for (let e = 0; e < this.batchIndex; e++) pt(this.batches[e]);
|
|
296
613
|
this.batchIndex = 0, this._batchIndexStart = 0, this._batchIndexSize = 0, this.dirty = !0;
|
|
297
614
|
}
|
|
298
615
|
add(e) {
|
|
@@ -310,25 +627,25 @@ var L = 0, Te = class e {
|
|
|
310
627
|
break(e) {
|
|
311
628
|
let t = this._elements;
|
|
312
629
|
if (!t[this.elementStart]) return;
|
|
313
|
-
let n =
|
|
630
|
+
let n = ft(), r = n.textures;
|
|
314
631
|
r.clear();
|
|
315
|
-
let i = t[this.elementStart], a =
|
|
632
|
+
let i = t[this.elementStart], a = at(i.blendMode, i.texture._source), o = i.topology;
|
|
316
633
|
this.attributeSize * 4 > this.attributeBuffer.size && this._resizeAttributeBuffer(this.attributeSize * 4), this.indexSize > this.indexBuffer.length && this._resizeIndexBuffer(this.indexSize);
|
|
317
634
|
let s = this.attributeBuffer.float32View, c = this.attributeBuffer.uint32View, l = this.indexBuffer, u = this._batchIndexSize, d = this._batchIndexStart, f = "startBatch", p = [], m = this.maxTextures;
|
|
318
635
|
for (let i = this.elementStart; i < this.elementSize; ++i) {
|
|
319
636
|
let h = t[i];
|
|
320
637
|
t[i] = null;
|
|
321
|
-
let g = h.texture._source, _ =
|
|
322
|
-
if (g._batchTick ===
|
|
638
|
+
let g = h.texture._source, _ = at(h.blendMode, g), v = a !== _ || o !== h.topology;
|
|
639
|
+
if (g._batchTick === G && !v) {
|
|
323
640
|
h._textureId = g._textureBindLocation, u += h.indexSize, h.packAsQuad ? (this.packQuadAttributes(h, s, c, h._attributeStart, h._textureId), this.packQuadIndex(l, h._indexStart, h._attributeStart / this.vertexSize)) : (this.packAttributes(h, s, c, h._attributeStart, h._textureId), this.packIndex(h, l, h._indexStart, h._attributeStart / this.vertexSize)), h._batch = n, p.push(h);
|
|
324
641
|
continue;
|
|
325
642
|
}
|
|
326
|
-
g._batchTick =
|
|
643
|
+
g._batchTick = G, (r.count >= m || v) && (this._finishBatch(n, d, u - d, r, a, o, e, f, p), f = "renderBatch", d = u, a = _, o = h.topology, n = ft(), r = n.textures, r.clear(), p = [], ++G), h._textureId = g._textureBindLocation = r.count, r.ids[g.uid] = r.count, r.textures[r.count++] = g, h._batch = n, p.push(h), u += h.indexSize, h.packAsQuad ? (this.packQuadAttributes(h, s, c, h._attributeStart, h._textureId), this.packQuadIndex(l, h._indexStart, h._attributeStart / this.vertexSize)) : (this.packAttributes(h, s, c, h._attributeStart, h._textureId), this.packIndex(h, l, h._indexStart, h._attributeStart / this.vertexSize));
|
|
327
644
|
}
|
|
328
|
-
r.count > 0 && (this._finishBatch(n, d, u - d, r, a, o, e, f, p), d = u, ++
|
|
645
|
+
r.count > 0 && (this._finishBatch(n, d, u - d, r, a, o, e, f, p), d = u, ++G), this.elementStart = this.elementSize, this._batchIndexStart = d, this._batchIndexSize = u;
|
|
329
646
|
}
|
|
330
647
|
_finishBatch(e, t, n, r, i, a, o, s, c) {
|
|
331
|
-
e.gpuBindGroup = null, e.bindGroup = null, e.action = s, e.batcher = this, e.textures = r, e.blendMode = i, e.topology = a, e.start = t, e.size = n, e.elements = c, ++
|
|
648
|
+
e.gpuBindGroup = null, e.bindGroup = null, e.action = s, e.batcher = this, e.textures = r, e.blendMode = i, e.topology = a, e.start = t, e.size = n, e.elements = c, ++G, this.batches[this.batchIndex++] = e, o.add(e);
|
|
332
649
|
}
|
|
333
650
|
finish(e) {
|
|
334
651
|
this.break(e);
|
|
@@ -340,15 +657,15 @@ var L = 0, Te = class e {
|
|
|
340
657
|
e <= this.indexBuffer.length || this._resizeIndexBuffer(e);
|
|
341
658
|
}
|
|
342
659
|
_resizeAttributeBuffer(e) {
|
|
343
|
-
let t = new
|
|
344
|
-
|
|
660
|
+
let t = new nt(Math.max(e, this.attributeBuffer.size * 2));
|
|
661
|
+
rt(this.attributeBuffer.rawBinaryData, t.rawBinaryData), this.attributeBuffer = t;
|
|
345
662
|
}
|
|
346
663
|
_resizeIndexBuffer(e) {
|
|
347
664
|
let t = this.indexBuffer, n = Math.max(e, t.length * 1.5);
|
|
348
665
|
n += n % 2;
|
|
349
666
|
let r = n > 65535 ? new Uint32Array(n) : new Uint16Array(n);
|
|
350
667
|
if (r.BYTES_PER_ELEMENT !== t.BYTES_PER_ELEMENT) for (let e = 0; e < t.length; e++) r[e] = t[e];
|
|
351
|
-
else
|
|
668
|
+
else rt(t.buffer, r.buffer);
|
|
352
669
|
this.indexBuffer = r;
|
|
353
670
|
}
|
|
354
671
|
packQuadIndex(e, t, n) {
|
|
@@ -360,29 +677,29 @@ var L = 0, Te = class e {
|
|
|
360
677
|
}
|
|
361
678
|
destroy(e = {}) {
|
|
362
679
|
if (this.batches !== null) {
|
|
363
|
-
for (let e = 0; e < this.batchIndex; e++)
|
|
680
|
+
for (let e = 0; e < this.batchIndex; e++) pt(this.batches[e]);
|
|
364
681
|
this.batches = null, this.geometry.destroy(!0), this.geometry = null, e.shader && (this.shader?.destroy(), this.shader = null);
|
|
365
682
|
for (let e = 0; e < this._elements.length; e++) this._elements[e] && (this._elements[e]._batch = null);
|
|
366
683
|
this._elements = null, this.indexBuffer = null, this.attributeBuffer.destroy(), this.attributeBuffer = null;
|
|
367
684
|
}
|
|
368
685
|
}
|
|
369
686
|
};
|
|
370
|
-
|
|
687
|
+
mt.defaultOptions = {
|
|
371
688
|
maxTextures: null,
|
|
372
689
|
attributesInitialSize: 4,
|
|
373
690
|
indicesInitialSize: 6
|
|
374
691
|
};
|
|
375
|
-
var
|
|
692
|
+
var ht = mt, gt = new Float32Array(1), _t = new Uint32Array(1), vt = class extends le {
|
|
376
693
|
constructor() {
|
|
377
|
-
let e = new
|
|
378
|
-
data:
|
|
694
|
+
let e = new ae({
|
|
695
|
+
data: gt,
|
|
379
696
|
label: "attribute-batch-buffer",
|
|
380
|
-
usage:
|
|
697
|
+
usage: S.VERTEX | S.COPY_DST,
|
|
381
698
|
shrinkToFit: !1
|
|
382
|
-
}), t = new
|
|
383
|
-
data:
|
|
699
|
+
}), t = new ae({
|
|
700
|
+
data: _t,
|
|
384
701
|
label: "index-batch-buffer",
|
|
385
|
-
usage:
|
|
702
|
+
usage: S.INDEX | S.COPY_DST,
|
|
386
703
|
shrinkToFit: !1
|
|
387
704
|
});
|
|
388
705
|
super({
|
|
@@ -417,35 +734,35 @@ var Ee = Te, De = /* @__PURE__ */ new Float32Array(1), Oe = /* @__PURE__ */ new
|
|
|
417
734
|
}
|
|
418
735
|
};
|
|
419
736
|
//#endregion
|
|
420
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
421
|
-
function
|
|
737
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/addBits.mjs
|
|
738
|
+
function yt(e, t, n) {
|
|
422
739
|
if (e) for (let r in e) {
|
|
423
740
|
let i = t[r.toLocaleLowerCase()];
|
|
424
741
|
if (i) {
|
|
425
742
|
let t = e[r];
|
|
426
743
|
r === "header" && (t = t.replace(/@in\s+[^;]+;\s*/g, "").replace(/@out\s+[^;]+;\s*/g, "")), n && i.push(`//----${n}----//`), i.push(t);
|
|
427
|
-
} else
|
|
744
|
+
} else o(`${r} placement hook does not exist in shader`);
|
|
428
745
|
}
|
|
429
746
|
}
|
|
430
747
|
//#endregion
|
|
431
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
432
|
-
var
|
|
433
|
-
function
|
|
748
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileHooks.mjs
|
|
749
|
+
var bt = /\{\{(.*?)\}\}/g;
|
|
750
|
+
function xt(e) {
|
|
434
751
|
let t = {};
|
|
435
|
-
return (e.match(
|
|
752
|
+
return (e.match(bt)?.map((e) => e.replace(/[{()}]/g, "")) ?? []).forEach((e) => {
|
|
436
753
|
t[e] = [];
|
|
437
754
|
}), t;
|
|
438
755
|
}
|
|
439
756
|
//#endregion
|
|
440
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
441
|
-
function
|
|
757
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileInputs.mjs
|
|
758
|
+
function St(e, t) {
|
|
442
759
|
let n, r = /@in\s+([^;]+);/g;
|
|
443
760
|
for (; (n = r.exec(e)) !== null;) t.push(n[1]);
|
|
444
761
|
}
|
|
445
|
-
function
|
|
762
|
+
function Ct(e, t, n = !1) {
|
|
446
763
|
let r = [];
|
|
447
|
-
|
|
448
|
-
e.header &&
|
|
764
|
+
St(t, r), e.forEach((e) => {
|
|
765
|
+
e.header && St(e.header, r);
|
|
449
766
|
});
|
|
450
767
|
let i = r;
|
|
451
768
|
n && i.sort();
|
|
@@ -455,25 +772,25 @@ ${a}
|
|
|
455
772
|
`), o;
|
|
456
773
|
}
|
|
457
774
|
//#endregion
|
|
458
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
459
|
-
function
|
|
775
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileOutputs.mjs
|
|
776
|
+
function wt(e, t) {
|
|
460
777
|
let n, r = /@out\s+([^;]+);/g;
|
|
461
778
|
for (; (n = r.exec(e)) !== null;) t.push(n[1]);
|
|
462
779
|
}
|
|
463
|
-
function
|
|
780
|
+
function Tt(e) {
|
|
464
781
|
let t = /\b(\w+)\s*:/g.exec(e);
|
|
465
782
|
return t ? t[1] : "";
|
|
466
783
|
}
|
|
467
|
-
function
|
|
784
|
+
function Et(e) {
|
|
468
785
|
return e.replace(/@.*?\s+/g, "");
|
|
469
786
|
}
|
|
470
|
-
function
|
|
787
|
+
function Dt(e, t) {
|
|
471
788
|
let n = [];
|
|
472
|
-
|
|
473
|
-
e.header &&
|
|
789
|
+
wt(t, n), e.forEach((e) => {
|
|
790
|
+
e.header && wt(e.header, n);
|
|
474
791
|
});
|
|
475
|
-
let r = 0, i = n.sort().map((e) => e.indexOf("builtin") > -1 ? e : `@location(${r++}) ${e}`).join(",\n"), a = n.sort().map((e) => ` var ${
|
|
476
|
-
${n.sort().map((e) => ` ${
|
|
792
|
+
let r = 0, i = n.sort().map((e) => e.indexOf("builtin") > -1 ? e : `@location(${r++}) ${e}`).join(",\n"), a = n.sort().map((e) => ` var ${Et(e)};`).join("\n"), o = `return VSOutput(
|
|
793
|
+
${n.sort().map((e) => ` ${Tt(e)}`).join(",\n")});`, s = t.replace(/@out\s+[^;]+;\s*/g, "");
|
|
477
794
|
return s = s.replace("{{struct}}", `
|
|
478
795
|
${i}
|
|
479
796
|
`), s = s.replace("{{start}}", `
|
|
@@ -483,8 +800,8 @@ ${o}
|
|
|
483
800
|
`), s;
|
|
484
801
|
}
|
|
485
802
|
//#endregion
|
|
486
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
487
|
-
function
|
|
803
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/injectBits.mjs
|
|
804
|
+
function Ot(e, t) {
|
|
488
805
|
let n = e;
|
|
489
806
|
for (let e in t) {
|
|
490
807
|
let r = t[e];
|
|
@@ -495,59 +812,59 @@ ${r.join("\n")}
|
|
|
495
812
|
return n;
|
|
496
813
|
}
|
|
497
814
|
//#endregion
|
|
498
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
499
|
-
var
|
|
500
|
-
function
|
|
501
|
-
let n =
|
|
502
|
-
if (
|
|
503
|
-
let { vertex: r, fragment: i } =
|
|
504
|
-
return
|
|
505
|
-
}
|
|
506
|
-
function
|
|
507
|
-
let n =
|
|
508
|
-
return
|
|
509
|
-
}
|
|
510
|
-
function
|
|
511
|
-
let n = t.map((e) => e.vertex).filter((e) => !!e), r = t.map((e) => e.fragment).filter((e) => !!e), i =
|
|
512
|
-
i =
|
|
513
|
-
let a =
|
|
815
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/compileHighShader.mjs
|
|
816
|
+
var K = /* @__PURE__ */ Object.create(null), kt = /* @__PURE__ */ new Map(), At = 0;
|
|
817
|
+
function jt({ template: e, bits: t }) {
|
|
818
|
+
let n = Pt(e, t);
|
|
819
|
+
if (K[n]) return K[n];
|
|
820
|
+
let { vertex: r, fragment: i } = Nt(e, t);
|
|
821
|
+
return K[n] = Ft(r, i, t), K[n];
|
|
822
|
+
}
|
|
823
|
+
function Mt({ template: e, bits: t }) {
|
|
824
|
+
let n = Pt(e, t);
|
|
825
|
+
return K[n] || (K[n] = Ft(e.vertex, e.fragment, t)), K[n];
|
|
826
|
+
}
|
|
827
|
+
function Nt(e, t) {
|
|
828
|
+
let n = t.map((e) => e.vertex).filter((e) => !!e), r = t.map((e) => e.fragment).filter((e) => !!e), i = Ct(n, e.vertex, !0);
|
|
829
|
+
i = Dt(n, i);
|
|
830
|
+
let a = Ct(r, e.fragment, !0);
|
|
514
831
|
return {
|
|
515
832
|
vertex: i,
|
|
516
833
|
fragment: a
|
|
517
834
|
};
|
|
518
835
|
}
|
|
519
|
-
function
|
|
520
|
-
return t.map((e) => (
|
|
836
|
+
function Pt(e, t) {
|
|
837
|
+
return t.map((e) => (kt.has(e) || kt.set(e, At++), kt.get(e))).sort((e, t) => e - t).join("-") + e.vertex + e.fragment;
|
|
521
838
|
}
|
|
522
|
-
function
|
|
523
|
-
let r =
|
|
839
|
+
function Ft(e, t, n) {
|
|
840
|
+
let r = xt(e), i = xt(t);
|
|
524
841
|
return n.forEach((e) => {
|
|
525
|
-
|
|
842
|
+
yt(e.vertex, r, e.name), yt(e.fragment, i, e.name);
|
|
526
843
|
}), {
|
|
527
|
-
vertex:
|
|
528
|
-
fragment:
|
|
844
|
+
vertex: Ot(e, r),
|
|
845
|
+
fragment: Ot(t, i)
|
|
529
846
|
};
|
|
530
847
|
}
|
|
531
848
|
//#endregion
|
|
532
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
533
|
-
var
|
|
849
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/defaultProgramTemplate.mjs
|
|
850
|
+
var It = "\n @in aPosition: vec2<f32>;\n @in aUV: vec2<f32>;\n\n @out @builtin(position) vPosition: vec4<f32>;\n @out vUV : vec2<f32>;\n @out vColor : vec4<f32>;\n\n {{header}}\n\n struct VSOutput {\n {{struct}}\n };\n\n @vertex\n fn main( {{in}} ) -> VSOutput {\n\n var worldTransformMatrix = globalUniforms.uWorldTransformMatrix;\n var modelMatrix = mat3x3<f32>(\n 1.0, 0.0, 0.0,\n 0.0, 1.0, 0.0,\n 0.0, 0.0, 1.0\n );\n var position = aPosition;\n var uv = aUV;\n\n {{start}}\n\n vColor = vec4<f32>(1., 1., 1., 1.);\n\n {{main}}\n\n vUV = uv;\n\n var modelViewProjectionMatrix = globalUniforms.uProjectionMatrix * worldTransformMatrix * modelMatrix;\n\n vPosition = vec4<f32>((modelViewProjectionMatrix * vec3<f32>(position, 1.0)).xy, 0.0, 1.0);\n\n vColor *= globalUniforms.uWorldColorAlpha;\n\n {{end}}\n\n {{return}}\n };\n", Lt = "\n @in vUV : vec2<f32>;\n @in vColor : vec4<f32>;\n\n {{header}}\n\n @fragment\n fn main(\n {{in}}\n ) -> @location(0) vec4<f32> {\n\n {{start}}\n\n var outColor:vec4<f32>;\n\n {{main}}\n\n var finalColor:vec4<f32> = outColor * vColor;\n\n {{end}}\n\n return finalColor;\n };\n", Rt = "\n in vec2 aPosition;\n in vec2 aUV;\n\n out vec4 vColor;\n out vec2 vUV;\n\n {{header}}\n\n void main(void){\n\n mat3 worldTransformMatrix = uWorldTransformMatrix;\n mat3 modelMatrix = mat3(\n 1.0, 0.0, 0.0,\n 0.0, 1.0, 0.0,\n 0.0, 0.0, 1.0\n );\n vec2 position = aPosition;\n vec2 uv = aUV;\n\n {{start}}\n\n vColor = vec4(1.);\n\n {{main}}\n\n vUV = uv;\n\n mat3 modelViewProjectionMatrix = uProjectionMatrix * worldTransformMatrix * modelMatrix;\n\n gl_Position = vec4((modelViewProjectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n\n vColor *= uWorldColorAlpha;\n\n {{end}}\n }\n", zt = "\n\n in vec4 vColor;\n in vec2 vUV;\n\n out vec4 finalColor;\n\n {{header}}\n\n void main(void) {\n\n {{start}}\n\n vec4 outColor;\n\n {{main}}\n\n finalColor = outColor * vColor;\n\n {{end}}\n }\n", Bt = {
|
|
534
851
|
name: "global-uniforms-bit",
|
|
535
852
|
vertex: { header: "\n struct GlobalUniforms {\n uProjectionMatrix:mat3x3<f32>,\n uWorldTransformMatrix:mat3x3<f32>,\n uWorldColorAlpha: vec4<f32>,\n uResolution: vec2<f32>,\n }\n\n @group(0) @binding(0) var<uniform> globalUniforms : GlobalUniforms;\n " }
|
|
536
|
-
},
|
|
853
|
+
}, Vt = {
|
|
537
854
|
name: "global-uniforms-bit",
|
|
538
855
|
vertex: { header: "\n uniform mat3 uProjectionMatrix;\n uniform mat3 uWorldTransformMatrix;\n uniform vec4 uWorldColorAlpha;\n uniform vec2 uResolution;\n " }
|
|
539
856
|
};
|
|
540
857
|
//#endregion
|
|
541
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
542
|
-
function
|
|
543
|
-
let n =
|
|
858
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/compileHighShaderToProgram.mjs
|
|
859
|
+
function Ht({ bits: e, name: t }) {
|
|
860
|
+
let n = jt({
|
|
544
861
|
template: {
|
|
545
|
-
fragment:
|
|
546
|
-
vertex:
|
|
862
|
+
fragment: Lt,
|
|
863
|
+
vertex: It
|
|
547
864
|
},
|
|
548
|
-
bits: [
|
|
865
|
+
bits: [Bt, ...e]
|
|
549
866
|
});
|
|
550
|
-
return
|
|
867
|
+
return b.from({
|
|
551
868
|
name: t,
|
|
552
869
|
vertex: {
|
|
553
870
|
source: n.vertex,
|
|
@@ -559,34 +876,34 @@ function Qe({ bits: e, name: t }) {
|
|
|
559
876
|
}
|
|
560
877
|
});
|
|
561
878
|
}
|
|
562
|
-
function
|
|
563
|
-
return new
|
|
879
|
+
function Ut({ bits: e, name: t }) {
|
|
880
|
+
return new ie({
|
|
564
881
|
name: t,
|
|
565
|
-
...
|
|
882
|
+
...Mt({
|
|
566
883
|
template: {
|
|
567
|
-
vertex:
|
|
568
|
-
fragment:
|
|
884
|
+
vertex: Rt,
|
|
885
|
+
fragment: zt
|
|
569
886
|
},
|
|
570
|
-
bits: [
|
|
887
|
+
bits: [Vt, ...e]
|
|
571
888
|
})
|
|
572
889
|
});
|
|
573
890
|
}
|
|
574
891
|
//#endregion
|
|
575
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
576
|
-
var
|
|
892
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/colorBit.mjs
|
|
893
|
+
var Wt = {
|
|
577
894
|
name: "color-bit",
|
|
578
895
|
vertex: {
|
|
579
896
|
header: "\n @in aColor: vec4<f32>;\n ",
|
|
580
897
|
main: "\n vColor *= vec4<f32>(aColor.rgb * aColor.a, aColor.a);\n "
|
|
581
898
|
}
|
|
582
|
-
},
|
|
899
|
+
}, Gt = {
|
|
583
900
|
name: "color-bit",
|
|
584
901
|
vertex: {
|
|
585
902
|
header: "\n in vec4 aColor;\n ",
|
|
586
903
|
main: "\n vColor *= vec4(aColor.rgb * aColor.a, aColor.a);\n "
|
|
587
904
|
}
|
|
588
|
-
},
|
|
589
|
-
function
|
|
905
|
+
}, Kt = {};
|
|
906
|
+
function qt(e) {
|
|
590
907
|
let t = [];
|
|
591
908
|
if (e === 1) t.push("@group(1) @binding(0) var textureSource1: texture_2d<f32>;"), t.push("@group(1) @binding(1) var textureSampler1: sampler;");
|
|
592
909
|
else {
|
|
@@ -595,7 +912,7 @@ function rt(e) {
|
|
|
595
912
|
}
|
|
596
913
|
return t.join("\n");
|
|
597
914
|
}
|
|
598
|
-
function
|
|
915
|
+
function Jt(e) {
|
|
599
916
|
let t = [];
|
|
600
917
|
if (e === 1) t.push("outColor = textureSampleGrad(textureSource1, textureSampler1, vUV, uvDx, uvDy);");
|
|
601
918
|
else {
|
|
@@ -605,8 +922,8 @@ function it(e) {
|
|
|
605
922
|
}
|
|
606
923
|
return t.join("\n");
|
|
607
924
|
}
|
|
608
|
-
function
|
|
609
|
-
return
|
|
925
|
+
function Yt(e) {
|
|
926
|
+
return Kt[e] || (Kt[e] = {
|
|
610
927
|
name: "texture-batch-bit",
|
|
611
928
|
vertex: {
|
|
612
929
|
header: "\n @in aTextureIdAndRound: vec2<u32>;\n @out @interpolate(flat) vTextureId : u32;\n ",
|
|
@@ -617,25 +934,25 @@ function at(e) {
|
|
|
617
934
|
header: `
|
|
618
935
|
@in @interpolate(flat) vTextureId: u32;
|
|
619
936
|
|
|
620
|
-
${
|
|
937
|
+
${qt(e)}
|
|
621
938
|
`,
|
|
622
939
|
main: `
|
|
623
940
|
var uvDx = dpdx(vUV);
|
|
624
941
|
var uvDy = dpdy(vUV);
|
|
625
942
|
|
|
626
|
-
${
|
|
943
|
+
${Jt(e)}
|
|
627
944
|
`
|
|
628
945
|
}
|
|
629
|
-
}),
|
|
946
|
+
}), Kt[e];
|
|
630
947
|
}
|
|
631
|
-
var
|
|
632
|
-
function
|
|
948
|
+
var Xt = {};
|
|
949
|
+
function Zt(e) {
|
|
633
950
|
let t = [];
|
|
634
951
|
for (let n = 0; n < e; n++) n > 0 && t.push("else"), n < e - 1 && t.push(`if(vTextureId < ${n}.5)`), t.push("{"), t.push(` outColor = texture(uTextures[${n}], vUV);`), t.push("}");
|
|
635
952
|
return t.join("\n");
|
|
636
953
|
}
|
|
637
|
-
function
|
|
638
|
-
return
|
|
954
|
+
function Qt(e) {
|
|
955
|
+
return Xt[e] || (Xt[e] = {
|
|
639
956
|
name: "texture-batch-bit",
|
|
640
957
|
vertex: {
|
|
641
958
|
header: "\n in vec2 aTextureIdAndRound;\n out float vTextureId;\n\n ",
|
|
@@ -651,59 +968,59 @@ function st(e) {
|
|
|
651
968
|
`,
|
|
652
969
|
main: `
|
|
653
970
|
|
|
654
|
-
${
|
|
971
|
+
${Zt(e)}
|
|
655
972
|
`
|
|
656
973
|
}
|
|
657
|
-
}),
|
|
974
|
+
}), Xt[e];
|
|
658
975
|
}
|
|
659
976
|
//#endregion
|
|
660
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
661
|
-
var
|
|
977
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/roundPixelsBit.mjs
|
|
978
|
+
var $t = {
|
|
662
979
|
name: "round-pixels-bit",
|
|
663
980
|
vertex: { header: "\n fn roundPixels(position: vec2<f32>, targetSize: vec2<f32>) -> vec2<f32>\n {\n return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0;\n }\n " }
|
|
664
|
-
},
|
|
981
|
+
}, en = {
|
|
665
982
|
name: "round-pixels-bit",
|
|
666
983
|
vertex: { header: "\n vec2 roundPixels(vec2 position, vec2 targetSize)\n {\n return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0;\n }\n " }
|
|
667
|
-
},
|
|
668
|
-
function
|
|
669
|
-
let t =
|
|
984
|
+
}, tn = {};
|
|
985
|
+
function nn(e) {
|
|
986
|
+
let t = tn[e];
|
|
670
987
|
if (t) return t;
|
|
671
988
|
let n = new Int32Array(e);
|
|
672
989
|
for (let t = 0; t < e; t++) n[t] = t;
|
|
673
|
-
return t =
|
|
990
|
+
return t = tn[e] = new _({ uTextures: {
|
|
674
991
|
value: n,
|
|
675
992
|
type: "i32",
|
|
676
993
|
size: e
|
|
677
994
|
} }, { isStatic: !0 }), t;
|
|
678
995
|
}
|
|
679
996
|
//#endregion
|
|
680
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
681
|
-
var
|
|
997
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/batcher/shared/DefaultShader.mjs
|
|
998
|
+
var rn = class extends ce {
|
|
682
999
|
constructor(e) {
|
|
683
|
-
let t =
|
|
1000
|
+
let t = Ut({
|
|
684
1001
|
name: "batch",
|
|
685
1002
|
bits: [
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
1003
|
+
Gt,
|
|
1004
|
+
Qt(e),
|
|
1005
|
+
en
|
|
689
1006
|
]
|
|
690
|
-
}), n =
|
|
1007
|
+
}), n = Ht({
|
|
691
1008
|
name: "batch",
|
|
692
1009
|
bits: [
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
1010
|
+
Wt,
|
|
1011
|
+
Yt(e),
|
|
1012
|
+
$t
|
|
696
1013
|
]
|
|
697
1014
|
});
|
|
698
1015
|
super({
|
|
699
1016
|
glProgram: t,
|
|
700
1017
|
gpuProgram: n,
|
|
701
|
-
resources: { batchSamplers:
|
|
1018
|
+
resources: { batchSamplers: nn(e) }
|
|
702
1019
|
}), this.maxTextures = e;
|
|
703
1020
|
}
|
|
704
|
-
},
|
|
1021
|
+
}, q = null, an = class e extends ht {
|
|
705
1022
|
constructor(t) {
|
|
706
|
-
super(t), this.geometry = new
|
|
1023
|
+
super(t), this.geometry = new vt(), this.name = e.extension.name, this.vertexSize = 6, q ??= new rn(t.maxTextures), this.shader = q;
|
|
707
1024
|
}
|
|
708
1025
|
packAttributes(e, t, n, r, i) {
|
|
709
1026
|
let a = i << 16 | e.roundPixels & 65535, o = e.transform, s = o.a, c = o.b, l = o.c, u = o.d, d = o.tx, f = o.ty, { positions: p, uvs: m } = e, h = e.color, g = e.attributeOffset, _ = g + e.attributeSize;
|
|
@@ -717,26 +1034,26 @@ var ft = class extends oe {
|
|
|
717
1034
|
t[r + 0] = s * h + l * _ + d, t[r + 1] = u * _ + c * h + f, t[r + 2] = v.x0, t[r + 3] = v.y0, n[r + 4] = y, n[r + 5] = b, t[r + 6] = s * m + l * _ + d, t[r + 7] = u * _ + c * m + f, t[r + 8] = v.x1, t[r + 9] = v.y1, n[r + 10] = y, n[r + 11] = b, t[r + 12] = s * m + l * g + d, t[r + 13] = u * g + c * m + f, t[r + 14] = v.x2, t[r + 15] = v.y2, n[r + 16] = y, n[r + 17] = b, t[r + 18] = s * h + l * g + d, t[r + 19] = u * g + c * h + f, t[r + 20] = v.x3, t[r + 21] = v.y3, n[r + 22] = y, n[r + 23] = b;
|
|
718
1035
|
}
|
|
719
1036
|
_updateMaxTextures(e) {
|
|
720
|
-
this.shader.maxTextures !== e && (
|
|
1037
|
+
this.shader.maxTextures !== e && (q = new rn(e), this.shader = q);
|
|
721
1038
|
}
|
|
722
1039
|
destroy() {
|
|
723
1040
|
this.shader = null, super.destroy();
|
|
724
1041
|
}
|
|
725
1042
|
};
|
|
726
|
-
|
|
727
|
-
type: [
|
|
1043
|
+
an.extension = {
|
|
1044
|
+
type: [g.Batcher],
|
|
728
1045
|
name: "default"
|
|
729
1046
|
};
|
|
730
|
-
var
|
|
1047
|
+
var on = an, sn = class e {
|
|
731
1048
|
constructor(e, t) {
|
|
732
|
-
this.state =
|
|
1049
|
+
this.state = oe.for2d(), this._batchersByInstructionSet = /* @__PURE__ */ Object.create(null), this._activeBatches = /* @__PURE__ */ Object.create(null), this.renderer = e, this._adaptor = t, this._adaptor.init?.(this);
|
|
733
1050
|
}
|
|
734
1051
|
static getBatcher(e, t) {
|
|
735
1052
|
return new this._availableBatchers[e]({ maxTextures: t });
|
|
736
1053
|
}
|
|
737
1054
|
buildStart(e) {
|
|
738
1055
|
let t = this._batchersByInstructionSet[e.uid];
|
|
739
|
-
t || (t = this._batchersByInstructionSet[e.uid] = /* @__PURE__ */ Object.create(null), t.default
|
|
1056
|
+
t || (t = this._batchersByInstructionSet[e.uid] = /* @__PURE__ */ Object.create(null), t.default ||= new on({ maxTextures: this.renderer.limits.maxBatchableTextures })), this._activeBatches = t, this._activeBatch = this._activeBatches.default;
|
|
740
1057
|
for (let e in this._activeBatches) this._activeBatches[e].begin();
|
|
741
1058
|
}
|
|
742
1059
|
addToBatch(t, n) {
|
|
@@ -778,27 +1095,27 @@ var H = pt, U = class e {
|
|
|
778
1095
|
this._activeBatches = null;
|
|
779
1096
|
}
|
|
780
1097
|
};
|
|
781
|
-
|
|
1098
|
+
sn.extension = {
|
|
782
1099
|
type: [
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
1100
|
+
g.WebGLPipes,
|
|
1101
|
+
g.WebGPUPipes,
|
|
1102
|
+
g.CanvasPipes
|
|
786
1103
|
],
|
|
787
1104
|
name: "batch"
|
|
788
|
-
},
|
|
789
|
-
var
|
|
790
|
-
|
|
1105
|
+
}, sn._availableBatchers = /* @__PURE__ */ Object.create(null);
|
|
1106
|
+
var cn = sn;
|
|
1107
|
+
x.handleByMap(g.Batcher, cn._availableBatchers), x.add(on);
|
|
791
1108
|
//#endregion
|
|
792
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
793
|
-
var
|
|
1109
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/filters/mask/mask.frag.mjs
|
|
1110
|
+
var ln = "in vec2 vMaskCoord;\nin vec2 vTextureCoord;\n\nuniform sampler2D uTexture;\nuniform sampler2D uMaskTexture;\n\nuniform float uAlpha;\nuniform vec4 uMaskClamp;\nuniform float uInverse;\nuniform float uChannel;\n\nout vec4 finalColor;\n\nvoid main(void)\n{\n float clip = step(3.5,\n step(uMaskClamp.x, vMaskCoord.x) +\n step(uMaskClamp.y, vMaskCoord.y) +\n step(vMaskCoord.x, uMaskClamp.z) +\n step(vMaskCoord.y, uMaskClamp.w));\n\n // TODO look into why this is needed\n float npmAlpha = uAlpha;\n vec4 original = texture(uTexture, vTextureCoord);\n vec4 masky = texture(uMaskTexture, vMaskCoord);\n\n float a;\n if (uChannel == 1.0) {\n a = masky.a * npmAlpha * clip;\n } else {\n float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);\n a = alphaMul * masky.r * npmAlpha * clip;\n }\n\n if (uInverse == 1.0) {\n a = 1.0 - a;\n }\n\n finalColor = original * a;\n}\n", un = "in vec2 aPosition;\n\nout vec2 vTextureCoord;\nout vec2 vMaskCoord;\n\n\nuniform vec4 uInputSize;\nuniform vec4 uOutputFrame;\nuniform vec4 uOutputTexture;\nuniform mat3 uFilterMatrix;\n\nvec4 filterVertexPosition( vec2 aPosition )\n{\n vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy;\n \n position.x = position.x * (2.0 / uOutputTexture.x) - 1.0;\n position.y = position.y * (2.0*uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z;\n\n return vec4(position, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( vec2 aPosition )\n{\n return aPosition * (uOutputFrame.zw * uInputSize.zw);\n}\n\nvec2 getFilterCoord( vec2 aPosition )\n{\n return ( uFilterMatrix * vec3( filterTextureCoord(aPosition), 1.0) ).xy;\n} \n\nvoid main(void)\n{\n gl_Position = filterVertexPosition(aPosition);\n vTextureCoord = filterTextureCoord(aPosition);\n vMaskCoord = getFilterCoord(aPosition);\n}\n", dn = "struct GlobalFilterUniforms {\n uInputSize:vec4<f32>,\n uInputPixel:vec4<f32>,\n uInputClamp:vec4<f32>,\n uOutputFrame:vec4<f32>,\n uGlobalFrame:vec4<f32>,\n uOutputTexture:vec4<f32>,\n};\n\nstruct MaskUniforms {\n uFilterMatrix:mat3x3<f32>,\n uMaskClamp:vec4<f32>,\n uAlpha:f32,\n uInverse:f32,\n uChannel:f32,\n};\n\n@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;\n@group(0) @binding(1) var uTexture: texture_2d<f32>;\n@group(0) @binding(2) var uSampler : sampler;\n\n@group(1) @binding(0) var<uniform> filterUniforms : MaskUniforms;\n@group(1) @binding(1) var uMaskTexture: texture_2d<f32>;\n\nstruct VSOutput {\n @builtin(position) position: vec4<f32>,\n @location(0) uv : vec2<f32>,\n @location(1) filterUv : vec2<f32>,\n};\n\nfn filterVertexPosition(aPosition:vec2<f32>) -> vec4<f32>\n{\n var position = aPosition * gfu.uOutputFrame.zw + gfu.uOutputFrame.xy;\n\n position.x = position.x * (2.0 / gfu.uOutputTexture.x) - 1.0;\n position.y = position.y * (2.0*gfu.uOutputTexture.z / gfu.uOutputTexture.y) - gfu.uOutputTexture.z;\n\n return vec4(position, 0.0, 1.0);\n}\n\nfn filterTextureCoord( aPosition:vec2<f32> ) -> vec2<f32>\n{\n return aPosition * (gfu.uOutputFrame.zw * gfu.uInputSize.zw);\n}\n\nfn globalTextureCoord( aPosition:vec2<f32> ) -> vec2<f32>\n{\n return (aPosition.xy / gfu.uGlobalFrame.zw) + (gfu.uGlobalFrame.xy / gfu.uGlobalFrame.zw);\n}\n\nfn getFilterCoord(aPosition:vec2<f32> ) -> vec2<f32>\n{\n return ( filterUniforms.uFilterMatrix * vec3( filterTextureCoord(aPosition), 1.0) ).xy;\n}\n\nfn getSize() -> vec2<f32>\n{\n return gfu.uGlobalFrame.zw;\n}\n\n@vertex\nfn mainVertex(\n @location(0) aPosition : vec2<f32>,\n) -> VSOutput {\n return VSOutput(\n filterVertexPosition(aPosition),\n filterTextureCoord(aPosition),\n getFilterCoord(aPosition)\n );\n}\n\n@fragment\nfn mainFragment(\n @location(0) uv: vec2<f32>,\n @location(1) filterUv: vec2<f32>,\n @builtin(position) position: vec4<f32>\n) -> @location(0) vec4<f32> {\n\n var maskClamp = filterUniforms.uMaskClamp;\n var uAlpha = filterUniforms.uAlpha;\n\n var clip = step(3.5,\n step(maskClamp.x, filterUv.x) +\n step(maskClamp.y, filterUv.y) +\n step(filterUv.x, maskClamp.z) +\n step(filterUv.y, maskClamp.w));\n\n var mask = textureSample(uMaskTexture, uSampler, filterUv);\n var source = textureSample(uTexture, uSampler, uv);\n\n var a: f32;\n if (filterUniforms.uChannel == 1.0) {\n a = mask.a * uAlpha * clip;\n } else {\n var alphaMul = 1.0 - uAlpha * (1.0 - mask.a);\n a = alphaMul * mask.r * uAlpha * clip;\n }\n\n if (filterUniforms.uInverse == 1.0) {\n a = 1.0 - a;\n }\n\n return source * a;\n}\n", fn = class extends te {
|
|
794
1111
|
constructor(e) {
|
|
795
|
-
let { sprite: t, ...
|
|
1112
|
+
let { sprite: t, ...r } = e, i = new n(t.texture), a = new _({
|
|
796
1113
|
uFilterMatrix: {
|
|
797
|
-
value: new
|
|
1114
|
+
value: new y(),
|
|
798
1115
|
type: "mat3x3<f32>"
|
|
799
1116
|
},
|
|
800
1117
|
uMaskClamp: {
|
|
801
|
-
value:
|
|
1118
|
+
value: i.uClampFrame,
|
|
802
1119
|
type: "vec4<f32>"
|
|
803
1120
|
},
|
|
804
1121
|
uAlpha: {
|
|
@@ -813,30 +1130,35 @@ var mt = "in vec2 vMaskCoord;\nin vec2 vTextureCoord;\n\nuniform sampler2D uText
|
|
|
813
1130
|
value: +(e.channel === "alpha"),
|
|
814
1131
|
type: "f32"
|
|
815
1132
|
}
|
|
816
|
-
}),
|
|
1133
|
+
}), o = b.from({
|
|
817
1134
|
vertex: {
|
|
818
|
-
source:
|
|
1135
|
+
source: dn,
|
|
819
1136
|
entryPoint: "mainVertex"
|
|
820
1137
|
},
|
|
821
1138
|
fragment: {
|
|
822
|
-
source:
|
|
1139
|
+
source: dn,
|
|
823
1140
|
entryPoint: "mainFragment"
|
|
824
1141
|
}
|
|
825
|
-
}),
|
|
826
|
-
vertex:
|
|
827
|
-
fragment:
|
|
1142
|
+
}), s = ie.from({
|
|
1143
|
+
vertex: un,
|
|
1144
|
+
fragment: ln,
|
|
828
1145
|
name: "mask-filter"
|
|
829
1146
|
});
|
|
830
1147
|
super({
|
|
831
|
-
...
|
|
832
|
-
gpuProgram:
|
|
833
|
-
glProgram:
|
|
1148
|
+
...r,
|
|
1149
|
+
gpuProgram: o,
|
|
1150
|
+
glProgram: s,
|
|
834
1151
|
clipToViewport: !1,
|
|
835
1152
|
resources: {
|
|
836
|
-
filterUniforms:
|
|
1153
|
+
filterUniforms: a,
|
|
837
1154
|
uMaskTexture: t.texture.source
|
|
838
1155
|
}
|
|
839
|
-
}), this.sprite = t, this._textureMatrix =
|
|
1156
|
+
}), this.sprite = t, this._textureMatrix = i;
|
|
1157
|
+
}
|
|
1158
|
+
setSprite(e) {
|
|
1159
|
+
this.sprite = e;
|
|
1160
|
+
let t = this._getSafeTexture();
|
|
1161
|
+
this._textureMatrix.texture = t, this.resources.uMaskTexture = t.source;
|
|
840
1162
|
}
|
|
841
1163
|
set inverse(e) {
|
|
842
1164
|
this.resources.filterUniforms.uniforms.uInverse = +!!e;
|
|
@@ -851,12 +1173,20 @@ var mt = "in vec2 vMaskCoord;\nin vec2 vTextureCoord;\n\nuniform sampler2D uText
|
|
|
851
1173
|
return this.resources.filterUniforms.uniforms.uChannel === 1 ? "alpha" : "red";
|
|
852
1174
|
}
|
|
853
1175
|
apply(e, t, n, r) {
|
|
854
|
-
|
|
1176
|
+
let i = this._getSafeTexture();
|
|
1177
|
+
this._textureMatrix.texture = i, e.calculateSpriteMatrix(this.resources.filterUniforms.uniforms.uFilterMatrix, this.sprite).prepend(this._textureMatrix.mapCoord), this.resources.uMaskTexture = i.source, e.applyFilter(this, t, n, r);
|
|
1178
|
+
}
|
|
1179
|
+
_getSafeTexture() {
|
|
1180
|
+
let e = this.sprite.texture;
|
|
1181
|
+
return e.destroyed || !e.source || e.source.destroyed ? (o("[MaskFilter] The mask texture was destroyed while the mask is still in use. Remove the mask before destroying its texture."), r.EMPTY) : e;
|
|
855
1182
|
}
|
|
856
|
-
|
|
1183
|
+
destroy(e = !1) {
|
|
1184
|
+
this._textureMatrix.destroy(), super.destroy(e);
|
|
1185
|
+
}
|
|
1186
|
+
}, pn = new a(), mn = class extends f {
|
|
857
1187
|
constructor() {
|
|
858
|
-
super(), this.filters = [new
|
|
859
|
-
sprite:
|
|
1188
|
+
super(), this._placeholderSprite = new de(r.EMPTY), this.filters = [new fn({
|
|
1189
|
+
sprite: this._placeholderSprite,
|
|
860
1190
|
inverse: !1,
|
|
861
1191
|
resolution: "inherit",
|
|
862
1192
|
antialias: "inherit"
|
|
@@ -866,7 +1196,7 @@ var mt = "in vec2 vMaskCoord;\nin vec2 vTextureCoord;\n\nuniform sampler2D uText
|
|
|
866
1196
|
return this.filters[0].sprite;
|
|
867
1197
|
}
|
|
868
1198
|
set sprite(e) {
|
|
869
|
-
this.filters[0].
|
|
1199
|
+
this.filters[0].setSprite(e);
|
|
870
1200
|
}
|
|
871
1201
|
get inverse() {
|
|
872
1202
|
return this.filters[0].inverse;
|
|
@@ -880,9 +1210,12 @@ var mt = "in vec2 vMaskCoord;\nin vec2 vTextureCoord;\n\nuniform sampler2D uText
|
|
|
880
1210
|
set channel(e) {
|
|
881
1211
|
this.filters[0].channel = e;
|
|
882
1212
|
}
|
|
883
|
-
|
|
1213
|
+
reset() {
|
|
1214
|
+
this._placeholderSprite.texture = r.EMPTY, this.sprite = this._placeholderSprite;
|
|
1215
|
+
}
|
|
1216
|
+
}, hn = class {
|
|
884
1217
|
constructor(e) {
|
|
885
|
-
this._activeMaskStage = [], this._renderer = e;
|
|
1218
|
+
this._activeMaskStage = [], this._usedEffects = [], this._renderer = e, e.runners.postrender.add(this);
|
|
886
1219
|
}
|
|
887
1220
|
push(e, t, n) {
|
|
888
1221
|
let r = this._renderer;
|
|
@@ -916,31 +1249,34 @@ var mt = "in vec2 vMaskCoord;\nin vec2 vTextureCoord;\n\nuniform sampler2D uText
|
|
|
916
1249
|
});
|
|
917
1250
|
}
|
|
918
1251
|
execute(e) {
|
|
919
|
-
let t = this._renderer,
|
|
1252
|
+
let t = this._renderer, n = e.mask.renderMaskToTexture;
|
|
920
1253
|
if (e.action === "pushMaskBegin") {
|
|
921
|
-
let
|
|
922
|
-
if (
|
|
1254
|
+
let r = s.get(mn);
|
|
1255
|
+
if (r.inverse = e.inverse, r.channel = e.mask.channel, n) {
|
|
923
1256
|
e.mask.mask.measurable = !0;
|
|
924
|
-
let
|
|
925
|
-
e.mask.mask.measurable = !1,
|
|
926
|
-
let
|
|
927
|
-
t.renderTarget.push(
|
|
928
|
-
|
|
1257
|
+
let n = he(e.mask.mask, !0, pn);
|
|
1258
|
+
e.mask.mask.measurable = !1, n.ceil();
|
|
1259
|
+
let i = t.renderTarget.renderTarget.colorTexture.source, a = u.getOptimalTexture(n.width, n.height, i._resolution, i.antialias);
|
|
1260
|
+
t.renderTarget.push({
|
|
1261
|
+
target: a,
|
|
1262
|
+
clear: !0
|
|
1263
|
+
}), t.globalUniforms.push({
|
|
1264
|
+
offset: n,
|
|
929
1265
|
worldColor: 4294967295
|
|
930
1266
|
});
|
|
931
|
-
let
|
|
932
|
-
|
|
933
|
-
filterEffect:
|
|
1267
|
+
let o = r.sprite;
|
|
1268
|
+
o.texture = a, o.worldTransform.tx = n.minX, o.worldTransform.ty = n.minY, this._activeMaskStage.push({
|
|
1269
|
+
filterEffect: r,
|
|
934
1270
|
maskedContainer: e.maskedContainer,
|
|
935
|
-
filterTexture:
|
|
1271
|
+
filterTexture: a
|
|
936
1272
|
});
|
|
937
|
-
} else
|
|
938
|
-
filterEffect:
|
|
1273
|
+
} else r.sprite = e.mask.mask, this._activeMaskStage.push({
|
|
1274
|
+
filterEffect: r,
|
|
939
1275
|
maskedContainer: e.maskedContainer
|
|
940
1276
|
});
|
|
941
1277
|
} else if (e.action === "pushMaskEnd") {
|
|
942
1278
|
let e = this._activeMaskStage[this._activeMaskStage.length - 1];
|
|
943
|
-
|
|
1279
|
+
n && (t.type === w.WEBGL && t.renderTarget.finishRenderPass(), t.renderTarget.pop(), t.globalUniforms.pop()), t.filter.push({
|
|
944
1280
|
renderPipeId: "filter",
|
|
945
1281
|
action: "pushFilter",
|
|
946
1282
|
container: e.maskedContainer,
|
|
@@ -950,31 +1286,36 @@ var mt = "in vec2 vMaskCoord;\nin vec2 vTextureCoord;\n\nuniform sampler2D uText
|
|
|
950
1286
|
} else if (e.action === "popMaskEnd") {
|
|
951
1287
|
t.filter.pop();
|
|
952
1288
|
let e = this._activeMaskStage.pop();
|
|
953
|
-
|
|
1289
|
+
n && u.returnTexture(e.filterTexture), this._usedEffects.push(e.filterEffect);
|
|
954
1290
|
}
|
|
955
1291
|
}
|
|
1292
|
+
postrender() {
|
|
1293
|
+
let e = this._usedEffects;
|
|
1294
|
+
for (let t = 0; t < e.length; t++) s.return(e[t]);
|
|
1295
|
+
e.length = 0;
|
|
1296
|
+
}
|
|
956
1297
|
destroy() {
|
|
957
|
-
this._renderer = null, this._activeMaskStage = null;
|
|
1298
|
+
this.postrender(), this._renderer.runners.postrender.remove(this), this._renderer = null, this._activeMaskStage = null, this._usedEffects = null;
|
|
958
1299
|
}
|
|
959
1300
|
};
|
|
960
|
-
|
|
1301
|
+
hn.extension = {
|
|
961
1302
|
type: [
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
1303
|
+
g.WebGLPipes,
|
|
1304
|
+
g.WebGPUPipes,
|
|
1305
|
+
g.CanvasPipes
|
|
965
1306
|
],
|
|
966
1307
|
name: "alphaMask"
|
|
967
1308
|
};
|
|
968
1309
|
//#endregion
|
|
969
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
970
|
-
var
|
|
1310
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/data/GCManagedHash.mjs
|
|
1311
|
+
var gn = class {
|
|
971
1312
|
constructor(e) {
|
|
972
1313
|
this.items = /* @__PURE__ */ Object.create(null);
|
|
973
1314
|
let { renderer: t, type: n, onUnload: r, priority: i, name: a } = e;
|
|
974
1315
|
this._renderer = t, t.gc.addResourceHash(this, "items", n, i ?? 0), this._onUnload = r, this.name = a;
|
|
975
1316
|
}
|
|
976
1317
|
add(e) {
|
|
977
|
-
return
|
|
1318
|
+
return this.items[e.uid] ? !1 : (this.items[e.uid] = e, e.once("unload", this.remove, this), e._gcLastUsed = this._renderer.gc.now, !0);
|
|
978
1319
|
}
|
|
979
1320
|
remove(e, ...t) {
|
|
980
1321
|
if (!this.items[e.uid]) return;
|
|
@@ -989,21 +1330,21 @@ var bt = class {
|
|
|
989
1330
|
}
|
|
990
1331
|
};
|
|
991
1332
|
//#endregion
|
|
992
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
993
|
-
function
|
|
1333
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/graphics/gpu/colorToUniform.mjs
|
|
1334
|
+
function _n(e, t, n) {
|
|
994
1335
|
let r = (e >> 24 & 255) / 255;
|
|
995
1336
|
t[n++] = (e & 255) / 255 * r, t[n++] = (e >> 8 & 255) / 255 * r, t[n++] = (e >> 16 & 255) / 255 * r, t[n++] = r;
|
|
996
1337
|
}
|
|
997
1338
|
//#endregion
|
|
998
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
999
|
-
var
|
|
1000
|
-
|
|
1339
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/blendModes/BlendModePipe.mjs
|
|
1340
|
+
var J = {};
|
|
1341
|
+
x.handle(g.BlendMode, (e) => {
|
|
1001
1342
|
if (!e.name) throw Error("BlendMode extension must have a name property");
|
|
1002
|
-
|
|
1343
|
+
J[e.name] = e.ref;
|
|
1003
1344
|
}, (e) => {
|
|
1004
|
-
delete
|
|
1345
|
+
delete J[e.name];
|
|
1005
1346
|
});
|
|
1006
|
-
var
|
|
1347
|
+
var vn = class {
|
|
1007
1348
|
constructor(e) {
|
|
1008
1349
|
this._blendModeStack = [], this._isAdvanced = !1, this._filterHash = /* @__PURE__ */ Object.create(null), this._renderer = e, this._renderer.runners.prerender.add(this);
|
|
1009
1350
|
}
|
|
@@ -1019,21 +1360,21 @@ var q = class {
|
|
|
1019
1360
|
this.setBlendMode(null, t, e);
|
|
1020
1361
|
}
|
|
1021
1362
|
setBlendMode(e, t, n) {
|
|
1022
|
-
let r = e instanceof
|
|
1363
|
+
let r = e instanceof fe;
|
|
1023
1364
|
if (this._activeBlendMode === t) {
|
|
1024
1365
|
this._isAdvanced && e && !r && this._renderableList?.push(e);
|
|
1025
1366
|
return;
|
|
1026
1367
|
}
|
|
1027
|
-
this._isAdvanced && this._endAdvancedBlendMode(n), this._activeBlendMode = t, e && (this._isAdvanced = !!
|
|
1368
|
+
this._isAdvanced && this._endAdvancedBlendMode(n), this._activeBlendMode = t, e && (this._isAdvanced = !!J[t], this._isAdvanced && this._beginAdvancedBlendMode(e, n));
|
|
1028
1369
|
}
|
|
1029
1370
|
_beginAdvancedBlendMode(e, t) {
|
|
1030
1371
|
this._renderer.renderPipes.batch.break(t);
|
|
1031
1372
|
let n = this._activeBlendMode;
|
|
1032
|
-
if (!
|
|
1033
|
-
|
|
1373
|
+
if (!J[n]) {
|
|
1374
|
+
o(`Unable to assign BlendMode: '${n}'. You may want to include: import 'pixi.js/advanced-blend-modes'`);
|
|
1034
1375
|
return;
|
|
1035
1376
|
}
|
|
1036
|
-
let r = this._ensureFilterEffect(n), i = e instanceof
|
|
1377
|
+
let r = this._ensureFilterEffect(n), i = e instanceof fe, a = {
|
|
1037
1378
|
renderPipeId: "filter",
|
|
1038
1379
|
action: "pushFilter",
|
|
1039
1380
|
filterEffect: r,
|
|
@@ -1045,7 +1386,7 @@ var q = class {
|
|
|
1045
1386
|
}
|
|
1046
1387
|
_ensureFilterEffect(e) {
|
|
1047
1388
|
let t = this._filterHash[e];
|
|
1048
|
-
return t || (t = this._filterHash[e] = new
|
|
1389
|
+
return t || (t = this._filterHash[e] = new f(), t.filters = [new J[e]()]), t;
|
|
1049
1390
|
}
|
|
1050
1391
|
_endAdvancedBlendMode(e) {
|
|
1051
1392
|
this._isAdvanced = !1, this._renderableList = null, this._renderer.renderPipes.batch.break(e), e.add({
|
|
@@ -1066,21 +1407,21 @@ var q = class {
|
|
|
1066
1407
|
this._filterHash = null;
|
|
1067
1408
|
}
|
|
1068
1409
|
};
|
|
1069
|
-
|
|
1410
|
+
vn.extension = {
|
|
1070
1411
|
type: [
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1412
|
+
g.WebGLPipes,
|
|
1413
|
+
g.WebGPUPipes,
|
|
1414
|
+
g.CanvasPipes
|
|
1074
1415
|
],
|
|
1075
1416
|
name: "blendMode"
|
|
1076
1417
|
};
|
|
1077
1418
|
//#endregion
|
|
1078
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
1079
|
-
var
|
|
1080
|
-
|
|
1081
|
-
async function
|
|
1082
|
-
if (!e) for (let e = 0; e <
|
|
1083
|
-
let t =
|
|
1419
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/environment/autoDetectEnvironment.mjs
|
|
1420
|
+
var yn = [];
|
|
1421
|
+
x.handleByNamedList(g.Environment, yn);
|
|
1422
|
+
async function bn(e) {
|
|
1423
|
+
if (!e) for (let e = 0; e < yn.length; e++) {
|
|
1424
|
+
let t = yn[e];
|
|
1084
1425
|
if (t.value.test()) {
|
|
1085
1426
|
await t.value.load();
|
|
1086
1427
|
return;
|
|
@@ -1088,9 +1429,9 @@ async function St(e) {
|
|
|
1088
1429
|
}
|
|
1089
1430
|
}
|
|
1090
1431
|
//#endregion
|
|
1091
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
1432
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/browser/unsafeEvalSupported.mjs
|
|
1092
1433
|
var Y;
|
|
1093
|
-
function
|
|
1434
|
+
function xn() {
|
|
1094
1435
|
if (typeof Y == "boolean") return Y;
|
|
1095
1436
|
try {
|
|
1096
1437
|
Y = Function("param1", "param2", "param3", "return param1[param2] === param3;")({ a: "b" }, "a", "b") === !0;
|
|
@@ -1100,8 +1441,8 @@ function Ct() {
|
|
|
1100
1441
|
return Y;
|
|
1101
1442
|
}
|
|
1102
1443
|
//#endregion
|
|
1103
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
1104
|
-
var X = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.COLOR = 16384] = "COLOR", e[e.STENCIL = 1024] = "STENCIL", e[e.DEPTH = 256] = "DEPTH", e[e.COLOR_DEPTH = 16640] = "COLOR_DEPTH", e[e.COLOR_STENCIL = 17408] = "COLOR_STENCIL", e[e.DEPTH_STENCIL = 1280] = "DEPTH_STENCIL", e[e.ALL = 17664] = "ALL", e))(X || {}),
|
|
1444
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gl/const.mjs
|
|
1445
|
+
var X = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.COLOR = 16384] = "COLOR", e[e.STENCIL = 1024] = "STENCIL", e[e.DEPTH = 256] = "DEPTH", e[e.COLOR_DEPTH = 16640] = "COLOR_DEPTH", e[e.COLOR_STENCIL = 17408] = "COLOR_STENCIL", e[e.DEPTH_STENCIL = 1280] = "DEPTH_STENCIL", e[e.ALL = 17664] = "ALL", e))(X || {}), Sn = class {
|
|
1105
1446
|
constructor(e) {
|
|
1106
1447
|
this.items = [], this._name = e;
|
|
1107
1448
|
}
|
|
@@ -1132,7 +1473,7 @@ var X = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.COLOR = 16384] = "C
|
|
|
1132
1473
|
get name() {
|
|
1133
1474
|
return this._name;
|
|
1134
1475
|
}
|
|
1135
|
-
},
|
|
1476
|
+
}, Cn = [
|
|
1136
1477
|
"init",
|
|
1137
1478
|
"destroy",
|
|
1138
1479
|
"contextChange",
|
|
@@ -1144,14 +1485,14 @@ var X = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.COLOR = 16384] = "C
|
|
|
1144
1485
|
"update",
|
|
1145
1486
|
"postrender",
|
|
1146
1487
|
"prerender"
|
|
1147
|
-
],
|
|
1488
|
+
], wn = class e extends ne {
|
|
1148
1489
|
constructor(e) {
|
|
1149
|
-
super(), this.tick = 0, this.uid =
|
|
1150
|
-
let t = [...
|
|
1490
|
+
super(), this.tick = 0, this.uid = l("renderer"), this.runners = /* @__PURE__ */ Object.create(null), this.renderPipes = /* @__PURE__ */ Object.create(null), this._initOptions = {}, this._systemsHash = /* @__PURE__ */ Object.create(null), this.type = e.type, this.name = e.name, this.config = e;
|
|
1491
|
+
let t = [...Cn, ...this.config.runners ?? []];
|
|
1151
1492
|
this._addRunners(...t), this._unsafeEvalCheck();
|
|
1152
1493
|
}
|
|
1153
1494
|
async init(t = {}) {
|
|
1154
|
-
await
|
|
1495
|
+
await bn(t.skipExtensionImports === !0 ? !0 : t.manageImports === !1), this._addSystems(this.config.systems), this._addPipes(this.config.renderPipes, this.config.renderPipeAdaptors);
|
|
1155
1496
|
for (let e in this._systemsHash) t = {
|
|
1156
1497
|
...this._systemsHash[e].constructor.defaultOptions,
|
|
1157
1498
|
...t
|
|
@@ -1163,14 +1504,14 @@ var X = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.COLOR = 16384] = "C
|
|
|
1163
1504
|
for (let e = 0; e < this.runners.init.items.length; e++) await this.runners.init.items[e].init(t);
|
|
1164
1505
|
this._initOptions = t;
|
|
1165
1506
|
}
|
|
1166
|
-
render(e,
|
|
1507
|
+
render(e, n) {
|
|
1167
1508
|
this.tick++;
|
|
1168
|
-
let
|
|
1169
|
-
if (
|
|
1170
|
-
let e = Array.isArray(
|
|
1171
|
-
|
|
1509
|
+
let r = e;
|
|
1510
|
+
if (r instanceof t && (r = { container: r }, n && (m(p, "passing a second argument is deprecated, please use render options instead"), r.target = n.renderTexture)), r.target ||= this.view.renderTarget, r.target === this.view.renderTarget && (this._lastObjectRendered = r.container, r.clearColor ??= this.background.colorRgba, r.clear ??= this.background.clearBeforeRender), r.clearColor) {
|
|
1511
|
+
let e = Array.isArray(r.clearColor) && r.clearColor.length === 4;
|
|
1512
|
+
r.clearColor = e ? r.clearColor : C.shared.setValue(r.clearColor).toArray();
|
|
1172
1513
|
}
|
|
1173
|
-
|
|
1514
|
+
r.transform || (r.container.updateLocalTransform(), r.transform = r.container.localTransform), r.container.visible && (r.container.enableRenderGroup(), this.runners.prerender.emit(r), this.runners.renderStart.emit(r), this.runners.render.emit(r), this.runners.renderEnd.emit(r), this.runners.postrender.emit(r));
|
|
1174
1515
|
}
|
|
1175
1516
|
resize(e, t, n) {
|
|
1176
1517
|
let r = this.view.resolution;
|
|
@@ -1180,7 +1521,7 @@ var X = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.COLOR = 16384] = "C
|
|
|
1180
1521
|
let t = this;
|
|
1181
1522
|
e.target ||= t.renderTarget.renderTarget, e.clearColor ||= this.background.colorRgba, e.clear ??= X.ALL;
|
|
1182
1523
|
let { clear: n, clearColor: r, target: i, mipLevel: a, layer: o } = e;
|
|
1183
|
-
|
|
1524
|
+
C.shared.setValue(r ?? this.background.colorRgba), t.renderTarget.clear(i, n, C.shared.toArray(), a ?? 0, o ?? 0);
|
|
1184
1525
|
}
|
|
1185
1526
|
get resolution() {
|
|
1186
1527
|
return this.view.resolution;
|
|
@@ -1208,7 +1549,7 @@ var X = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.COLOR = 16384] = "C
|
|
|
1208
1549
|
}
|
|
1209
1550
|
_addRunners(...e) {
|
|
1210
1551
|
e.forEach((e) => {
|
|
1211
|
-
this.runners[e] = new
|
|
1552
|
+
this.runners[e] = new Sn(e);
|
|
1212
1553
|
});
|
|
1213
1554
|
}
|
|
1214
1555
|
_addSystems(e) {
|
|
@@ -1233,7 +1574,7 @@ var X = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.COLOR = 16384] = "C
|
|
|
1233
1574
|
});
|
|
1234
1575
|
}
|
|
1235
1576
|
destroy(e = !1) {
|
|
1236
|
-
this.runners.destroy.items.reverse(), this.runners.destroy.emit(e), (e === !0 || typeof e == "object" && e.releaseGlobalResources) &&
|
|
1577
|
+
this.runners.destroy.items.reverse(), this.runners.destroy.emit(e), (e === !0 || typeof e == "object" && e.releaseGlobalResources) && se.release(), Object.values(this.runners).forEach((e) => {
|
|
1237
1578
|
e.destroy();
|
|
1238
1579
|
}), this._systemsHash = null, this.renderPipes = null, this.removeAllListeners();
|
|
1239
1580
|
}
|
|
@@ -1244,72 +1585,72 @@ var X = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.COLOR = 16384] = "C
|
|
|
1244
1585
|
return !!this._roundPixels;
|
|
1245
1586
|
}
|
|
1246
1587
|
_unsafeEvalCheck() {
|
|
1247
|
-
if (!
|
|
1588
|
+
if (!xn()) throw Error("Current environment does not allow unsafe-eval, please use pixi.js/unsafe-eval module to enable support.");
|
|
1248
1589
|
}
|
|
1249
1590
|
resetState() {
|
|
1250
1591
|
this.runners.resetState.emit();
|
|
1251
1592
|
}
|
|
1252
1593
|
};
|
|
1253
|
-
|
|
1594
|
+
wn.defaultOptions = {
|
|
1254
1595
|
resolution: 1,
|
|
1255
1596
|
failIfMajorPerformanceCaveat: !1,
|
|
1256
1597
|
roundPixels: !1
|
|
1257
1598
|
};
|
|
1258
|
-
var
|
|
1599
|
+
var Tn = wn;
|
|
1259
1600
|
//#endregion
|
|
1260
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
1261
|
-
function
|
|
1601
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/utils/clearList.mjs
|
|
1602
|
+
function En(e, t) {
|
|
1262
1603
|
t ||= 0;
|
|
1263
1604
|
for (let n = t; n < e.length && e[n]; n++) e[n] = null;
|
|
1264
1605
|
}
|
|
1265
1606
|
//#endregion
|
|
1266
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
1267
|
-
var
|
|
1268
|
-
function
|
|
1269
|
-
|
|
1607
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/utils/updateRenderGroupTransforms.mjs
|
|
1608
|
+
var Dn = new t(), On = 7;
|
|
1609
|
+
function kn(e, t = !1) {
|
|
1610
|
+
An(e);
|
|
1270
1611
|
let n = e.childrenToUpdate, r = e.updateTick++;
|
|
1271
1612
|
for (let t in n) {
|
|
1272
1613
|
let i = Number(t), a = n[t], o = a.list, s = a.index;
|
|
1273
1614
|
for (let t = 0; t < s; t++) {
|
|
1274
1615
|
let n = o[t];
|
|
1275
|
-
n.parentRenderGroup === e && n.relativeRenderGroupDepth === i &&
|
|
1616
|
+
n.parentRenderGroup === e && n.relativeRenderGroupDepth === i && jn(n, r, 0);
|
|
1276
1617
|
}
|
|
1277
|
-
|
|
1618
|
+
En(o, s), a.index = 0;
|
|
1278
1619
|
}
|
|
1279
|
-
if (t) for (let n = 0; n < e.renderGroupChildren.length; n++)
|
|
1620
|
+
if (t) for (let n = 0; n < e.renderGroupChildren.length; n++) kn(e.renderGroupChildren[n], t);
|
|
1280
1621
|
}
|
|
1281
|
-
function
|
|
1622
|
+
function An(e) {
|
|
1282
1623
|
let t = e.root, n;
|
|
1283
1624
|
if (e.renderGroupParent) {
|
|
1284
|
-
let
|
|
1285
|
-
e.worldTransform.appendFrom(t.relativeGroupTransform,
|
|
1625
|
+
let r = e.renderGroupParent;
|
|
1626
|
+
e.worldTransform.appendFrom(t.relativeGroupTransform, r.worldTransform), e.worldColor = c(t.groupColor, r.worldColor), n = t.groupAlpha * r.worldAlpha;
|
|
1286
1627
|
} else e.worldTransform.copyFrom(t.localTransform), e.worldColor = t.localColor, n = t.localAlpha;
|
|
1287
1628
|
n = n < 0 ? 0 : n > 1 ? 1 : n, e.worldAlpha = n, e.worldColorAlpha = e.worldColor + ((n * 255 | 0) << 24);
|
|
1288
1629
|
}
|
|
1289
|
-
function
|
|
1630
|
+
function jn(e, t, n) {
|
|
1290
1631
|
if (t === e.updateTick) return;
|
|
1291
1632
|
e.updateTick = t, e.didChange = !1;
|
|
1292
1633
|
let r = e.localTransform;
|
|
1293
1634
|
e.updateLocalTransform();
|
|
1294
1635
|
let i = e.parent;
|
|
1295
|
-
if (i && !i.renderGroup ? (n |= e._updateFlags, e.relativeGroupTransform.appendFrom(r, i.relativeGroupTransform), n &
|
|
1636
|
+
if (i && !i.renderGroup ? (n |= e._updateFlags, e.relativeGroupTransform.appendFrom(r, i.relativeGroupTransform), n & On && Mn(e, i, n)) : (n = e._updateFlags, e.relativeGroupTransform.copyFrom(r), n & On && Mn(e, Dn, n)), !e.renderGroup) {
|
|
1296
1637
|
let r = e.children, i = r.length;
|
|
1297
|
-
for (let e = 0; e < i; e++)
|
|
1638
|
+
for (let e = 0; e < i; e++) jn(r[e], t, n);
|
|
1298
1639
|
let a = e.parentRenderGroup, o = e;
|
|
1299
1640
|
o.renderPipeId && !a.structureDidChange && a.updateRenderable(o);
|
|
1300
1641
|
}
|
|
1301
1642
|
}
|
|
1302
|
-
function
|
|
1643
|
+
function Mn(e, t, n) {
|
|
1303
1644
|
if (n & 1) {
|
|
1304
|
-
e.groupColor =
|
|
1645
|
+
e.groupColor = c(e.localColor, t.groupColor);
|
|
1305
1646
|
let n = e.localAlpha * t.groupAlpha;
|
|
1306
1647
|
n = n < 0 ? 0 : n > 1 ? 1 : n, e.groupAlpha = n, e.groupColorAlpha = e.groupColor + ((n * 255 | 0) << 24);
|
|
1307
1648
|
}
|
|
1308
1649
|
n & 2 && (e.groupBlendMode = e.localBlendMode === "inherit" ? t.groupBlendMode : e.localBlendMode), n & 4 && (e.globalDisplayStatus = e.localDisplayStatus & t.globalDisplayStatus), e._updateFlags = 0;
|
|
1309
1650
|
}
|
|
1310
1651
|
//#endregion
|
|
1311
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
1312
|
-
function
|
|
1652
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/utils/validateRenderables.mjs
|
|
1653
|
+
function Nn(e, t) {
|
|
1313
1654
|
let { list: n } = e.childrenRenderablesToUpdate, r = !1;
|
|
1314
1655
|
for (let i = 0; i < e.childrenRenderablesToUpdate.index; i++) {
|
|
1315
1656
|
let e = n[i];
|
|
@@ -1318,43 +1659,43 @@ function Pt(e, t) {
|
|
|
1318
1659
|
return e.structureDidChange = r, r;
|
|
1319
1660
|
}
|
|
1320
1661
|
//#endregion
|
|
1321
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
1322
|
-
var
|
|
1662
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/scene/container/RenderGroupSystem.mjs
|
|
1663
|
+
var Pn = new y(), Fn = class {
|
|
1323
1664
|
constructor(e) {
|
|
1324
1665
|
this._renderer = e;
|
|
1325
1666
|
}
|
|
1326
1667
|
render({ container: e, transform: t }) {
|
|
1327
1668
|
let n = e.parent, r = e.renderGroup.renderGroupParent;
|
|
1328
1669
|
e.parent = null, e.renderGroup.renderGroupParent = null;
|
|
1329
|
-
let i = this._renderer, a =
|
|
1670
|
+
let i = this._renderer, a = Pn;
|
|
1330
1671
|
t && (a.copyFrom(e.renderGroup.localTransform), e.renderGroup.localTransform.copyFrom(t));
|
|
1331
1672
|
let o = i.renderPipes;
|
|
1332
1673
|
this._updateCachedRenderGroups(e.renderGroup, null), this._updateRenderGroups(e.renderGroup), i.globalUniforms.start({
|
|
1333
1674
|
worldTransformMatrix: t ? e.renderGroup.localTransform : e.renderGroup.worldTransform,
|
|
1334
1675
|
worldColor: e.renderGroup.worldColorAlpha
|
|
1335
|
-
}),
|
|
1676
|
+
}), ve(e.renderGroup, o), o.uniformBatch && o.uniformBatch.renderEnd(), t && e.renderGroup.localTransform.copyFrom(a), e.parent = n, e.renderGroup.renderGroupParent = r;
|
|
1336
1677
|
}
|
|
1337
1678
|
destroy() {
|
|
1338
1679
|
this._renderer = null;
|
|
1339
1680
|
}
|
|
1340
|
-
_updateCachedRenderGroups(e,
|
|
1341
|
-
if (e._parentCacheAsTextureRenderGroup =
|
|
1681
|
+
_updateCachedRenderGroups(e, t) {
|
|
1682
|
+
if (e._parentCacheAsTextureRenderGroup = t, e.isCachedAsTexture) {
|
|
1342
1683
|
if (!e.textureNeedsUpdate) return;
|
|
1343
|
-
|
|
1684
|
+
t = e;
|
|
1344
1685
|
}
|
|
1345
|
-
for (let
|
|
1686
|
+
for (let n = e.renderGroupChildren.length - 1; n >= 0; n--) this._updateCachedRenderGroups(e.renderGroupChildren[n], t);
|
|
1346
1687
|
if (e.invalidateMatrices(), e.isCachedAsTexture) {
|
|
1347
1688
|
if (e.textureNeedsUpdate) {
|
|
1348
|
-
let
|
|
1349
|
-
|
|
1350
|
-
let
|
|
1351
|
-
|
|
1689
|
+
let t = e.root.getLocalBounds(), n = this._renderer, r = e.textureOptions.resolution || n.view.resolution, i = e.textureOptions.antialias ?? n.view.antialias, o = e.textureOptions.scaleMode ?? "linear", s = e.texture;
|
|
1690
|
+
t.ceil(), e.texture && u.returnTexture(e.texture, !0);
|
|
1691
|
+
let c = u.getOptimalTexture(t.width, t.height, r, i);
|
|
1692
|
+
c._source.style = new re({ scaleMode: o }), e.texture = c, e._textureBounds ||= new a(), e._textureBounds.copyFrom(t), s !== e.texture && e.renderGroupParent && (e.renderGroupParent.structureDidChange = !0);
|
|
1352
1693
|
}
|
|
1353
|
-
} else e.texture &&= (
|
|
1694
|
+
} else e.texture &&= (u.returnTexture(e.texture, !0), null);
|
|
1354
1695
|
}
|
|
1355
1696
|
_updateRenderGroups(e) {
|
|
1356
1697
|
let t = this._renderer, n = t.renderPipes;
|
|
1357
|
-
if (e.runOnRender(t), e.instructionSet.renderPipes = n, e.structureDidChange ?
|
|
1698
|
+
if (e.runOnRender(t), e.instructionSet.renderPipes = n, e.structureDidChange ? En(e.childrenRenderablesToUpdate.list, 0) : Nn(e, n), kn(e), e.structureDidChange ? (e.structureDidChange = !1, this._buildInstructions(e, t)) : this._updateRenderables(e), e.childrenRenderablesToUpdate.index = 0, t.renderPipes.batch.upload(e.instructionSet), !(e.isCachedAsTexture && !e.textureNeedsUpdate)) for (let t = 0; t < e.renderGroupChildren.length; t++) this._updateRenderGroups(e.renderGroupChildren[t]);
|
|
1358
1699
|
}
|
|
1359
1700
|
_updateRenderables(e) {
|
|
1360
1701
|
let { list: t, index: n } = e.childrenRenderablesToUpdate;
|
|
@@ -1362,7 +1703,7 @@ var Ft = new d(), It = class {
|
|
|
1362
1703
|
let n = t[r];
|
|
1363
1704
|
n.didViewUpdate && e.updateRenderable(n);
|
|
1364
1705
|
}
|
|
1365
|
-
|
|
1706
|
+
En(t, n);
|
|
1366
1707
|
}
|
|
1367
1708
|
_buildInstructions(e, t) {
|
|
1368
1709
|
let n = e.root, r = e.instructionSet;
|
|
@@ -1371,42 +1712,42 @@ var Ft = new d(), It = class {
|
|
|
1371
1712
|
a.batch.buildStart(r), a.blendMode.buildStart(), a.colorMask.buildStart(), n.sortableChildren && n.sortChildren(), n.collectRenderablesWithEffects(r, i, null), a.batch.buildEnd(r), a.blendMode.buildEnd(r);
|
|
1372
1713
|
}
|
|
1373
1714
|
};
|
|
1374
|
-
|
|
1715
|
+
Fn.extension = {
|
|
1375
1716
|
type: [
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1717
|
+
g.WebGLSystem,
|
|
1718
|
+
g.WebGPUSystem,
|
|
1719
|
+
g.CanvasSystem
|
|
1379
1720
|
],
|
|
1380
1721
|
name: "renderGroup"
|
|
1381
1722
|
};
|
|
1382
1723
|
//#endregion
|
|
1383
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
1384
|
-
var
|
|
1724
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/const.mjs
|
|
1725
|
+
var Z = "8.20.1", In = class {
|
|
1385
1726
|
static init() {
|
|
1386
|
-
globalThis.__PIXI_APP_INIT__?.(this,
|
|
1727
|
+
globalThis.__PIXI_APP_INIT__?.(this, Z);
|
|
1387
1728
|
}
|
|
1388
1729
|
static destroy() {}
|
|
1389
1730
|
};
|
|
1390
|
-
|
|
1391
|
-
var
|
|
1731
|
+
In.extension = g.Application;
|
|
1732
|
+
var Ln = class {
|
|
1392
1733
|
constructor(e) {
|
|
1393
1734
|
this._renderer = e;
|
|
1394
1735
|
}
|
|
1395
1736
|
init() {
|
|
1396
|
-
globalThis.__PIXI_RENDERER_INIT__?.(this._renderer,
|
|
1737
|
+
globalThis.__PIXI_RENDERER_INIT__?.(this._renderer, Z);
|
|
1397
1738
|
}
|
|
1398
1739
|
destroy() {
|
|
1399
1740
|
this._renderer = null;
|
|
1400
1741
|
}
|
|
1401
1742
|
};
|
|
1402
|
-
|
|
1403
|
-
type: [
|
|
1743
|
+
Ln.extension = {
|
|
1744
|
+
type: [g.WebGLSystem, g.WebGPUSystem],
|
|
1404
1745
|
name: "initHook",
|
|
1405
1746
|
priority: -10
|
|
1406
1747
|
};
|
|
1407
1748
|
//#endregion
|
|
1408
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
1409
|
-
var
|
|
1749
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/mask/color/ColorMaskPipe.mjs
|
|
1750
|
+
var Rn = class {
|
|
1410
1751
|
constructor(e) {
|
|
1411
1752
|
this._colorStack = [], this._colorStackIndex = 0, this._currentColor = 0, this._renderer = e;
|
|
1412
1753
|
}
|
|
@@ -1442,13 +1783,13 @@ var zt = class {
|
|
|
1442
1783
|
this._renderer = null, this._colorStack = null;
|
|
1443
1784
|
}
|
|
1444
1785
|
};
|
|
1445
|
-
|
|
1446
|
-
type: [
|
|
1786
|
+
Rn.extension = {
|
|
1787
|
+
type: [g.WebGLPipes, g.WebGPUPipes],
|
|
1447
1788
|
name: "colorMask"
|
|
1448
1789
|
};
|
|
1449
1790
|
//#endregion
|
|
1450
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
1451
|
-
var
|
|
1791
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/mask/stencil/StencilMaskPipe.mjs
|
|
1792
|
+
var zn = class {
|
|
1452
1793
|
constructor(e) {
|
|
1453
1794
|
this._maskStackHash = {}, this._maskHash = /* @__PURE__ */ new WeakMap(), this._renderer = e;
|
|
1454
1795
|
}
|
|
@@ -1497,21 +1838,21 @@ var Bt = class {
|
|
|
1497
1838
|
execute(e) {
|
|
1498
1839
|
var t;
|
|
1499
1840
|
let n = this._renderer, r = n, i = n.renderTarget.renderTarget.uid, a = (t = this._maskStackHash)[i] ?? (t[i] = 0);
|
|
1500
|
-
e.action === "pushMaskBegin" ? (r.renderTarget.ensureDepthStencil(), r.stencil.setStencilMode(
|
|
1841
|
+
e.action === "pushMaskBegin" ? (r.renderTarget.ensureDepthStencil(), r.stencil.setStencilMode(V.RENDERING_MASK_ADD, a), a++, r.colorMask.setMask(0)) : e.action === "pushMaskEnd" ? (e.inverse ? r.stencil.setStencilMode(V.INVERSE_MASK_ACTIVE, a) : r.stencil.setStencilMode(V.MASK_ACTIVE, a), r.colorMask.setMask(15)) : e.action === "popMaskBegin" ? (r.colorMask.setMask(0), a === 0 ? (r.renderTarget.clear(null, X.STENCIL), r.stencil.setStencilMode(V.DISABLED, a)) : r.stencil.setStencilMode(V.RENDERING_MASK_REMOVE, a), a--) : e.action === "popMaskEnd" && (e.inverse ? r.stencil.setStencilMode(V.INVERSE_MASK_ACTIVE, a) : r.stencil.setStencilMode(V.MASK_ACTIVE, a), r.colorMask.setMask(15)), this._maskStackHash[i] = a;
|
|
1501
1842
|
}
|
|
1502
1843
|
destroy() {
|
|
1503
1844
|
this._renderer = null, this._maskStackHash = null, this._maskHash = null;
|
|
1504
1845
|
}
|
|
1505
1846
|
};
|
|
1506
|
-
|
|
1507
|
-
type: [
|
|
1847
|
+
zn.extension = {
|
|
1848
|
+
type: [g.WebGLPipes, g.WebGPUPipes],
|
|
1508
1849
|
name: "stencilMask"
|
|
1509
1850
|
};
|
|
1510
1851
|
//#endregion
|
|
1511
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
1512
|
-
var
|
|
1852
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/background/BackgroundSystem.mjs
|
|
1853
|
+
var Bn = class e {
|
|
1513
1854
|
constructor() {
|
|
1514
|
-
this.clearBeforeRender = !0, this._backgroundColor = new
|
|
1855
|
+
this.clearBeforeRender = !0, this._backgroundColor = new C(0), this.color = this._backgroundColor, this.alpha = 1;
|
|
1515
1856
|
}
|
|
1516
1857
|
init(t) {
|
|
1517
1858
|
t = {
|
|
@@ -1523,7 +1864,7 @@ var Vt = class e {
|
|
|
1523
1864
|
return this._backgroundColor;
|
|
1524
1865
|
}
|
|
1525
1866
|
set color(e) {
|
|
1526
|
-
|
|
1867
|
+
C.shared.setValue(e).alpha < 1 && this._backgroundColor.alpha === 1 && o("Cannot set a transparent background on an opaque canvas. To enable transparency, set backgroundAlpha < 1 when initializing your Application."), this._backgroundColor.setValue(e);
|
|
1527
1868
|
}
|
|
1528
1869
|
get alpha() {
|
|
1529
1870
|
return this._backgroundColor.alpha;
|
|
@@ -1536,38 +1877,38 @@ var Vt = class e {
|
|
|
1536
1877
|
}
|
|
1537
1878
|
destroy() {}
|
|
1538
1879
|
};
|
|
1539
|
-
|
|
1880
|
+
Bn.extension = {
|
|
1540
1881
|
type: [
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1882
|
+
g.WebGLSystem,
|
|
1883
|
+
g.WebGPUSystem,
|
|
1884
|
+
g.CanvasSystem
|
|
1544
1885
|
],
|
|
1545
1886
|
name: "background",
|
|
1546
1887
|
priority: 0
|
|
1547
|
-
},
|
|
1888
|
+
}, Bn.defaultOptions = {
|
|
1548
1889
|
backgroundAlpha: 1,
|
|
1549
1890
|
backgroundColor: 0,
|
|
1550
1891
|
clearBeforeRender: !0
|
|
1551
1892
|
};
|
|
1552
|
-
var
|
|
1893
|
+
var Vn = Bn, Hn = {
|
|
1553
1894
|
png: "image/png",
|
|
1554
1895
|
jpg: "image/jpeg",
|
|
1555
1896
|
webp: "image/webp"
|
|
1556
|
-
},
|
|
1897
|
+
}, Un = class e {
|
|
1557
1898
|
constructor(e) {
|
|
1558
1899
|
this._renderer = e;
|
|
1559
1900
|
}
|
|
1560
|
-
_normalizeOptions(e,
|
|
1561
|
-
return e instanceof
|
|
1901
|
+
_normalizeOptions(e, n = {}) {
|
|
1902
|
+
return e instanceof t || e instanceof r ? {
|
|
1562
1903
|
target: e,
|
|
1563
|
-
...
|
|
1904
|
+
...n
|
|
1564
1905
|
} : {
|
|
1565
|
-
...
|
|
1906
|
+
...n,
|
|
1566
1907
|
...e
|
|
1567
1908
|
};
|
|
1568
1909
|
}
|
|
1569
1910
|
async image(e) {
|
|
1570
|
-
let t =
|
|
1911
|
+
let t = me.get().createImage();
|
|
1571
1912
|
return t.src = await this.base64(e), t;
|
|
1572
1913
|
}
|
|
1573
1914
|
async base64(t) {
|
|
@@ -1581,12 +1922,12 @@ var Ht = Vt, Ut = {
|
|
|
1581
1922
|
}
|
|
1582
1923
|
let r = new FileReader();
|
|
1583
1924
|
r.onload = () => e(r.result), r.onerror = t, r.readAsDataURL(n);
|
|
1584
|
-
},
|
|
1925
|
+
}, Hn[n], r);
|
|
1585
1926
|
});
|
|
1586
|
-
if (i.toDataURL !== void 0) return i.toDataURL(
|
|
1927
|
+
if (i.toDataURL !== void 0) return i.toDataURL(Hn[n], r);
|
|
1587
1928
|
if (i.convertToBlob !== void 0) {
|
|
1588
1929
|
let e = await i.convertToBlob({
|
|
1589
|
-
type:
|
|
1930
|
+
type: Hn[n],
|
|
1590
1931
|
quality: r
|
|
1591
1932
|
});
|
|
1592
1933
|
return new Promise((t, n) => {
|
|
@@ -1599,17 +1940,17 @@ var Ht = Vt, Ut = {
|
|
|
1599
1940
|
canvas(e) {
|
|
1600
1941
|
e = this._normalizeOptions(e);
|
|
1601
1942
|
let t = e.target, n = this._renderer;
|
|
1602
|
-
if (t instanceof
|
|
1603
|
-
let
|
|
1604
|
-
return
|
|
1943
|
+
if (t instanceof r) return n.texture.generateCanvas(t);
|
|
1944
|
+
let i = n.textureGenerator.generateTexture(e), a = n.texture.generateCanvas(i);
|
|
1945
|
+
return i.destroy(!0), a;
|
|
1605
1946
|
}
|
|
1606
1947
|
pixels(e) {
|
|
1607
1948
|
e = this._normalizeOptions(e);
|
|
1608
|
-
let
|
|
1609
|
-
return
|
|
1949
|
+
let n = e.target, i = this._renderer, a = n instanceof r ? n : i.textureGenerator.generateTexture(e), o = i.texture.getPixels(a);
|
|
1950
|
+
return n instanceof t && a.destroy(!0), o;
|
|
1610
1951
|
}
|
|
1611
1952
|
texture(e) {
|
|
1612
|
-
return e = this._normalizeOptions(e), e.target instanceof
|
|
1953
|
+
return e = this._normalizeOptions(e), e.target instanceof r ? e.target : this._renderer.textureGenerator.generateTexture(e);
|
|
1613
1954
|
}
|
|
1614
1955
|
download(e) {
|
|
1615
1956
|
e = this._normalizeOptions(e);
|
|
@@ -1633,79 +1974,79 @@ var Ht = Vt, Ut = {
|
|
|
1633
1974
|
this._renderer = null;
|
|
1634
1975
|
}
|
|
1635
1976
|
};
|
|
1636
|
-
|
|
1977
|
+
Un.extension = {
|
|
1637
1978
|
type: [
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1979
|
+
g.WebGLSystem,
|
|
1980
|
+
g.WebGPUSystem,
|
|
1981
|
+
g.CanvasSystem
|
|
1641
1982
|
],
|
|
1642
1983
|
name: "extract"
|
|
1643
|
-
},
|
|
1984
|
+
}, Un.defaultImageOptions = {
|
|
1644
1985
|
format: "png",
|
|
1645
1986
|
quality: 1
|
|
1646
1987
|
};
|
|
1647
|
-
var
|
|
1648
|
-
static create(
|
|
1649
|
-
let { dynamic:
|
|
1650
|
-
return new
|
|
1651
|
-
...
|
|
1652
|
-
source: new
|
|
1653
|
-
dynamic:
|
|
1988
|
+
var Wn = Un, Gn = class t extends r {
|
|
1989
|
+
static create(n) {
|
|
1990
|
+
let { dynamic: r, textureOptions: i, ...a } = n;
|
|
1991
|
+
return new t({
|
|
1992
|
+
...i,
|
|
1993
|
+
source: new e(a),
|
|
1994
|
+
dynamic: r ?? !1
|
|
1654
1995
|
});
|
|
1655
1996
|
}
|
|
1656
1997
|
resize(e, t, n) {
|
|
1657
1998
|
return this.source.resize(e, t, n), this;
|
|
1658
1999
|
}
|
|
1659
|
-
},
|
|
2000
|
+
}, Kn = new d(), qn = new a(), Jn = [
|
|
1660
2001
|
0,
|
|
1661
2002
|
0,
|
|
1662
2003
|
0,
|
|
1663
2004
|
0
|
|
1664
|
-
],
|
|
2005
|
+
], Yn = class {
|
|
1665
2006
|
constructor(e) {
|
|
1666
2007
|
this._renderer = e;
|
|
1667
2008
|
}
|
|
1668
2009
|
generateTexture(e) {
|
|
1669
|
-
e instanceof
|
|
2010
|
+
e instanceof t && (e = {
|
|
1670
2011
|
target: e,
|
|
1671
2012
|
frame: void 0,
|
|
1672
2013
|
textureSourceOptions: {},
|
|
1673
2014
|
resolution: void 0
|
|
1674
2015
|
});
|
|
1675
|
-
let
|
|
1676
|
-
|
|
1677
|
-
let
|
|
1678
|
-
|
|
1679
|
-
let
|
|
2016
|
+
let n = e.resolution || this._renderer.resolution, r = e.antialias || this._renderer.view.antialias, a = e.target, o = e.clearColor;
|
|
2017
|
+
o = o ? Array.isArray(o) && o.length === 4 ? o : C.shared.setValue(o).toArray() : Jn;
|
|
2018
|
+
let s = e.frame?.copyTo(Kn) || i(a, qn).rectangle, c = e.defaultAnchor && { defaultAnchor: e.defaultAnchor };
|
|
2019
|
+
s.width = Math.max(s.width, 1 / n) | 0, s.height = Math.max(s.height, 1 / n) | 0;
|
|
2020
|
+
let l = Gn.create({
|
|
1680
2021
|
...e.textureSourceOptions,
|
|
1681
|
-
width:
|
|
1682
|
-
height:
|
|
1683
|
-
resolution:
|
|
1684
|
-
antialias:
|
|
1685
|
-
textureOptions:
|
|
1686
|
-
}),
|
|
2022
|
+
width: s.width,
|
|
2023
|
+
height: s.height,
|
|
2024
|
+
resolution: n,
|
|
2025
|
+
antialias: r,
|
|
2026
|
+
textureOptions: c
|
|
2027
|
+
}), u = y.shared.translate(-s.x, -s.y);
|
|
1687
2028
|
return this._renderer.render({
|
|
1688
|
-
container:
|
|
1689
|
-
transform:
|
|
1690
|
-
target:
|
|
1691
|
-
clearColor:
|
|
1692
|
-
}),
|
|
2029
|
+
container: a,
|
|
2030
|
+
transform: u,
|
|
2031
|
+
target: l,
|
|
2032
|
+
clearColor: o
|
|
2033
|
+
}), l.source.updateMipmaps(), l;
|
|
1693
2034
|
}
|
|
1694
2035
|
destroy() {
|
|
1695
2036
|
this._renderer = null;
|
|
1696
2037
|
}
|
|
1697
2038
|
};
|
|
1698
|
-
|
|
2039
|
+
Yn.extension = {
|
|
1699
2040
|
type: [
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
2041
|
+
g.WebGLSystem,
|
|
2042
|
+
g.WebGPUSystem,
|
|
2043
|
+
g.CanvasSystem
|
|
1703
2044
|
],
|
|
1704
2045
|
name: "textureGenerator"
|
|
1705
2046
|
};
|
|
1706
2047
|
//#endregion
|
|
1707
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
1708
|
-
function
|
|
2048
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/data/clean.mjs
|
|
2049
|
+
function Xn(e) {
|
|
1709
2050
|
let t = !1;
|
|
1710
2051
|
for (let n in e) if (e[n] == null) {
|
|
1711
2052
|
t = !0;
|
|
@@ -1719,14 +2060,14 @@ function Zt(e) {
|
|
|
1719
2060
|
}
|
|
1720
2061
|
return n;
|
|
1721
2062
|
}
|
|
1722
|
-
function
|
|
2063
|
+
function Zn(e) {
|
|
1723
2064
|
let t = 0;
|
|
1724
2065
|
for (let n = 0; n < e.length; n++) e[n] == null ? t++ : e[n - t] = e[n];
|
|
1725
2066
|
return e.length -= t, e;
|
|
1726
2067
|
}
|
|
1727
2068
|
//#endregion
|
|
1728
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
1729
|
-
var
|
|
2069
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/GCSystem.mjs
|
|
2070
|
+
var Qn = class e {
|
|
1730
2071
|
constructor(e) {
|
|
1731
2072
|
this._managedResources = [], this._managedResourceHashes = [], this._managedCollections = [], this._ready = !1, this._renderer = e;
|
|
1732
2073
|
}
|
|
@@ -1745,7 +2086,7 @@ var $t = class e {
|
|
|
1745
2086
|
}, this._frequency, !1), this._collectionsHandler = this._renderer.scheduler.repeat(() => {
|
|
1746
2087
|
for (let e of this._managedCollections) {
|
|
1747
2088
|
let { context: t, collection: n, type: r } = e;
|
|
1748
|
-
|
|
2089
|
+
r === "hash" ? t[n] = Xn(t[n]) : t[n] = Zn(t[n]);
|
|
1749
2090
|
}
|
|
1750
2091
|
}, this._frequency)) : (this._renderer.scheduler.cancel(this._handler), this._renderer.scheduler.cancel(this._collectionsHandler), this._handler = 0, this._collectionsHandler = 0));
|
|
1751
2092
|
}
|
|
@@ -1848,20 +2189,20 @@ var $t = class e {
|
|
|
1848
2189
|
}), this._managedResources.length = 0, this._managedResourceHashes.length = 0, this._managedCollections.length = 0, this._renderer = null;
|
|
1849
2190
|
}
|
|
1850
2191
|
};
|
|
1851
|
-
|
|
2192
|
+
Qn.extension = {
|
|
1852
2193
|
type: [
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
2194
|
+
g.WebGLSystem,
|
|
2195
|
+
g.WebGPUSystem,
|
|
2196
|
+
g.CanvasSystem
|
|
1856
2197
|
],
|
|
1857
2198
|
name: "gc",
|
|
1858
2199
|
priority: 0
|
|
1859
|
-
},
|
|
2200
|
+
}, Qn.defaultOptions = {
|
|
1860
2201
|
gcActive: !0,
|
|
1861
2202
|
gcMaxUnusedTime: 6e4,
|
|
1862
2203
|
gcFrequency: 3e4
|
|
1863
2204
|
};
|
|
1864
|
-
var
|
|
2205
|
+
var $n = Qn, er = class {
|
|
1865
2206
|
constructor(e) {
|
|
1866
2207
|
this._stackIndex = 0, this._globalUniformDataStack = [], this._uniformsPool = [], this._activeUniforms = [], this._bindGroupPool = [], this._activeBindGroups = [], this._renderer = e;
|
|
1867
2208
|
}
|
|
@@ -1874,31 +2215,31 @@ var en = $t, tn = class {
|
|
|
1874
2215
|
start(e) {
|
|
1875
2216
|
this.reset(), this.push(e);
|
|
1876
2217
|
}
|
|
1877
|
-
bind({ size:
|
|
1878
|
-
let
|
|
1879
|
-
projectionData:
|
|
1880
|
-
worldTransformMatrix: new
|
|
2218
|
+
bind({ size: e, projectionMatrix: t, worldTransformMatrix: n, worldColor: r, offset: i }) {
|
|
2219
|
+
let a = this._renderer.renderTarget.renderTarget, o = this._stackIndex ? this._globalUniformDataStack[this._stackIndex - 1] : {
|
|
2220
|
+
projectionData: a,
|
|
2221
|
+
worldTransformMatrix: new y(),
|
|
1881
2222
|
worldColor: 4294967295,
|
|
1882
|
-
offset: new
|
|
1883
|
-
},
|
|
1884
|
-
projectionMatrix:
|
|
1885
|
-
resolution:
|
|
1886
|
-
worldTransformMatrix:
|
|
1887
|
-
worldColor:
|
|
1888
|
-
offset:
|
|
2223
|
+
offset: new ue()
|
|
2224
|
+
}, s = {
|
|
2225
|
+
projectionMatrix: t || this._renderer.renderTarget.projectionMatrix,
|
|
2226
|
+
resolution: e || a.size,
|
|
2227
|
+
worldTransformMatrix: n || o.worldTransformMatrix,
|
|
2228
|
+
worldColor: r || o.worldColor,
|
|
2229
|
+
offset: i || o.offset,
|
|
1889
2230
|
bindGroup: null
|
|
1890
|
-
},
|
|
1891
|
-
this._activeUniforms.push(
|
|
1892
|
-
let
|
|
1893
|
-
|
|
1894
|
-
let
|
|
1895
|
-
this._renderer.renderPipes.uniformBatch ?
|
|
2231
|
+
}, c = this._uniformsPool.pop() || this._createUniforms();
|
|
2232
|
+
this._activeUniforms.push(c);
|
|
2233
|
+
let l = c.uniforms;
|
|
2234
|
+
l.uProjectionMatrix = s.projectionMatrix, l.uResolution = s.resolution, l.uWorldTransformMatrix.copyFrom(s.worldTransformMatrix), l.uWorldTransformMatrix.tx -= s.offset.x, l.uWorldTransformMatrix.ty -= s.offset.y, _n(s.worldColor, l.uWorldColorAlpha, 0), c.update();
|
|
2235
|
+
let u;
|
|
2236
|
+
this._renderer.renderPipes.uniformBatch ? u = this._renderer.renderPipes.uniformBatch.getUniformBindGroup(c, !1) : (u = this._bindGroupPool.pop() || new v(), this._activeBindGroups.push(u), u.setResource(c, 0)), s.bindGroup = u, this._currentGlobalUniformData = s;
|
|
1896
2237
|
}
|
|
1897
2238
|
push(e) {
|
|
1898
2239
|
this.bind(e), this._globalUniformDataStack[this._stackIndex++] = this._currentGlobalUniformData;
|
|
1899
2240
|
}
|
|
1900
2241
|
pop() {
|
|
1901
|
-
this._currentGlobalUniformData = this._globalUniformDataStack[--this._stackIndex - 1], this._renderer.type ===
|
|
2242
|
+
this._currentGlobalUniformData = this._globalUniformDataStack[--this._stackIndex - 1], this._renderer.type === w.WEBGL && this._currentGlobalUniformData.bindGroup.resources[0].update();
|
|
1902
2243
|
}
|
|
1903
2244
|
get bindGroup() {
|
|
1904
2245
|
return this._currentGlobalUniformData.bindGroup;
|
|
@@ -1910,17 +2251,17 @@ var en = $t, tn = class {
|
|
|
1910
2251
|
return this._currentGlobalUniformData.bindGroup.resources[0];
|
|
1911
2252
|
}
|
|
1912
2253
|
_createUniforms() {
|
|
1913
|
-
return new
|
|
2254
|
+
return new _({
|
|
1914
2255
|
uProjectionMatrix: {
|
|
1915
|
-
value: new
|
|
2256
|
+
value: new y(),
|
|
1916
2257
|
type: "mat3x3<f32>"
|
|
1917
2258
|
},
|
|
1918
2259
|
uWorldTransformMatrix: {
|
|
1919
|
-
value: new
|
|
2260
|
+
value: new y(),
|
|
1920
2261
|
type: "mat3x3<f32>"
|
|
1921
2262
|
},
|
|
1922
2263
|
uWorldColorAlpha: {
|
|
1923
|
-
value:
|
|
2264
|
+
value: new Float32Array(4),
|
|
1924
2265
|
type: "vec4<f32>"
|
|
1925
2266
|
},
|
|
1926
2267
|
uResolution: {
|
|
@@ -1933,25 +2274,25 @@ var en = $t, tn = class {
|
|
|
1933
2274
|
this._renderer = null, this._globalUniformDataStack.length = 0, this._uniformsPool.length = 0, this._activeUniforms.length = 0, this._bindGroupPool.length = 0, this._activeBindGroups.length = 0, this._currentGlobalUniformData = null;
|
|
1934
2275
|
}
|
|
1935
2276
|
};
|
|
1936
|
-
|
|
2277
|
+
er.extension = {
|
|
1937
2278
|
type: [
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
2279
|
+
g.WebGLSystem,
|
|
2280
|
+
g.WebGPUSystem,
|
|
2281
|
+
g.CanvasSystem
|
|
1941
2282
|
],
|
|
1942
2283
|
name: "globalUniforms"
|
|
1943
2284
|
};
|
|
1944
2285
|
//#endregion
|
|
1945
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
1946
|
-
var
|
|
2286
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/SchedulerSystem.mjs
|
|
2287
|
+
var tr = 1, nr = class {
|
|
1947
2288
|
constructor() {
|
|
1948
2289
|
this._tasks = [], this._offset = 0;
|
|
1949
2290
|
}
|
|
1950
2291
|
init() {
|
|
1951
|
-
|
|
2292
|
+
pe.system.add(this._update, this);
|
|
1952
2293
|
}
|
|
1953
2294
|
repeat(e, t, n = !0) {
|
|
1954
|
-
let r =
|
|
2295
|
+
let r = tr++, i = 0;
|
|
1955
2296
|
return n && (this._offset += 1e3, i = this._offset), this._tasks.push({
|
|
1956
2297
|
func: e,
|
|
1957
2298
|
duration: t,
|
|
@@ -1979,26 +2320,26 @@ var nn = 1, rn = class {
|
|
|
1979
2320
|
}
|
|
1980
2321
|
}
|
|
1981
2322
|
destroy() {
|
|
1982
|
-
|
|
2323
|
+
pe.system.remove(this._update, this), this._tasks.length = 0;
|
|
1983
2324
|
}
|
|
1984
2325
|
};
|
|
1985
|
-
|
|
2326
|
+
nr.extension = {
|
|
1986
2327
|
type: [
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
2328
|
+
g.WebGLSystem,
|
|
2329
|
+
g.WebGPUSystem,
|
|
2330
|
+
g.CanvasSystem
|
|
1990
2331
|
],
|
|
1991
2332
|
name: "scheduler",
|
|
1992
2333
|
priority: 0
|
|
1993
2334
|
};
|
|
1994
2335
|
//#endregion
|
|
1995
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
1996
|
-
var
|
|
1997
|
-
function
|
|
1998
|
-
if (!
|
|
1999
|
-
if (
|
|
2336
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/sayHello.mjs
|
|
2337
|
+
var rr = !1;
|
|
2338
|
+
function ir(e) {
|
|
2339
|
+
if (!rr) {
|
|
2340
|
+
if (me.get().getNavigator().userAgent.toLowerCase().indexOf("chrome") > -1) {
|
|
2000
2341
|
let t = [
|
|
2001
|
-
`%c %c %c %c %c PixiJS %c v${
|
|
2342
|
+
`%c %c %c %c %c PixiJS %c v${Z} (${e}) http://www.pixijs.com/
|
|
2002
2343
|
|
|
2003
2344
|
`,
|
|
2004
2345
|
"background: #E72264; padding:5px 0;",
|
|
@@ -2009,35 +2350,35 @@ function on(e) {
|
|
|
2009
2350
|
"color: #E72264; background: #FFFFFF; padding:5px 0;"
|
|
2010
2351
|
];
|
|
2011
2352
|
globalThis.console.log(...t);
|
|
2012
|
-
} else globalThis.console && globalThis.console.log(`PixiJS ${
|
|
2013
|
-
|
|
2353
|
+
} else globalThis.console && globalThis.console.log(`PixiJS ${Z} - ${e} - http://www.pixijs.com/`);
|
|
2354
|
+
rr = !0;
|
|
2014
2355
|
}
|
|
2015
2356
|
}
|
|
2016
2357
|
//#endregion
|
|
2017
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
2018
|
-
var
|
|
2358
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/startup/HelloSystem.mjs
|
|
2359
|
+
var ar = class {
|
|
2019
2360
|
constructor(e) {
|
|
2020
2361
|
this._renderer = e;
|
|
2021
2362
|
}
|
|
2022
2363
|
init(e) {
|
|
2023
2364
|
if (e.hello) {
|
|
2024
2365
|
let e = this._renderer.name;
|
|
2025
|
-
this._renderer.type ===
|
|
2366
|
+
this._renderer.type === w.WEBGL && (e += ` ${this._renderer.context.webGLVersion}`), ir(e);
|
|
2026
2367
|
}
|
|
2027
2368
|
}
|
|
2028
2369
|
};
|
|
2029
|
-
|
|
2370
|
+
ar.extension = {
|
|
2030
2371
|
type: [
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2372
|
+
g.WebGLSystem,
|
|
2373
|
+
g.WebGPUSystem,
|
|
2374
|
+
g.CanvasSystem
|
|
2034
2375
|
],
|
|
2035
2376
|
name: "hello",
|
|
2036
2377
|
priority: -2
|
|
2037
|
-
},
|
|
2378
|
+
}, ar.defaultOptions = { hello: !1 };
|
|
2038
2379
|
//#endregion
|
|
2039
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
2040
|
-
var
|
|
2380
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/RenderableGCSystem.mjs
|
|
2381
|
+
var or = class e {
|
|
2041
2382
|
constructor(e) {
|
|
2042
2383
|
this._renderer = e;
|
|
2043
2384
|
}
|
|
@@ -2048,41 +2389,41 @@ var cn = class e {
|
|
|
2048
2389
|
}, this.maxUnusedTime = t.renderableGCMaxUnusedTime;
|
|
2049
2390
|
}
|
|
2050
2391
|
get enabled() {
|
|
2051
|
-
return
|
|
2392
|
+
return m("8.15.0", "RenderableGCSystem.enabled is deprecated, please use the GCSystem.enabled instead."), this._renderer.gc.enabled;
|
|
2052
2393
|
}
|
|
2053
2394
|
set enabled(e) {
|
|
2054
|
-
|
|
2395
|
+
m("8.15.0", "RenderableGCSystem.enabled is deprecated, please use the GCSystem.enabled instead."), this._renderer.gc.enabled = e;
|
|
2055
2396
|
}
|
|
2056
2397
|
addManagedHash(e, t) {
|
|
2057
|
-
|
|
2398
|
+
m("8.15.0", "RenderableGCSystem.addManagedHash is deprecated, please use the GCSystem.addCollection instead."), this._renderer.gc.addCollection(e, t, "hash");
|
|
2058
2399
|
}
|
|
2059
2400
|
addManagedArray(e, t) {
|
|
2060
|
-
|
|
2401
|
+
m("8.15.0", "RenderableGCSystem.addManagedArray is deprecated, please use the GCSystem.addCollection instead."), this._renderer.gc.addCollection(e, t, "array");
|
|
2061
2402
|
}
|
|
2062
2403
|
addRenderable(e) {
|
|
2063
|
-
|
|
2404
|
+
m("8.15.0", "RenderableGCSystem.addRenderable is deprecated, please use the GCSystem instead."), this._renderer.gc.addResource(e, "renderable");
|
|
2064
2405
|
}
|
|
2065
2406
|
run() {
|
|
2066
|
-
|
|
2407
|
+
m("8.15.0", "RenderableGCSystem.run is deprecated, please use the GCSystem instead."), this._renderer.gc.run();
|
|
2067
2408
|
}
|
|
2068
2409
|
destroy() {
|
|
2069
2410
|
this._renderer = null;
|
|
2070
2411
|
}
|
|
2071
2412
|
};
|
|
2072
|
-
|
|
2413
|
+
or.extension = {
|
|
2073
2414
|
type: [
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2415
|
+
g.WebGLSystem,
|
|
2416
|
+
g.WebGPUSystem,
|
|
2417
|
+
g.CanvasSystem
|
|
2077
2418
|
],
|
|
2078
2419
|
name: "renderableGC",
|
|
2079
2420
|
priority: 0
|
|
2080
|
-
},
|
|
2421
|
+
}, or.defaultOptions = {
|
|
2081
2422
|
renderableGCActive: !0,
|
|
2082
2423
|
renderableGCMaxUnusedTime: 6e4,
|
|
2083
2424
|
renderableGCFrequency: 3e4
|
|
2084
2425
|
};
|
|
2085
|
-
var
|
|
2426
|
+
var sr = or, cr = class e {
|
|
2086
2427
|
get count() {
|
|
2087
2428
|
return this._renderer.tick;
|
|
2088
2429
|
}
|
|
@@ -2090,25 +2431,25 @@ var ln = cn, un = class e {
|
|
|
2090
2431
|
return this._checkCount;
|
|
2091
2432
|
}
|
|
2092
2433
|
set checkCount(e) {
|
|
2093
|
-
|
|
2434
|
+
m("8.15.0", "TextureGCSystem.run is deprecated, please use the GCSystem instead."), this._checkCount = e;
|
|
2094
2435
|
}
|
|
2095
2436
|
get maxIdle() {
|
|
2096
2437
|
return this._renderer.gc.maxUnusedTime / 1e3 * 60;
|
|
2097
2438
|
}
|
|
2098
2439
|
set maxIdle(e) {
|
|
2099
|
-
|
|
2440
|
+
m("8.15.0", "TextureGCSystem.run is deprecated, please use the GCSystem instead."), this._renderer.gc.maxUnusedTime = e / 60 * 1e3;
|
|
2100
2441
|
}
|
|
2101
2442
|
get checkCountMax() {
|
|
2102
2443
|
return Math.floor(this._renderer.gc._frequency / 1e3);
|
|
2103
2444
|
}
|
|
2104
2445
|
set checkCountMax(e) {
|
|
2105
|
-
|
|
2446
|
+
m("8.15.0", "TextureGCSystem.run is deprecated, please use the GCSystem instead.");
|
|
2106
2447
|
}
|
|
2107
2448
|
get active() {
|
|
2108
2449
|
return this._renderer.gc.enabled;
|
|
2109
2450
|
}
|
|
2110
2451
|
set active(e) {
|
|
2111
|
-
|
|
2452
|
+
m("8.15.0", "TextureGCSystem.run is deprecated, please use the GCSystem instead."), this._renderer.gc.enabled = e;
|
|
2112
2453
|
}
|
|
2113
2454
|
constructor(e) {
|
|
2114
2455
|
this._renderer = e, this._checkCount = 0;
|
|
@@ -2117,89 +2458,143 @@ var ln = cn, un = class e {
|
|
|
2117
2458
|
t.textureGCActive !== e.defaultOptions.textureGCActive && (this.active = t.textureGCActive), t.textureGCMaxIdle !== e.defaultOptions.textureGCMaxIdle && (this.maxIdle = t.textureGCMaxIdle), t.textureGCCheckCountMax !== e.defaultOptions.textureGCCheckCountMax && (this.checkCountMax = t.textureGCCheckCountMax);
|
|
2118
2459
|
}
|
|
2119
2460
|
run() {
|
|
2120
|
-
|
|
2461
|
+
m("8.15.0", "TextureGCSystem.run is deprecated, please use the GCSystem instead."), this._renderer.gc.run();
|
|
2121
2462
|
}
|
|
2122
2463
|
destroy() {
|
|
2123
2464
|
this._renderer = null;
|
|
2124
2465
|
}
|
|
2125
2466
|
};
|
|
2126
|
-
|
|
2127
|
-
type: [
|
|
2467
|
+
cr.extension = {
|
|
2468
|
+
type: [g.WebGLSystem, g.WebGPUSystem],
|
|
2128
2469
|
name: "textureGC"
|
|
2129
|
-
},
|
|
2470
|
+
}, cr.defaultOptions = {
|
|
2130
2471
|
textureGCActive: !0,
|
|
2131
2472
|
textureGCAMaxIdle: null,
|
|
2132
2473
|
textureGCMaxIdle: 3600,
|
|
2133
2474
|
textureGCCheckCountMax: 600
|
|
2134
2475
|
};
|
|
2135
|
-
var
|
|
2136
|
-
constructor(
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
this.
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
antialias: t.antialias
|
|
2147
|
-
}));
|
|
2148
|
-
} else {
|
|
2149
|
-
this.colorTextures = [...t.colorTextures.map((e) => e.source)];
|
|
2150
|
-
let e = this.colorTexture.source;
|
|
2476
|
+
var lr = cr, ur = class t {
|
|
2477
|
+
constructor(e = {}) {
|
|
2478
|
+
this.uid = l("renderTarget"), this.colorAttachments = [], this.dirtyId = 0, this.isRoot = !1, this._size = new Float32Array(2), this._managedColorTextures = !1, this._depth = !1, this._stencil = !1, this._colorTextures = null;
|
|
2479
|
+
let t = "colorAttachments" in e ? e : this._normalizeOptions(e);
|
|
2480
|
+
if (this.isRoot = t.isRoot ?? !1, this.label = t.label, this.colorAttachments = t.colorAttachments, this.depthStencilAttachment = t.depthStencilAttachment, this.depthStencilAttachment) {
|
|
2481
|
+
let e = this.depthStencilAttachment.texture.format;
|
|
2482
|
+
this._depth ||= e.includes("depth"), this._stencil ||= e.includes("stencil");
|
|
2483
|
+
}
|
|
2484
|
+
if (this.colorAttachments.length === 0 && !this.depthStencilAttachment) throw Error("[RenderTarget] no color textures or depth textures were provided. Provide a depthStencilTexture or set depth/stencil to true when using colorTextures: 0.");
|
|
2485
|
+
if (this.colorAttachments.length > 0) {
|
|
2486
|
+
let e = this.colorTexture;
|
|
2151
2487
|
this.resize(e.width, e.height, e._resolution);
|
|
2152
2488
|
}
|
|
2153
|
-
this.
|
|
2489
|
+
this.sizeSource && this.sizeSource.on("resize", this.onSourceResize, this);
|
|
2490
|
+
}
|
|
2491
|
+
_normalizeOptions(n) {
|
|
2492
|
+
let i = {
|
|
2493
|
+
...t.defaultOptions,
|
|
2494
|
+
...n
|
|
2495
|
+
}, a = [], o;
|
|
2496
|
+
if (typeof i.colorTextures == "number") {
|
|
2497
|
+
if (i.colorTextures > 0) {
|
|
2498
|
+
this._managedColorTextures = !0;
|
|
2499
|
+
for (let t = 0; t < i.colorTextures; t++) a.push({
|
|
2500
|
+
texture: new e({
|
|
2501
|
+
width: i.width,
|
|
2502
|
+
height: i.height,
|
|
2503
|
+
resolution: i.resolution,
|
|
2504
|
+
antialias: i.antialias
|
|
2505
|
+
}),
|
|
2506
|
+
loadOp: "clear",
|
|
2507
|
+
storeOp: "store"
|
|
2508
|
+
});
|
|
2509
|
+
}
|
|
2510
|
+
} else i.colorTextures.forEach((e) => {
|
|
2511
|
+
a.push({
|
|
2512
|
+
texture: e.source,
|
|
2513
|
+
loadOp: "clear",
|
|
2514
|
+
storeOp: "store"
|
|
2515
|
+
});
|
|
2516
|
+
});
|
|
2517
|
+
let s = i.depthStencilTexture === !0;
|
|
2518
|
+
if (this._depth = !!(i.depth || s), this._stencil = !!(i.stencil || s), i.depthStencilTexture instanceof r || i.depthStencilTexture instanceof e) {
|
|
2519
|
+
if (i.isRoot) throw Error("[RenderTarget] cannot attach a depth-stencil texture to the screen — the canvas owns its own depth/stencil buffers. Render to a texture target instead.");
|
|
2520
|
+
o = { texture: i.depthStencilTexture.source };
|
|
2521
|
+
} else (s && !i.isRoot || (i.stencil || i.depth) && a.length === 0) && (o = this._createDepthStencilTexture(i.width, i.height, i.resolution));
|
|
2522
|
+
return {
|
|
2523
|
+
colorAttachments: a,
|
|
2524
|
+
depthStencilAttachment: o,
|
|
2525
|
+
isRoot: i.isRoot,
|
|
2526
|
+
label: i.label
|
|
2527
|
+
};
|
|
2154
2528
|
}
|
|
2155
2529
|
get size() {
|
|
2156
2530
|
let e = this._size;
|
|
2157
2531
|
return e[0] = this.pixelWidth, e[1] = this.pixelHeight, e;
|
|
2158
2532
|
}
|
|
2159
2533
|
get width() {
|
|
2160
|
-
return this.
|
|
2534
|
+
return this.sizeSource.width;
|
|
2161
2535
|
}
|
|
2162
2536
|
get height() {
|
|
2163
|
-
return this.
|
|
2537
|
+
return this.sizeSource.height;
|
|
2164
2538
|
}
|
|
2165
2539
|
get pixelWidth() {
|
|
2166
|
-
return this.
|
|
2540
|
+
return this.sizeSource.pixelWidth;
|
|
2167
2541
|
}
|
|
2168
2542
|
get pixelHeight() {
|
|
2169
|
-
return this.
|
|
2543
|
+
return this.sizeSource.pixelHeight;
|
|
2170
2544
|
}
|
|
2171
2545
|
get resolution() {
|
|
2172
|
-
return this.
|
|
2546
|
+
return this.sizeSource._resolution;
|
|
2547
|
+
}
|
|
2548
|
+
get colorTextures() {
|
|
2549
|
+
return this._colorTextures ||= this.colorAttachments.map((e) => e.texture), this._colorTextures;
|
|
2550
|
+
}
|
|
2551
|
+
get depthStencilTexture() {
|
|
2552
|
+
return this.depthStencilAttachment?.texture ?? null;
|
|
2553
|
+
}
|
|
2554
|
+
get depth() {
|
|
2555
|
+
return this._depth;
|
|
2556
|
+
}
|
|
2557
|
+
get stencil() {
|
|
2558
|
+
return this._stencil;
|
|
2173
2559
|
}
|
|
2174
2560
|
get colorTexture() {
|
|
2175
|
-
return this.
|
|
2561
|
+
return this.colorAttachments[0]?.texture;
|
|
2562
|
+
}
|
|
2563
|
+
get sizeSource() {
|
|
2564
|
+
return this.colorAttachments[0]?.texture ?? this.depthStencilAttachment?.texture;
|
|
2176
2565
|
}
|
|
2177
2566
|
onSourceResize(e) {
|
|
2178
2567
|
this.resize(e.width, e.height, e._resolution, !0);
|
|
2179
2568
|
}
|
|
2180
2569
|
ensureDepthStencilTexture() {
|
|
2181
|
-
this.
|
|
2182
|
-
width: this.width,
|
|
2183
|
-
height: this.height,
|
|
2184
|
-
resolution: this.resolution,
|
|
2185
|
-
format: "depth24plus-stencil8",
|
|
2186
|
-
autoGenerateMipmaps: !1,
|
|
2187
|
-
antialias: !1,
|
|
2188
|
-
mipLevelCount: 1
|
|
2189
|
-
});
|
|
2570
|
+
this._createDepthStencilTexture(this.sizeSource.width, this.sizeSource.height, this.sizeSource._resolution), this._depth = !0, this._stencil = !0;
|
|
2190
2571
|
}
|
|
2191
2572
|
resize(e, t, n = this.resolution, r = !1) {
|
|
2192
|
-
this.dirtyId++, this.
|
|
2193
|
-
r && a === 0 || i.
|
|
2194
|
-
}), this.
|
|
2573
|
+
if (this.dirtyId++, this.colorAttachments.forEach((i, a) => {
|
|
2574
|
+
r && a === 0 || i.texture.resize(e, t, n);
|
|
2575
|
+
}), this.depthStencilAttachment) {
|
|
2576
|
+
if (r && this.colorAttachments.length === 0) return;
|
|
2577
|
+
this.depthStencilAttachment.texture.resize(e, t, n);
|
|
2578
|
+
}
|
|
2195
2579
|
}
|
|
2196
2580
|
destroy() {
|
|
2197
|
-
this.
|
|
2198
|
-
e.destroy();
|
|
2199
|
-
}), this.
|
|
2581
|
+
!this.colorAttachments && !this.depthStencilAttachment || (this.sizeSource.off("resize", this.onSourceResize, this), this._managedColorTextures && this.colorAttachments.forEach((e) => {
|
|
2582
|
+
e.texture.destroy();
|
|
2583
|
+
}), this.depthStencilAttachment && (this.depthStencilAttachment.texture.destroy(), delete this.depthStencilAttachment), this.colorAttachments = null, this._colorTextures = null);
|
|
2584
|
+
}
|
|
2585
|
+
_createDepthStencilTexture(t, n, r) {
|
|
2586
|
+
return this.depthStencilAttachment ??= { texture: new e({
|
|
2587
|
+
width: t,
|
|
2588
|
+
height: n,
|
|
2589
|
+
resolution: r,
|
|
2590
|
+
format: "depth24plus-stencil8",
|
|
2591
|
+
autoGenerateMipmaps: !1,
|
|
2592
|
+
antialias: !1,
|
|
2593
|
+
mipLevelCount: 1
|
|
2594
|
+
}) }, this.depthStencilAttachment;
|
|
2200
2595
|
}
|
|
2201
2596
|
};
|
|
2202
|
-
|
|
2597
|
+
ur.defaultOptions = {
|
|
2203
2598
|
width: 0,
|
|
2204
2599
|
height: 0,
|
|
2205
2600
|
resolution: 1,
|
|
@@ -2209,23 +2604,23 @@ fn.defaultOptions = {
|
|
|
2209
2604
|
antialias: !1,
|
|
2210
2605
|
isRoot: !1
|
|
2211
2606
|
};
|
|
2212
|
-
var
|
|
2213
|
-
|
|
2214
|
-
function
|
|
2607
|
+
var Q = ur, $ = /* @__PURE__ */ new Map();
|
|
2608
|
+
se.register($);
|
|
2609
|
+
function dr(e, t) {
|
|
2215
2610
|
if (!$.has(e)) {
|
|
2216
|
-
let n = new
|
|
2611
|
+
let n = new r({ source: new h({
|
|
2217
2612
|
resource: e,
|
|
2218
2613
|
...t
|
|
2219
|
-
}) }),
|
|
2614
|
+
}) }), i = () => {
|
|
2220
2615
|
$.get(e) === n && $.delete(e);
|
|
2221
2616
|
};
|
|
2222
|
-
n.once("destroy",
|
|
2617
|
+
n.once("destroy", i), n.source.once("destroy", i), $.set(e, n);
|
|
2223
2618
|
}
|
|
2224
2619
|
return $.get(e);
|
|
2225
2620
|
}
|
|
2226
2621
|
//#endregion
|
|
2227
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
2228
|
-
var
|
|
2622
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/view/ViewSystem.mjs
|
|
2623
|
+
var fr = class e {
|
|
2229
2624
|
get autoDensity() {
|
|
2230
2625
|
return this.texture.source.autoDensity;
|
|
2231
2626
|
}
|
|
@@ -2242,7 +2637,7 @@ var hn = class e {
|
|
|
2242
2637
|
t = {
|
|
2243
2638
|
...e.defaultOptions,
|
|
2244
2639
|
...t
|
|
2245
|
-
}, t.view && (
|
|
2640
|
+
}, t.view && (m(p, "ViewSystem.view has been renamed to ViewSystem.canvas"), t.canvas = t.view), this.screen = new d(0, 0, t.width, t.height), this.canvas = t.canvas || me.get().createCanvas(), this.antialias = !!t.antialias, this.texture = dr(this.canvas, t), this.renderTarget = new Q({
|
|
2246
2641
|
colorTextures: [this.texture],
|
|
2247
2642
|
depth: !!t.depth,
|
|
2248
2643
|
isRoot: !0
|
|
@@ -2255,89 +2650,129 @@ var hn = class e {
|
|
|
2255
2650
|
(typeof e == "boolean" ? e : e?.removeView) && this.canvas.parentNode && this.canvas.parentNode.removeChild(this.canvas), this.texture.destroy();
|
|
2256
2651
|
}
|
|
2257
2652
|
};
|
|
2258
|
-
|
|
2653
|
+
fr.extension = {
|
|
2259
2654
|
type: [
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2655
|
+
g.WebGLSystem,
|
|
2656
|
+
g.WebGPUSystem,
|
|
2657
|
+
g.CanvasSystem
|
|
2263
2658
|
],
|
|
2264
2659
|
name: "view",
|
|
2265
2660
|
priority: 0
|
|
2266
|
-
},
|
|
2661
|
+
}, fr.defaultOptions = {
|
|
2267
2662
|
width: 800,
|
|
2268
2663
|
height: 600,
|
|
2269
2664
|
autoDensity: !1,
|
|
2270
2665
|
antialias: !1
|
|
2271
2666
|
};
|
|
2272
|
-
var
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
],
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2667
|
+
var pr = fr, mr = [
|
|
2668
|
+
Vn,
|
|
2669
|
+
er,
|
|
2670
|
+
ar,
|
|
2671
|
+
pr,
|
|
2672
|
+
Fn,
|
|
2673
|
+
$n,
|
|
2674
|
+
lr,
|
|
2675
|
+
Yn,
|
|
2676
|
+
Wn,
|
|
2677
|
+
Ln,
|
|
2678
|
+
sr,
|
|
2679
|
+
nr
|
|
2680
|
+
], hr = [
|
|
2681
|
+
vn,
|
|
2682
|
+
cn,
|
|
2683
|
+
tt,
|
|
2684
|
+
ye,
|
|
2685
|
+
hn,
|
|
2686
|
+
zn,
|
|
2687
|
+
Rn,
|
|
2688
|
+
ge
|
|
2294
2689
|
];
|
|
2295
2690
|
//#endregion
|
|
2296
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
2297
|
-
function
|
|
2691
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gpu/renderTarget/calculateProjection.mjs
|
|
2692
|
+
function gr(e, t, n, r, i, a) {
|
|
2298
2693
|
let o = a ? 1 : -1;
|
|
2299
2694
|
return e.identity(), e.a = 1 / r * 2, e.d = o * (1 / i * 2), e.tx = -1 - t * e.a, e.ty = -o - n * e.d, e;
|
|
2300
2695
|
}
|
|
2301
2696
|
//#endregion
|
|
2302
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
2303
|
-
function
|
|
2304
|
-
|
|
2697
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/renderTarget/isRenderingToScreen.mjs
|
|
2698
|
+
function _r(e) {
|
|
2699
|
+
if (e.colorAttachments.length === 0) return !1;
|
|
2700
|
+
let t = e.colorTexture.resource;
|
|
2305
2701
|
return globalThis.HTMLCanvasElement && t instanceof HTMLCanvasElement && document.body.contains(t);
|
|
2306
2702
|
}
|
|
2307
2703
|
//#endregion
|
|
2308
|
-
//#region node_modules/.pnpm/pixi.js@8.
|
|
2309
|
-
var
|
|
2704
|
+
//#region ../../node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/renderTarget/RenderTargetSystem.mjs
|
|
2705
|
+
var vr = class {
|
|
2310
2706
|
constructor(e) {
|
|
2311
|
-
this.rootViewPort = new
|
|
2707
|
+
this.rootViewPort = new d(), this.viewport = new d(), this.onRenderTargetChange = new Sn("onRenderTargetChange"), this.projectionMatrix = new y(), this.defaultClearColor = [
|
|
2312
2708
|
0,
|
|
2313
2709
|
0,
|
|
2314
2710
|
0,
|
|
2315
2711
|
0
|
|
2316
|
-
], this._renderSurfaceToRenderTargetHash = /* @__PURE__ */ new Map(), this._gpuRenderTargetHash = /* @__PURE__ */ Object.create(null), this._renderTargetStack = [], this.
|
|
2712
|
+
], this._renderSurfaceToRenderTargetHash = /* @__PURE__ */ new Map(), this._gpuRenderTargetHash = /* @__PURE__ */ Object.create(null), this._renderTargetStack = [], this._bindState = {
|
|
2713
|
+
target: null,
|
|
2714
|
+
frame: void 0,
|
|
2715
|
+
mipLevel: 0,
|
|
2716
|
+
layer: 0,
|
|
2717
|
+
flipY: !1
|
|
2718
|
+
}, this._bindFrame = new d(), this._renderer = e, e.gc.addCollection(this, "_gpuRenderTargetHash", "hash");
|
|
2719
|
+
}
|
|
2720
|
+
get renderSurface() {
|
|
2721
|
+
return this._bindState.target;
|
|
2722
|
+
}
|
|
2723
|
+
get mipLevel() {
|
|
2724
|
+
return this._bindState.mipLevel;
|
|
2725
|
+
}
|
|
2726
|
+
get layer() {
|
|
2727
|
+
return this._bindState.layer;
|
|
2317
2728
|
}
|
|
2318
2729
|
finishRenderPass() {
|
|
2319
2730
|
this.adaptor.finishRenderPass(this.renderTarget);
|
|
2320
2731
|
}
|
|
2321
|
-
renderStart(
|
|
2322
|
-
this._renderTargetStack.length = 0, this.push(e
|
|
2732
|
+
renderStart(e) {
|
|
2733
|
+
this._renderTargetStack.length = 0, this.push(e), this.rootViewPort.copyFrom(this.viewport), this.rootRenderTarget = this.renderTarget, this.renderingToScreen = _r(this.rootRenderTarget), this.adaptor.prerender?.(this.rootRenderTarget);
|
|
2323
2734
|
}
|
|
2324
2735
|
postrender() {
|
|
2325
2736
|
this.adaptor.postrender?.(this.rootRenderTarget);
|
|
2326
2737
|
}
|
|
2327
|
-
bind(e, t = !0, n,
|
|
2328
|
-
let
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2738
|
+
bind(e, t = !0, n, i, a = 0, o = 0, s) {
|
|
2739
|
+
let c;
|
|
2740
|
+
"target" in e ? c = e : (m("8.20.0", "RenderTargetSystem.bind: positional arguments are deprecated, please use an options object instead: bind({ target, clear, clearColor, frame, mipLevel, layer, flipY })"), c = {
|
|
2741
|
+
target: e,
|
|
2742
|
+
clear: t,
|
|
2743
|
+
clearColor: n,
|
|
2744
|
+
frame: i,
|
|
2745
|
+
mipLevel: a,
|
|
2746
|
+
layer: o,
|
|
2747
|
+
flipY: s
|
|
2748
|
+
});
|
|
2749
|
+
let l = c.target;
|
|
2750
|
+
t = c.clear ?? !0, n = c.clearColor, a = (c.mipLevel ?? 0) | 0, o = (c.layer ?? 0) | 0, s = c.flipY, i = c.frame;
|
|
2751
|
+
let u = this.getRenderTarget(l), d = this.renderTarget !== u;
|
|
2752
|
+
this.renderTarget = u;
|
|
2753
|
+
let f = this.getGpuRenderTarget(u);
|
|
2754
|
+
(u.pixelWidth !== f.width || u.pixelHeight !== f.height) && (this.adaptor.resizeGpuRenderTarget(u), f.width = u.pixelWidth, f.height = u.pixelHeight);
|
|
2755
|
+
let p = u.colorAttachments[0]?.texture || u.depthStencilAttachment?.texture, h = this.viewport, g = p.arrayLayerCount || 1;
|
|
2756
|
+
if (o < 0 || o >= g) throw Error(`[RenderTargetSystem] layer ${o} is out of bounds (arrayLayerCount=${g}).`);
|
|
2757
|
+
let _ = this._bindState;
|
|
2758
|
+
_.target = l, _.frame = i ? this._bindFrame.copyFrom(i) : void 0, _.mipLevel = a, _.layer = o, _.flipY = s;
|
|
2759
|
+
let v = Math.max(p.pixelWidth >> a, 1), y = Math.max(p.pixelHeight >> a, 1);
|
|
2760
|
+
if (!i && l instanceof r && (i = l.frame), i) {
|
|
2761
|
+
let e = p._resolution, t = 1 << Math.max(a, 0), n = i.x * e + .5 | 0, r = i.y * e + .5 | 0, o = i.width * e + .5 | 0, s = i.height * e + .5 | 0, c = Math.floor(n / t), l = Math.floor(r / t), u = Math.ceil(o / t), d = Math.ceil(s / t);
|
|
2762
|
+
c < 0 && (u += c, c = 0), l < 0 && (d += l, l = 0), c = Math.min(c, v - 1), l = Math.min(l, y - 1), u = Math.min(u, v - c), d = Math.min(d, y - l), u = Math.max(u, 1), d = Math.max(d, 1), h.x = c, h.y = l, h.width = u, h.height = d;
|
|
2763
|
+
} else h.x = 0, h.y = 0, h.width = v, h.height = y;
|
|
2764
|
+
return u.flipY = s, gr(this.projectionMatrix, 0, 0, h.width / p.resolution, h.height / p.resolution, !u.isRoot != !!u.flipY), this.adaptor.startRenderPass(u, t, n, h, a, o), d && this.onRenderTargetChange.emit(u), u;
|
|
2765
|
+
}
|
|
2766
|
+
getBindState(e) {
|
|
2767
|
+
if (!this.renderTarget) throw Error("[RenderTargetSystem] getBindState is only valid while a render surface is bound");
|
|
2768
|
+
let t = this._bindState;
|
|
2769
|
+
return e ??= {}, e.target = t.target, e.clear = X.NONE, e.clearColor = void 0, t.frame ? e.frame ? e.frame.copyFrom(t.frame) : e.frame = t.frame.clone() : e.frame = void 0, e.mipLevel = t.mipLevel, e.layer = t.layer, e.flipY = !!t.flipY, e;
|
|
2770
|
+
}
|
|
2771
|
+
get frontFaceInverted() {
|
|
2772
|
+
let e = this.renderTarget;
|
|
2773
|
+
if (!e) return !1;
|
|
2774
|
+
let t = this._renderer.type === w.WEBGL && !e.isRoot;
|
|
2775
|
+
return !!e.flipY !== t;
|
|
2341
2776
|
}
|
|
2342
2777
|
clear(e, t = X.ALL, n, r = this.mipLevel, i = this.layer) {
|
|
2343
2778
|
t && (e &&= this.getRenderTarget(e), this.adaptor.clear(e || this.renderTarget, t, n, this.viewport, r, i));
|
|
@@ -2345,50 +2780,110 @@ var xn = class {
|
|
|
2345
2780
|
contextChange() {
|
|
2346
2781
|
this._gpuRenderTargetHash = /* @__PURE__ */ Object.create(null);
|
|
2347
2782
|
}
|
|
2348
|
-
push(e, t = X.ALL, n, r, i = 0, a = 0) {
|
|
2349
|
-
let
|
|
2350
|
-
|
|
2351
|
-
|
|
2783
|
+
push(e, t = X.ALL, n, r, i = 0, a = 0, o) {
|
|
2784
|
+
let s;
|
|
2785
|
+
"target" in e ? s = e : (m("8.20.0", "RenderTargetSystem.push: positional arguments are deprecated, please use an options object instead: push({ target, clear, clearColor, frame, mipLevel, layer, flipY })"), s = {
|
|
2786
|
+
target: e,
|
|
2787
|
+
clear: t,
|
|
2788
|
+
clearColor: n,
|
|
2352
2789
|
frame: r,
|
|
2353
2790
|
mipLevel: i,
|
|
2354
|
-
layer: a
|
|
2355
|
-
|
|
2791
|
+
layer: a,
|
|
2792
|
+
flipY: o
|
|
2793
|
+
});
|
|
2794
|
+
let c = this.bind(s);
|
|
2795
|
+
return this._renderTargetStack.push({
|
|
2796
|
+
target: s.target,
|
|
2797
|
+
clear: !1,
|
|
2798
|
+
clearColor: void 0,
|
|
2799
|
+
frame: s.frame ? s.frame.clone() : void 0,
|
|
2800
|
+
mipLevel: s.mipLevel,
|
|
2801
|
+
layer: s.layer,
|
|
2802
|
+
flipY: s.flipY
|
|
2803
|
+
}), c;
|
|
2356
2804
|
}
|
|
2357
2805
|
pop() {
|
|
2358
2806
|
this._renderTargetStack.pop();
|
|
2359
2807
|
let e = this._renderTargetStack[this._renderTargetStack.length - 1];
|
|
2360
|
-
|
|
2808
|
+
if (!e) throw Error("[RenderTargetSystem] pop: no previous binding to restore (unbalanced pop)");
|
|
2809
|
+
return this.bind(e);
|
|
2361
2810
|
}
|
|
2362
2811
|
getRenderTarget(e) {
|
|
2363
2812
|
return e.isTexture && (e = e.source), this._renderSurfaceToRenderTargetHash.get(e) ?? this._initRenderTarget(e);
|
|
2364
2813
|
}
|
|
2365
2814
|
copyToTexture(e, t, n, r, i) {
|
|
2815
|
+
let a = this.getRenderTarget(e);
|
|
2366
2816
|
n.x < 0 && (r.width += n.x, i.x -= n.x, n.x = 0), n.y < 0 && (r.height += n.y, i.y -= n.y, n.y = 0);
|
|
2367
|
-
let { pixelWidth:
|
|
2368
|
-
return r.width = Math.min(r.width,
|
|
2817
|
+
let { pixelWidth: o, pixelHeight: s } = a;
|
|
2818
|
+
return r.width = Math.min(r.width, o - n.x), r.height = Math.min(r.height, s - n.y), this.adaptor.copyToTexture(a, t, n, r, i);
|
|
2819
|
+
}
|
|
2820
|
+
copyDepthTexture(e, t, n, r, i = {
|
|
2821
|
+
x: 0,
|
|
2822
|
+
y: 0
|
|
2823
|
+
}) {
|
|
2824
|
+
let a = this.getRenderTarget(e);
|
|
2825
|
+
if (!a.depthStencilAttachment) {
|
|
2826
|
+
o("[RenderTargetSystem] copyDepthTexture: the source render target has no depth attachment to copy from");
|
|
2827
|
+
return;
|
|
2828
|
+
}
|
|
2829
|
+
let s = t.source;
|
|
2830
|
+
if (!s.format.includes("depth") && !s.format.includes("stencil")) {
|
|
2831
|
+
o(`[RenderTargetSystem] copyDepthTexture: the destination texture must have a depth/stencil format (got '${s.format}')`);
|
|
2832
|
+
return;
|
|
2833
|
+
}
|
|
2834
|
+
let c = n.x, l = n.y, u = i.x, d = i.y, f = r.width, p = r.height;
|
|
2835
|
+
c < 0 && (f += c, u -= c, c = 0), l < 0 && (p += l, d -= l, l = 0), f = Math.min(f, a.pixelWidth - c), p = Math.min(p, a.pixelHeight - l), f = Math.min(f, s.pixelWidth - u), p = Math.min(p, s.pixelHeight - d), !(f <= 0 || p <= 0) && this.adaptor.copyDepthTexture(a, t, {
|
|
2836
|
+
x: c,
|
|
2837
|
+
y: l
|
|
2838
|
+
}, {
|
|
2839
|
+
width: f,
|
|
2840
|
+
height: p
|
|
2841
|
+
}, {
|
|
2842
|
+
x: u,
|
|
2843
|
+
y: d
|
|
2844
|
+
});
|
|
2369
2845
|
}
|
|
2370
2846
|
ensureDepthStencil() {
|
|
2371
|
-
|
|
2847
|
+
if (!this.renderTarget.stencil) {
|
|
2848
|
+
if (this.renderTarget.depthStencilTexture) {
|
|
2849
|
+
o(`[RenderTargetSystem] a stencil mask is being used, but the render target's depthStencilTexture format '${this.renderTarget.depthStencilTexture.format}' has no stencil aspect, so masking cannot work here. Use a 'depth24plus-stencil8' texture instead.`);
|
|
2850
|
+
return;
|
|
2851
|
+
}
|
|
2852
|
+
this.renderTarget._depth = !0, this.renderTarget._stencil = !0, this.adaptor.startRenderPass(this.renderTarget, !1, null, this.viewport, 0, this.layer);
|
|
2853
|
+
}
|
|
2372
2854
|
}
|
|
2373
2855
|
destroy() {
|
|
2374
2856
|
this._renderer = null, this._renderSurfaceToRenderTargetHash.forEach((e, t) => {
|
|
2375
|
-
e !== t &&
|
|
2857
|
+
e !== t && this._releaseRenderTarget(t, e);
|
|
2376
2858
|
}), this._renderSurfaceToRenderTargetHash.clear(), this._gpuRenderTargetHash = /* @__PURE__ */ Object.create(null);
|
|
2377
2859
|
}
|
|
2378
|
-
_initRenderTarget(
|
|
2379
|
-
let
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
let
|
|
2383
|
-
n
|
|
2384
|
-
|
|
2860
|
+
_initRenderTarget(t) {
|
|
2861
|
+
let n = null;
|
|
2862
|
+
if (h.test(t) && (t = dr(t).source), t instanceof Q) n = t;
|
|
2863
|
+
else if (t instanceof e) {
|
|
2864
|
+
let e = t.format;
|
|
2865
|
+
n = e.includes("depth") || e.includes("stencil") ? new Q({
|
|
2866
|
+
colorTextures: 0,
|
|
2867
|
+
depthStencilTexture: t
|
|
2868
|
+
}) : new Q({ colorTextures: [t] }), t.source instanceof h && (n.isRoot = !0), t.once("destroy", this._onRenderSurfaceDestroy, this);
|
|
2869
|
+
}
|
|
2870
|
+
return this._renderSurfaceToRenderTargetHash.set(t, n), n;
|
|
2871
|
+
}
|
|
2872
|
+
_onRenderSurfaceDestroy(e) {
|
|
2873
|
+
let t = this._renderSurfaceToRenderTargetHash.get(e);
|
|
2874
|
+
t && this._releaseRenderTarget(e, t);
|
|
2875
|
+
}
|
|
2876
|
+
_releaseRenderTarget(e, t) {
|
|
2877
|
+
t.destroy(), this._renderSurfaceToRenderTargetHash.delete(e), e.off("destroy", this._onRenderSurfaceDestroy, this);
|
|
2878
|
+
let n = this._gpuRenderTargetHash[t.uid];
|
|
2879
|
+
n && (this._gpuRenderTargetHash[t.uid] = null, this.adaptor.destroyGpuRenderTarget(n));
|
|
2385
2880
|
}
|
|
2386
2881
|
getGpuRenderTarget(e) {
|
|
2387
2882
|
return this._gpuRenderTargetHash[e.uid] || (this._gpuRenderTargetHash[e.uid] = this.adaptor.initGpuRenderTarget(e));
|
|
2388
2883
|
}
|
|
2389
2884
|
resetState() {
|
|
2390
|
-
this.renderTarget = null, this.
|
|
2885
|
+
this.renderTarget = null, this._bindState.target = null;
|
|
2391
2886
|
}
|
|
2392
2887
|
};
|
|
2393
2888
|
//#endregion
|
|
2394
|
-
export {
|
|
2889
|
+
export { ge as A, Ht as C, tt as D, rt as E, et as O, Ut as S, V as T, en as _, In as a, Wt as b, xn as c, gn as d, hn as f, $t as g, nn as h, pr as i, ye as k, vn as l, on as m, hr as n, Tn as o, cn as p, mr as r, X as s, vr as t, _n as u, Yt as v, ct as w, Gt as x, Qt as y };
|