@roomle/web-sdk 3.5.0-alpha.3 → 3.5.0-alpha.5
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/lib/{BufferGeometry-BxcX1nu5.mjs → BufferGeometry-Dj-Z487k.mjs} +2 -2
- package/lib/{BufferGeometry-BxcX1nu5.mjs.map → BufferGeometry-Dj-Z487k.mjs.map} +1 -1
- package/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/{GLTFExporter-BSDjg1BT.mjs → GLTFExporter-CRJOKoYU.mjs} +2 -2
- package/lib/{GLTFExporter-BSDjg1BT.mjs.map → GLTFExporter-CRJOKoYU.mjs.map} +1 -1
- package/lib/{PointLightHelper-BGqd0srT.mjs → PointLightHelper-BO5d38I6.mjs} +3 -3
- package/lib/{PointLightHelper-BGqd0srT.mjs.map → PointLightHelper-BO5d38I6.mjs.map} +1 -1
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{SpotLightHelper-47gHbfRQ.mjs → SpotLightHelper-DTIjFs3a.mjs} +3 -3
- package/lib/{SpotLightHelper-47gHbfRQ.mjs.map → SpotLightHelper-DTIjFs3a.mjs.map} +1 -1
- package/lib/{USDZExporter-xB9Bc_vW.mjs → USDZExporter-BbHFpod8.mjs} +2 -2
- package/lib/{USDZExporter-xB9Bc_vW.mjs.map → USDZExporter-BbHFpod8.mjs.map} +1 -1
- package/lib/{banana-for-scale-CE_VgshX.mjs → banana-for-scale-BpwlhT3u.mjs} +2 -2
- package/lib/{banana-for-scale-CE_VgshX.mjs.map → banana-for-scale-BpwlhT3u.mjs.map} +1 -1
- package/lib/{component-dimensioning-Dr-a4146.mjs → component-dimensioning-Drx9suac.mjs} +2 -2
- package/lib/{component-dimensioning-Dr-a4146.mjs.map → component-dimensioning-Drx9suac.mjs.map} +1 -1
- package/lib/{continuous-drawing-helper-_3JpRL0X.mjs → continuous-drawing-helper-DX5mJ_CO.mjs} +2 -2
- package/lib/{continuous-drawing-helper-_3JpRL0X.mjs.map → continuous-drawing-helper-DX5mJ_CO.mjs.map} +1 -1
- package/lib/{homag-intelligence-C0Jgym-0.mjs → homag-intelligence-B3pflXFp.mjs} +30 -33
- package/lib/homag-intelligence-B3pflXFp.mjs.map +1 -0
- package/lib/{imos-ix-poc-export-helper-Be_OLiO2.mjs → imos-ix-poc-export-helper-CeTG15qk.mjs} +2 -2
- package/lib/{imos-ix-poc-export-helper-Be_OLiO2.mjs.map → imos-ix-poc-export-helper-CeTG15qk.mjs.map} +1 -1
- package/lib/{index-CbfKx2cg.mjs → index-DiGzfjE8.mjs} +337 -290
- package/lib/index-DiGzfjE8.mjs.map +1 -0
- package/lib/{material-viewer-BzigD_S4.mjs → material-viewer-n94eUdBS.mjs} +2 -2
- package/lib/{material-viewer-BzigD_S4.mjs.map → material-viewer-n94eUdBS.mjs.map} +1 -1
- package/lib/roomle-sdk.d.ts +25 -4
- package/lib/roomle-sdk.js +1 -1
- package/lib/static/roomle-core-hsc/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/RoomleToolsCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/configurationLoader.d.ts +3 -3
- package/lib/static/roomle-core-hsc/configurationLoader.js.map +1 -1
- package/lib/static/roomle-core-hsc/configuratorCallback.d.ts +5 -5
- package/lib/static/roomle-core-hsc/configuratorCallback.js.map +1 -1
- package/lib/static/roomle-core-hsc/configuratorCoreInterface.d.ts +43 -43
- package/lib/static/roomle-core-hsc/embind/configuratorCallback.d.ts +5 -5
- package/lib/static/roomle-core-hsc/embind/configuratorCallback.js.map +1 -1
- package/lib/static/roomle-core-hsc/embind/configuratorCoreInterface.d.ts +43 -43
- package/lib/static/roomle-core-hsc/embind/plannerCoreInterface.d.ts +12 -12
- package/lib/static/roomle-core-hsc/embind/serviceCoreInterface.d.ts +0 -2
- package/lib/static/roomle-core-hsc/loader/configurationLoader.d.ts +3 -3
- package/lib/static/roomle-core-hsc/loader/configurationLoader.js.map +1 -1
- package/lib/static/roomle-core-hsc/loader/planElementManager.d.ts +3 -3
- package/lib/static/roomle-core-hsc/package.json +1 -1
- package/lib/static/roomle-core-hsc/planElementManager.d.ts +3 -3
- package/lib/static/roomle-core-hsc/plannerCoreInterface.d.ts +12 -12
- package/lib/static/roomle-core-hsc/serviceCoreInterface.d.ts +0 -2
- package/lib/static/roomle-core-hsc/src/embind/configuratorCallback.d.ts +5 -5
- package/lib/static/roomle-core-hsc/src/embind/configuratorCallback.js.map +1 -1
- package/lib/static/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts +43 -43
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreInterface.d.ts +12 -12
- package/lib/static/roomle-core-hsc/src/embind/serviceCoreInterface.d.ts +0 -2
- package/lib/static/roomle-core-hsc/src/loader/configurationLoader.d.ts +3 -3
- package/lib/static/roomle-core-hsc/src/loader/configurationLoader.js.map +1 -1
- package/lib/static/roomle-core-hsc/src/loader/planElementManager.d.ts +3 -3
- package/lib/static/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
- package/lib/{stats-helper-CFEfAd7f.mjs → stats-helper-rLr2tYkx.mjs} +2 -2
- package/lib/{stats-helper-CFEfAd7f.mjs.map → stats-helper-rLr2tYkx.mjs.map} +1 -1
- package/lib/{three.webgpu-1Evy-xH4.mjs → three.webgpu-Duqe_m4v.mjs} +3 -3
- package/lib/{three.webgpu-1Evy-xH4.mjs.map → three.webgpu-Duqe_m4v.mjs.map} +1 -1
- package/lib/{tools-core-DpmhtPqx.mjs → tools-core-BfVzhE5d.mjs} +2 -2
- package/lib/{tools-core-DpmhtPqx.mjs.map → tools-core-BfVzhE5d.mjs.map} +1 -1
- package/package.json +1 -1
- package/lib/homag-intelligence-C0Jgym-0.mjs.map +0 -1
- package/lib/index-CbfKx2cg.mjs.map +0 -1
- package/lib/static/roomle-core-hsc/RoomleServiceCore.js +0 -79
- package/lib/static/roomle-core-hsc/RoomleServiceCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/wasm_modern/RoomleServiceCore.js +0 -79
- package/lib/static/roomle-core-hsc/wasm_modern/RoomleServiceCore.wasm +0 -0
|
@@ -33,7 +33,7 @@ const gl = {
|
|
|
33
33
|
* Copyright 2010-2025 Three.js Authors
|
|
34
34
|
* SPDX-License-Identifier: MIT
|
|
35
35
|
*/
|
|
36
|
-
const C_ = "182", yM = 0, z0 = 1, xM = 2, lb = 0, oa = 1, bM = 2, cl = 3,
|
|
36
|
+
const C_ = "182", yM = 0, z0 = 1, xM = 2, lb = 0, oa = 1, bM = 2, cl = 3, zi = 0, oi = 1, Et = 2, Lt = 0, _l = 1, Cm = 2, V0 = 3, j0 = 4, yu = 5, Bi = 100, wM = 101, SM = 102, cb = 103, MM = 104, io = 200, Em = 201, CM = 202, EM = 203, Pm = 204, Tm = 205, Ju = 206, PM = 207, Qu = 208, TM = 209, AM = 210, IM = 211, RM = 212, OM = 213, LM = 214, Am = 0, Im = 1, Rm = 2, Pl = 3, Om = 4, Lm = 5, Dm = 6, Nm = 7, ef = 0, DM = 1, NM = 2, ss = 0, tf = 1, nf = 2, sf = 3, rf = 4, E_ = 5, af = 6, of = 7, W0 = "attached", UM = "detached", hb = 300, so = 301, Tl = 302, xu = 303, Um = 304, lf = 306, On = 1e3, Pn = 1001, bu = 1002, Bt = 1003, db = 1004, Ac = 1005, Mt = 1006, Qd = 1007, Ys = 1008, gn = 1009, ub = 1010, fb = 1011, sh = 1012, P_ = 1013, nr = 1014, bn = 1015, Tn = 1016, T_ = 1017, A_ = 1018, Al = 1020, pb = 35902, mb = 35899, gb = 1021, _b = 1022, an = 1023, Tr = 1026, ta = 1027, na = 1028, I_ = 1029, ki = 1030, R_ = 1031, QB = 1032, O_ = 1033, eu = 33776, tu = 33777, nu = 33778, iu = 33779, Fm = 35840, Bm = 35841, km = 35842, Gm = 35843, Hm = 36196, zm = 37492, Vm = 37496, jm = 37488, Wm = 37489, qm = 37490, Km = 37491, Xm = 37808, Ym = 37809, Zm = 37810, $m = 37811, Jm = 37812, Qm = 37813, eg = 37814, tg = 37815, ng = 37816, ig = 37817, sg = 37818, rg = 37819, ag = 37820, og = 37821, lg = 36492, cg = 36494, hg = 36495, dg = 36283, ug = 36284, fg = 36285, pg = 36286, rh = 2300, ah = 2301, zf = 2302, q0 = 2400, K0 = 2401, X0 = 2402, FM = 2500, BM = 0, vb = 1, mg = 2, kM = 3200, mo = 0, GM = 1, Jr = "", rn = "srgb", hn = "srgb-linear", wu = "linear", qt = "srgb", ek = "", tk = "rg", nk = "ga", ik = 0, Mo = 7680, sk = 7681, rk = 7682, ak = 7683, ok = 34055, lk = 34056, ck = 5386, hk = 512, dk = 513, uk = 514, fk = 515, pk = 516, mk = 517, gk = 518, Y0 = 519, HM = 512, zM = 513, VM = 514, L_ = 515, jM = 516, WM = 517, D_ = 518, qM = 519, gg = 35044, _k = 35048, Z0 = "300 es", ns = 2e3, oh = 2001, vk = {
|
|
37
37
|
COMPUTE: "compute",
|
|
38
38
|
RENDER: "render"
|
|
39
39
|
};
|
|
@@ -4241,7 +4241,7 @@ function Kf(r, e, t, n, i) {
|
|
|
4241
4241
|
return !0;
|
|
4242
4242
|
}
|
|
4243
4243
|
const _C = /* @__PURE__ */ new ct(), ec = /* @__PURE__ */ new y(), Xf = /* @__PURE__ */ new y();
|
|
4244
|
-
let
|
|
4244
|
+
let Vi = class {
|
|
4245
4245
|
/**
|
|
4246
4246
|
* Constructs a new sphere.
|
|
4247
4247
|
*
|
|
@@ -5355,12 +5355,12 @@ let De = class _g {
|
|
|
5355
5355
|
* @param {boolean} [reversedDepth=false] - Whether to use a reversed depth.
|
|
5356
5356
|
* @return {Matrix4} A reference to this matrix.
|
|
5357
5357
|
*/
|
|
5358
|
-
makePerspective(e, t, n, i, s, a, o =
|
|
5358
|
+
makePerspective(e, t, n, i, s, a, o = ns, l = !1) {
|
|
5359
5359
|
const c = this.elements, h = 2 * s / (t - e), d = 2 * s / (n - i), u = (t + e) / (t - e), f = (n + i) / (n - i);
|
|
5360
5360
|
let g, _;
|
|
5361
5361
|
if (l)
|
|
5362
5362
|
g = s / (a - s), _ = a * s / (a - s);
|
|
5363
|
-
else if (o ===
|
|
5363
|
+
else if (o === ns)
|
|
5364
5364
|
g = -(a + s) / (a - s), _ = -2 * a * s / (a - s);
|
|
5365
5365
|
else if (o === oh)
|
|
5366
5366
|
g = -a / (a - s), _ = -a * s / (a - s);
|
|
@@ -5382,12 +5382,12 @@ let De = class _g {
|
|
|
5382
5382
|
* @param {boolean} [reversedDepth=false] - Whether to use a reversed depth.
|
|
5383
5383
|
* @return {Matrix4} A reference to this matrix.
|
|
5384
5384
|
*/
|
|
5385
|
-
makeOrthographic(e, t, n, i, s, a, o =
|
|
5385
|
+
makeOrthographic(e, t, n, i, s, a, o = ns, l = !1) {
|
|
5386
5386
|
const c = this.elements, h = 2 / (t - e), d = 2 / (n - i), u = -(t + e) / (t - e), f = -(n + i) / (n - i);
|
|
5387
5387
|
let g, _;
|
|
5388
5388
|
if (l)
|
|
5389
5389
|
g = 1 / (a - s), _ = a / (a - s);
|
|
5390
|
-
else if (o ===
|
|
5390
|
+
else if (o === ns)
|
|
5391
5391
|
g = -2 / (a - s), _ = -(a + s) / (a - s);
|
|
5392
5392
|
else if (o === oh)
|
|
5393
5393
|
g = -1 / (a - s), _ = -s / (a - s);
|
|
@@ -6362,7 +6362,7 @@ Wt.DEFAULT_UP = /* @__PURE__ */ new y(0, 1, 0);
|
|
|
6362
6362
|
Wt.DEFAULT_MATRIX_AUTO_UPDATE = !0;
|
|
6363
6363
|
Wt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
|
|
6364
6364
|
const ys = /* @__PURE__ */ new y(), fr = /* @__PURE__ */ new y(), Qf = /* @__PURE__ */ new y(), pr = /* @__PURE__ */ new y(), Oo = /* @__PURE__ */ new y(), Lo = /* @__PURE__ */ new y(), cv = /* @__PURE__ */ new y(), ep = /* @__PURE__ */ new y(), tp = /* @__PURE__ */ new y(), np = /* @__PURE__ */ new y(), ip = /* @__PURE__ */ new Vt(), sp = /* @__PURE__ */ new Vt(), rp = /* @__PURE__ */ new Vt();
|
|
6365
|
-
class
|
|
6365
|
+
class ts {
|
|
6366
6366
|
/**
|
|
6367
6367
|
* Constructs a new triangle.
|
|
6368
6368
|
*
|
|
@@ -6539,7 +6539,7 @@ class es {
|
|
|
6539
6539
|
* @return {Vector3} The triangle's normal.
|
|
6540
6540
|
*/
|
|
6541
6541
|
getNormal(e) {
|
|
6542
|
-
return
|
|
6542
|
+
return ts.getNormal(this.a, this.b, this.c, e);
|
|
6543
6543
|
}
|
|
6544
6544
|
/**
|
|
6545
6545
|
* Computes a plane the triangle lies within.
|
|
@@ -6559,7 +6559,7 @@ class es {
|
|
|
6559
6559
|
* @return {?Vector3} The barycentric coordinates for the given point
|
|
6560
6560
|
*/
|
|
6561
6561
|
getBarycoord(e, t) {
|
|
6562
|
-
return
|
|
6562
|
+
return ts.getBarycoord(e, this.a, this.b, this.c, t);
|
|
6563
6563
|
}
|
|
6564
6564
|
/**
|
|
6565
6565
|
* Computes the value barycentrically interpolated for the given point on the
|
|
@@ -6573,7 +6573,7 @@ class es {
|
|
|
6573
6573
|
* @return {?Vector3} The interpolated value.
|
|
6574
6574
|
*/
|
|
6575
6575
|
getInterpolation(e, t, n, i, s) {
|
|
6576
|
-
return
|
|
6576
|
+
return ts.getInterpolation(e, this.a, this.b, this.c, t, n, i, s);
|
|
6577
6577
|
}
|
|
6578
6578
|
/**
|
|
6579
6579
|
* Returns `true` if the given point, when projected onto the plane of the
|
|
@@ -6584,7 +6584,7 @@ class es {
|
|
|
6584
6584
|
* triangle, lies within the triangle or not.
|
|
6585
6585
|
*/
|
|
6586
6586
|
containsPoint(e) {
|
|
6587
|
-
return
|
|
6587
|
+
return ts.containsPoint(e, this.a, this.b, this.c);
|
|
6588
6588
|
}
|
|
6589
6589
|
/**
|
|
6590
6590
|
* Returns `true` if the triangle is oriented towards the given direction.
|
|
@@ -6593,7 +6593,7 @@ class es {
|
|
|
6593
6593
|
* @return {boolean} Whether the triangle is oriented towards the given direction or not.
|
|
6594
6594
|
*/
|
|
6595
6595
|
isFrontFacing(e) {
|
|
6596
|
-
return
|
|
6596
|
+
return ts.isFrontFacing(this.a, this.b, this.c, e);
|
|
6597
6597
|
}
|
|
6598
6598
|
/**
|
|
6599
6599
|
* Returns `true` if this triangle intersects with the given box.
|
|
@@ -7277,7 +7277,7 @@ class Qn extends Gl {
|
|
|
7277
7277
|
* Constructs a new material.
|
|
7278
7278
|
*/
|
|
7279
7279
|
constructor() {
|
|
7280
|
-
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: MC++ }), this.uuid = rs(), this.name = "", this.type = "Material", this.blending = _l, this.side =
|
|
7280
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: MC++ }), this.uuid = rs(), this.name = "", this.type = "Material", this.blending = _l, this.side = zi, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = Pm, this.blendDst = Tm, this.blendEquation = Bi, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new le(0, 0, 0), this.blendAlpha = 0, this.depthFunc = Pl, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Y0, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Mo, this.stencilZFail = Mo, this.stencilZPass = Mo, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
|
|
7281
7281
|
}
|
|
7282
7282
|
/**
|
|
7283
7283
|
* Sets the alpha value to be used when running an alpha test. The material
|
|
@@ -7376,7 +7376,7 @@ class Qn extends Gl {
|
|
|
7376
7376
|
generator: "Material.toJSON"
|
|
7377
7377
|
}
|
|
7378
7378
|
};
|
|
7379
|
-
n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.sheenColorMap && this.sheenColorMap.isTexture && (n.sheenColorMap = this.sheenColorMap.toJSON(e).uuid), this.sheenRoughnessMap && this.sheenRoughnessMap.isTexture && (n.sheenRoughnessMap = this.sheenRoughnessMap.toJSON(e).uuid), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(e).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(e).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(e).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(e).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(e).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== _l && (n.blending = this.blending), this.side !==
|
|
7379
|
+
n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.sheenColorMap && this.sheenColorMap.isTexture && (n.sheenColorMap = this.sheenColorMap.toJSON(e).uuid), this.sheenRoughnessMap && this.sheenRoughnessMap.isTexture && (n.sheenRoughnessMap = this.sheenRoughnessMap.toJSON(e).uuid), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(e).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(e).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(e).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(e).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(e).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== _l && (n.blending = this.blending), this.side !== zi && (n.side = this.side), this.vertexColors === !0 && (n.vertexColors = !0), this.opacity < 1 && (n.opacity = this.opacity), this.transparent === !0 && (n.transparent = !0), this.blendSrc !== Pm && (n.blendSrc = this.blendSrc), this.blendDst !== Tm && (n.blendDst = this.blendDst), this.blendEquation !== Bi && (n.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (n.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (n.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (n.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (n.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (n.blendAlpha = this.blendAlpha), this.depthFunc !== Pl && (n.depthFunc = this.depthFunc), this.depthTest === !1 && (n.depthTest = this.depthTest), this.depthWrite === !1 && (n.depthWrite = this.depthWrite), this.colorWrite === !1 && (n.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (n.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Y0 && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== Mo && (n.stencilFail = this.stencilFail), this.stencilZFail !== Mo && (n.stencilZFail = this.stencilZFail), this.stencilZPass !== Mo && (n.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (n.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (n.rotation = this.rotation), this.polygonOffset === !0 && (n.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (n.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (n.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (n.linewidth = this.linewidth), this.dashSize !== void 0 && (n.dashSize = this.dashSize), this.gapSize !== void 0 && (n.gapSize = this.gapSize), this.scale !== void 0 && (n.scale = this.scale), this.dithering === !0 && (n.dithering = !0), this.alphaTest > 0 && (n.alphaTest = this.alphaTest), this.alphaHash === !0 && (n.alphaHash = !0), this.alphaToCoverage === !0 && (n.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (n.premultipliedAlpha = !0), this.forceSinglePass === !0 && (n.forceSinglePass = !0), this.allowOverride === !1 && (n.allowOverride = !1), this.wireframe === !0 && (n.wireframe = !0), this.wireframeLinewidth > 1 && (n.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (n.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (n.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (n.flatShading = !0), this.visible === !1 && (n.visible = !1), this.toneMapped === !1 && (n.toneMapped = !1), this.fog === !1 && (n.fog = !1), Object.keys(this.userData).length > 0 && (n.userData = this.userData);
|
|
7380
7380
|
function i(s) {
|
|
7381
7381
|
const a = [];
|
|
7382
7382
|
for (const o in s) {
|
|
@@ -7930,7 +7930,7 @@ class Tt extends Sn {
|
|
|
7930
7930
|
}
|
|
7931
7931
|
}
|
|
7932
7932
|
let PC = 0;
|
|
7933
|
-
const
|
|
7933
|
+
const Yi = /* @__PURE__ */ new De(), op = /* @__PURE__ */ new Wt(), Do = /* @__PURE__ */ new y(), Li = /* @__PURE__ */ new ct(), nc = /* @__PURE__ */ new ct(), kn = /* @__PURE__ */ new y();
|
|
7934
7934
|
class Rt extends Gl {
|
|
7935
7935
|
/**
|
|
7936
7936
|
* Constructs a new geometry.
|
|
@@ -8066,7 +8066,7 @@ class Rt extends Gl {
|
|
|
8066
8066
|
* @return {BufferGeometry} A reference to this instance.
|
|
8067
8067
|
*/
|
|
8068
8068
|
applyQuaternion(e) {
|
|
8069
|
-
return
|
|
8069
|
+
return Yi.makeRotationFromQuaternion(e), this.applyMatrix4(Yi), this;
|
|
8070
8070
|
}
|
|
8071
8071
|
/**
|
|
8072
8072
|
* Rotates the geometry about the X axis. This is typically done as a one time
|
|
@@ -8077,7 +8077,7 @@ class Rt extends Gl {
|
|
|
8077
8077
|
* @return {BufferGeometry} A reference to this instance.
|
|
8078
8078
|
*/
|
|
8079
8079
|
rotateX(e) {
|
|
8080
|
-
return
|
|
8080
|
+
return Yi.makeRotationX(e), this.applyMatrix4(Yi), this;
|
|
8081
8081
|
}
|
|
8082
8082
|
/**
|
|
8083
8083
|
* Rotates the geometry about the Y axis. This is typically done as a one time
|
|
@@ -8088,7 +8088,7 @@ class Rt extends Gl {
|
|
|
8088
8088
|
* @return {BufferGeometry} A reference to this instance.
|
|
8089
8089
|
*/
|
|
8090
8090
|
rotateY(e) {
|
|
8091
|
-
return
|
|
8091
|
+
return Yi.makeRotationY(e), this.applyMatrix4(Yi), this;
|
|
8092
8092
|
}
|
|
8093
8093
|
/**
|
|
8094
8094
|
* Rotates the geometry about the Z axis. This is typically done as a one time
|
|
@@ -8099,7 +8099,7 @@ class Rt extends Gl {
|
|
|
8099
8099
|
* @return {BufferGeometry} A reference to this instance.
|
|
8100
8100
|
*/
|
|
8101
8101
|
rotateZ(e) {
|
|
8102
|
-
return
|
|
8102
|
+
return Yi.makeRotationZ(e), this.applyMatrix4(Yi), this;
|
|
8103
8103
|
}
|
|
8104
8104
|
/**
|
|
8105
8105
|
* Translates the geometry. This is typically done as a one time
|
|
@@ -8112,7 +8112,7 @@ class Rt extends Gl {
|
|
|
8112
8112
|
* @return {BufferGeometry} A reference to this instance.
|
|
8113
8113
|
*/
|
|
8114
8114
|
translate(e, t, n) {
|
|
8115
|
-
return
|
|
8115
|
+
return Yi.makeTranslation(e, t, n), this.applyMatrix4(Yi), this;
|
|
8116
8116
|
}
|
|
8117
8117
|
/**
|
|
8118
8118
|
* Scales the geometry. This is typically done as a one time
|
|
@@ -8125,7 +8125,7 @@ class Rt extends Gl {
|
|
|
8125
8125
|
* @return {BufferGeometry} A reference to this instance.
|
|
8126
8126
|
*/
|
|
8127
8127
|
scale(e, t, n) {
|
|
8128
|
-
return
|
|
8128
|
+
return Yi.makeScale(e, t, n), this.applyMatrix4(Yi), this;
|
|
8129
8129
|
}
|
|
8130
8130
|
/**
|
|
8131
8131
|
* Rotates the geometry to face a point in 3D space. This is typically done as a one time
|
|
@@ -8207,7 +8207,7 @@ class Rt extends Gl {
|
|
|
8207
8207
|
* You may need to recompute the bounding sphere if the geometry vertices are modified.
|
|
8208
8208
|
*/
|
|
8209
8209
|
computeBoundingSphere() {
|
|
8210
|
-
this.boundingSphere === null && (this.boundingSphere = new
|
|
8210
|
+
this.boundingSphere === null && (this.boundingSphere = new Vi());
|
|
8211
8211
|
const e = this.attributes.position, t = this.morphAttributes.position;
|
|
8212
8212
|
if (e && e.isGLBufferAttribute) {
|
|
8213
8213
|
dt("BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.", this), this.boundingSphere.set(new y(), 1 / 0);
|
|
@@ -8461,7 +8461,7 @@ class Rt extends Gl {
|
|
|
8461
8461
|
this.dispatchEvent({ type: "dispose" });
|
|
8462
8462
|
}
|
|
8463
8463
|
}
|
|
8464
|
-
const hv = /* @__PURE__ */ new De(), Ta = /* @__PURE__ */ new wh(), Kh = /* @__PURE__ */ new
|
|
8464
|
+
const hv = /* @__PURE__ */ new De(), Ta = /* @__PURE__ */ new wh(), Kh = /* @__PURE__ */ new Vi(), dv = /* @__PURE__ */ new y(), Xh = /* @__PURE__ */ new y(), Yh = /* @__PURE__ */ new y(), Zh = /* @__PURE__ */ new y(), lp = /* @__PURE__ */ new y(), $h = /* @__PURE__ */ new y(), uv = /* @__PURE__ */ new y(), Jh = /* @__PURE__ */ new y();
|
|
8465
8465
|
class Se extends Wt {
|
|
8466
8466
|
/**
|
|
8467
8467
|
* Constructs a new mesh.
|
|
@@ -8563,7 +8563,7 @@ class Se extends Wt {
|
|
|
8563
8563
|
}
|
|
8564
8564
|
function TC(r, e, t, n, i, s, a, o) {
|
|
8565
8565
|
let l;
|
|
8566
|
-
if (e.side === oi ? l = n.intersectTriangle(a, s, i, !0, o) : l = n.intersectTriangle(i, s, a, e.side ===
|
|
8566
|
+
if (e.side === oi ? l = n.intersectTriangle(a, s, i, !0, o) : l = n.intersectTriangle(i, s, a, e.side === zi, o), l === null) return null;
|
|
8567
8567
|
Jh.copy(o), Jh.applyMatrix4(r.matrixWorld);
|
|
8568
8568
|
const c = t.ray.origin.distanceTo(Jh);
|
|
8569
8569
|
return c < t.near || c > t.far ? null : {
|
|
@@ -8577,7 +8577,7 @@ function Qh(r, e, t, n, i, s, a, o, l, c) {
|
|
|
8577
8577
|
const h = TC(r, e, t, n, Xh, Yh, Zh, uv);
|
|
8578
8578
|
if (h) {
|
|
8579
8579
|
const d = new y();
|
|
8580
|
-
|
|
8580
|
+
ts.getBarycoord(uv, Xh, Yh, Zh, d), i && (h.uv = ts.getInterpolatedAttribute(i, o, l, c, d, new ee())), s && (h.uv1 = ts.getInterpolatedAttribute(s, o, l, c, d, new ee())), a && (h.normal = ts.getInterpolatedAttribute(a, o, l, c, d, new y()), h.normal.dot(n.direction) > 0 && h.normal.multiplyScalar(-1));
|
|
8581
8581
|
const u = {
|
|
8582
8582
|
a: o,
|
|
8583
8583
|
b: l,
|
|
@@ -8585,7 +8585,7 @@ function Qh(r, e, t, n, i, s, a, o, l, c) {
|
|
|
8585
8585
|
normal: new y(),
|
|
8586
8586
|
materialIndex: 0
|
|
8587
8587
|
};
|
|
8588
|
-
|
|
8588
|
+
ts.getNormal(Xh, Yh, Zh, u.normal), h.face = u, h.barycoord = d;
|
|
8589
8589
|
}
|
|
8590
8590
|
return h;
|
|
8591
8591
|
}
|
|
@@ -8750,7 +8750,7 @@ let B_ = class extends Wt {
|
|
|
8750
8750
|
* Constructs a new camera.
|
|
8751
8751
|
*/
|
|
8752
8752
|
constructor() {
|
|
8753
|
-
super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new De(), this.projectionMatrix = new De(), this.projectionMatrixInverse = new De(), this.coordinateSystem =
|
|
8753
|
+
super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new De(), this.projectionMatrix = new De(), this.projectionMatrixInverse = new De(), this.coordinateSystem = ns, this._reversedDepth = !1;
|
|
8754
8754
|
}
|
|
8755
8755
|
/**
|
|
8756
8756
|
* The flag that indicates whether the camera uses a reversed depth buffer.
|
|
@@ -8983,7 +8983,7 @@ class OC extends Wt {
|
|
|
8983
8983
|
updateCoordinateSystem() {
|
|
8984
8984
|
const e = this.coordinateSystem, t = this.children.concat(), [n, i, s, a, o, l] = t;
|
|
8985
8985
|
for (const c of t) this.remove(c);
|
|
8986
|
-
if (e ===
|
|
8986
|
+
if (e === ns)
|
|
8987
8987
|
n.up.set(0, 1, 0), n.lookAt(1, 0, 0), i.up.set(0, 1, 0), i.lookAt(-1, 0, 0), s.up.set(0, 0, -1), s.lookAt(0, 1, 0), a.up.set(0, 0, 1), a.lookAt(0, -1, 0), o.up.set(0, 1, 0), o.lookAt(0, 0, 1), l.up.set(0, 1, 0), l.lookAt(0, 0, -1);
|
|
8988
8988
|
else if (e === oh)
|
|
8989
8989
|
n.up.set(0, -1, 0), n.lookAt(-1, 0, 0), i.up.set(0, -1, 0), i.lookAt(1, 0, 0), s.up.set(0, 0, 1), s.lookAt(0, 1, 0), a.up.set(0, 0, -1), a.lookAt(0, -1, 0), o.up.set(0, -1, 0), o.lookAt(0, 0, 1), l.up.set(0, -1, 0), l.lookAt(0, 0, -1);
|
|
@@ -9716,7 +9716,7 @@ class Ak extends Qn {
|
|
|
9716
9716
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.rotation = e.rotation, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
|
|
9717
9717
|
}
|
|
9718
9718
|
}
|
|
9719
|
-
const mv = /* @__PURE__ */ new y(), gv = /* @__PURE__ */ new Vt(), _v = /* @__PURE__ */ new Vt(), DC = /* @__PURE__ */ new y(), vv = /* @__PURE__ */ new De(), ed = /* @__PURE__ */ new y(), hp = /* @__PURE__ */ new
|
|
9719
|
+
const mv = /* @__PURE__ */ new y(), gv = /* @__PURE__ */ new Vt(), _v = /* @__PURE__ */ new Vt(), DC = /* @__PURE__ */ new y(), vv = /* @__PURE__ */ new De(), ed = /* @__PURE__ */ new y(), hp = /* @__PURE__ */ new Vi(), yv = /* @__PURE__ */ new De(), dp = /* @__PURE__ */ new wh();
|
|
9720
9720
|
class NC extends Se {
|
|
9721
9721
|
/**
|
|
9722
9722
|
* Constructs a new skinned mesh.
|
|
@@ -9748,7 +9748,7 @@ class NC extends Se {
|
|
|
9748
9748
|
*/
|
|
9749
9749
|
computeBoundingSphere() {
|
|
9750
9750
|
const e = this.geometry;
|
|
9751
|
-
this.boundingSphere === null && (this.boundingSphere = new
|
|
9751
|
+
this.boundingSphere === null && (this.boundingSphere = new Vi()), this.boundingSphere.makeEmpty();
|
|
9752
9752
|
const t = e.getAttribute("position");
|
|
9753
9753
|
for (let n = 0; n < t.count; n++)
|
|
9754
9754
|
this.getVertexPosition(n, ed), this.boundingSphere.expandByPoint(ed);
|
|
@@ -10012,7 +10012,7 @@ class vg extends Sn {
|
|
|
10012
10012
|
return e.meshPerAttribute = this.meshPerAttribute, e.isInstancedBufferAttribute = !0, e;
|
|
10013
10013
|
}
|
|
10014
10014
|
}
|
|
10015
|
-
const Fo = /* @__PURE__ */ new De(), bv = /* @__PURE__ */ new De(), td = [], wv = /* @__PURE__ */ new ct(), FC = /* @__PURE__ */ new De(), ic = /* @__PURE__ */ new Se(), sc = /* @__PURE__ */ new
|
|
10015
|
+
const Fo = /* @__PURE__ */ new De(), bv = /* @__PURE__ */ new De(), td = [], wv = /* @__PURE__ */ new ct(), FC = /* @__PURE__ */ new De(), ic = /* @__PURE__ */ new Se(), sc = /* @__PURE__ */ new Vi();
|
|
10016
10016
|
class BC extends Se {
|
|
10017
10017
|
/**
|
|
10018
10018
|
* Constructs a new instanced mesh.
|
|
@@ -10044,7 +10044,7 @@ class BC extends Se {
|
|
|
10044
10044
|
*/
|
|
10045
10045
|
computeBoundingSphere() {
|
|
10046
10046
|
const e = this.geometry, t = this.count;
|
|
10047
|
-
this.boundingSphere === null && (this.boundingSphere = new
|
|
10047
|
+
this.boundingSphere === null && (this.boundingSphere = new Vi()), e.boundingSphere === null && e.computeBoundingSphere(), this.boundingSphere.makeEmpty();
|
|
10048
10048
|
for (let n = 0; n < t; n++)
|
|
10049
10049
|
this.getMatrixAt(n, Fo), sc.copy(e.boundingSphere).applyMatrix4(Fo), this.boundingSphere.union(sc);
|
|
10050
10050
|
}
|
|
@@ -10351,7 +10351,7 @@ let Ts = class {
|
|
|
10351
10351
|
return new this.constructor().copy(this);
|
|
10352
10352
|
}
|
|
10353
10353
|
};
|
|
10354
|
-
const Aa = /* @__PURE__ */ new
|
|
10354
|
+
const Aa = /* @__PURE__ */ new Vi(), HC = /* @__PURE__ */ new ee(0.5, 0.5), nd = /* @__PURE__ */ new y();
|
|
10355
10355
|
let Hl = class {
|
|
10356
10356
|
/**
|
|
10357
10357
|
* Constructs a new frustum.
|
|
@@ -10401,11 +10401,11 @@ let Hl = class {
|
|
|
10401
10401
|
* @param {boolean} [reversedDepth=false] - Whether to use a reversed depth.
|
|
10402
10402
|
* @return {Frustum} A reference to this frustum.
|
|
10403
10403
|
*/
|
|
10404
|
-
setFromProjectionMatrix(e, t =
|
|
10404
|
+
setFromProjectionMatrix(e, t = ns, n = !1) {
|
|
10405
10405
|
const i = this.planes, s = e.elements, a = s[0], o = s[1], l = s[2], c = s[3], h = s[4], d = s[5], u = s[6], f = s[7], g = s[8], _ = s[9], p = s[10], m = s[11], v = s[12], x = s[13], S = s[14], P = s[15];
|
|
10406
10406
|
if (i[0].setComponents(c - a, f - h, m - g, P - v).normalize(), i[1].setComponents(c + a, f + h, m + g, P + v).normalize(), i[2].setComponents(c + o, f + d, m + _, P + x).normalize(), i[3].setComponents(c - o, f - d, m - _, P - x).normalize(), n)
|
|
10407
10407
|
i[4].setComponents(l, u, p, S).normalize(), i[5].setComponents(c - l, f - u, m - p, P - S).normalize();
|
|
10408
|
-
else if (i[4].setComponents(c - l, f - u, m - p, P - S).normalize(), t ===
|
|
10408
|
+
else if (i[4].setComponents(c - l, f - u, m - p, P - S).normalize(), t === ns)
|
|
10409
10409
|
i[5].setComponents(c + l, f + u, m + p, P + S).normalize();
|
|
10410
10410
|
else if (t === oh)
|
|
10411
10411
|
i[5].setComponents(l, u, p, S).normalize();
|
|
@@ -10498,7 +10498,7 @@ class Rb {
|
|
|
10498
10498
|
*
|
|
10499
10499
|
*/
|
|
10500
10500
|
constructor() {
|
|
10501
|
-
this.coordinateSystem =
|
|
10501
|
+
this.coordinateSystem = ns;
|
|
10502
10502
|
}
|
|
10503
10503
|
/**
|
|
10504
10504
|
* Returns `true` if the 3D object's bounding sphere is intersecting any frustum
|
|
@@ -10651,7 +10651,7 @@ class cs extends Qn {
|
|
|
10651
10651
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.linewidth = e.linewidth, this.linecap = e.linecap, this.linejoin = e.linejoin, this.fog = e.fog, this;
|
|
10652
10652
|
}
|
|
10653
10653
|
}
|
|
10654
|
-
const Mu = /* @__PURE__ */ new y(), Cu = /* @__PURE__ */ new y(), Sv = /* @__PURE__ */ new De(), rc = /* @__PURE__ */ new wh(), id = /* @__PURE__ */ new
|
|
10654
|
+
const Mu = /* @__PURE__ */ new y(), Cu = /* @__PURE__ */ new y(), Sv = /* @__PURE__ */ new De(), rc = /* @__PURE__ */ new wh(), id = /* @__PURE__ */ new Vi(), fp = /* @__PURE__ */ new y(), Mv = /* @__PURE__ */ new y();
|
|
10655
10655
|
class fn extends Wt {
|
|
10656
10656
|
/**
|
|
10657
10657
|
* Constructs a new line.
|
|
@@ -10803,7 +10803,7 @@ class Ob extends Qn {
|
|
|
10803
10803
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.size = e.size, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
|
|
10804
10804
|
}
|
|
10805
10805
|
}
|
|
10806
|
-
const Pv = /* @__PURE__ */ new De(), yg = /* @__PURE__ */ new wh(), rd = /* @__PURE__ */ new
|
|
10806
|
+
const Pv = /* @__PURE__ */ new De(), yg = /* @__PURE__ */ new wh(), rd = /* @__PURE__ */ new Vi(), ad = /* @__PURE__ */ new y();
|
|
10807
10807
|
class VC extends Wt {
|
|
10808
10808
|
/**
|
|
10809
10809
|
* Constructs a new point cloud.
|
|
@@ -11142,7 +11142,7 @@ class Eu extends ao {
|
|
|
11142
11142
|
return new Eu(e.radius, e.height, e.radialSegments, e.heightSegments, e.openEnded, e.thetaStart, e.thetaLength);
|
|
11143
11143
|
}
|
|
11144
11144
|
}
|
|
11145
|
-
const od = /* @__PURE__ */ new y(), ld = /* @__PURE__ */ new y(), pp = /* @__PURE__ */ new y(), cd = /* @__PURE__ */ new
|
|
11145
|
+
const od = /* @__PURE__ */ new y(), ld = /* @__PURE__ */ new y(), pp = /* @__PURE__ */ new y(), cd = /* @__PURE__ */ new ts();
|
|
11146
11146
|
class el extends Rt {
|
|
11147
11147
|
/**
|
|
11148
11148
|
* Constructs a new edges geometry.
|
|
@@ -16286,7 +16286,7 @@ class aE extends la {
|
|
|
16286
16286
|
let s, a;
|
|
16287
16287
|
if (yn.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse), this.camera.reversedDepth === !0)
|
|
16288
16288
|
s = 1, a = 0;
|
|
16289
|
-
else if (this.camera.coordinateSystem ===
|
|
16289
|
+
else if (this.camera.coordinateSystem === ns)
|
|
16290
16290
|
s = -1, a = 1;
|
|
16291
16291
|
else if (this.camera.coordinateSystem === oh)
|
|
16292
16292
|
s = 0, a = 1;
|
|
@@ -20883,7 +20883,7 @@ function jT(r, e, t, n, i, s, a) {
|
|
|
20883
20883
|
uniforms: Rl(Ks.background.uniforms),
|
|
20884
20884
|
vertexShader: Ks.background.vertexShader,
|
|
20885
20885
|
fragmentShader: Ks.background.fragmentShader,
|
|
20886
|
-
side:
|
|
20886
|
+
side: zi,
|
|
20887
20887
|
depthTest: !1,
|
|
20888
20888
|
depthWrite: !1,
|
|
20889
20889
|
fog: !1,
|
|
@@ -24013,7 +24013,7 @@ void main() {
|
|
|
24013
24013
|
], oy = /* @__PURE__ */ new De(), oc = /* @__PURE__ */ new y(), Ep = /* @__PURE__ */ new y();
|
|
24014
24014
|
function VI(r, e, t) {
|
|
24015
24015
|
let n = new Hl();
|
|
24016
|
-
const i = new ee(), s = new ee(), a = new Vt(), o = new jb(), l = new T1(), c = {}, h = t.maxTextureSize, d = { [
|
|
24016
|
+
const i = new ee(), s = new ee(), a = new Vt(), o = new jb(), l = new T1(), c = {}, h = t.maxTextureSize, d = { [zi]: oi, [oi]: zi, [Et]: Et }, u = new Zt({
|
|
24017
24017
|
defines: {
|
|
24018
24018
|
VSM_SAMPLES: 8
|
|
24019
24019
|
},
|
|
@@ -24260,11 +24260,11 @@ function WI(r, e) {
|
|
|
24260
24260
|
setMask: function(jt) {
|
|
24261
24261
|
Be !== jt && !H && (r.stencilMask(jt), Be = jt);
|
|
24262
24262
|
},
|
|
24263
|
-
setFunc: function(jt,
|
|
24264
|
-
(Y !== jt || Ve !==
|
|
24263
|
+
setFunc: function(jt, Ki, ps) {
|
|
24264
|
+
(Y !== jt || Ve !== Ki || Me !== ps) && (r.stencilFunc(jt, Ki, ps), Y = jt, Ve = Ki, Me = ps);
|
|
24265
24265
|
},
|
|
24266
|
-
setOp: function(jt,
|
|
24267
|
-
(_e !== jt || Le !==
|
|
24266
|
+
setOp: function(jt, Ki, ps) {
|
|
24267
|
+
(_e !== jt || Le !== Ki || vt !== ps) && (r.stencilOp(jt, Ki, ps), _e = jt, Le = Ki, vt = ps);
|
|
24268
24268
|
},
|
|
24269
24269
|
setLocked: function(jt) {
|
|
24270
24270
|
H = jt;
|
|
@@ -26449,9 +26449,9 @@ class fh {
|
|
|
26449
26449
|
function jt(w) {
|
|
26450
26450
|
dt("WebGLRenderer: A WebGL context could not be created. Reason: ", w.statusMessage);
|
|
26451
26451
|
}
|
|
26452
|
-
function
|
|
26452
|
+
function Ki(w) {
|
|
26453
26453
|
const D = w.target;
|
|
26454
|
-
D.removeEventListener("dispose",
|
|
26454
|
+
D.removeEventListener("dispose", Ki), ps(D);
|
|
26455
26455
|
}
|
|
26456
26456
|
function ps(w) {
|
|
26457
26457
|
kf(w), E.remove(w);
|
|
@@ -26503,7 +26503,7 @@ class fh {
|
|
|
26503
26503
|
We.render(je, wt);
|
|
26504
26504
|
};
|
|
26505
26505
|
function Dh(w, D, B) {
|
|
26506
|
-
w.transparent === !0 && w.side === Et && w.forceSinglePass === !1 ? (w.side = oi, w.needsUpdate = !0, So(w, D, B), w.side =
|
|
26506
|
+
w.transparent === !0 && w.side === Et && w.forceSinglePass === !1 ? (w.side = oi, w.needsUpdate = !0, So(w, D, B), w.side = zi, w.needsUpdate = !0, So(w, D, B), w.side = Et) : So(w, D, B);
|
|
26507
26507
|
}
|
|
26508
26508
|
this.compile = function(w, D, B = null) {
|
|
26509
26509
|
B === null && (B = w), P = Te.get(B), P.init(D), T.push(P), B.traverseVisible(function(U) {
|
|
@@ -26560,7 +26560,7 @@ class fh {
|
|
|
26560
26560
|
}
|
|
26561
26561
|
if (C === !0) return;
|
|
26562
26562
|
const B = Le.enabled === !0 && Le.isPresenting === !0, F = R !== null && (z === null || B) && R.begin(M, z);
|
|
26563
|
-
if (w.matrixWorldAutoUpdate === !0 && w.updateMatrixWorld(), D.parent === null && D.matrixWorldAutoUpdate === !0 && D.updateMatrixWorld(), Le.enabled === !0 && Le.isPresenting === !0 && (R === null || R.isCompositing() === !1) && (Le.cameraAutoUpdate === !0 && Le.updateCamera(D), D = Le.getCamera()), w.isScene === !0 && w.onBeforeRender(M, w, D, z), P = Te.get(w, T.length), P.init(D), T.push(P), At.multiplyMatrices(D.projectionMatrix, D.matrixWorldInverse), Ye.setFromProjectionMatrix(At,
|
|
26563
|
+
if (w.matrixWorldAutoUpdate === !0 && w.updateMatrixWorld(), D.parent === null && D.matrixWorldAutoUpdate === !0 && D.updateMatrixWorld(), Le.enabled === !0 && Le.isPresenting === !0 && (R === null || R.isCompositing() === !1) && (Le.cameraAutoUpdate === !0 && Le.updateCamera(D), D = Le.getCamera()), w.isScene === !0 && w.onBeforeRender(M, w, D, z), P = Te.get(w, T.length), P.init(D), T.push(P), At.multiplyMatrices(D.projectionMatrix, D.matrixWorldInverse), Ye.setFromProjectionMatrix(At, ns, D.reversedDepth), _t = this.localClippingEnabled, Oe = Ge.init(this.clippingPlanes, _t), S = we.get(w, A.length), S.init(), A.push(S), Le.enabled === !0 && Le.isPresenting === !0) {
|
|
26564
26564
|
const Q = M.xr.getDepthSensingMesh();
|
|
26565
26565
|
Q !== null && $l(Q, D, -1 / 0, M.sortObjects);
|
|
26566
26566
|
}
|
|
@@ -26664,13 +26664,13 @@ class fh {
|
|
|
26664
26664
|
}
|
|
26665
26665
|
}
|
|
26666
26666
|
function Jl(w, D, B, F, U, J) {
|
|
26667
|
-
w.onBeforeRender(M, D, B, F, U, J), w.modelViewMatrix.multiplyMatrices(B.matrixWorldInverse, w.matrixWorld), w.normalMatrix.getNormalMatrix(w.modelViewMatrix), U.onBeforeRender(M, D, B, F, w, J), U.transparent === !0 && U.side === Et && U.forceSinglePass === !1 ? (U.side = oi, U.needsUpdate = !0, M.renderBufferDirect(B, D, F, U, w, J), U.side =
|
|
26667
|
+
w.onBeforeRender(M, D, B, F, U, J), w.modelViewMatrix.multiplyMatrices(B.matrixWorldInverse, w.matrixWorld), w.normalMatrix.getNormalMatrix(w.modelViewMatrix), U.onBeforeRender(M, D, B, F, w, J), U.transparent === !0 && U.side === Et && U.forceSinglePass === !1 ? (U.side = oi, U.needsUpdate = !0, M.renderBufferDirect(B, D, F, U, w, J), U.side = zi, U.needsUpdate = !0, M.renderBufferDirect(B, D, F, U, w, J), U.side = Et) : M.renderBufferDirect(B, D, F, U, w, J), w.onAfterRender(M, D, B, F, U, J);
|
|
26668
26668
|
}
|
|
26669
26669
|
function So(w, D, B) {
|
|
26670
26670
|
D.isScene !== !0 && (D = be);
|
|
26671
26671
|
const F = E.get(w), U = P.state.lights, J = P.state.shadowsArray, Q = U.state.version, ne = Ke.getParameters(w, U.state, J, D, B), de = Ke.getProgramCacheKey(ne);
|
|
26672
26672
|
let ae = F.programs;
|
|
26673
|
-
F.environment = w.isMeshStandardMaterial ? D.environment : null, F.fog = D.fog, F.envMap = (w.isMeshStandardMaterial ? pe : ie).get(w.envMap || F.environment), F.envMapRotation = F.environment !== null && w.envMap === null ? D.environmentRotation : w.envMapRotation, ae === void 0 && (w.addEventListener("dispose",
|
|
26673
|
+
F.environment = w.isMeshStandardMaterial ? D.environment : null, F.fog = D.fog, F.envMap = (w.isMeshStandardMaterial ? pe : ie).get(w.envMap || F.environment), F.envMapRotation = F.environment !== null && w.envMap === null ? D.environmentRotation : w.envMapRotation, ae === void 0 && (w.addEventListener("dispose", Ki), ae = /* @__PURE__ */ new Map(), F.programs = ae);
|
|
26674
26674
|
let me = ae.get(de);
|
|
26675
26675
|
if (me !== void 0) {
|
|
26676
26676
|
if (F.currentProgram === me && F.lightsStateVersion === Q)
|
|
@@ -26722,8 +26722,8 @@ class fh {
|
|
|
26722
26722
|
ci && (ci.boneTexture === null && ci.computeBoneTexture(), Nt.setValue(N, "boneTexture", ci.boneTexture, W));
|
|
26723
26723
|
}
|
|
26724
26724
|
U.isBatchedMesh && (Nt.setOptional(N, U, "batchingTexture"), Nt.setValue(N, "batchingTexture", U._matricesTexture, W), Nt.setOptional(N, U, "batchingIdTexture"), Nt.setValue(N, "batchingIdTexture", U._indirectTexture, W), Nt.setOptional(N, U, "batchingColorTexture"), U._colorsTexture !== null && Nt.setValue(N, "batchingColorTexture", U._colorsTexture, W));
|
|
26725
|
-
const
|
|
26726
|
-
if ((
|
|
26725
|
+
const Xi = B.morphAttributes;
|
|
26726
|
+
if ((Xi.position !== void 0 || Xi.normal !== void 0 || Xi.color !== void 0) && et.update(U, B, pt), (pn || He.receiveShadow !== U.receiveShadow) && (He.receiveShadow = U.receiveShadow, Nt.setValue(N, "receiveShadow", U.receiveShadow)), F.isMeshGouraudMaterial && F.envMap !== null && (Ln.envMap.value = de, Ln.flipEnvMap.value = de.isCubeTexture && de.isRenderTargetTexture === !1 ? -1 : 1), F.isMeshStandardMaterial && F.envMap === null && D.environment !== null && (Ln.envMapIntensity.value = D.environmentIntensity), Ln.dfgLUT !== void 0 && (Ln.dfgLUT.value = nR()), pn && (Nt.setValue(N, "toneMappingExposure", M.toneMappingExposure), He.needsLights && I(Ln, gs), J && F.fog === !0 && lt.refreshFogUniforms(Ln, J), lt.refreshMaterialUniforms(Ln, F, Ue, Ne, P.state.transmissionRenderTarget[w.id]), ru.upload(N, Ls(He), Ln, W)), F.isShaderMaterial && F.uniformsNeedUpdate === !0 && (ru.upload(N, Ls(He), Ln, W), F.uniformsNeedUpdate = !1), F.isSpriteMaterial && Nt.setValue(N, "center", U.center), Nt.setValue(N, "modelViewMatrix", U.modelViewMatrix), Nt.setValue(N, "normalMatrix", U.normalMatrix), Nt.setValue(N, "modelMatrix", U.matrixWorld), F.isShaderMaterial || F.isRawShaderMaterial) {
|
|
26727
26727
|
const ci = F.uniformsGroups;
|
|
26728
26728
|
for (let vi = 0, Hf = ci.length; vi < Hf; vi++) {
|
|
26729
26729
|
const Ca = ci[vi];
|
|
@@ -26848,8 +26848,8 @@ class fh {
|
|
|
26848
26848
|
if (B !== null)
|
|
26849
26849
|
Q = B.max.x - B.min.x, ne = B.max.y - B.min.y, de = B.isBox3 ? B.max.z - B.min.z : 1, ae = B.min.x, me = B.min.y, xe = B.isBox3 ? B.min.z : 0;
|
|
26850
26850
|
else {
|
|
26851
|
-
const
|
|
26852
|
-
Q = Math.floor(ht.width *
|
|
26851
|
+
const Xi = Math.pow(2, -U);
|
|
26852
|
+
Q = Math.floor(ht.width * Xi), ne = Math.floor(ht.height * Xi), w.isDataArrayTexture ? de = ht.depth : w.isData3DTexture ? de = Math.floor(ht.depth * Xi) : de = 1, ae = 0, me = 0, xe = 0;
|
|
26853
26853
|
}
|
|
26854
26854
|
F !== null ? (je = F.x, at = F.y, wt = F.z) : (je = 0, at = 0, wt = 0);
|
|
26855
26855
|
const We = Y.convert(D.format), He = Y.convert(D.type);
|
|
@@ -26859,16 +26859,16 @@ class fh {
|
|
|
26859
26859
|
N.pixelStorei(N.UNPACK_ROW_LENGTH, ht.width), N.pixelStorei(N.UNPACK_IMAGE_HEIGHT, ht.height), N.pixelStorei(N.UNPACK_SKIP_PIXELS, ae), N.pixelStorei(N.UNPACK_SKIP_ROWS, me), N.pixelStorei(N.UNPACK_SKIP_IMAGES, xe);
|
|
26860
26860
|
const Nt = w.isDataArrayTexture || w.isData3DTexture, Ln = D.isDataArrayTexture || D.isData3DTexture;
|
|
26861
26861
|
if (w.isDepthTexture) {
|
|
26862
|
-
const
|
|
26862
|
+
const Xi = E.get(w), ci = E.get(D), vi = E.get(Xi.__renderTarget), Hf = E.get(ci.__renderTarget);
|
|
26863
26863
|
Ie.bindFramebuffer(N.READ_FRAMEBUFFER, vi.__webglFramebuffer), Ie.bindFramebuffer(N.DRAW_FRAMEBUFFER, Hf.__webglFramebuffer);
|
|
26864
26864
|
for (let Ca = 0; Ca < de; Ca++)
|
|
26865
26865
|
Nt && (N.framebufferTextureLayer(N.READ_FRAMEBUFFER, N.COLOR_ATTACHMENT0, E.get(w).__webglTexture, U, xe + Ca), N.framebufferTextureLayer(N.DRAW_FRAMEBUFFER, N.COLOR_ATTACHMENT0, E.get(D).__webglTexture, J, wt + Ca)), N.blitFramebuffer(ae, me, Q, ne, je, at, Q, ne, N.DEPTH_BUFFER_BIT, N.NEAREST);
|
|
26866
26866
|
Ie.bindFramebuffer(N.READ_FRAMEBUFFER, null), Ie.bindFramebuffer(N.DRAW_FRAMEBUFFER, null);
|
|
26867
26867
|
} else if (U !== 0 || w.isRenderTargetTexture || E.has(w)) {
|
|
26868
|
-
const
|
|
26868
|
+
const Xi = E.get(w), ci = E.get(D);
|
|
26869
26869
|
Ie.bindFramebuffer(N.READ_FRAMEBUFFER, oe), Ie.bindFramebuffer(N.DRAW_FRAMEBUFFER, Ce);
|
|
26870
26870
|
for (let vi = 0; vi < de; vi++)
|
|
26871
|
-
Nt ? N.framebufferTextureLayer(N.READ_FRAMEBUFFER, N.COLOR_ATTACHMENT0,
|
|
26871
|
+
Nt ? N.framebufferTextureLayer(N.READ_FRAMEBUFFER, N.COLOR_ATTACHMENT0, Xi.__webglTexture, U, xe + vi) : N.framebufferTexture2D(N.READ_FRAMEBUFFER, N.COLOR_ATTACHMENT0, N.TEXTURE_2D, Xi.__webglTexture, U), Ln ? N.framebufferTextureLayer(N.DRAW_FRAMEBUFFER, N.COLOR_ATTACHMENT0, ci.__webglTexture, J, wt + vi) : N.framebufferTexture2D(N.DRAW_FRAMEBUFFER, N.COLOR_ATTACHMENT0, N.TEXTURE_2D, ci.__webglTexture, J), U !== 0 ? N.blitFramebuffer(ae, me, Q, ne, je, at, Q, ne, N.COLOR_BUFFER_BIT, N.NEAREST) : Ln ? N.copyTexSubImage3D(ft, J, je, at, wt + vi, ae, me, Q, ne) : N.copyTexSubImage2D(ft, J, je, at, ae, me, Q, ne);
|
|
26872
26872
|
Ie.bindFramebuffer(N.READ_FRAMEBUFFER, null), Ie.bindFramebuffer(N.DRAW_FRAMEBUFFER, null);
|
|
26873
26873
|
} else
|
|
26874
26874
|
Ln ? w.isDataTexture || w.isData3DTexture ? N.texSubImage3D(ft, J, je, at, wt, Q, ne, de, We, He, ht.data) : D.isCompressedArrayTexture ? N.compressedTexSubImage3D(ft, J, je, at, wt, Q, ne, de, We, ht.data) : N.texSubImage3D(ft, J, je, at, wt, Q, ne, de, We, He, ht) : w.isDataTexture ? N.texSubImage2D(N.TEXTURE_2D, J, je, at, Q, ne, We, He, ht.data) : w.isCompressedTexture ? N.compressedTexSubImage2D(N.TEXTURE_2D, J, je, at, ht.width, ht.height, We, ht.data) : N.texSubImage2D(N.TEXTURE_2D, J, je, at, Q, ne, We, He, ht);
|
|
@@ -26891,7 +26891,7 @@ class fh {
|
|
|
26891
26891
|
* @readonly
|
|
26892
26892
|
*/
|
|
26893
26893
|
get coordinateSystem() {
|
|
26894
|
-
return
|
|
26894
|
+
return ns;
|
|
26895
26895
|
}
|
|
26896
26896
|
/**
|
|
26897
26897
|
* Defines the output color space of the renderer.
|
|
@@ -27059,10 +27059,10 @@ const aR = {
|
|
|
27059
27059
|
return r.threeDimensionalAsset;
|
|
27060
27060
|
const e = r.threeDimensionalAssetWeb;
|
|
27061
27061
|
return !e || typeof e != "string" ? null : e.match(dy) ? e.replace(dy, "/3d/glb/").replace(".flash.u3d", ".glb") : e;
|
|
27062
|
-
},
|
|
27062
|
+
}, is = (r, e) => {
|
|
27063
27063
|
for (const t in e)
|
|
27064
27064
|
try {
|
|
27065
|
-
e[t].constructor === Object ? r[t] =
|
|
27065
|
+
e[t].constructor === Object ? r[t] = is(r[t], e[t]) : r[t] = e[t];
|
|
27066
27066
|
} catch {
|
|
27067
27067
|
r[t] = e[t];
|
|
27068
27068
|
}
|
|
@@ -29167,7 +29167,7 @@ const bw = () => {
|
|
|
29167
29167
|
), r.alphaTest = vd(
|
|
29168
29168
|
e.shading.alphaCutoff,
|
|
29169
29169
|
0
|
|
29170
|
-
), il(r.color, e.shading.basecolor), t || e.shading.doubleSided ? r.side = Et : r.side =
|
|
29170
|
+
), il(r.color, e.shading.basecolor), t || e.shading.doubleSided ? r.side = Et : r.side = zi, r;
|
|
29171
29171
|
}, iO = (r, e) => {
|
|
29172
29172
|
let t = !1;
|
|
29173
29173
|
return e.shading.alpha !== void 0 && e.shading.alpha < 1 ? (r.transparent = !0, r.opacity = e.shading.alpha, r.depthWrite = !1, t = !0) : (r.transparent = !1, r.opacity = 1, r.depthWrite = !0), r.alphaTest = e.shading.alphaCutoff ?? 0, il(r.color, e.shading.basecolor), r.transmission = e.shading.transmission ?? 0, r.ior = Math.max(1, Math.min(2.33, e.shading.transmissionIOR)) ?? 1.5, r.metalness = e.shading.metallic ?? 0, il(
|
|
@@ -29178,7 +29178,7 @@ const bw = () => {
|
|
|
29178
29178
|
), il(r.sheenColor, e.shading.sheenColor), r.sheen = e.shading.sheenIntensity ?? 1, r.sheenRoughness = e.shading.sheenRoughness ?? 1, r.thickness = e.shading.thicknessFactor ?? 0, il(
|
|
29179
29179
|
r.attenuationColor,
|
|
29180
29180
|
e.shading.attenuationColor
|
|
29181
|
-
), e.shading.attenuationDistance && (r.attenuationDistance = e.shading.attenuationDistance), r.side = t || e.shading.doubleSided ? Et :
|
|
29181
|
+
), e.shading.attenuationDistance && (r.attenuationDistance = e.shading.attenuationDistance), r.side = t || e.shading.doubleSided ? Et : zi, r;
|
|
29182
29182
|
}, sO = () => cn.createMeshPhysicalMaterial({}), zk = (r, e = 1) => e === 2 ? aO(r) : rO(r), rO = (r) => {
|
|
29183
29183
|
const e = {
|
|
29184
29184
|
alpha: r.opacity,
|
|
@@ -29266,7 +29266,7 @@ const zg = (r, e, t, n, i, s, a = 16) => (bd || (bd = new jl(), bd.crossOrigin =
|
|
|
29266
29266
|
r.repeat.set(i, s), lO(r, e, t), e.mapping === Vn.RGBA && (t.transparent = !0, t.userData.materialVersion === 1 && t.name.includes("glow") && (t.emissiveIntensity = 0.5, t.emissive = new le(16777215), t.emissiveMap = t.map)), t.needsUpdate = !0;
|
|
29267
29267
|
}, lO = (r, e, t) => {
|
|
29268
29268
|
e.mapping === Vn.XYZ ? (t.normalMap = r, t.map === bw() && (t.map = null)) : e.mapping === Vn.ORM ? (t.aoMap = r, t.roughnessMap = r, t.metalnessMap = r) : e.mapping === Vn.EMRGB ? t.emissiveMap = r : e.mapping === Vn.CCRG ? (t.clearcoatMap = r, t.clearcoatRoughnessMap = r) : e.mapping === Vn.CCXYZ ? t.clearcoatNormalMap = r : e.mapping === Vn.SHRGBA ? (t.sheenColorMap = r, t.sheenRoughnessMap = r) : e.mapping === Vn.SPRGBA ? (t.specularColorMap = r, t.specularIntensityMap = r) : e.mapping === Vn.TTRG ? (t.transmissionMap = r, t.thicknessMap = r) : (r.colorSpace = rn, t.map = r);
|
|
29269
|
-
},
|
|
29269
|
+
}, ji = (r = !0) => (window.__RML_GUI__ || (window.__RML_GUI__ = new KR({ autoPlace: r })), window.__RML_GUI__), Lp = (r, e) => {
|
|
29270
29270
|
let t = !1;
|
|
29271
29271
|
for (const n of e) {
|
|
29272
29272
|
const i = n.getKernelObject();
|
|
@@ -30444,7 +30444,7 @@ class ba extends s0 {
|
|
|
30444
30444
|
this.renderPass(e);
|
|
30445
30445
|
}
|
|
30446
30446
|
}
|
|
30447
|
-
const
|
|
30447
|
+
const Qi = {
|
|
30448
30448
|
INPUT_RGB_NORMAL: "inputRgbNormal",
|
|
30449
30449
|
FLOAT_BUFFER_NORMAL: "floatBufferNormal"
|
|
30450
30450
|
}, Mi = {
|
|
@@ -30871,10 +30871,10 @@ class UO {
|
|
|
30871
30871
|
constructor(e, t, n, i, s) {
|
|
30872
30872
|
this.needsUpdate = !0, this.parameters = {
|
|
30873
30873
|
...Rw
|
|
30874
|
-
}, this._width = 0, this._height = 0, this._samples = 0, this._gBufferAntiAliasing = !1, this._normalVectorSourceType =
|
|
30874
|
+
}, this._width = 0, this._height = 0, this._samples = 0, this._gBufferAntiAliasing = !1, this._normalVectorSourceType = Qi.FLOAT_BUFFER_NORMAL, this._depthValueSourceType = Mi.NORMAL_VECTOR_ALPHA, this._modulateRedChannel = !1, this.depthTexture = null, this.normalTexture = null, this._noiseTexture = null, this._renderTarget = null, this._passRenderer = new gf(), this._sceneClipBox = new ct(
|
|
30875
30875
|
new y(-1, -1, -1),
|
|
30876
30876
|
new y(1, 1, 1)
|
|
30877
|
-
), this._sceneScale = 1, this._width = e, this._height = t, this._samples = n, this._gBufferAntiAliasing = i, this._normalVectorSourceType = s?.normalVectorSourceType ||
|
|
30877
|
+
), this._sceneScale = 1, this._width = e, this._height = t, this._samples = n, this._gBufferAntiAliasing = i, this._normalVectorSourceType = s?.normalVectorSourceType || Qi.FLOAT_BUFFER_NORMAL, this._depthValueSourceType = s?.depthValueSourceType || Mi.NORMAL_VECTOR_ALPHA, this._modulateRedChannel = s?.modulateRedChannel || !1, s?.aoParameters && (this.parameters = s.aoParameters), s && this.updateTextures(s);
|
|
30878
30878
|
}
|
|
30879
30879
|
get texture() {
|
|
30880
30880
|
return this._renderTarget ? this._renderTarget?.texture : null;
|
|
@@ -30916,7 +30916,7 @@ class UO {
|
|
|
30916
30916
|
e.defines.PERSPECTIVE_CAMERA = t.isPerspectiveCamera ? 1 : 0, e.defines.SAMPLES = this.parameters.samples, e.defines.SAMPLE_VECTORS = Iw(
|
|
30917
30917
|
this.parameters.samples,
|
|
30918
30918
|
this.parameters.algorithm === Ci.SSAO
|
|
30919
|
-
), e.defines.NORMAL_VECTOR_TYPE = this._normalVectorSourceType ===
|
|
30919
|
+
), e.defines.NORMAL_VECTOR_TYPE = this._normalVectorSourceType === Qi.FLOAT_BUFFER_NORMAL ? 2 : 1, e.defines.DEPTH_SWIZZLING = this._depthValueSourceType === Mi.NORMAL_VECTOR_ALPHA ? "a" : "x", e.defines.AO_ALGORITHM = this.parameters.algorithm, e.defines.NV_ALIGNED_SAMPLES = this.parameters.algorithm === Ci.HBAO || this.parameters.algorithm === Ci.GTAO ? 0 : 1, e.defines.SCREEN_SPACE_RADIUS = this.parameters.screenSpaceRadius ? 1 : 0, e.defines.SCENE_CLIP_BOX = 1, e.defines.NORMAL_VECTOR_ANTIALIAS = this._gBufferAntiAliasing ? 2 : 0, e.defines.DEPTH_BUFFER_ANTIALIAS = this._gBufferAntiAliasing ? 1 : 0;
|
|
30920
30920
|
}
|
|
30921
30921
|
_updateUniforms(e, t, n) {
|
|
30922
30922
|
const i = this.parameters.screenSpaceRadius ? 1 : this._sceneScale, s = this._depthValueSourceType === Mi.NORMAL_VECTOR_ALPHA ? this.normalTexture : this.depthTexture;
|
|
@@ -31272,7 +31272,7 @@ class Ay {
|
|
|
31272
31272
|
constructor(e, t, n, i) {
|
|
31273
31273
|
this.needsUpdate = !0, this.parameters = {
|
|
31274
31274
|
...Dw
|
|
31275
|
-
}, this._width = 0, this._height = 0, this._samples = 0, this._normalVectorSourceType =
|
|
31275
|
+
}, this._width = 0, this._height = 0, this._samples = 0, this._normalVectorSourceType = Qi.FLOAT_BUFFER_NORMAL, this._depthValueSourceType = Mi.NORMAL_VECTOR_ALPHA, this._inputTexture = null, this.depthTexture = null, this.normalTexture = null, this._noiseTexture = null, this._renderTargets = [], this._outputRenderTargetIndex = 0, this._passRenderer = new gf(), this._rgInputTexture = !1, this._luminanceWeighted = !0, this._width = e, this._height = t, this._samples = n, this._normalVectorSourceType = i?.normalVectorSourceType || Qi.FLOAT_BUFFER_NORMAL, this._depthValueSourceType = i?.depthValueSourceType || Mi.NORMAL_VECTOR_ALPHA, this._inputTexture = i?.inputTexture || null, this.depthTexture = i?.depthTexture || null, this.normalTexture = i?.normalTexture || null, this._rgInputTexture = i?.rgInputTexture || !1, this._luminanceWeighted = i?.luminanceWeighted === !0, this._luminanceType = i?.luminanceType || "vec3", this._sampleLuminance = i?.sampleLuminance || "a", this._fragmentOutput = i?.fragmentOutput || "vec4(denoised.xyz, 1.)", i?.poissonDenoisePassParameters && (this.parameters = i.poissonDenoisePassParameters), i && this.updateTextures(i);
|
|
31276
31276
|
}
|
|
31277
31277
|
get texture() {
|
|
31278
31278
|
return this.parameters.iterations > 0 && this._renderTargets.length > 0 ? this._renderTargets[this._outputRenderTargetIndex].texture : this._inputTexture;
|
|
@@ -31315,7 +31315,7 @@ class Ay {
|
|
|
31315
31315
|
this.parameters.rings,
|
|
31316
31316
|
this.parameters.radius,
|
|
31317
31317
|
this.parameters.radiusExponent
|
|
31318
|
-
), e.defines.SAMPLE_DISTRIBUTION = this.parameters.nvOrientatedSamples ? 1 : 0, e.defines.NORMAL_VECTOR_TYPE = this._normalVectorSourceType ===
|
|
31318
|
+
), e.defines.SAMPLE_DISTRIBUTION = this.parameters.nvOrientatedSamples ? 1 : 0, e.defines.NORMAL_VECTOR_TYPE = this._normalVectorSourceType === Qi.FLOAT_BUFFER_NORMAL ? 2 : 1, e.defines.DEPTH_VALUE_SOURCE = this._depthValueSourceType === Mi.NORMAL_VECTOR_ALPHA ? 1 : 0, e.needsUpdate = !0, e.defines.LUMINANCE_WEIGHTED = this._luminanceWeighted ? 1 : 0, e.defines.LUMINANCE_TYPE = this._luminanceType, e.defines.SAMPLE_LUMINANCE = this._sampleLuminance, e.defines.FRAGMENT_OUTPUT = this._fragmentOutput, e.defines.SCENE_CLIP_BOX = this._sceneClipBox ? 1 : 0, e.needsUpdate = !0;
|
|
31319
31319
|
}
|
|
31320
31320
|
_updateUniforms(e, t, n) {
|
|
31321
31321
|
const i = this._depthValueSourceType === Mi.NORMAL_VECTOR_ALPHA ? this.normalTexture : this.depthTexture;
|
|
@@ -31450,7 +31450,7 @@ const fi = {
|
|
|
31450
31450
|
this._samples,
|
|
31451
31451
|
!this.parameters.applyToMaterial,
|
|
31452
31452
|
{
|
|
31453
|
-
normalVectorSourceType: this.gBufferTextures.isFloatGBufferWithRgbNormalAlphaDepth ?
|
|
31453
|
+
normalVectorSourceType: this.gBufferTextures.isFloatGBufferWithRgbNormalAlphaDepth ? Qi.FLOAT_BUFFER_NORMAL : Qi.INPUT_RGB_NORMAL,
|
|
31454
31454
|
depthValueSourceType: this.gBufferTextures.isFloatGBufferWithRgbNormalAlphaDepth ? Mi.NORMAL_VECTOR_ALPHA : Mi.SEPARATE_BUFFER,
|
|
31455
31455
|
modulateRedChannel: !0,
|
|
31456
31456
|
aoParameters: this.parameters.ao
|
|
@@ -31467,7 +31467,7 @@ const fi = {
|
|
|
31467
31467
|
inputTexture: void 0,
|
|
31468
31468
|
depthTexture: this.gBufferTextures.depthBufferTexture,
|
|
31469
31469
|
normalTexture: this.gBufferTextures.gBufferTexture,
|
|
31470
|
-
normalVectorSourceType: this.gBufferTextures.isFloatGBufferWithRgbNormalAlphaDepth ?
|
|
31470
|
+
normalVectorSourceType: this.gBufferTextures.isFloatGBufferWithRgbNormalAlphaDepth ? Qi.FLOAT_BUFFER_NORMAL : Qi.INPUT_RGB_NORMAL,
|
|
31471
31471
|
depthValueSourceType: this.gBufferTextures.isFloatGBufferWithRgbNormalAlphaDepth ? Mi.NORMAL_VECTOR_ALPHA : Mi.SEPARATE_BUFFER,
|
|
31472
31472
|
rgInputTexture: !0,
|
|
31473
31473
|
luminanceWeighted: !1,
|
|
@@ -31509,7 +31509,7 @@ const fi = {
|
|
|
31509
31509
|
inputTexture: this.aoAndSoftShadowRenderTarget.texture,
|
|
31510
31510
|
depthTexture: this.gBufferTextures.depthBufferTexture,
|
|
31511
31511
|
normalTexture: this.gBufferTextures.gBufferTexture,
|
|
31512
|
-
normalVectorSourceType: this.gBufferTextures.isFloatGBufferWithRgbNormalAlphaDepth ?
|
|
31512
|
+
normalVectorSourceType: this.gBufferTextures.isFloatGBufferWithRgbNormalAlphaDepth ? Qi.FLOAT_BUFFER_NORMAL : Qi.INPUT_RGB_NORMAL,
|
|
31513
31513
|
depthValueSourceType: this.gBufferTextures.isFloatGBufferWithRgbNormalAlphaDepth ? Mi.NORMAL_VECTOR_ALPHA : Mi.SEPARATE_BUFFER,
|
|
31514
31514
|
rgInputTexture: !0,
|
|
31515
31515
|
luminanceWeighted: !1,
|
|
@@ -32524,7 +32524,7 @@ const pL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
32524
32524
|
return r[0];
|
|
32525
32525
|
let e = r[0];
|
|
32526
32526
|
for (let t = 1; t < r.length; t++)
|
|
32527
|
-
e =
|
|
32527
|
+
e = is(e, r[t]);
|
|
32528
32528
|
return e;
|
|
32529
32529
|
}, _L = (r) => r ? {
|
|
32530
32530
|
groundReflectionParameters: {
|
|
@@ -36641,7 +36641,7 @@ class ma extends lo {
|
|
|
36641
36641
|
}
|
|
36642
36642
|
_initLightSourceAndTarget(e, t, n = !1) {
|
|
36643
36643
|
let i = new Se();
|
|
36644
|
-
n && !this._helper && import("./SpotLightHelper-
|
|
36644
|
+
n && !this._helper && import("./SpotLightHelper-DTIjFs3a.mjs").then(
|
|
36645
36645
|
({ SpotLightHelper: s }) => {
|
|
36646
36646
|
this._helper = new s(this, 0), this._helper.visible = !1, this.add(this._helper), i = new Se(
|
|
36647
36647
|
new Yt(0.15, 0.15, 0.15),
|
|
@@ -36664,7 +36664,7 @@ class ma extends lo {
|
|
|
36664
36664
|
this.matrixWorldNeedsUpdate = !0, e.intensity && (this.intensity = e.intensity), e.color && (this.color = new le(e.color)), e.angle && (this.angle = e.angle, this.shadow.camera.fov = fa(e.angle)), e.distance && (this.distance = e.distance), e.penumbra && (this.penumbra = e.penumbra), e.decay && (this.decay = e.decay);
|
|
36665
36665
|
}
|
|
36666
36666
|
_addDebugUI() {
|
|
36667
|
-
const e =
|
|
36667
|
+
const e = ji();
|
|
36668
36668
|
if (!e)
|
|
36669
36669
|
return;
|
|
36670
36670
|
const t = {
|
|
@@ -36768,7 +36768,7 @@ class ho extends uf {
|
|
|
36768
36768
|
this.matrixWorldNeedsUpdate = !0, e.intensity && (this.intensity = e.intensity), e.color && (this.color = new le(e.color)), e.width && (this.width = e.width / 1e3), e.height && (this.height = e.height / 1e3);
|
|
36769
36769
|
}
|
|
36770
36770
|
_addDebugUI() {
|
|
36771
|
-
const e =
|
|
36771
|
+
const e = ji();
|
|
36772
36772
|
if (!e)
|
|
36773
36773
|
return;
|
|
36774
36774
|
const t = {
|
|
@@ -36831,7 +36831,7 @@ class Bl extends K_ {
|
|
|
36831
36831
|
super(wD, SD, MD), e.intensity ? this.intensity = e.intensity : this.power = CD, e.color && (typeof e.color == "number" ? this.color.setHex(e.color) : this.color = new le(e.color)), e.distance && (this.distance = e.distance), e.decay && (this.decay = e.decay), this._initLightSource(e.lightPos, t);
|
|
36832
36832
|
}
|
|
36833
36833
|
_initLightSource(e, t = !1) {
|
|
36834
|
-
t && !this._helper && import("./PointLightHelper-
|
|
36834
|
+
t && !this._helper && import("./PointLightHelper-BO5d38I6.mjs").then(
|
|
36835
36835
|
({ PointLightHelper: n }) => {
|
|
36836
36836
|
this._helper = new n(this, 0), this._helper.visible = !1, this.add(this._helper);
|
|
36837
36837
|
}
|
|
@@ -36845,7 +36845,7 @@ class Bl extends K_ {
|
|
|
36845
36845
|
this.position.copy(t), this.matrixWorldNeedsUpdate = !0, e.intensity && (this.intensity = e.intensity), e.color && (this.color = new le(e.color)), e.distance && (this.distance = e.distance), e.decay && (this.decay = e.decay);
|
|
36846
36846
|
}
|
|
36847
36847
|
_addDebugUI() {
|
|
36848
|
-
const e =
|
|
36848
|
+
const e = ji();
|
|
36849
36849
|
if (!e)
|
|
36850
36850
|
return;
|
|
36851
36851
|
const t = {
|
|
@@ -37197,7 +37197,7 @@ var YD = Object.defineProperty, _o = (r, e, t, n) => {
|
|
|
37197
37197
|
const { APP: ZD } = uo, { RAPI: Yc } = ZD, Qg = Yc.headers, By = Yc.itemHeaders, $D = Qg.token, JD = "live", ky = 1500, Ww = "crt", QD = 50, Gy = "0", du = {
|
|
37198
37198
|
CONFIGURATOR: 3,
|
|
37199
37199
|
ROOM_DESIGNER: 8
|
|
37200
|
-
},
|
|
37200
|
+
}, Zi = {
|
|
37201
37201
|
GET: "GET",
|
|
37202
37202
|
POST: "POST",
|
|
37203
37203
|
PUT: "PUT"
|
|
@@ -37241,7 +37241,7 @@ const i2 = (r) => {
|
|
|
37241
37241
|
`/configurators/${this._globalInitData.configuratorId || Hy}`,
|
|
37242
37242
|
"configurators",
|
|
37243
37243
|
{
|
|
37244
|
-
method:
|
|
37244
|
+
method: Zi.GET,
|
|
37245
37245
|
additionalHeaders: {
|
|
37246
37246
|
currentTenant: this._globalInitData.overrideTenant || Xp
|
|
37247
37247
|
},
|
|
@@ -37683,7 +37683,7 @@ const i2 = (r) => {
|
|
|
37683
37683
|
}
|
|
37684
37684
|
getShortUrl(e, t) {
|
|
37685
37685
|
return new Promise((n, i) => this._fetchJson("/shortIds", "shortIds", {
|
|
37686
|
-
method:
|
|
37686
|
+
method: Zi.POST,
|
|
37687
37687
|
resolve: n,
|
|
37688
37688
|
reject: i,
|
|
37689
37689
|
data: JSON.stringify({
|
|
@@ -37699,7 +37699,7 @@ const i2 = (r) => {
|
|
|
37699
37699
|
async resolveShortUrl(e) {
|
|
37700
37700
|
return new Promise((t, n) => {
|
|
37701
37701
|
this._fetchJson(`/shortIds/${e}`, "shortIds", {
|
|
37702
|
-
method:
|
|
37702
|
+
method: Zi.GET,
|
|
37703
37703
|
resolve: t,
|
|
37704
37704
|
reject: n
|
|
37705
37705
|
});
|
|
@@ -37746,7 +37746,7 @@ const i2 = (r) => {
|
|
|
37746
37746
|
"/configurations/" + e.id,
|
|
37747
37747
|
a,
|
|
37748
37748
|
"configurations",
|
|
37749
|
-
{ accept: "application/json", method:
|
|
37749
|
+
{ accept: "application/json", method: Zi.PUT }
|
|
37750
37750
|
);
|
|
37751
37751
|
}
|
|
37752
37752
|
savePlanSnapshotImage(e, t, n, i, s) {
|
|
@@ -37761,7 +37761,7 @@ const i2 = (r) => {
|
|
|
37761
37761
|
"/planSnapshots/" + e.id,
|
|
37762
37762
|
a,
|
|
37763
37763
|
"planSnapshots",
|
|
37764
|
-
{ accept: "application/json", method:
|
|
37764
|
+
{ accept: "application/json", method: Zi.PUT }
|
|
37765
37765
|
);
|
|
37766
37766
|
}
|
|
37767
37767
|
_markConfigurationAsLocally(e) {
|
|
@@ -37775,7 +37775,7 @@ const i2 = (r) => {
|
|
|
37775
37775
|
// we should change to PUT if the data has an ID set
|
|
37776
37776
|
// but then we would need to change the URL and this
|
|
37777
37777
|
// could become problematic... let's keep it for now
|
|
37778
|
-
method: i.method ||
|
|
37778
|
+
method: i.method || Zi.POST,
|
|
37779
37779
|
data: s,
|
|
37780
37780
|
resolve: a,
|
|
37781
37781
|
reject: o
|
|
@@ -37945,7 +37945,7 @@ const i2 = (r) => {
|
|
|
37945
37945
|
}
|
|
37946
37946
|
}
|
|
37947
37947
|
async _fetch(e, t) {
|
|
37948
|
-
const n = t.method ? t.method :
|
|
37948
|
+
const n = t.method ? t.method : Zi.GET, i = await this._createHeaders(t), s = {
|
|
37949
37949
|
method: n,
|
|
37950
37950
|
headers: i,
|
|
37951
37951
|
mode: "cors",
|
|
@@ -38199,7 +38199,7 @@ const i2 = (r) => {
|
|
|
38199
38199
|
const o = `/${i}/${e}/shares`, l = new FormData();
|
|
38200
38200
|
return l.append("email", t), l.append("type", n.toString()), a && Object.keys(a).length > 0 && l.append("params", JSON.stringify(a)), new Promise((c, h) => {
|
|
38201
38201
|
const d = {
|
|
38202
|
-
method:
|
|
38202
|
+
method: Zi.POST,
|
|
38203
38203
|
data: l,
|
|
38204
38204
|
resolve: c,
|
|
38205
38205
|
reject: h
|
|
@@ -38247,7 +38247,7 @@ const i2 = (r) => {
|
|
|
38247
38247
|
}, l = JSON.stringify(o), c = new FormData();
|
|
38248
38248
|
return c.append("email", t), c.append("settings", l), new Promise((h, d) => {
|
|
38249
38249
|
const u = {
|
|
38250
|
-
method:
|
|
38250
|
+
method: Zi.POST,
|
|
38251
38251
|
data: c,
|
|
38252
38252
|
resolve: h,
|
|
38253
38253
|
reject: d
|
|
@@ -38269,7 +38269,7 @@ const i2 = (r) => {
|
|
|
38269
38269
|
signinUser(e, t) {
|
|
38270
38270
|
return new Promise((n, i) => {
|
|
38271
38271
|
const s = {
|
|
38272
|
-
method:
|
|
38272
|
+
method: Zi.POST,
|
|
38273
38273
|
accept: "application/json",
|
|
38274
38274
|
contentType: "application/json; charset=UTF-8",
|
|
38275
38275
|
data: JSON.stringify({
|
|
@@ -38290,7 +38290,7 @@ const i2 = (r) => {
|
|
|
38290
38290
|
async savePlan(e) {
|
|
38291
38291
|
const n = e.id ? "/plans" + "/" + e.id : "/plans";
|
|
38292
38292
|
return this._save(n, { plan: e }, "plans", {
|
|
38293
|
-
method: e.id ?
|
|
38293
|
+
method: e.id ? Zi.PUT : Zi.POST,
|
|
38294
38294
|
accept: "application/json",
|
|
38295
38295
|
contentType: "application/json; charset=UTF-8"
|
|
38296
38296
|
});
|
|
@@ -39848,7 +39848,7 @@ class J2 {
|
|
|
39848
39848
|
return null;
|
|
39849
39849
|
const i = t.meshes[n.mesh];
|
|
39850
39850
|
for (const c of i.primitives)
|
|
39851
|
-
if (c.mode !==
|
|
39851
|
+
if (c.mode !== Ji.TRIANGLES && c.mode !== Ji.TRIANGLE_STRIP && c.mode !== Ji.TRIANGLE_FAN && c.mode !== void 0)
|
|
39852
39852
|
return null;
|
|
39853
39853
|
const a = n.extensions[this.name].attributes, o = [], l = {};
|
|
39854
39854
|
for (const c in a)
|
|
@@ -39973,7 +39973,7 @@ class s3 extends Jw {
|
|
|
39973
39973
|
return i3.fromArray(s).normalize().toArray(s), s;
|
|
39974
39974
|
}
|
|
39975
39975
|
}
|
|
39976
|
-
const
|
|
39976
|
+
const Ji = {
|
|
39977
39977
|
POINTS: 0,
|
|
39978
39978
|
LINES: 1,
|
|
39979
39979
|
LINE_LOOP: 2,
|
|
@@ -40042,7 +40042,7 @@ function a3(r) {
|
|
|
40042
40042
|
roughness: 1,
|
|
40043
40043
|
transparent: !1,
|
|
40044
40044
|
depthTest: !0,
|
|
40045
|
-
side:
|
|
40045
|
+
side: zi
|
|
40046
40046
|
})), r.DefaultMaterial;
|
|
40047
40047
|
}
|
|
40048
40048
|
function Da(r, e, t) {
|
|
@@ -40621,15 +40621,15 @@ class u3 {
|
|
|
40621
40621
|
const _ = h[f], p = a[f];
|
|
40622
40622
|
let m;
|
|
40623
40623
|
const v = c[f];
|
|
40624
|
-
if (p.mode ===
|
|
40625
|
-
m = s.isSkinnedMesh === !0 ? new NC(_, v) : new Se(_, v), m.isSkinnedMesh === !0 && m.normalizeSkinWeights(), p.mode ===
|
|
40626
|
-
else if (p.mode ===
|
|
40624
|
+
if (p.mode === Ji.TRIANGLES || p.mode === Ji.TRIANGLE_STRIP || p.mode === Ji.TRIANGLE_FAN || p.mode === void 0)
|
|
40625
|
+
m = s.isSkinnedMesh === !0 ? new NC(_, v) : new Se(_, v), m.isSkinnedMesh === !0 && m.normalizeSkinWeights(), p.mode === Ji.TRIANGLE_STRIP ? m.geometry = Yy(m.geometry, vb) : p.mode === Ji.TRIANGLE_FAN && (m.geometry = Yy(m.geometry, mg));
|
|
40626
|
+
else if (p.mode === Ji.LINES)
|
|
40627
40627
|
m = new la(_, v);
|
|
40628
|
-
else if (p.mode ===
|
|
40628
|
+
else if (p.mode === Ji.LINE_STRIP)
|
|
40629
40629
|
m = new fn(_, v);
|
|
40630
|
-
else if (p.mode ===
|
|
40630
|
+
else if (p.mode === Ji.LINE_LOOP)
|
|
40631
40631
|
m = new zC(_, v);
|
|
40632
|
-
else if (p.mode ===
|
|
40632
|
+
else if (p.mode === Ji.POINTS)
|
|
40633
40633
|
m = new VC(_, v);
|
|
40634
40634
|
else
|
|
40635
40635
|
throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + p.mode);
|
|
@@ -40920,7 +40920,7 @@ function f3(r, e, t) {
|
|
|
40920
40920
|
i.expandByVector(o);
|
|
40921
40921
|
}
|
|
40922
40922
|
r.boundingBox = i;
|
|
40923
|
-
const a = new
|
|
40923
|
+
const a = new Vi();
|
|
40924
40924
|
i.getCenter(a.center), a.radius = i.min.distanceTo(i.max) / 2, r.boundingSphere = a;
|
|
40925
40925
|
}
|
|
40926
40926
|
function Qy(r, e, t) {
|
|
@@ -41684,7 +41684,7 @@ class nS {
|
|
|
41684
41684
|
});
|
|
41685
41685
|
}
|
|
41686
41686
|
setOverrides(e) {
|
|
41687
|
-
|
|
41687
|
+
is(this, e);
|
|
41688
41688
|
}
|
|
41689
41689
|
}
|
|
41690
41690
|
class bf {
|
|
@@ -41692,7 +41692,7 @@ class bf {
|
|
|
41692
41692
|
this.locale = XD() || "en", this.overrideCountry = null, this.e2e = !1, this.e2eRoomleRendererForImages = !1, this._creator_ = e;
|
|
41693
41693
|
}
|
|
41694
41694
|
setOverrides(e) {
|
|
41695
|
-
|
|
41695
|
+
is(this, e);
|
|
41696
41696
|
}
|
|
41697
41697
|
}
|
|
41698
41698
|
const N3 = "on", nm = "_isMute";
|
|
@@ -41822,7 +41822,7 @@ class rS {
|
|
|
41822
41822
|
async init(e, t, n) {
|
|
41823
41823
|
this._scene = e, this._uiScene = t, this._cameraPosition = n;
|
|
41824
41824
|
const { bananaForScale: i } = this._initData;
|
|
41825
|
-
i && await import("./banana-for-scale-
|
|
41825
|
+
i && await import("./banana-for-scale-BpwlhT3u.mjs").then(
|
|
41826
41826
|
({ default: s }) => this._plugins.push(new s(this._creator_))
|
|
41827
41827
|
), this._plugins.forEach((s) => s.setScene(this._scene)), this._plugins.forEach((s) => s.setUiScene(this._uiScene)), this._plugins.forEach((s) => s.updateBounds(this._bounds)), this._plugins.forEach(
|
|
41828
41828
|
(s) => s.moveCameraEnd(this._cameraPosition)
|
|
@@ -41982,7 +41982,7 @@ class Lr {
|
|
|
41982
41982
|
_updateStandardMaterialProperties(e, t) {
|
|
41983
41983
|
t.color && (e.color = new le(t.color)), t.alpha && (e.opacity = parseFloat(t.alpha)), t.roughness && (e.roughness = parseFloat(t.roughness)), t.metallic && (e.metalness = parseFloat(t.metallic)), t.normalScale && e.normalScale.setScalar(
|
|
41984
41984
|
parseFloat(t.normalScale)
|
|
41985
|
-
), t.alphaCutoff && (e.alphaTest = parseFloat(t.alphaCutoff)), t.doubleSided && (e.side = t.doubleSided ? Et :
|
|
41985
|
+
), t.alphaCutoff && (e.alphaTest = parseFloat(t.alphaCutoff)), t.doubleSided && (e.side = t.doubleSided ? Et : zi), t.occlusion && (e.aoMapIntensity = parseFloat(t.occlusion)), t.emissiveColor && (e.emissive = new le(t.emissiveColor)), t.emissiveIntensity && (e.emissiveIntensity = parseFloat(
|
|
41986
41986
|
t.emissiveIntensity
|
|
41987
41987
|
));
|
|
41988
41988
|
}
|
|
@@ -42771,7 +42771,7 @@ class vh {
|
|
|
42771
42771
|
};
|
|
42772
42772
|
}
|
|
42773
42773
|
);
|
|
42774
|
-
this._dimensionDataMap.set(e.runtimeId, c), import("./component-dimensioning-
|
|
42774
|
+
this._dimensionDataMap.set(e.runtimeId, c), import("./component-dimensioning-Drx9suac.mjs").then((h) => {
|
|
42775
42775
|
const d = [];
|
|
42776
42776
|
let u;
|
|
42777
42777
|
this._isThreeJSMode && (u = Qr.parseFont(Nw), u || console.warn("Font not loaded, text labels will not be shown")), a.forEach((f, g) => {
|
|
@@ -42941,7 +42941,7 @@ class vh {
|
|
|
42941
42941
|
}
|
|
42942
42942
|
remove(e, t = !0) {
|
|
42943
42943
|
return new Promise((n) => {
|
|
42944
|
-
import("./component-dimensioning-
|
|
42944
|
+
import("./component-dimensioning-Drx9suac.mjs").then((i) => {
|
|
42945
42945
|
const s = [];
|
|
42946
42946
|
e.children.forEach((a) => {
|
|
42947
42947
|
a instanceof i.default && s.push(a);
|
|
@@ -43981,7 +43981,7 @@ const aN = (r, e, t) => {
|
|
|
43981
43981
|
(s) => console.error(s)
|
|
43982
43982
|
);
|
|
43983
43983
|
}, oN = "" + new URL("ConfiguratorKernel.wasm", import.meta.url).href, lN = "" + new URL("ConfiguratorKernel.js", import.meta.url).href, cN = "" + new URL("RoomleCore.wasm", import.meta.url).href, hN = "" + new URL("RoomleCore.js", import.meta.url).href, ax = "" + new URL("RoomleToolsCore.wasm", import.meta.url).href, dN = "" + new URL("RoomleToolsCore.js", import.meta.url).href;
|
|
43984
|
-
var Dn = /* @__PURE__ */ ((r) => (r.UNKNOWN_UNIT = "unknown", r.LENGTH = "length", r.AREA = "area", r.ANGLE = "angle", r.COUNT = "count", r))(Dn || {}),
|
|
43984
|
+
var Dn = /* @__PURE__ */ ((r) => (r.UNKNOWN_UNIT = "unknown", r.LENGTH = "length", r.AREA = "area", r.ANGLE = "angle", r.COUNT = "count", r))(Dn || {}), Gi = /* @__PURE__ */ ((r) => (r.UNKNOWN = "", r.INTEGER = "Integer", r.DECIMAL = "Decimal", r.STRING = "String", r.BOOLTYPE = "Boolean", r.MATERIAL = "Material", r.COLOR = "Color", r))(Gi || {}), Ha = /* @__PURE__ */ ((r) => (r.RANGE = "Range", r.BOOLEAN = "Boolean", r.MATERIAL = "Material", r.OPTIONS = "Options", r.THUMBNAILS = "Thumbnails", r.COLOR = "Color", r))(Ha || {});
|
|
43985
43985
|
const pS = function(r) {
|
|
43986
43986
|
return r.validRange && typeof r.validRange.type == "string";
|
|
43987
43987
|
}, mS = function(r) {
|
|
@@ -43991,11 +43991,11 @@ const pS = function(r) {
|
|
|
43991
43991
|
}, fN = function(r) {
|
|
43992
43992
|
return mS(r) ? Array.isArray(r.validValues) && r.validValues.length > 0 && typeof r.validValues[0].thumbnail == "string" : !1;
|
|
43993
43993
|
}, pN = function(r) {
|
|
43994
|
-
return r.type ===
|
|
43994
|
+
return r.type === Gi.BOOLTYPE;
|
|
43995
43995
|
}, _0 = function(r) {
|
|
43996
|
-
return r.type ===
|
|
43996
|
+
return r.type === Gi.MATERIAL;
|
|
43997
43997
|
}, mN = function(r) {
|
|
43998
|
-
return r.type ===
|
|
43998
|
+
return r.type === Gi.COLOR;
|
|
43999
43999
|
};
|
|
44000
44000
|
var gN = Object.defineProperty, us = (r, e, t, n) => {
|
|
44001
44001
|
for (var i = void 0, s = r.length - 1, a; s >= 0; s--)
|
|
@@ -44015,7 +44015,7 @@ const cx = {
|
|
|
44015
44015
|
}
|
|
44016
44016
|
}
|
|
44017
44017
|
}, rm = !!window.WebAssembly, yN = !0;
|
|
44018
|
-
class
|
|
44018
|
+
class Wi {
|
|
44019
44019
|
constructor(e) {
|
|
44020
44020
|
this._requestedItemIds = [], this._requestedMaterialIds = [], this._configuratorKernelCallbackListener = /* @__PURE__ */ new Set(), this._cachedGroupIds = [], this._waitingForGroups = !1, this._subComponentsWaiters = /* @__PURE__ */ new Map(), this._shouldWait = !0, this._creator_ = e, window.KernelCallback = {
|
|
44021
44021
|
isReady: this.isReady.bind(this)
|
|
@@ -44594,40 +44594,40 @@ class ji {
|
|
|
44594
44594
|
}
|
|
44595
44595
|
us([
|
|
44596
44596
|
$
|
|
44597
|
-
],
|
|
44597
|
+
], Wi.prototype, "_rapiAccess");
|
|
44598
44598
|
us([
|
|
44599
44599
|
$
|
|
44600
|
-
],
|
|
44600
|
+
], Wi.prototype, "_materialProvider");
|
|
44601
44601
|
us([
|
|
44602
44602
|
$
|
|
44603
|
-
],
|
|
44603
|
+
], Wi.prototype, "_scriptLoader");
|
|
44604
44604
|
us([
|
|
44605
44605
|
$
|
|
44606
|
-
],
|
|
44606
|
+
], Wi.prototype, "_kernelIo");
|
|
44607
44607
|
us([
|
|
44608
44608
|
$
|
|
44609
|
-
],
|
|
44609
|
+
], Wi.prototype, "_dataSyncer");
|
|
44610
44610
|
us([
|
|
44611
44611
|
$
|
|
44612
|
-
],
|
|
44612
|
+
], Wi.prototype, "_lifeCycleManager");
|
|
44613
44613
|
us([
|
|
44614
44614
|
$
|
|
44615
|
-
],
|
|
44615
|
+
], Wi.prototype, "_configuratorUiCallbacks");
|
|
44616
44616
|
us([
|
|
44617
44617
|
$
|
|
44618
|
-
],
|
|
44618
|
+
], Wi.prototype, "_globalCallback");
|
|
44619
44619
|
us([
|
|
44620
44620
|
$
|
|
44621
|
-
],
|
|
44621
|
+
], Wi.prototype, "_initData");
|
|
44622
44622
|
us([
|
|
44623
44623
|
$
|
|
44624
|
-
],
|
|
44624
|
+
], Wi.prototype, "_unitFormatter");
|
|
44625
44625
|
us([
|
|
44626
44626
|
$
|
|
44627
|
-
],
|
|
44627
|
+
], Wi.prototype, "_configuratorContext");
|
|
44628
44628
|
us([
|
|
44629
44629
|
$
|
|
44630
|
-
],
|
|
44630
|
+
], Wi.prototype, "_globalInitData");
|
|
44631
44631
|
const ja = (r, e) => !r.sort && !e.sort ? 0 : r.sort ? e.sort ? r.sort - e.sort : -1 : 1, hx = (r, e) => r && !e ? 1 : !r && e ? -1 : r && e ? r.localeCompare(e) : 0;
|
|
44632
44632
|
var gS = /* @__PURE__ */ ((r) => (r[r.UNKNOWN = 0] = "UNKNOWN", r[r.PLAN = 1] = "PLAN", r[r.USER = 2] = "USER", r[r.CONFIGURATION = 3] = "CONFIGURATION", r))(gS || {});
|
|
44633
44633
|
const uu = 10, u_ = 9, v0 = "__ext__obj__#", Qs = (r) => `${v0}${r}`, xN = (r) => r.replace(v0, ""), Wa = (r) => typeof r == "string" && r.startsWith(v0), bN = (r) => {
|
|
@@ -45401,7 +45401,7 @@ class qn {
|
|
|
45401
45401
|
'Value "' + t + '" is too big, max-val "' + h + '"'
|
|
45402
45402
|
)
|
|
45403
45403
|
);
|
|
45404
|
-
t = o ===
|
|
45404
|
+
t = o === Gi.INTEGER && typeof l == "number" ? l.toFixed() : l.toString();
|
|
45405
45405
|
}
|
|
45406
45406
|
this._sceneManager.cancelDockings(), this._dispatchSetParameter(a, o, t, i, s), this._sceneManager.saveConfigToIdb();
|
|
45407
45407
|
});
|
|
@@ -45447,7 +45447,7 @@ class qn {
|
|
|
45447
45447
|
return new Promise((i, s) => {
|
|
45448
45448
|
this._sceneManager.cancelDockings(), this._dispatchSetParameter(
|
|
45449
45449
|
n,
|
|
45450
|
-
|
|
45450
|
+
Gi.STRING,
|
|
45451
45451
|
t,
|
|
45452
45452
|
i,
|
|
45453
45453
|
s
|
|
@@ -45470,14 +45470,14 @@ class qn {
|
|
|
45470
45470
|
l ? this._plannerKernelAccess.changeComponentParameter(
|
|
45471
45471
|
o,
|
|
45472
45472
|
n,
|
|
45473
|
-
|
|
45473
|
+
Gi.STRING,
|
|
45474
45474
|
t,
|
|
45475
45475
|
i,
|
|
45476
45476
|
s
|
|
45477
45477
|
) : this._plannerKernelAccess.changePlanObjectParameter(
|
|
45478
45478
|
a,
|
|
45479
45479
|
n,
|
|
45480
|
-
|
|
45480
|
+
Gi.STRING,
|
|
45481
45481
|
t,
|
|
45482
45482
|
i,
|
|
45483
45483
|
s
|
|
@@ -46364,7 +46364,7 @@ class qn {
|
|
|
46364
46364
|
const s = await this.generateHomagIxExport(
|
|
46365
46365
|
Tc.HOMAGiX,
|
|
46366
46366
|
e
|
|
46367
|
-
), { homagIxMockUpData: a } = await import("./imos-ix-poc-export-helper-
|
|
46367
|
+
), { homagIxMockUpData: a } = await import("./imos-ix-poc-export-helper-CeTG15qk.mjs");
|
|
46368
46368
|
return a(
|
|
46369
46369
|
s,
|
|
46370
46370
|
t,
|
|
@@ -46377,7 +46377,7 @@ class qn {
|
|
|
46377
46377
|
dl("IMOSiX.xml", e);
|
|
46378
46378
|
}
|
|
46379
46379
|
async generateHomagIxExport(e, t = "") {
|
|
46380
|
-
const { generateExportHomagIxConfiguration: n } = await import("./imos-ix-poc-export-helper-
|
|
46380
|
+
const { generateExportHomagIxConfiguration: n } = await import("./imos-ix-poc-export-helper-CeTG15qk.mjs"), i = this._configuratorContext.configurationRuntimeId;
|
|
46381
46381
|
n(
|
|
46382
46382
|
i,
|
|
46383
46383
|
e,
|
|
@@ -46648,7 +46648,7 @@ class mx extends Ef {
|
|
|
46648
46648
|
}
|
|
46649
46649
|
updateBounds(e) {
|
|
46650
46650
|
this._center.copy(e.getCenter(new y()));
|
|
46651
|
-
const t = new
|
|
46651
|
+
const t = new Vi();
|
|
46652
46652
|
e.getBoundingSphere(t);
|
|
46653
46653
|
const n = t.radius, i = new y(
|
|
46654
46654
|
this._params.mainDirLight.direction.x,
|
|
@@ -46658,7 +46658,7 @@ class mx extends Ef {
|
|
|
46658
46658
|
i.normalize(), i.multiplyScalar(n), this._mainDirLight.position.copy(this._center), this._mainDirLight.position.add(i), this._mainDirLight.target.position.copy(this._center), this._mainDirLight.target.updateMatrixWorld(!0), this._mainDirLight.shadow.camera.top = n, this._mainDirLight.shadow.camera.bottom = -n, this._mainDirLight.shadow.camera.left = -n, this._mainDirLight.shadow.camera.right = n, this._mainDirLight.shadow.camera.near = 0.01, this._mainDirLight.shadow.camera.far = 2 * n, this._mainDirLight.shadow.camera.updateProjectionMatrix();
|
|
46659
46659
|
}
|
|
46660
46660
|
showGUI() {
|
|
46661
|
-
let e =
|
|
46661
|
+
let e = ji();
|
|
46662
46662
|
if (e) {
|
|
46663
46663
|
if (this._ambientLight) {
|
|
46664
46664
|
let t = e.addFolder("Ambient Light");
|
|
@@ -47088,7 +47088,7 @@ class Nn extends wo {
|
|
|
47088
47088
|
this._update();
|
|
47089
47089
|
}
|
|
47090
47090
|
_checkZoomDistance(e, t) {
|
|
47091
|
-
const n = e.getBoundingSphere(new
|
|
47091
|
+
const n = e.getBoundingSphere(new Vi());
|
|
47092
47092
|
t - n.radius < this._zoomDistance && (console.warn(
|
|
47093
47093
|
"the initial camera position is closer than the zoomDistance param, zoomDistance is set to initial camera position."
|
|
47094
47094
|
), this._zoomDistance = t - n.radius);
|
|
@@ -47239,7 +47239,7 @@ class Nn extends wo {
|
|
|
47239
47239
|
}
|
|
47240
47240
|
_getCameraSphere(e) {
|
|
47241
47241
|
const t = Math.max(this._bounds.x, this._bounds.y), n = Math.max(t / 10, this._zoomDistance);
|
|
47242
|
-
return new
|
|
47242
|
+
return new Vi(e, n);
|
|
47243
47243
|
}
|
|
47244
47244
|
zoomIn(e) {
|
|
47245
47245
|
this._lerpEnabled = !0, this._scale *= e ? Math.pow(0.95, e) : this._zoomSpeed, this._setCameraNear(), this._update(), this.dispatchEvent(bt.ZOOM_IN);
|
|
@@ -47260,7 +47260,7 @@ class Nn extends wo {
|
|
|
47260
47260
|
async moveCamera(e) {
|
|
47261
47261
|
const { x: t, y: n, z: i } = this._boundingBox.getCenter(new y());
|
|
47262
47262
|
e.targetX = e.targetX || t, e.targetY = e.targetY || n, e.targetZ = e.targetZ || i, e.distance = e.distance || this._getIdealDistance();
|
|
47263
|
-
const s = this.getCurrentCameraParameters(), a =
|
|
47263
|
+
const s = this.getCurrentCameraParameters(), a = is(
|
|
47264
47264
|
JSON.parse(JSON.stringify(s)),
|
|
47265
47265
|
e
|
|
47266
47266
|
);
|
|
@@ -49693,7 +49693,7 @@ class Ei extends bo {
|
|
|
49693
49693
|
e.currentPoint && e.currentPoint === ri.POINT1 ? e.hoverOffDragPoint1() : e.currentPoint && e.currentPoint === ri.POINT2 && e.hoverOffDragPoint2();
|
|
49694
49694
|
}
|
|
49695
49695
|
}
|
|
49696
|
-
class
|
|
49696
|
+
class es extends Cn {
|
|
49697
49697
|
constructor(e) {
|
|
49698
49698
|
super(e), this._container.name = "Configurable Construction " + this._container.name;
|
|
49699
49699
|
}
|
|
@@ -49821,7 +49821,7 @@ class wS extends K_ {
|
|
|
49821
49821
|
e === It.HIGH || e === It.HIGHEST ? (this._shouldCastShadow = !1, this.shadow.mapSize.x = 0, this.shadow.mapSize.y = 0) : (this._shouldCastShadow = !1, this.shadow.mapSize.x = 0, this.shadow.mapSize.y = 0);
|
|
49822
49822
|
}
|
|
49823
49823
|
_addDebugUI() {
|
|
49824
|
-
const e =
|
|
49824
|
+
const e = ji();
|
|
49825
49825
|
if (!e)
|
|
49826
49826
|
return;
|
|
49827
49827
|
const t = {
|
|
@@ -55693,7 +55693,7 @@ class w0 extends Sa {
|
|
|
55693
55693
|
return this._coreReference;
|
|
55694
55694
|
}
|
|
55695
55695
|
addPlanElementViewModel(e) {
|
|
55696
|
-
e instanceof
|
|
55696
|
+
e instanceof es ? this._handleConfiguratorConstructionPlanObjectViewModel(
|
|
55697
55697
|
e
|
|
55698
55698
|
) : e instanceof Cn ? this._handleConfiguratorPlanObjectViewModel(e) : e instanceof ha ? this._handleConstructionPlanObjectViewModel(e) : e instanceof Fi ? this._handleStaticPlanObjectViewModel(e) : e instanceof Ei ? this._handleMeasurementLinePlanElementViewModel(e) : e instanceof Vu ? this._handleWallAtticPlanElementViewModel(e) : e instanceof $n ? this._handleWallPlanElementViewModel(e) : e instanceof fo ? this._handleFloorPlanElementViewModel(e) : e instanceof fS ? this._handleCeilingPlanElementViewModel(e) : e instanceof $s && this._handleNodePlanElementViewModel(e);
|
|
55699
55699
|
}
|
|
@@ -55825,7 +55825,7 @@ class w0 extends Sa {
|
|
|
55825
55825
|
}
|
|
55826
55826
|
_addComponent(e) {
|
|
55827
55827
|
const t = e.isRootComponent ? e.parentObjectId : e.runtimeId, n = this._getPlanObjectViewModelForRuntimeId(t);
|
|
55828
|
-
n && n instanceof Cn && (e.isRootComponent ? n.addRootComponent(e) : n.addChildEntityComponent(e), this._initData.edit && (n instanceof
|
|
55828
|
+
n && n instanceof Cn && (e.isRootComponent ? n.addRootComponent(e) : n.addChildEntityComponent(e), this._initData.edit && (n instanceof es ? this._plannerSceneEventHandler.addConstructionPlanObjectHandlers(
|
|
55829
55829
|
n
|
|
55830
55830
|
) : this._plannerSceneEventHandler.addPlanObjectHandlers(n)), n.hidePreviewBox());
|
|
55831
55831
|
}
|
|
@@ -56113,7 +56113,7 @@ class w0 extends Sa {
|
|
|
56113
56113
|
}
|
|
56114
56114
|
planElementRemoved(e) {
|
|
56115
56115
|
const n = e.extRef?.jsObject;
|
|
56116
|
-
n instanceof
|
|
56116
|
+
n instanceof es ? this._removeObject(
|
|
56117
56117
|
this._configurableConstructionPlanObjectViewModels,
|
|
56118
56118
|
n
|
|
56119
56119
|
) : n instanceof Cn ? this._removeObject(
|
|
@@ -56780,7 +56780,7 @@ class Rh extends TS {
|
|
|
56780
56780
|
);
|
|
56781
56781
|
}
|
|
56782
56782
|
_addPlanObjectHandlers(e, t, n) {
|
|
56783
|
-
t.userData.hasListener || (t.userData =
|
|
56783
|
+
t.userData.hasListener || (t.userData = is(t.userData, n), t.addEventListener(
|
|
56784
56784
|
kt.CLICK,
|
|
56785
56785
|
() => this._clickElement(e)
|
|
56786
56786
|
), t.addEventListener(
|
|
@@ -56807,7 +56807,7 @@ class Rh extends TS {
|
|
|
56807
56807
|
this._addElementHandlers(e, t, n);
|
|
56808
56808
|
}
|
|
56809
56809
|
_addElementHandlers(e, t, n) {
|
|
56810
|
-
t.userData.hasListener || (t.userData =
|
|
56810
|
+
t.userData.hasListener || (t.userData = is(t.userData, n), t.addEventListener(
|
|
56811
56811
|
kt.CLICK,
|
|
56812
56812
|
() => this._clickElement(e)
|
|
56813
56813
|
), t.addEventListener(kt.DOUBLE_CLICK, (i) => {
|
|
@@ -56843,7 +56843,7 @@ class Rh extends TS {
|
|
|
56843
56843
|
_addMeasurementLinePlanElementHandlers(e, t, n, i) {
|
|
56844
56844
|
if (t.userData.hasListener)
|
|
56845
56845
|
return;
|
|
56846
|
-
t.userData =
|
|
56846
|
+
t.userData = is(t.userData, n);
|
|
56847
56847
|
const s = () => {
|
|
56848
56848
|
e.currentPoint = i;
|
|
56849
56849
|
};
|
|
@@ -56878,7 +56878,7 @@ class Rh extends TS {
|
|
|
56878
56878
|
priority: Ui.RAYCASTER_FLOOR,
|
|
56879
56879
|
roomleId: void 0
|
|
56880
56880
|
};
|
|
56881
|
-
return n.userData =
|
|
56881
|
+
return n.userData = is(n.userData, i), n.addEventListener(kt.DOUBLE_CLICK, (s) => {
|
|
56882
56882
|
this._doubleClickOnPlane(
|
|
56883
56883
|
en(s.attachment.intersection.point),
|
|
56884
56884
|
s.attachment.type
|
|
@@ -57174,7 +57174,7 @@ class Rh extends TS {
|
|
|
57174
57174
|
addComponentDragInHandler(e) {
|
|
57175
57175
|
if (!this._dragIn)
|
|
57176
57176
|
return;
|
|
57177
|
-
const t = e.getBoundingBox(), n = e instanceof ha || e instanceof
|
|
57177
|
+
const t = e.getBoundingBox(), n = e instanceof ha || e instanceof es;
|
|
57178
57178
|
this._addPlanElementHandlers(e, t, {
|
|
57179
57179
|
planElementName: e.getName(),
|
|
57180
57180
|
hasListener: !0,
|
|
@@ -57283,7 +57283,7 @@ class Rh extends TS {
|
|
|
57283
57283
|
}
|
|
57284
57284
|
async _initMobileDrawing() {
|
|
57285
57285
|
if (this.planInteractionHandler.setDrawingType(tw.CONTINOUS), this.planInteractionHandler.setSnapFeedbackWhileDrawing(!0), !this._continuousDrawingHelper) {
|
|
57286
|
-
const { default: e } = await import("./continuous-drawing-helper-
|
|
57286
|
+
const { default: e } = await import("./continuous-drawing-helper-DX5mJ_CO.mjs");
|
|
57287
57287
|
this._continuousDrawingHelper = new e(), this._continuousDrawingHelper.init(
|
|
57288
57288
|
this._drawingGroup,
|
|
57289
57289
|
this.planInteractionHandler.getContinuousDrawingManager(),
|
|
@@ -57833,7 +57833,7 @@ class Af extends TS {
|
|
|
57833
57833
|
}
|
|
57834
57834
|
addPreviewHandlers(e) {
|
|
57835
57835
|
const t = e.boundingBoxMesh;
|
|
57836
|
-
t.userData.hasListener || (t.userData =
|
|
57836
|
+
t.userData.hasListener || (t.userData = is(t.userData, {
|
|
57837
57837
|
hasListener: !0,
|
|
57838
57838
|
priority: Ui.PREVIEW,
|
|
57839
57839
|
roomleId: e.runtimeId
|
|
@@ -57850,7 +57850,7 @@ class Af extends TS {
|
|
|
57850
57850
|
}
|
|
57851
57851
|
addPreviewLineHandlers(e, t) {
|
|
57852
57852
|
const n = e.boundingLineMesh;
|
|
57853
|
-
n.userData.hasListener || (n.userData =
|
|
57853
|
+
n.userData.hasListener || (n.userData = is(n.userData, {
|
|
57854
57854
|
hasListener: !0,
|
|
57855
57855
|
priority: Ui.PREVIEW_LINE,
|
|
57856
57856
|
roomleId: e.runtimeId
|
|
@@ -58247,7 +58247,7 @@ class El extends M0 {
|
|
|
58247
58247
|
this._floorMaterial ? this._addGUI() : this._floorPromise && this._floorPromise.then(() => this._addGUI());
|
|
58248
58248
|
}
|
|
58249
58249
|
_addGUI() {
|
|
58250
|
-
let e =
|
|
58250
|
+
let e = ji();
|
|
58251
58251
|
if (!e)
|
|
58252
58252
|
return;
|
|
58253
58253
|
let t = e.addFolder("Floor");
|
|
@@ -58386,7 +58386,7 @@ class fu extends Ef {
|
|
|
58386
58386
|
this.removeFromScene(), this.addToScene();
|
|
58387
58387
|
}
|
|
58388
58388
|
showGUI() {
|
|
58389
|
-
let e =
|
|
58389
|
+
let e = ji();
|
|
58390
58390
|
this._cameraLight && this._addToGUI(e, this._cameraLight), this._lights.forEach((t) => {
|
|
58391
58391
|
this._addToGUI(e, t);
|
|
58392
58392
|
});
|
|
@@ -59183,7 +59183,7 @@ const XU = [
|
|
|
59183
59183
|
), t.updateProjectionMatrix()), t;
|
|
59184
59184
|
}
|
|
59185
59185
|
showGUI(e) {
|
|
59186
|
-
const t =
|
|
59186
|
+
const t = ji();
|
|
59187
59187
|
this.SceneRendererGUI.addGUI(t, e);
|
|
59188
59188
|
}
|
|
59189
59189
|
clear() {
|
|
@@ -59246,7 +59246,7 @@ class ZU extends M0 {
|
|
|
59246
59246
|
this._scene && this._skybox && this._scene.remove(this._skybox);
|
|
59247
59247
|
}
|
|
59248
59248
|
showGUI(e) {
|
|
59249
|
-
let t =
|
|
59249
|
+
let t = ji();
|
|
59250
59250
|
if (!t)
|
|
59251
59251
|
return;
|
|
59252
59252
|
let n = t.addFolder(
|
|
@@ -59700,7 +59700,7 @@ const Wx = (r, e) => {
|
|
|
59700
59700
|
const i = n;
|
|
59701
59701
|
if (i.side === Et) {
|
|
59702
59702
|
const s = i.clone();
|
|
59703
|
-
s.side =
|
|
59703
|
+
s.side = zi, Array.isArray(r.material) ? r.material[t] = s : r.material = s;
|
|
59704
59704
|
}
|
|
59705
59705
|
}
|
|
59706
59706
|
}, aF = (r) => {
|
|
@@ -59726,7 +59726,7 @@ const Wx = (r, e) => {
|
|
|
59726
59726
|
}
|
|
59727
59727
|
}
|
|
59728
59728
|
};
|
|
59729
|
-
var oF = Object.defineProperty,
|
|
59729
|
+
var oF = Object.defineProperty, qi = (r, e, t, n) => {
|
|
59730
59730
|
for (var i = void 0, s = r.length - 1, a; s >= 0; s--)
|
|
59731
59731
|
(a = r[s]) && (i = a(e, t, i) || i);
|
|
59732
59732
|
return i && oF(e, t, i), i;
|
|
@@ -59882,7 +59882,7 @@ class gi {
|
|
|
59882
59882
|
alpha: !0
|
|
59883
59883
|
};
|
|
59884
59884
|
if (this._initData.featureFlags.webGpu) {
|
|
59885
|
-
const { WebGPURenderer: o } = await import("./three.webgpu-
|
|
59885
|
+
const { WebGPURenderer: o } = await import("./three.webgpu-Duqe_m4v.mjs");
|
|
59886
59886
|
this._renderer = new o(s), await this._renderer.init();
|
|
59887
59887
|
} else
|
|
59888
59888
|
this._renderer = new fh(s);
|
|
@@ -60021,13 +60021,13 @@ class gi {
|
|
|
60021
60021
|
return;
|
|
60022
60022
|
const e = document.createElement("style");
|
|
60023
60023
|
e.innerText = ".dg.main{position:absolute;z-index:999;top:0;left:0;}", document.head.appendChild(e);
|
|
60024
|
-
let t =
|
|
60024
|
+
let t = ji(!1);
|
|
60025
60025
|
if (!t)
|
|
60026
60026
|
return;
|
|
60027
60027
|
this._domHelper.element.appendChild(t.domElement), t.domElement.style.zIndex = "999", t.domElement.style.overflowY = "auto", t.domElement.style.maxHeight = this._domHelper.element.clientHeight + "px", this._guiLoaded();
|
|
60028
60028
|
}
|
|
60029
60029
|
_guiLoaded() {
|
|
60030
|
-
let e =
|
|
60030
|
+
let e = ji();
|
|
60031
60031
|
if (!e)
|
|
60032
60032
|
return;
|
|
60033
60033
|
const t = e.addFolder("Scene Parameter"), n = {
|
|
@@ -60058,7 +60058,7 @@ class gi {
|
|
|
60058
60058
|
this._renderEverything();
|
|
60059
60059
|
}
|
|
60060
60060
|
showStats() {
|
|
60061
|
-
import("./stats-helper-
|
|
60061
|
+
import("./stats-helper-rLr2tYkx.mjs").then(
|
|
60062
60062
|
(e) => {
|
|
60063
60063
|
this._statsHelper = new e.default(), this._roomleRenderer.setOnQualityLevelChangeCallback(
|
|
60064
60064
|
(t) => {
|
|
@@ -60326,7 +60326,7 @@ class gi {
|
|
|
60326
60326
|
this._isPartOfScene
|
|
60327
60327
|
);
|
|
60328
60328
|
try {
|
|
60329
|
-
const { USDZExporter: t } = await import("./USDZExporter-
|
|
60329
|
+
const { USDZExporter: t } = await import("./USDZExporter-BbHFpod8.mjs");
|
|
60330
60330
|
if (e) {
|
|
60331
60331
|
nF(e);
|
|
60332
60332
|
const n = new mn();
|
|
@@ -60358,7 +60358,7 @@ class gi {
|
|
|
60358
60358
|
e ?? this._isPartOfScene
|
|
60359
60359
|
);
|
|
60360
60360
|
try {
|
|
60361
|
-
const { GLTFExporter: n } = await import("./GLTFExporter-
|
|
60361
|
+
const { GLTFExporter: n } = await import("./GLTFExporter-CRJOKoYU.mjs");
|
|
60362
60362
|
if (t) {
|
|
60363
60363
|
const s = await new n().parseAsync(t, {
|
|
60364
60364
|
binary: !0,
|
|
@@ -60393,43 +60393,43 @@ class gi {
|
|
|
60393
60393
|
}
|
|
60394
60394
|
}
|
|
60395
60395
|
}
|
|
60396
|
-
|
|
60396
|
+
qi([
|
|
60397
60397
|
$
|
|
60398
60398
|
], gi.prototype, "_domHelper");
|
|
60399
|
-
|
|
60399
|
+
qi([
|
|
60400
60400
|
$
|
|
60401
60401
|
], gi.prototype, "_scriptLoader");
|
|
60402
|
-
|
|
60402
|
+
qi([
|
|
60403
60403
|
$
|
|
60404
60404
|
], gi.prototype, "_lifeCycleManager");
|
|
60405
|
-
|
|
60405
|
+
qi([
|
|
60406
60406
|
$
|
|
60407
60407
|
], gi.prototype, "_staticItemLoader");
|
|
60408
|
-
|
|
60408
|
+
qi([
|
|
60409
60409
|
$
|
|
60410
60410
|
], gi.prototype, "_hdrEnvironmentLoader");
|
|
60411
|
-
|
|
60411
|
+
qi([
|
|
60412
60412
|
$
|
|
60413
60413
|
], gi.prototype, "_initData");
|
|
60414
|
-
|
|
60414
|
+
qi([
|
|
60415
60415
|
$
|
|
60416
60416
|
], gi.prototype, "_globalInitData");
|
|
60417
|
-
|
|
60417
|
+
qi([
|
|
60418
60418
|
$
|
|
60419
60419
|
], gi.prototype, "_globalCallback");
|
|
60420
|
-
|
|
60420
|
+
qi([
|
|
60421
60421
|
$
|
|
60422
60422
|
], gi.prototype, "_idbManager");
|
|
60423
|
-
|
|
60423
|
+
qi([
|
|
60424
60424
|
$
|
|
60425
60425
|
], gi.prototype, "_pluginSystem");
|
|
60426
|
-
|
|
60426
|
+
qi([
|
|
60427
60427
|
$
|
|
60428
60428
|
], gi.prototype, "_imageRenderer");
|
|
60429
|
-
|
|
60429
|
+
qi([
|
|
60430
60430
|
$
|
|
60431
60431
|
], gi.prototype, "_cameraBehaviourState");
|
|
60432
|
-
|
|
60432
|
+
qi([
|
|
60433
60433
|
$
|
|
60434
60434
|
], gi.prototype, "_cacheHolder");
|
|
60435
60435
|
class US extends Ef {
|
|
@@ -60490,7 +60490,7 @@ class US extends Ef {
|
|
|
60490
60490
|
this.removeFromScene(), this.addToScene();
|
|
60491
60491
|
}
|
|
60492
60492
|
showGUI() {
|
|
60493
|
-
let e =
|
|
60493
|
+
let e = ji();
|
|
60494
60494
|
if (e) {
|
|
60495
60495
|
if (this._ambientLight) {
|
|
60496
60496
|
let t = e.addFolder("Ambient Light");
|
|
@@ -61569,13 +61569,18 @@ class fs extends gi {
|
|
|
61569
61569
|
planObjectUpdated(e, t, n) {
|
|
61570
61570
|
const i = this._getKernelAccess().kernelInstance.getSerializedConfiguration(
|
|
61571
61571
|
this._configuratorContext.configurationRuntimeId
|
|
61572
|
+
), s = this._getKernelAccess().kernelInstance.retrieveConfigurationId(
|
|
61573
|
+
this._configuratorContext.configurationRuntimeId
|
|
61572
61574
|
);
|
|
61573
|
-
if (n || this._configuratorHistory.push(
|
|
61575
|
+
if (n || this._configuratorHistory.push({
|
|
61576
|
+
configurationHash: s.hash,
|
|
61577
|
+
configurationString: i
|
|
61578
|
+
}), !!e.bounds) {
|
|
61574
61579
|
if (this._configuratorContext.configurationRuntimeId === e.id && this.cameraBehaviour3d instanceof Jc) {
|
|
61575
|
-
const
|
|
61576
|
-
this.cameraBehaviour3d.updateBoundsOnPlanObjectUpdated(
|
|
61577
|
-
const
|
|
61578
|
-
this._updateBounds(
|
|
61580
|
+
const a = this._getViewModel().getBoundingBox();
|
|
61581
|
+
this.cameraBehaviour3d.updateBoundsOnPlanObjectUpdated(a);
|
|
61582
|
+
const o = this._getViewModel().getBoundingBoxOfGeometry();
|
|
61583
|
+
this._updateBounds(a, o, t);
|
|
61579
61584
|
}
|
|
61580
61585
|
this._highlightComponent(), this._requestRender();
|
|
61581
61586
|
}
|
|
@@ -62508,7 +62513,7 @@ class yF {
|
|
|
62508
62513
|
_processViewModel(e, t) {
|
|
62509
62514
|
e instanceof $n && e.getKernelObject().getAttachedAttics?.().size() > 0 ? e.getBoundingBox().children.forEach((i) => {
|
|
62510
62515
|
this._isChildObjectRootComponent(i) || t.add(i);
|
|
62511
|
-
}) : ((e instanceof ha || e instanceof
|
|
62516
|
+
}) : ((e instanceof ha || e instanceof es) && e.getTopViewContainer() && t.add(e.getTopViewContainer()), e.getObject()?.children && e.getObject().children.forEach((i) => {
|
|
62512
62517
|
this._isChildObjectRootComponent(i) || t.add(i);
|
|
62513
62518
|
}));
|
|
62514
62519
|
}
|
|
@@ -63078,7 +63083,7 @@ class Xl extends fs {
|
|
|
63078
63083
|
_onSelectionChange(e) {
|
|
63079
63084
|
this._hideAllMeasurementsNodeOnElementChange(e);
|
|
63080
63085
|
const t = {};
|
|
63081
|
-
if (e instanceof Fi && (t.item = e.getRapiItem(), t.staticItemRuntimeId = e.getPlanElement().getId(), this._configuratorUiCallbacks.onUpdateParameters([])), e instanceof
|
|
63086
|
+
if (e instanceof Fi && (t.item = e.getRapiItem(), t.staticItemRuntimeId = e.getPlanElement().getId(), this._configuratorUiCallbacks.onUpdateParameters([])), e instanceof es && (t.staticItemRuntimeId = e.getPlanElement().getId()), e instanceof Cn) {
|
|
63082
63087
|
const a = e.getId(), o = this.getRootPlanObjectId(a), l = this._getViewModel().getPlanObjectForId(o);
|
|
63083
63088
|
t.configurationRuntimeId = l.getConfigurationRuntimeId();
|
|
63084
63089
|
}
|
|
@@ -63651,8 +63656,7 @@ class Xl extends fs {
|
|
|
63651
63656
|
super.undo();
|
|
63652
63657
|
return;
|
|
63653
63658
|
}
|
|
63654
|
-
|
|
63655
|
-
return e.cancelDrawing(), e.undo(), this.cancelPlanElementSelection("undo"), Promise.resolve();
|
|
63659
|
+
return this._getKernelAccess().planInteractionHandler.undo(), this.cancelPlanElementSelection("undo"), Promise.resolve();
|
|
63656
63660
|
}
|
|
63657
63661
|
async redo() {
|
|
63658
63662
|
if (this._configuratorContext.baseContext === mt.CONFIGURATOR) {
|
|
@@ -63727,7 +63731,7 @@ class Xl extends fs {
|
|
|
63727
63731
|
this._configuratorContext.baseContext === mt.PLANNER && this._saveConfiguration(t);
|
|
63728
63732
|
const n = this.getPlanObject(t.getId());
|
|
63729
63733
|
let i;
|
|
63730
|
-
n && !(t instanceof Cn) && !(t instanceof
|
|
63734
|
+
n && !(t instanceof Cn) && !(t instanceof es) && (i = await pl(
|
|
63731
63735
|
[n],
|
|
63732
63736
|
this._plannerKernelAccess,
|
|
63733
63737
|
this._rapiAccess
|
|
@@ -64130,7 +64134,7 @@ class Xl extends fs {
|
|
|
64130
64134
|
if (t.length === 0 && !e)
|
|
64131
64135
|
return;
|
|
64132
64136
|
const n = e || this._getViewModel().getPlanObjectForId(t[0]);
|
|
64133
|
-
if (!n || n instanceof ha || n instanceof
|
|
64137
|
+
if (!n || n instanceof ha || n instanceof es || !(n instanceof Fi) && !(n instanceof Cn))
|
|
64134
64138
|
return;
|
|
64135
64139
|
const i = this.cameraBehaviour.cameraControl.getCamera(), { clientWidth: s, clientHeight: a } = this._domHelper.element, o = this.cameraBehaviour.cameraControl.getKernelZoomFactor(), l = n.getObjectMeasurements(
|
|
64136
64140
|
o,
|
|
@@ -64190,7 +64194,7 @@ class Xl extends fs {
|
|
|
64190
64194
|
const t = e || this._getViewModel().getPlanObjectForId(
|
|
64191
64195
|
this.currentSelection.staticItemRuntimeId || this.currentSelection.configurationRuntimeId
|
|
64192
64196
|
);
|
|
64193
|
-
if (!t || !(t instanceof ha || t instanceof
|
|
64197
|
+
if (!t || !(t instanceof ha || t instanceof es))
|
|
64194
64198
|
return;
|
|
64195
64199
|
this._initData.debug && this._debugSpheres.constructionElementsPoints.children.length > 0 && this._debugSpheres.constructionElementsPoints.clear();
|
|
64196
64200
|
const n = this.cameraBehaviour.cameraControl.getCamera(), { clientWidth: i, clientHeight: s } = this._domHelper.element, a = this.cameraBehaviour.cameraControl.getKernelZoomFactor(), o = t.getConstructionElementMeasurements(a, i, s);
|
|
@@ -64270,7 +64274,7 @@ class Xl extends fs {
|
|
|
64270
64274
|
}
|
|
64271
64275
|
setConstructionElementDistanceToWall(e, t) {
|
|
64272
64276
|
const n = this.currentSelection.staticItemRuntimeId, i = this._getViewModel().getPlanObjectForId(n);
|
|
64273
|
-
if (!i || !(i instanceof ha || i instanceof
|
|
64277
|
+
if (!i || !(i instanceof ha || i instanceof es))
|
|
64274
64278
|
return;
|
|
64275
64279
|
const s = i.getPlanElement(), a = i.getConstructionElementMeasurements(
|
|
64276
64280
|
this.cameraBehaviour.cameraControl.getKernelZoomFactor(),
|
|
@@ -64629,7 +64633,7 @@ class Xl extends fs {
|
|
|
64629
64633
|
return (await this._plannerKernelAccess.insertItems(i)).map((a, o) => ({ runtimeId: a, originalIndex: e[o].index }));
|
|
64630
64634
|
}
|
|
64631
64635
|
async _saveConfiguration(e) {
|
|
64632
|
-
if (!(e instanceof
|
|
64636
|
+
if (!(e instanceof es || e instanceof Cn))
|
|
64633
64637
|
return null;
|
|
64634
64638
|
try {
|
|
64635
64639
|
let t = e.getPlanElement().getId();
|
|
@@ -64765,7 +64769,7 @@ class gG {
|
|
|
64765
64769
|
}
|
|
64766
64770
|
static getMaterialViewer(e, t) {
|
|
64767
64771
|
return t = this._setupDI(mt.CONFIGURATOR, e, t), Qt.lookup("global-init-data").configuratorId ? new Promise(
|
|
64768
|
-
(i, s) => import("./material-viewer-
|
|
64772
|
+
(i, s) => import("./material-viewer-n94eUdBS.mjs").then(
|
|
64769
64773
|
({ MaterialViewer: a }) => i(new a(t)),
|
|
64770
64774
|
s
|
|
64771
64775
|
)
|
|
@@ -64773,7 +64777,7 @@ class gG {
|
|
|
64773
64777
|
}
|
|
64774
64778
|
static getCoreTools(e, t) {
|
|
64775
64779
|
return t = this._setupDI(mt.TOOLS_CORE, e, t), new Promise(
|
|
64776
|
-
(n, i) => import("./tools-core-
|
|
64780
|
+
(n, i) => import("./tools-core-BfVzhE5d.mjs").then(
|
|
64777
64781
|
({ ToolsCore: s }) => {
|
|
64778
64782
|
const a = new s(t);
|
|
64779
64783
|
a.boot(), n(a);
|
|
@@ -66251,7 +66255,7 @@ class _i {
|
|
|
66251
66255
|
this._sceneManager.disableEvents();
|
|
66252
66256
|
}
|
|
66253
66257
|
async downloadHomagIxExportPoC() {
|
|
66254
|
-
const { downloadHomagIxExportPoC: e } = await import("./imos-ix-poc-export-helper-
|
|
66258
|
+
const { downloadHomagIxExportPoC: e } = await import("./imos-ix-poc-export-helper-CeTG15qk.mjs"), t = (await this.getPlanModelViewHelper()).getPlanOverview(
|
|
66255
66259
|
this._plan
|
|
66256
66260
|
);
|
|
66257
66261
|
return e(
|
|
@@ -66378,7 +66382,20 @@ class _i {
|
|
|
66378
66382
|
async updateExternalObjectGroupAttribute(e, t, n, i) {
|
|
66379
66383
|
this._homagIntelligence.getGlueLogic().updateAttribute(e, t, n, i);
|
|
66380
66384
|
}
|
|
66381
|
-
getExternalObjectAttributeOptions(e, t) {
|
|
66385
|
+
async getExternalObjectAttributeOptions(e, t) {
|
|
66386
|
+
const n = await this._homagIntelligence.getGlueLogic().getVerifiedAttributeOptions(e, t);
|
|
66387
|
+
if (n === void 0)
|
|
66388
|
+
return;
|
|
66389
|
+
const i = {};
|
|
66390
|
+
for (const [s, a] of Object.entries(
|
|
66391
|
+
n
|
|
66392
|
+
))
|
|
66393
|
+
a?.dropDownEntries?.length && (i[s] = {
|
|
66394
|
+
calcResult: a?.dropDownEntries
|
|
66395
|
+
});
|
|
66396
|
+
return i;
|
|
66397
|
+
}
|
|
66398
|
+
getExternalObjectAttributeOptionsOrRanges(e, t) {
|
|
66382
66399
|
return this._homagIntelligence.getGlueLogic().getVerifiedAttributeOptions(e, t);
|
|
66383
66400
|
}
|
|
66384
66401
|
updateExternalObjectAdditionalInfo(e, t) {
|
|
@@ -66852,7 +66869,7 @@ class _i {
|
|
|
66852
66869
|
"*",
|
|
66853
66870
|
[e.port2]
|
|
66854
66871
|
);
|
|
66855
|
-
const t = qS(e.port1), n = await import("./homag-intelligence-
|
|
66872
|
+
const t = qS(e.port1), n = await import("./homag-intelligence-B3pflXFp.mjs");
|
|
66856
66873
|
await new n.HomagIntelligence().init(
|
|
66857
66874
|
// cast to unknown because we know that the planner is a RoomlePlanner
|
|
66858
66875
|
this,
|
|
@@ -67054,7 +67071,7 @@ var nB = Object.defineProperty, Df = (r, e, t, n) => {
|
|
|
67054
67071
|
return i && nB(e, t, i), i;
|
|
67055
67072
|
};
|
|
67056
67073
|
const iB = "material", sB = [iB], bm = "tried to set a parameter to a none string value!";
|
|
67057
|
-
class Lh extends
|
|
67074
|
+
class Lh extends Wi {
|
|
67058
67075
|
constructor(e) {
|
|
67059
67076
|
super(e), this.externalMeshQueue = new aS(), this.muteKernelCallbacks = !1, this.listOfVariants = (t, n) => {
|
|
67060
67077
|
};
|
|
@@ -67116,7 +67133,7 @@ class Lh extends ji {
|
|
|
67116
67133
|
enabled: n.enabled,
|
|
67117
67134
|
label: n.label,
|
|
67118
67135
|
visibleInPlanner: n.visibleInPlanner,
|
|
67119
|
-
type:
|
|
67136
|
+
type: Gi.STRING,
|
|
67120
67137
|
value: s,
|
|
67121
67138
|
sort: n.sort,
|
|
67122
67139
|
unitType: Dn.UNKNOWN_UNIT,
|
|
@@ -67571,7 +67588,10 @@ class Lh extends ji {
|
|
|
67571
67588
|
)
|
|
67572
67589
|
);
|
|
67573
67590
|
const l = this._kernelInstance.getPlanObject(e);
|
|
67574
|
-
return this._onBoundsUpdate(l), !a && t && t.length > 0 && this._configuratorHistory.push(
|
|
67591
|
+
return this._onBoundsUpdate(l), !a && t && t.length > 0 && this._configuratorHistory.push({
|
|
67592
|
+
configurationHash: n,
|
|
67593
|
+
configurationString: t
|
|
67594
|
+
}), this._updateConfigurationHasChildren(e, o), this.requestPartListAndUpdatePricesOfParts(n);
|
|
67575
67595
|
}
|
|
67576
67596
|
_onBoundsUpdate(e) {
|
|
67577
67597
|
if (!e.boxForMeasurement)
|
|
@@ -67865,44 +67885,48 @@ class Nf extends Lh {
|
|
|
67865
67885
|
return this._kernelContainer.PlanModelViewHelper;
|
|
67866
67886
|
}
|
|
67867
67887
|
async _validateParameters(e, t, n) {
|
|
67868
|
-
const i =
|
|
67869
|
-
if (
|
|
67888
|
+
const i = (o) => o.validValues && o.validValues.length > 0, s = (o) => o.type === Gi.DECIMAL, a = e.filter((o) => i(o) || s(o)).map((o) => o.key);
|
|
67889
|
+
if (a.length === 0)
|
|
67870
67890
|
return e;
|
|
67871
67891
|
try {
|
|
67872
|
-
const
|
|
67873
|
-
if (!
|
|
67892
|
+
const o = await t(a);
|
|
67893
|
+
if (!o)
|
|
67874
67894
|
return e;
|
|
67875
|
-
const
|
|
67876
|
-
for (const
|
|
67877
|
-
const
|
|
67878
|
-
if (!
|
|
67879
|
-
|
|
67895
|
+
const l = [];
|
|
67896
|
+
for (const c of e) {
|
|
67897
|
+
const h = o[c.key];
|
|
67898
|
+
if (!h?.dropDownEntries?.length && !h?.dropDownRange) {
|
|
67899
|
+
l.push(c);
|
|
67900
|
+
continue;
|
|
67901
|
+
}
|
|
67902
|
+
if (h.dropDownRange && s(c)) {
|
|
67903
|
+
c.validRange.valueFrom = h.dropDownRange.min, c.validRange.valueTo = h.dropDownRange.max, h.dropDownRange.step !== void 0 && (c.validRange.step = h.dropDownRange.step), l.push(c);
|
|
67880
67904
|
continue;
|
|
67881
67905
|
}
|
|
67882
|
-
const
|
|
67883
|
-
for (const
|
|
67884
|
-
if (
|
|
67885
|
-
if (
|
|
67886
|
-
const
|
|
67887
|
-
(
|
|
67906
|
+
const d = /* @__PURE__ */ new Map(), u = h?.dropDownEntries ?? [];
|
|
67907
|
+
for (const g of u)
|
|
67908
|
+
if (g.kind !== Qc.Invalid)
|
|
67909
|
+
if (c.type === Gi.DECIMAL) {
|
|
67910
|
+
const _ = typeof g.value == "string" ? parseFloat(g.value) : typeof g.value == "boolean" ? g.value ? 1 : 0 : g.value, p = c.validValues.findIndex(
|
|
67911
|
+
(m) => Math.abs(parseFloat(m.value) - _) < Number.EPSILON
|
|
67888
67912
|
);
|
|
67889
|
-
|
|
67913
|
+
p !== -1 && d.set(c.validValues[p].value, g.kind);
|
|
67890
67914
|
} else
|
|
67891
|
-
|
|
67892
|
-
const
|
|
67893
|
-
(
|
|
67915
|
+
c.validValues.findIndex((_) => _.value === g.value) !== -1 && d.set(g.value, g.kind);
|
|
67916
|
+
const f = c.validValues.filter(
|
|
67917
|
+
(g) => d.has(g.value)
|
|
67894
67918
|
);
|
|
67895
|
-
|
|
67896
|
-
const
|
|
67897
|
-
return
|
|
67898
|
-
}),
|
|
67899
|
-
...
|
|
67900
|
-
validValues:
|
|
67919
|
+
f.sort((g, _) => {
|
|
67920
|
+
const p = d.get(g.value), m = d.get(_.value);
|
|
67921
|
+
return p - m;
|
|
67922
|
+
}), f.length > 0 && l.push({
|
|
67923
|
+
...c,
|
|
67924
|
+
validValues: f
|
|
67901
67925
|
});
|
|
67902
67926
|
}
|
|
67903
|
-
return
|
|
67904
|
-
} catch (
|
|
67905
|
-
return console.error(n,
|
|
67927
|
+
return l;
|
|
67928
|
+
} catch (o) {
|
|
67929
|
+
return console.error(n, o), e;
|
|
67906
67930
|
}
|
|
67907
67931
|
}
|
|
67908
67932
|
async _validateExternalComponentParameters(e, t) {
|
|
@@ -68054,7 +68078,7 @@ class Nf extends Lh {
|
|
|
68054
68078
|
);
|
|
68055
68079
|
}
|
|
68056
68080
|
_onConfigurableConstructionItemAdded(e, t) {
|
|
68057
|
-
const n = new
|
|
68081
|
+
const n = new es(
|
|
68058
68082
|
t
|
|
68059
68083
|
);
|
|
68060
68084
|
this.coupleReferences(n, t), e.extRef.jsObject.addPlanElementViewModel(n), this._plannerKernelCallbackListener.forEach(
|
|
@@ -68367,7 +68391,7 @@ class Nf extends Lh {
|
|
|
68367
68391
|
return;
|
|
68368
68392
|
let n = e ?? {};
|
|
68369
68393
|
const i = await DF();
|
|
68370
|
-
i && (n =
|
|
68394
|
+
i && (n = is(i, n)), this._initData?.discardExternalObjectsWhenLoadingPlan && (n.loadExternalObjectsFromPlan = !1), this._initData?.debugGeometry && n.debugConfiguration && (n.debugConfiguration.createDebugGeometry = !0);
|
|
68371
68395
|
const s = JSON.stringify(n);
|
|
68372
68396
|
t.setExternalObjectConstructionProperties(s);
|
|
68373
68397
|
}
|
|
@@ -68514,7 +68538,7 @@ var aB = Object.defineProperty, eM = (r, e, t, n) => {
|
|
|
68514
68538
|
(a = r[s]) && (i = a(e, t, i) || i);
|
|
68515
68539
|
return i && aB(e, t, i), i;
|
|
68516
68540
|
};
|
|
68517
|
-
let
|
|
68541
|
+
let $i = {
|
|
68518
68542
|
InchFeet: null,
|
|
68519
68543
|
Feet: null,
|
|
68520
68544
|
MM: null,
|
|
@@ -68543,9 +68567,9 @@ class Zu {
|
|
|
68543
68567
|
}
|
|
68544
68568
|
init(e) {
|
|
68545
68569
|
const t = new e.UnitMeasureFormatter();
|
|
68546
|
-
|
|
68570
|
+
$i = e.Unit, Qx = e.UnitStringType, this._initActualUnit(), this._initMeasurementSystemType(), this._initActualUnitStringType();
|
|
68547
68571
|
const { precisionCm: n, precisionInch: i } = this._initData;
|
|
68548
|
-
this._actualUnit ===
|
|
68572
|
+
this._actualUnit === $i.InchFeet ? this._precision = i !== void 0 ? parseInt(i, 10) : 2 : this._actualUnit === $i.CM && (this._precision = n !== void 0 ? parseInt(n, 10) : 1), t.init(
|
|
68549
68573
|
ks.MM,
|
|
68550
68574
|
ks.CM,
|
|
68551
68575
|
ks.FEET_SHORT,
|
|
@@ -68572,14 +68596,14 @@ class Zu {
|
|
|
68572
68596
|
const n = eb.find(
|
|
68573
68597
|
(i) => i === t
|
|
68574
68598
|
);
|
|
68575
|
-
n ? (this._actualUnit = this._getKernelUnitEnum(t), this._actualUnitString = n) : (console.warn("Unit is not a metric unit, using CM"), this._actualUnit =
|
|
68599
|
+
n ? (this._actualUnit = this._getKernelUnitEnum(t), this._actualUnitString = n) : (console.warn("Unit is not a metric unit, using CM"), this._actualUnit = $i.CM, this._actualUnitString = "cm");
|
|
68576
68600
|
}
|
|
68577
68601
|
if (e === $d.IMPERIAL) {
|
|
68578
68602
|
t || (t = ks.INCH);
|
|
68579
68603
|
const n = oB.find(
|
|
68580
68604
|
(i) => i === t
|
|
68581
68605
|
);
|
|
68582
|
-
n ? (this._actualUnit = this._getKernelUnitEnum(t), this._actualUnitString = n) : (console.warn("Unit is not an imperial unit, using Inches"), this._actualUnit =
|
|
68606
|
+
n ? (this._actualUnit = this._getKernelUnitEnum(t), this._actualUnitString = n) : (console.warn("Unit is not an imperial unit, using Inches"), this._actualUnit = $i.Inch, this._actualUnitString = "inch");
|
|
68583
68607
|
}
|
|
68584
68608
|
}
|
|
68585
68609
|
_initActualUnit() {
|
|
@@ -68589,17 +68613,17 @@ class Zu {
|
|
|
68589
68613
|
_getKernelUnitEnum(e) {
|
|
68590
68614
|
switch (e) {
|
|
68591
68615
|
case "cm":
|
|
68592
|
-
return
|
|
68616
|
+
return $i.CM;
|
|
68593
68617
|
case "mm":
|
|
68594
|
-
return
|
|
68618
|
+
return $i.MM;
|
|
68595
68619
|
case "inchfeet":
|
|
68596
|
-
return
|
|
68620
|
+
return $i.InchFeet;
|
|
68597
68621
|
case "feet":
|
|
68598
|
-
return
|
|
68622
|
+
return $i.Feet;
|
|
68599
68623
|
case "inch":
|
|
68600
|
-
return
|
|
68624
|
+
return $i.Inch;
|
|
68601
68625
|
default:
|
|
68602
|
-
return
|
|
68626
|
+
return $i.CM;
|
|
68603
68627
|
}
|
|
68604
68628
|
}
|
|
68605
68629
|
_initActualUnitStringType() {
|
|
@@ -68610,7 +68634,7 @@ class Zu {
|
|
|
68610
68634
|
return this._formatter ? !0 : (console.warn("Formatter is not ready..."), !1);
|
|
68611
68635
|
}
|
|
68612
68636
|
formatAngleValueToUnitString(e, t) {
|
|
68613
|
-
const n = t.type ===
|
|
68637
|
+
const n = t.type === Gi.INTEGER ? 0 : 2;
|
|
68614
68638
|
return e.toFixed(n) + "°";
|
|
68615
68639
|
}
|
|
68616
68640
|
parseAngleValueFromUnitString(e) {
|
|
@@ -68620,7 +68644,7 @@ class Zu {
|
|
|
68620
68644
|
return t.unitType === null || t.unitType === Dn.UNKNOWN_UNIT || t.unitType === Dn.COUNT ? e : t.unitType === Dn.LENGTH ? this.parseMMValueFromUnitString(e, t.unitType) : t.unitType === Dn.ANGLE ? this.parseAngleValueFromUnitString(e) : t.unitType === Dn.AREA ? this.parseAngleValueFromUnitString(e) : e;
|
|
68621
68645
|
}
|
|
68622
68646
|
formatValueToUnitString(e, t) {
|
|
68623
|
-
return t.unitType === null || t.unitType === Dn.UNKNOWN_UNIT || t.unitType === Dn.COUNT ? t.type ===
|
|
68647
|
+
return t.unitType === null || t.unitType === Dn.UNKNOWN_UNIT || t.unitType === Dn.COUNT ? t.type === Gi.INTEGER ? e.toString() : parseFloat(e.toString()).toFixed(2) : t.unitType === Dn.LENGTH ? this.formatMMValueToUnitString(e, t.unitType) : t.unitType === Dn.ANGLE ? this.formatAngleValueToUnitString(e, t) : t.unitType === Dn.AREA ? this.formatSquareMMValueToUnitString(e) : e;
|
|
68624
68648
|
}
|
|
68625
68649
|
isParseableNumber(e) {
|
|
68626
68650
|
return this._isFormatterReady() ? this._formatter.isParseableNumber(e) : null;
|
|
@@ -68699,7 +68723,7 @@ class Zu {
|
|
|
68699
68723
|
} else mS(e) ? (e.uiType = Ha.OPTIONS, fN(e) && (e.uiType = Ha.THUMBNAILS)) : (console.error("Could not detect uiType of param"), e.uiType = null);
|
|
68700
68724
|
}
|
|
68701
68725
|
isInch() {
|
|
68702
|
-
return this._actualUnit ===
|
|
68726
|
+
return this._actualUnit === $i.InchFeet;
|
|
68703
68727
|
}
|
|
68704
68728
|
getActualUnitString() {
|
|
68705
68729
|
return this._actualUnitString;
|
|
@@ -68749,7 +68773,7 @@ class tM {
|
|
|
68749
68773
|
return null;
|
|
68750
68774
|
this._index++;
|
|
68751
68775
|
const [e] = this._history.slice(this._index);
|
|
68752
|
-
return this._index === this._history.length - 1 ? this._configuratorUiCallbacks.onHistoryChange(!1, !0) : this._configuratorUiCallbacks.onHistoryChange(!0, !0), e;
|
|
68776
|
+
return this._index === this._history.length - 1 ? this._configuratorUiCallbacks.onHistoryChange(!1, !0) : this._configuratorUiCallbacks.onHistoryChange(!0, !0), e?.configurationString || null;
|
|
68753
68777
|
}
|
|
68754
68778
|
/**
|
|
68755
68779
|
* loads the configurationString of the configuration which was set before undo function was called
|
|
@@ -68761,7 +68785,7 @@ class tM {
|
|
|
68761
68785
|
return null;
|
|
68762
68786
|
this._index--;
|
|
68763
68787
|
const [e] = this._history.slice(this._index);
|
|
68764
|
-
return this._index === 0 ? this._configuratorUiCallbacks.onHistoryChange(!0, !1) : this._configuratorUiCallbacks.onHistoryChange(!0, !0), e;
|
|
68788
|
+
return this._index === 0 ? this._configuratorUiCallbacks.onHistoryChange(!0, !1) : this._configuratorUiCallbacks.onHistoryChange(!0, !0), e.configurationString;
|
|
68765
68789
|
}
|
|
68766
68790
|
/**
|
|
68767
68791
|
* pushes new configurationString to history Array
|
|
@@ -68771,7 +68795,7 @@ class tM {
|
|
|
68771
68795
|
*/
|
|
68772
68796
|
push(e) {
|
|
68773
68797
|
const [t] = this._history.slice(this._index);
|
|
68774
|
-
!e?.length || t === e || (this._history = this._history.slice(this._index), this._history.unshift(e), this._index = 0, this._history.length === 1 ? this._configuratorUiCallbacks.onHistoryChange(!1, !1) : this._configuratorUiCallbacks.onHistoryChange(!0, !1));
|
|
68798
|
+
!e.configurationHash?.length || t?.configurationHash === e.configurationHash || (this._history = this._history.slice(this._index), this._history.unshift(e), this._index = 0, this._history.length === 1 ? this._configuratorUiCallbacks.onHistoryChange(!1, !1) : this._configuratorUiCallbacks.onHistoryChange(!0, !1));
|
|
68775
68799
|
}
|
|
68776
68800
|
/**
|
|
68777
68801
|
* checks if there are any changes on the item already happened
|
|
@@ -68788,7 +68812,7 @@ class tM {
|
|
|
68788
68812
|
return this._index !== 0;
|
|
68789
68813
|
}
|
|
68790
68814
|
/**
|
|
68791
|
-
* @returns array of all configuration
|
|
68815
|
+
* @returns array of all configuration history items (hash and configuration string)
|
|
68792
68816
|
*/
|
|
68793
68817
|
getHistory() {
|
|
68794
68818
|
return this._history;
|
|
@@ -68930,7 +68954,7 @@ fflate - fast JavaScript compression/decompression
|
|
|
68930
68954
|
Licensed under MIT. https://github.com/101arrowz/fflate/blob/master/LICENSE
|
|
68931
68955
|
version 0.8.2
|
|
68932
68956
|
*/
|
|
68933
|
-
var En = Uint8Array,
|
|
68957
|
+
var En = Uint8Array, Hi = Uint16Array, R0 = Int32Array, Uf = new En([
|
|
68934
68958
|
0,
|
|
68935
68959
|
0,
|
|
68936
68960
|
0,
|
|
@@ -69000,7 +69024,7 @@ var En = Uint8Array, Gi = Uint16Array, R0 = Int32Array, Uf = new En([
|
|
|
69000
69024
|
0,
|
|
69001
69025
|
0
|
|
69002
69026
|
]), y_ = new En([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), iM = function(r, e) {
|
|
69003
|
-
for (var t = new
|
|
69027
|
+
for (var t = new Hi(31), n = 0; n < 31; ++n)
|
|
69004
69028
|
t[n] = e += 1 << r[n - 1];
|
|
69005
69029
|
for (var i = new R0(t[30]), n = 1; n < 30; ++n)
|
|
69006
69030
|
for (var s = t[n]; s < t[n + 1]; ++s)
|
|
@@ -69008,27 +69032,27 @@ var En = Uint8Array, Gi = Uint16Array, R0 = Int32Array, Uf = new En([
|
|
|
69008
69032
|
return { b: t, r: i };
|
|
69009
69033
|
}, sM = iM(Uf, 2), rM = sM.b, x_ = sM.r;
|
|
69010
69034
|
rM[28] = 258, x_[258] = 28;
|
|
69011
|
-
var aM = iM(Ff, 0), uB = aM.b, tb = aM.r, b_ = new
|
|
69035
|
+
var aM = iM(Ff, 0), uB = aM.b, tb = aM.r, b_ = new Hi(32768);
|
|
69012
69036
|
for (var dn = 0; dn < 32768; ++dn) {
|
|
69013
69037
|
var Xr = (dn & 43690) >> 1 | (dn & 21845) << 1;
|
|
69014
69038
|
Xr = (Xr & 52428) >> 2 | (Xr & 13107) << 2, Xr = (Xr & 61680) >> 4 | (Xr & 3855) << 4, b_[dn] = ((Xr & 65280) >> 8 | (Xr & 255) << 8) >> 1;
|
|
69015
69039
|
}
|
|
69016
69040
|
var tr = (function(r, e, t) {
|
|
69017
|
-
for (var n = r.length, i = 0, s = new
|
|
69041
|
+
for (var n = r.length, i = 0, s = new Hi(e); i < n; ++i)
|
|
69018
69042
|
r[i] && ++s[r[i] - 1];
|
|
69019
|
-
var a = new
|
|
69043
|
+
var a = new Hi(e);
|
|
69020
69044
|
for (i = 1; i < e; ++i)
|
|
69021
69045
|
a[i] = a[i - 1] + s[i - 1] << 1;
|
|
69022
69046
|
var o;
|
|
69023
69047
|
if (t) {
|
|
69024
|
-
o = new
|
|
69048
|
+
o = new Hi(1 << e);
|
|
69025
69049
|
var l = 15 - e;
|
|
69026
69050
|
for (i = 0; i < n; ++i)
|
|
69027
69051
|
if (r[i])
|
|
69028
69052
|
for (var c = i << 4 | r[i], h = e - r[i], d = a[r[i] - 1]++ << h, u = d | (1 << h) - 1; d <= u; ++d)
|
|
69029
69053
|
o[b_[d] >> l] = c;
|
|
69030
69054
|
} else
|
|
69031
|
-
for (o = new
|
|
69055
|
+
for (o = new Hi(n), i = 0; i < n; ++i)
|
|
69032
69056
|
r[i] && (o[i] = b_[a[r[i] - 1]++] >> 15 - r[i]);
|
|
69033
69057
|
return o;
|
|
69034
69058
|
}), _a = new En(288);
|
|
@@ -69203,7 +69227,7 @@ var fB = /* @__PURE__ */ tr(_a, 9, 0), pB = /* @__PURE__ */ tr(_a, 9, 1), mB = /
|
|
|
69203
69227
|
o = t[t[c].f < t[d].f ? c++ : d++], l = t[c != h && t[c].f < t[d].f ? c++ : d++], t[h++] = { s: -1, f: o.f + l.f, l: o, r: l };
|
|
69204
69228
|
for (var u = s[0].s, n = 1; n < i; ++n)
|
|
69205
69229
|
s[n].s > u && (u = s[n].s);
|
|
69206
|
-
var f = new
|
|
69230
|
+
var f = new Hi(u + 1), g = w_(t[h - 1], f, 0);
|
|
69207
69231
|
if (g > e) {
|
|
69208
69232
|
var n = 0, _ = 0, p = g - e, m = 1 << p;
|
|
69209
69233
|
for (s.sort(function(A, T) {
|
|
@@ -69231,7 +69255,7 @@ var fB = /* @__PURE__ */ tr(_a, 9, 0), pB = /* @__PURE__ */ tr(_a, 9, 1), mB = /
|
|
|
69231
69255
|
}, nb = function(r) {
|
|
69232
69256
|
for (var e = r.length; e && !r[--e]; )
|
|
69233
69257
|
;
|
|
69234
|
-
for (var t = new
|
|
69258
|
+
for (var t = new Hi(++e), n = 0, i = r[0], s = 1, a = function(l) {
|
|
69235
69259
|
t[n++] = l;
|
|
69236
69260
|
}, o = 1; o <= e; ++o)
|
|
69237
69261
|
if (r[o] == i && o != e)
|
|
@@ -69263,7 +69287,7 @@ var fB = /* @__PURE__ */ tr(_a, 9, 0), pB = /* @__PURE__ */ tr(_a, 9, 1), mB = /
|
|
|
69263
69287
|
return (i + 4 + n) * 8;
|
|
69264
69288
|
}, ib = function(r, e, t, n, i, s, a, o, l, c, h) {
|
|
69265
69289
|
yr(e, h++, t), ++i[256];
|
|
69266
|
-
for (var d = Mm(i, 15), u = d.t, f = d.l, g = Mm(s, 15), _ = g.t, p = g.l, m = nb(u), v = m.c, x = m.n, S = nb(_), P = S.c, A = S.n, T = new
|
|
69290
|
+
for (var d = Mm(i, 15), u = d.t, f = d.l, g = Mm(s, 15), _ = g.t, p = g.l, m = nb(u), v = m.c, x = m.n, S = nb(_), P = S.c, A = S.n, T = new Hi(19), R = 0; R < v.length; ++R)
|
|
69267
69291
|
++T[v[R] & 31];
|
|
69268
69292
|
for (var R = 0; R < P.length; ++R)
|
|
69269
69293
|
++T[P[R] & 31];
|
|
@@ -69302,9 +69326,9 @@ var fB = /* @__PURE__ */ tr(_a, 9, 0), pB = /* @__PURE__ */ tr(_a, 9, 1), mB = /
|
|
|
69302
69326
|
var a = s.z || r.length, o = new En(n + a + 5 * (1 + Math.ceil(a / 7e3)) + i), l = o.subarray(n, o.length - i), c = s.l, h = (s.r || 0) & 7;
|
|
69303
69327
|
if (e) {
|
|
69304
69328
|
h && (l[0] = s.r >> 3);
|
|
69305
|
-
for (var d = yB[e - 1], u = d >> 13, f = d & 8191, g = (1 << t) - 1, _ = s.p || new
|
|
69329
|
+
for (var d = yB[e - 1], u = d >> 13, f = d & 8191, g = (1 << t) - 1, _ = s.p || new Hi(32768), p = s.h || new Hi(g + 1), m = Math.ceil(t / 3), v = 2 * m, x = function(ue) {
|
|
69306
69330
|
return (r[ue] ^ r[ue + 1] << m ^ r[ue + 2] << v) & g;
|
|
69307
|
-
}, S = new R0(25e3), P = new
|
|
69331
|
+
}, S = new R0(25e3), P = new Hi(288), A = new Hi(32), T = 0, R = 0, M = s.i || 0, C = 0, O = s.w || 0, G = 0; M + 2 < a; ++M) {
|
|
69308
69332
|
var z = x(M), V = M & 32767, K = p[z];
|
|
69309
69333
|
if (_[V] = K, p[z] = V, O <= M) {
|
|
69310
69334
|
var j = a - M;
|
|
@@ -70121,7 +70145,7 @@ class AB extends Kb {
|
|
|
70121
70145
|
], X = Pe(b, I);
|
|
70122
70146
|
return k[X];
|
|
70123
70147
|
}
|
|
70124
|
-
function
|
|
70148
|
+
function Ki(b, I) {
|
|
70125
70149
|
const k = [
|
|
70126
70150
|
"ENVMAP_LATLONG",
|
|
70127
70151
|
"ENVMAP_CUBE"
|
|
@@ -70164,7 +70188,7 @@ class AB extends Kb {
|
|
|
70164
70188
|
if (X === "box2i")
|
|
70165
70189
|
return Jt(b, k);
|
|
70166
70190
|
if (X === "envmap")
|
|
70167
|
-
return
|
|
70191
|
+
return Ki(b, k);
|
|
70168
70192
|
if (X === "tiledesc")
|
|
70169
70193
|
return ps(b, k);
|
|
70170
70194
|
if (X === "lineOrder")
|
|
@@ -71288,14 +71312,24 @@ const dM = (r) => r.includes("."), nh = class nh {
|
|
|
71288
71312
|
return;
|
|
71289
71313
|
const s = {};
|
|
71290
71314
|
for (const [a, o] of Object.entries(i))
|
|
71291
|
-
|
|
71292
|
-
|
|
71293
|
-
|
|
71294
|
-
|
|
71295
|
-
|
|
71296
|
-
|
|
71315
|
+
if (o) {
|
|
71316
|
+
const l = this._convertToCheckDropDownResult(o);
|
|
71317
|
+
if (!l)
|
|
71318
|
+
continue;
|
|
71319
|
+
s[a] = l, l.dropDownEntries && l.dropDownEntries.sort(
|
|
71320
|
+
(c, h) => this._getKindRank(c.kind) - this._getKindRank(h.kind)
|
|
71321
|
+
);
|
|
71322
|
+
}
|
|
71297
71323
|
return s;
|
|
71298
71324
|
}
|
|
71325
|
+
_convertToCheckDropDownResult(e) {
|
|
71326
|
+
return e && Array.isArray(e) ? {
|
|
71327
|
+
dropDownEntries: e.map((t) => ({
|
|
71328
|
+
value: t.value,
|
|
71329
|
+
kind: t.kind
|
|
71330
|
+
}))
|
|
71331
|
+
} : e;
|
|
71332
|
+
}
|
|
71299
71333
|
async getVerifiedGroupAttributeOptions(e, t) {
|
|
71300
71334
|
const n = this._getGroup(e);
|
|
71301
71335
|
if (!n) {
|
|
@@ -71351,16 +71385,26 @@ const dM = (r) => r.includes("."), nh = class nh {
|
|
|
71351
71385
|
if (!a)
|
|
71352
71386
|
continue;
|
|
71353
71387
|
for (const o of s) {
|
|
71354
|
-
const l =
|
|
71355
|
-
|
|
71356
|
-
|
|
71357
|
-
|
|
71358
|
-
|
|
71359
|
-
|
|
71360
|
-
|
|
71361
|
-
|
|
71362
|
-
|
|
71363
|
-
|
|
71388
|
+
const l = this._convertToCheckDropDownResult(
|
|
71389
|
+
a[o]
|
|
71390
|
+
);
|
|
71391
|
+
if (!l?.dropDownEntries && !l?.dropDownRange)
|
|
71392
|
+
continue;
|
|
71393
|
+
let c = n.get(o);
|
|
71394
|
+
if (!c?.dropDownEntries && !c?.dropDownRange) {
|
|
71395
|
+
n.set(o, l);
|
|
71396
|
+
continue;
|
|
71397
|
+
}
|
|
71398
|
+
if (l.dropDownEntries) {
|
|
71399
|
+
c.dropDownEntries || (c.dropDownEntries = []);
|
|
71400
|
+
for (const h of l?.dropDownEntries) {
|
|
71401
|
+
const d = c.dropDownEntries.findIndex(
|
|
71402
|
+
(u) => u.value === h.value
|
|
71403
|
+
);
|
|
71404
|
+
d !== -1 ? c.dropDownEntries[d].kind = this._getMoreRestrictedKind(
|
|
71405
|
+
c.dropDownEntries[d].kind,
|
|
71406
|
+
h.kind
|
|
71407
|
+
) : c.dropDownEntries.push(h);
|
|
71364
71408
|
}
|
|
71365
71409
|
}
|
|
71366
71410
|
}
|
|
@@ -71371,14 +71415,17 @@ const dM = (r) => r.includes("."), nh = class nh {
|
|
|
71371
71415
|
}
|
|
71372
71416
|
_calculateCombinedResults(e) {
|
|
71373
71417
|
const t = {};
|
|
71374
|
-
for (const [
|
|
71375
|
-
|
|
71376
|
-
|
|
71377
|
-
|
|
71378
|
-
|
|
71379
|
-
|
|
71380
|
-
|
|
71381
|
-
|
|
71418
|
+
for (const [
|
|
71419
|
+
n,
|
|
71420
|
+
i
|
|
71421
|
+
] of e.entries())
|
|
71422
|
+
if (i?.dropDownEntries) {
|
|
71423
|
+
if (i.dropDownEntries.length === 0)
|
|
71424
|
+
continue;
|
|
71425
|
+
i.dropDownEntries.sort(
|
|
71426
|
+
(s, a) => this._getKindRank(s.kind) - this._getKindRank(a.kind)
|
|
71427
|
+
), t[n] = i;
|
|
71428
|
+
} else i?.dropDownRange && (t[n] = i);
|
|
71382
71429
|
return Object.keys(t).length > 0 ? t : void 0;
|
|
71383
71430
|
}
|
|
71384
71431
|
_getKindRank(e) {
|
|
@@ -72375,7 +72422,7 @@ class WB extends Ef {
|
|
|
72375
72422
|
this.removeFromScene(), this.addToScene();
|
|
72376
72423
|
}
|
|
72377
72424
|
showGUI() {
|
|
72378
|
-
let e =
|
|
72425
|
+
let e = ji();
|
|
72379
72426
|
if (e && this._ambientLight) {
|
|
72380
72427
|
let t = e.addFolder("Ambient Light");
|
|
72381
72428
|
t.add(this._ambientLight, "visible"), t.add(this._ambientLight, "intensity").min(0).max(5).step(0.1), t.addColor(this._params.ambientLight, "color").onChange((n) => {
|
|
@@ -72867,7 +72914,7 @@ export {
|
|
|
72867
72914
|
P0 as C,
|
|
72868
72915
|
bl as D,
|
|
72869
72916
|
on as E,
|
|
72870
|
-
|
|
72917
|
+
zi as F,
|
|
72871
72918
|
Tc as G,
|
|
72872
72919
|
dl as H,
|
|
72873
72920
|
wf as I,
|
|
@@ -72926,7 +72973,7 @@ export {
|
|
|
72926
72973
|
Rb as aW,
|
|
72927
72974
|
Hl as aX,
|
|
72928
72975
|
oi as aY,
|
|
72929
|
-
|
|
72976
|
+
ns as aZ,
|
|
72930
72977
|
vk as a_,
|
|
72931
72978
|
dG as aa,
|
|
72932
72979
|
eU as ab,
|
|
@@ -73085,7 +73132,7 @@ export {
|
|
|
73085
73132
|
sh as cy,
|
|
73086
73133
|
gb as cz,
|
|
73087
73134
|
Se as d,
|
|
73088
|
-
|
|
73135
|
+
Vi as d$,
|
|
73089
73136
|
tg as d0,
|
|
73090
73137
|
ng as d1,
|
|
73091
73138
|
ig as d2,
|
|
@@ -73225,7 +73272,7 @@ export {
|
|
|
73225
73272
|
FM as f7,
|
|
73226
73273
|
Dl as f8,
|
|
73227
73274
|
LM as f9,
|
|
73228
|
-
|
|
73275
|
+
ts as fA,
|
|
73229
73276
|
mg as fB,
|
|
73230
73277
|
vb as fC,
|
|
73231
73278
|
BM as fD,
|
|
@@ -73296,7 +73343,7 @@ export {
|
|
|
73296
73343
|
as as i,
|
|
73297
73344
|
Et as j,
|
|
73298
73345
|
zk as k,
|
|
73299
|
-
|
|
73346
|
+
ji as l,
|
|
73300
73347
|
Js as m,
|
|
73301
73348
|
hs as n,
|
|
73302
73349
|
El as o,
|
|
@@ -73312,4 +73359,4 @@ export {
|
|
|
73312
73359
|
N0 as y,
|
|
73313
73360
|
Qt as z
|
|
73314
73361
|
};
|
|
73315
|
-
//# sourceMappingURL=index-
|
|
73362
|
+
//# sourceMappingURL=index-DiGzfjE8.mjs.map
|