holostaff-widget 2.1.5 → 2.2.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/{BufferResource-OZ5Ul2Z8.js → BufferResource-C1ruXQTX.js} +13 -13
- package/dist/{BufferResource-OZ5Ul2Z8.js.map → BufferResource-C1ruXQTX.js.map} +1 -1
- package/dist/{CanvasRenderer-CD425hkf.js → CanvasRenderer-DbChYDOl.js} +22 -22
- package/dist/{CanvasRenderer-CD425hkf.js.map → CanvasRenderer-DbChYDOl.js.map} +1 -1
- package/dist/Filter-D2L1V9fN.js +57 -0
- package/dist/Filter-D2L1V9fN.js.map +1 -0
- package/dist/{RenderTargetSystem-DCdLBRV6.js → RenderTargetSystem-DPwhMcpZ.js} +70 -69
- package/dist/{RenderTargetSystem-DCdLBRV6.js.map → RenderTargetSystem-DPwhMcpZ.js.map} +1 -1
- package/dist/{WebGLRenderer-Dzf9OyZQ.js → WebGLRenderer-Cp6XondT.js} +22 -22
- package/dist/{WebGLRenderer-Dzf9OyZQ.js.map → WebGLRenderer-Cp6XondT.js.map} +1 -1
- package/dist/{WebGPURenderer-CYMkZfQR.js → WebGPURenderer-BDmK_KWD.js} +9 -9
- package/dist/{WebGPURenderer-CYMkZfQR.js.map → WebGPURenderer-BDmK_KWD.js.map} +1 -1
- package/dist/{browserAll-D-2sjrzE.js → browserAll-CjLyYNcB.js} +3 -3
- package/dist/{browserAll-D-2sjrzE.js.map → browserAll-CjLyYNcB.js.map} +1 -1
- package/dist/hs-widget.es.js +1 -1
- package/dist/hs-widget.umd.js +40 -78
- package/dist/hs-widget.umd.js.map +1 -1
- package/dist/{index-BFRj2AUJ.js → index-CgKgBdpC.js} +1329 -1441
- package/dist/index-CgKgBdpC.js.map +1 -0
- package/dist/{webworkerAll-BpL8oe51.js → webworkerAll-BGJHmEXB.js} +11 -10
- package/dist/{webworkerAll-BpL8oe51.js.map → webworkerAll-BGJHmEXB.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BFRj2AUJ.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as R,
|
|
2
|
-
import { e as Pe, G as Oe, c as Me, b as Le, U as we, B as ee, d as N, f as te, g as He } from "./BufferResource-
|
|
3
|
-
import { R as Ve, S as Xe, d as ke } from "./RenderTargetSystem-
|
|
1
|
+
import { D as R, a as F, i as d, x as P, d as B, w as p, g as z, b as ye, S as O, T as S, ai as Ce, J as q, aj as Ne, c as g, a9 as V, o as y, I as C, K as M, M as Z, ak as J, al as De, am as Q, an as Ie, ao as Ge, A as Ue, R as Fe, p as A } from "./index-CgKgBdpC.js";
|
|
2
|
+
import { e as Pe, G as Oe, c as Me, b as Le, U as we, B as ee, d as N, f as te, g as He } from "./BufferResource-C1ruXQTX.js";
|
|
3
|
+
import { R as Ve, S as Xe, d as ke } from "./RenderTargetSystem-DPwhMcpZ.js";
|
|
4
4
|
function We() {
|
|
5
5
|
const { userAgent: t } = R.get().getNavigator();
|
|
6
6
|
return /^((?!chrome|android).)*safari/i.test(t);
|
|
@@ -368,7 +368,7 @@ L.defaultOptions = {
|
|
|
368
368
|
*/
|
|
369
369
|
multiView: !1
|
|
370
370
|
};
|
|
371
|
-
let
|
|
371
|
+
let Ke = L;
|
|
372
372
|
var G = /* @__PURE__ */ ((t) => (t[t.RGBA = 6408] = "RGBA", t[t.RGB = 6407] = "RGB", t[t.RG = 33319] = "RG", t[t.RED = 6403] = "RED", t[t.RGBA_INTEGER = 36249] = "RGBA_INTEGER", t[t.RGB_INTEGER = 36248] = "RGB_INTEGER", t[t.RG_INTEGER = 33320] = "RG_INTEGER", t[t.RED_INTEGER = 36244] = "RED_INTEGER", t[t.ALPHA = 6406] = "ALPHA", t[t.LUMINANCE = 6409] = "LUMINANCE", t[t.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", t[t.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", t[t.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", t))(G || {}), w = /* @__PURE__ */ ((t) => (t[t.TEXTURE_2D = 3553] = "TEXTURE_2D", t[t.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", t[t.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", t[t.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", t[t.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", t[t.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", t[t.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", t))(w || {}), l = /* @__PURE__ */ ((t) => (t[t.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", t[t.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", t[t.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", t[t.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", t[t.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", t[t.UNSIGNED_INT = 5125] = "UNSIGNED_INT", t[t.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", t[t.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", t[t.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", t[t.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", t[t.BYTE = 5120] = "BYTE", t[t.SHORT = 5122] = "SHORT", t[t.INT = 5124] = "INT", t[t.FLOAT = 5126] = "FLOAT", t[t.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", t[t.HALF_FLOAT = 36193] = "HALF_FLOAT", t))(l || {});
|
|
373
373
|
const X = {
|
|
374
374
|
uint8x2: l.UNSIGNED_BYTE,
|
|
@@ -402,7 +402,7 @@ const X = {
|
|
|
402
402
|
sint32x3: l.INT,
|
|
403
403
|
sint32x4: l.INT
|
|
404
404
|
};
|
|
405
|
-
function
|
|
405
|
+
function $e(t) {
|
|
406
406
|
return X[t] ?? X.float32;
|
|
407
407
|
}
|
|
408
408
|
const Ye = {
|
|
@@ -554,7 +554,7 @@ class ie {
|
|
|
554
554
|
a !== f && (s.bind(_), a = f);
|
|
555
555
|
const m = h.location;
|
|
556
556
|
n.enableVertexAttribArray(m);
|
|
557
|
-
const b = z(c.format), E =
|
|
557
|
+
const b = z(c.format), E = $e(c.format);
|
|
558
558
|
if (((o = h.format) == null ? void 0 : o.substring(1, 4)) === "int" ? n.vertexAttribIPointer(
|
|
559
559
|
m,
|
|
560
560
|
b.size,
|
|
@@ -777,7 +777,7 @@ ue.extension = {
|
|
|
777
777
|
],
|
|
778
778
|
name: "limits"
|
|
779
779
|
};
|
|
780
|
-
class
|
|
780
|
+
class Je {
|
|
781
781
|
constructor() {
|
|
782
782
|
this.width = -1, this.height = -1, this.msaa = !1, this._attachedMipLevel = 0, this._attachedLayer = 0, this.msaaRenderBuffer = [];
|
|
783
783
|
}
|
|
@@ -867,7 +867,7 @@ const fe = {
|
|
|
867
867
|
// mat3: 16 * 3,
|
|
868
868
|
// mat4: 16 * 4,
|
|
869
869
|
};
|
|
870
|
-
function
|
|
870
|
+
function Qe(t) {
|
|
871
871
|
const e = t.map((i) => ({
|
|
872
872
|
data: i,
|
|
873
873
|
offset: 0,
|
|
@@ -917,7 +917,7 @@ function tt(t) {
|
|
|
917
917
|
class he extends we {
|
|
918
918
|
constructor() {
|
|
919
919
|
super({
|
|
920
|
-
createUboElements:
|
|
920
|
+
createUboElements: Qe,
|
|
921
921
|
generateUboSync: tt
|
|
922
922
|
});
|
|
923
923
|
}
|
|
@@ -1029,7 +1029,7 @@ class rt {
|
|
|
1029
1029
|
), s.bindFramebuffer(s.FRAMEBUFFER, n.framebuffer);
|
|
1030
1030
|
}
|
|
1031
1031
|
initGpuRenderTarget(e) {
|
|
1032
|
-
const n = this._renderer.gl, s = new
|
|
1032
|
+
const n = this._renderer.gl, s = new Je();
|
|
1033
1033
|
return s._attachedMipLevel = 0, s._attachedLayer = 0, e.colorTexture instanceof y ? (this._renderer.context.ensureCanvasSize(e.colorTexture.resource), s.framebuffer = null, s) : (this._initColor(e, s), n.bindFramebuffer(n.FRAMEBUFFER, null), s);
|
|
1034
1034
|
}
|
|
1035
1035
|
destroyGpuRenderTarget(e) {
|
|
@@ -2080,14 +2080,14 @@ const vt = {
|
|
|
2080
2080
|
), o = Math.max(o >> 1, 1), u = Math.max(u >> 1, 1);
|
|
2081
2081
|
}
|
|
2082
2082
|
}
|
|
2083
|
-
},
|
|
2083
|
+
}, K = ["right", "left", "top", "bottom", "front", "back"];
|
|
2084
2084
|
function yt(t) {
|
|
2085
2085
|
return {
|
|
2086
2086
|
id: "cube",
|
|
2087
2087
|
upload(e, r, n, s) {
|
|
2088
2088
|
const i = e.faces;
|
|
2089
|
-
for (let a = 0; a <
|
|
2090
|
-
const o =
|
|
2089
|
+
for (let a = 0; a < K.length; a++) {
|
|
2090
|
+
const o = K[a], u = i[o];
|
|
2091
2091
|
(t[u.uploadMethodId] || t.image).upload(
|
|
2092
2092
|
u,
|
|
2093
2093
|
r,
|
|
@@ -2235,7 +2235,7 @@ const Dt = We(), It = {
|
|
|
2235
2235
|
}
|
|
2236
2236
|
Se.upload(t, e, r, n, s, i);
|
|
2237
2237
|
}
|
|
2238
|
-
},
|
|
2238
|
+
}, $ = {
|
|
2239
2239
|
linear: 9729,
|
|
2240
2240
|
nearest: 9728
|
|
2241
2241
|
}, Gt = {
|
|
@@ -2267,13 +2267,13 @@ function Y(t, e, r, n, s, i, a, o) {
|
|
|
2267
2267
|
const c = I[a ? "clamp-to-edge" : t.addressModeU], _ = I[a ? "clamp-to-edge" : t.addressModeV], f = I[a ? "clamp-to-edge" : t.addressModeW];
|
|
2268
2268
|
e[s](u, e.TEXTURE_WRAP_S, c), e[s](u, e.TEXTURE_WRAP_T, _), e.TEXTURE_WRAP_R && e[s](u, e.TEXTURE_WRAP_R, f);
|
|
2269
2269
|
}
|
|
2270
|
-
if ((!o || t.magFilter !== "linear") && e[s](u, e.TEXTURE_MAG_FILTER,
|
|
2270
|
+
if ((!o || t.magFilter !== "linear") && e[s](u, e.TEXTURE_MAG_FILTER, $[t.magFilter]), r) {
|
|
2271
2271
|
if (!o || t.mipmapFilter !== "linear") {
|
|
2272
2272
|
const c = Gt[t.minFilter][t.mipmapFilter];
|
|
2273
2273
|
e[s](u, e.TEXTURE_MIN_FILTER, c);
|
|
2274
2274
|
}
|
|
2275
2275
|
} else
|
|
2276
|
-
e[s](u, e.TEXTURE_MIN_FILTER,
|
|
2276
|
+
e[s](u, e.TEXTURE_MIN_FILTER, $[t.minFilter]);
|
|
2277
2277
|
if (n && t.maxAnisotropy > 1) {
|
|
2278
2278
|
const c = Math.min(t.maxAnisotropy, e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT));
|
|
2279
2279
|
e[s](u, n.TEXTURE_MAX_ANISOTROPY_EXT, c);
|
|
@@ -2807,13 +2807,13 @@ class ge {
|
|
|
2807
2807
|
uColor: { value: new Float32Array([1, 1, 1, 1]), type: "vec4<f32>" },
|
|
2808
2808
|
uTransformMatrix: { value: new Z(), type: "mat3x3<f32>" },
|
|
2809
2809
|
uRound: { value: 0, type: "f32" }
|
|
2810
|
-
}), n = e.limits.maxBatchableTextures, s =
|
|
2810
|
+
}), n = e.limits.maxBatchableTextures, s = J({
|
|
2811
2811
|
name: "graphics",
|
|
2812
2812
|
bits: [
|
|
2813
2813
|
De,
|
|
2814
2814
|
Ie(n),
|
|
2815
2815
|
te,
|
|
2816
|
-
|
|
2816
|
+
Q
|
|
2817
2817
|
]
|
|
2818
2818
|
});
|
|
2819
2819
|
this.shader = new O({
|
|
@@ -2852,12 +2852,12 @@ ge.extension = {
|
|
|
2852
2852
|
};
|
|
2853
2853
|
class Te {
|
|
2854
2854
|
init() {
|
|
2855
|
-
const e =
|
|
2855
|
+
const e = J({
|
|
2856
2856
|
name: "mesh",
|
|
2857
2857
|
bits: [
|
|
2858
2858
|
te,
|
|
2859
2859
|
He,
|
|
2860
|
-
|
|
2860
|
+
Q
|
|
2861
2861
|
]
|
|
2862
2862
|
});
|
|
2863
2863
|
this._shader = new O({
|
|
@@ -2903,7 +2903,7 @@ const wt = [
|
|
|
2903
2903
|
...Xe,
|
|
2904
2904
|
he,
|
|
2905
2905
|
Ze,
|
|
2906
|
-
|
|
2906
|
+
Ke,
|
|
2907
2907
|
ue,
|
|
2908
2908
|
ne,
|
|
2909
2909
|
Re,
|
|
@@ -2935,4 +2935,4 @@ class jt extends Ue {
|
|
|
2935
2935
|
export {
|
|
2936
2936
|
jt as WebGLRenderer
|
|
2937
2937
|
};
|
|
2938
|
-
//# sourceMappingURL=WebGLRenderer-
|
|
2938
|
+
//# sourceMappingURL=WebGLRenderer-Cp6XondT.js.map
|