wuepgg 57.0.7 → 58.0.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/dist/{SharedSystems-lo30UJjL-C9qToANB.mjs → SharedSystems-BI3WO8LU-Bw9b0L-Q.mjs} +2 -2
- package/dist/{WebGLRenderer-Dg7VLLw--CHpMgCdP.mjs → WebGLRenderer-BZzkdak4-DRi1yBIP.mjs} +3 -3
- package/dist/{WebGPURenderer-FuA3tJ-C-CaqReo9H.mjs → WebGPURenderer-DaVR-iv3-DV-nSN_-.mjs} +10 -10
- package/dist/{browserAll-DHo9VyBB-Ym2Fnacg.mjs → browserAll-CpG7VyCZ-Dx3rmXIW.mjs} +7 -7
- package/dist/{colorToUniform-BgG3nLnP-De530nS3.mjs → colorToUniform-qSycICUr-DZkR4dVm.mjs} +9 -9
- package/dist/{index-ptnF6sNg.mjs → index-Cd5B4KAZ.mjs} +17509 -17457
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +397 -397
- package/dist/{init-DTztoKjk-SPbwux3J.mjs → init-HRIDff8U-BW0VtQcX.mjs} +40 -40
- package/dist/webworkerAll-DH0ChDuE-DAv1t4sq.mjs +2 -0
- package/package.json +2 -2
- package/dist/webworkerAll-BIMQLOM--yaxB18vC.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as l, K as F, a9 as ne, a2 as p, aa as Oe, E as S, ab as Fe, i as R, l as E, J as Ee,
|
|
2
|
-
import { _ as Xe, R as Ze, w as ce, S as Qe } from "./colorToUniform-
|
|
1
|
+
import { T as l, K as F, a9 as ne, a2 as p, aa as Oe, E as S, ab as Fe, i as R, l as E, J as Ee, q as v, u as De, v as D, x as ae, d as ze, f as We, c as w, U as z, t as b, s as He, w as W, ac as Le, R as m, B as Y, ad as ie, Z as G, ae as Ve, a5 as B, af as J, a6 as U, ag as M, a7 as T, ah as je, k as X, m as k, ai as Ne, aj as Z, ak as Ke, D as $e, al as oe, Y as Q, am as qe, V as Ye, W as Je, an as ue, ao as le, ap as de } from "./index-Cd5B4KAZ.mjs";
|
|
2
|
+
import { _ as Xe, R as Ze, w as ce, S as Qe } from "./colorToUniform-qSycICUr-DZkR4dVm.mjs";
|
|
3
3
|
var et = `in vec2 vMaskCoord;
|
|
4
4
|
in vec2 vTextureCoord;
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a0 as Ae,
|
|
2
|
-
import { _ as P, P as Z } from "./colorToUniform-
|
|
3
|
-
import { F as Fe, L as Oe, I as Pe, D as Ue, A as Le, _ as Me, U as He, G as we, i as Ve, O as Q, C as G } from "./SharedSystems-
|
|
1
|
+
import { a0 as Ae, v as Be, T as d, o as Ne, K as S, l as g, W as Ge, _ as F, R as E, a7 as K, U as T, a8 as Ce, m as A, Y as $, a2 as b, I as j, P as z, q, x as O, L as Ie, O as De, Q as ye, c as H, a6 as B, a5 as N } from "./index-Cd5B4KAZ.mjs";
|
|
2
|
+
import { _ as P, P as Z } from "./colorToUniform-qSycICUr-DZkR4dVm.mjs";
|
|
3
|
+
import { F as Fe, L as Oe, I as Pe, D as Ue, A as Le, _ as Me, U as He, G as we, i as Ve, O as Q, C as G } from "./SharedSystems-BI3WO8LU-Bw9b0L-Q.mjs";
|
|
4
4
|
class J {
|
|
5
5
|
constructor() {
|
|
6
6
|
this._tempState = P.for2d(), this._didUploadHash = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a0 as ae,
|
|
2
|
-
import { _ as F, h as ge, k as me } from "./colorToUniform-
|
|
3
|
-
import { F as _e, L as be, I as xe, D as ye, _ as Ge, A as Pe, O as Be, B as Te, G as Se, E as Ce } from "./SharedSystems-
|
|
1
|
+
import { a0 as ae, v as ue, T as l, K as B, U as P, a1 as de, u as R, x as H, e as U, a2 as S, a3 as w, l as C, m as T, k as ce, a4 as A, A as O, H as z, _ as k, q as L, R as E, C as he, G as le, a5 as x, a6 as pe, a7 as fe } from "./index-Cd5B4KAZ.mjs";
|
|
2
|
+
import { _ as F, h as ge, k as me } from "./colorToUniform-qSycICUr-DZkR4dVm.mjs";
|
|
3
|
+
import { F as _e, L as be, I as xe, D as ye, _ as Ge, A as Pe, O as Be, B as Te, G as Se, E as Ce } from "./SharedSystems-BI3WO8LU-Bw9b0L-Q.mjs";
|
|
4
4
|
const y = F.for2d();
|
|
5
5
|
class D {
|
|
6
6
|
start(e, t, r) {
|
|
@@ -1180,11 +1180,11 @@ const ze = {
|
|
|
1180
1180
|
"etc1-rgb-unorm": { blockBytes: 8, blockWidth: 4, blockHeight: 4 },
|
|
1181
1181
|
"etc2-rgba8unorm": { blockBytes: 16, blockWidth: 4, blockHeight: 4 },
|
|
1182
1182
|
"astc-4x4-unorm": { blockBytes: 16, blockWidth: 4, blockHeight: 4 }
|
|
1183
|
-
},
|
|
1183
|
+
}, ke = { blockBytes: 4, blockWidth: 1, blockHeight: 1 }, Le = {
|
|
1184
1184
|
type: "compressed",
|
|
1185
1185
|
upload(a, e, t) {
|
|
1186
1186
|
let r = a.pixelWidth, s = a.pixelHeight;
|
|
1187
|
-
const i = Z[a.format] ||
|
|
1187
|
+
const i = Z[a.format] || ke;
|
|
1188
1188
|
for (let n = 0; n < a.resource.length; n++) {
|
|
1189
1189
|
const o = a.resource[n], u = Math.ceil(r / i.blockWidth) * i.blockBytes;
|
|
1190
1190
|
t.device.queue.writeTexture(
|
|
@@ -1363,7 +1363,7 @@ class te {
|
|
|
1363
1363
|
image: ee,
|
|
1364
1364
|
buffer: ze,
|
|
1365
1365
|
video: Fe,
|
|
1366
|
-
compressed:
|
|
1366
|
+
compressed: Le
|
|
1367
1367
|
}, this._renderer = e, e.renderableGC.addManagedHash(this, "_gpuSources"), e.renderableGC.addManagedHash(this, "_gpuSamplers"), e.renderableGC.addManagedHash(this, "_bindGroupHash"), e.renderableGC.addManagedHash(this, "_textureViewHash");
|
|
1368
1368
|
}
|
|
1369
1369
|
contextChange(e) {
|
|
@@ -1502,7 +1502,7 @@ class re {
|
|
|
1502
1502
|
}
|
|
1503
1503
|
contextChange(e) {
|
|
1504
1504
|
const t = new H({
|
|
1505
|
-
uTransformMatrix: { value: new
|
|
1505
|
+
uTransformMatrix: { value: new L(), type: "mat3x3<f32>" },
|
|
1506
1506
|
uColor: { value: new Float32Array([1, 1, 1, 1]), type: "vec4<f32>" },
|
|
1507
1507
|
uRound: { value: 0, type: "f32" }
|
|
1508
1508
|
});
|
|
@@ -1516,7 +1516,7 @@ class re {
|
|
|
1516
1516
|
z
|
|
1517
1517
|
]
|
|
1518
1518
|
});
|
|
1519
|
-
this.shader = new
|
|
1519
|
+
this.shader = new k({
|
|
1520
1520
|
gpuProgram: r,
|
|
1521
1521
|
resources: {
|
|
1522
1522
|
// added on the fly!
|
|
@@ -1578,13 +1578,13 @@ class se {
|
|
|
1578
1578
|
z
|
|
1579
1579
|
]
|
|
1580
1580
|
});
|
|
1581
|
-
this._shader = new
|
|
1581
|
+
this._shader = new k({
|
|
1582
1582
|
gpuProgram: e,
|
|
1583
1583
|
resources: {
|
|
1584
1584
|
uTexture: E.EMPTY._source,
|
|
1585
1585
|
uSampler: E.EMPTY._source.style,
|
|
1586
1586
|
textureUniforms: {
|
|
1587
|
-
uTextureMatrix: { type: "mat3x3<f32>", value: new
|
|
1587
|
+
uTextureMatrix: { type: "mat3x3<f32>", value: new L() }
|
|
1588
1588
|
}
|
|
1589
1589
|
}
|
|
1590
1590
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as y, K as P, E as q, z as et, B as A,
|
|
2
|
-
import "./init-
|
|
1
|
+
import { T as y, K as P, E as q, z as et, B as A, a as Z, J as _, D as nt, l as f } from "./index-Cd5B4KAZ.mjs";
|
|
2
|
+
import "./init-HRIDff8U-BW0VtQcX.mjs";
|
|
3
3
|
class J {
|
|
4
4
|
constructor(t) {
|
|
5
5
|
this._lastTransform = "", this._observer = null, this._tickerAttached = !1, this.updateTranslation = () => {
|
|
@@ -164,7 +164,7 @@ class w {
|
|
|
164
164
|
this.propagationStopped = !0;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
var I = /iPhone/i, S = /iPod/i, C = /iPad/i, U = /\biOS-universal(?:.+)Mac\b/i, x = /\bAndroid(?:.+)Mobile\b/i, R = /Android/i, b = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i, M = /Silk/i, m = /Windows Phone/i, X = /\bWindows(?:.+)ARM\b/i, F = /BlackBerry/i, Y = /BB10/i, $ = /Opera Mini/i, N = /\b(CriOS|Chrome)(?:.+)Mobile/i, G = /Mobile(?:.+)Firefox\b/i,
|
|
167
|
+
var I = /iPhone/i, S = /iPod/i, C = /iPad/i, U = /\biOS-universal(?:.+)Mac\b/i, x = /\bAndroid(?:.+)Mobile\b/i, R = /Android/i, b = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i, M = /Silk/i, m = /Windows Phone/i, X = /\bWindows(?:.+)ARM\b/i, F = /BlackBerry/i, Y = /BB10/i, $ = /Opera Mini/i, N = /\b(CriOS|Chrome)(?:.+)Mobile/i, G = /Mobile(?:.+)Firefox\b/i, W = function(a) {
|
|
168
168
|
return typeof a < "u" && a.platform === "MacIntel" && typeof a.maxTouchPoints == "number" && a.maxTouchPoints > 1 && typeof MSStream > "u";
|
|
169
169
|
};
|
|
170
170
|
function it(a) {
|
|
@@ -172,7 +172,7 @@ function it(a) {
|
|
|
172
172
|
return t.test(a);
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function H(a) {
|
|
176
176
|
var t = {
|
|
177
177
|
userAgent: "",
|
|
178
178
|
platform: "",
|
|
@@ -193,9 +193,9 @@ function W(a) {
|
|
|
193
193
|
apple: {
|
|
194
194
|
phone: i(I) && !i(m),
|
|
195
195
|
ipod: i(S),
|
|
196
|
-
tablet: !i(I) && (i(C) ||
|
|
196
|
+
tablet: !i(I) && (i(C) || W(t)) && !i(m),
|
|
197
197
|
universal: i(U),
|
|
198
|
-
device: (i(I) || i(S) || i(C) || i(U) ||
|
|
198
|
+
device: (i(I) || i(S) || i(C) || i(U) || W(t)) && !i(m)
|
|
199
199
|
},
|
|
200
200
|
amazon: {
|
|
201
201
|
phone: i(b),
|
|
@@ -226,7 +226,7 @@ function W(a) {
|
|
|
226
226
|
};
|
|
227
227
|
return s.any = s.apple.device || s.android.device || s.windows.device || s.other.device, s.phone = s.apple.phone || s.android.phone || s.windows.phone, s.tablet = s.apple.tablet || s.android.tablet || s.windows.tablet, s;
|
|
228
228
|
}
|
|
229
|
-
const st =
|
|
229
|
+
const st = H.default ?? H, ot = st(globalThis.navigator), rt = 9, K = 100, at = 0, ht = 0, j = 2, z = 1, lt = -1e3, ct = -1e3, ut = 2, L = class Q {
|
|
230
230
|
// eslint-disable-next-line jsdoc/require-param
|
|
231
231
|
/**
|
|
232
232
|
* @param {WebGLRenderer|WebGPURenderer} renderer - A reference to the current renderer
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as M, V as x, W as y } from "./index-Cd5B4KAZ.mjs";
|
|
2
2
|
const k = {
|
|
3
3
|
normal: 0,
|
|
4
4
|
add: 1,
|
|
@@ -172,7 +172,7 @@ m.defaultOptions = {
|
|
|
172
172
|
blendRequired: !1,
|
|
173
173
|
clipToViewport: !0
|
|
174
174
|
};
|
|
175
|
-
let
|
|
175
|
+
let w = m;
|
|
176
176
|
const h = {
|
|
177
177
|
name: "local-uniform-bit",
|
|
178
178
|
vertex: {
|
|
@@ -206,14 +206,14 @@ const h = {
|
|
|
206
206
|
`
|
|
207
207
|
)
|
|
208
208
|
}
|
|
209
|
-
},
|
|
209
|
+
}, F = {
|
|
210
210
|
...h,
|
|
211
211
|
vertex: {
|
|
212
212
|
...h.vertex,
|
|
213
213
|
// replace the group!
|
|
214
214
|
header: h.vertex.header.replace("group(1)", "group(2)")
|
|
215
215
|
}
|
|
216
|
-
},
|
|
216
|
+
}, R = {
|
|
217
217
|
name: "local-uniform-bit",
|
|
218
218
|
vertex: {
|
|
219
219
|
header: (
|
|
@@ -243,7 +243,7 @@ const h = {
|
|
|
243
243
|
)
|
|
244
244
|
}
|
|
245
245
|
};
|
|
246
|
-
class
|
|
246
|
+
class T {
|
|
247
247
|
constructor() {
|
|
248
248
|
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;
|
|
249
249
|
}
|
|
@@ -264,11 +264,11 @@ function P(s, t, e) {
|
|
|
264
264
|
t[e++] = (s & 255) / 255 * o, t[e++] = (s >> 8 & 255) / 255 * o, t[e++] = (s >> 16 & 255) / 255 * o, t[e++] = o;
|
|
265
265
|
}
|
|
266
266
|
export {
|
|
267
|
-
|
|
267
|
+
R as P,
|
|
268
268
|
P as R,
|
|
269
|
-
|
|
269
|
+
w as S,
|
|
270
270
|
v as _,
|
|
271
271
|
h,
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
F as k,
|
|
273
|
+
T as w
|
|
274
274
|
};
|