@roomle/web-sdk 4.0.0 → 4.1.0-alpha.1
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-CnbfgBmz.mjs → BufferGeometry-DcRNeLZD.mjs} +2 -2
- package/lib/{BufferGeometry-CnbfgBmz.mjs.map → BufferGeometry-DcRNeLZD.mjs.map} +1 -1
- package/lib/{GLTFExporter-BxcjPMva.mjs → GLTFExporter-DdzTpCjW.mjs} +46 -46
- package/lib/{GLTFExporter-BxcjPMva.mjs.map → GLTFExporter-DdzTpCjW.mjs.map} +1 -1
- package/lib/{GaussianBlurNode-8gO-I1qG.mjs → GaussianBlurNode-CLuzhfDu.mjs} +19 -19
- package/lib/{GaussianBlurNode-8gO-I1qG.mjs.map → GaussianBlurNode-CLuzhfDu.mjs.map} +1 -1
- package/lib/{Object3D-DMaDdv-D.mjs → Object3D-CEXK2mMb.mjs} +1 -1
- package/lib/{Object3D-DMaDdv-D.mjs.map → Object3D-CEXK2mMb.mjs.map} +1 -1
- package/lib/Pass-C7MZilDW.mjs +53 -0
- package/lib/Pass-C7MZilDW.mjs.map +1 -0
- package/lib/{PointLightHelper-CahXSxiA.mjs → PointLightHelper-dDeo1kUI.mjs} +4 -4
- package/lib/{PointLightHelper-CahXSxiA.mjs.map → PointLightHelper-dDeo1kUI.mjs.map} +1 -1
- package/lib/{SpotLightHelper-BEqeYq1p.mjs → SpotLightHelper-BsMEPgVo.mjs} +3 -3
- package/lib/{SpotLightHelper-BEqeYq1p.mjs.map → SpotLightHelper-BsMEPgVo.mjs.map} +1 -1
- package/lib/{USDZExporter-ZZoG1mne.mjs → USDZExporter-BIDQSKG4.mjs} +3 -3
- package/lib/{USDZExporter-ZZoG1mne.mjs.map → USDZExporter-BIDQSKG4.mjs.map} +1 -1
- package/lib/{Vector4-BkA_VGid.mjs → Vector4-D-4p8rfn.mjs} +2 -2
- package/lib/{Vector4-BkA_VGid.mjs.map → Vector4-D-4p8rfn.mjs.map} +1 -1
- package/lib/{api-CUyBdNba.mjs → api-BEszDVqh.mjs} +10 -10
- package/lib/{api-CUyBdNba.mjs.map → api-BEszDVqh.mjs.map} +1 -1
- package/lib/{asset-loader.worker-C_5RQYHp.mjs → asset-loader.worker-eqHzNAwa.mjs} +1 -1
- package/lib/asset-loader.worker-eqHzNAwa.mjs.map +1 -0
- package/lib/{banana-for-scale-B77S3z9R.mjs → banana-for-scale-CiCouumi.mjs} +4 -4
- package/lib/{banana-for-scale-B77S3z9R.mjs.map → banana-for-scale-CiCouumi.mjs.map} +1 -1
- package/lib/{budgeteer.sw-DxeAvd0v.mjs → budgeteer.sw-BUMElkO1.mjs} +1 -1
- package/lib/budgeteer.sw-BUMElkO1.mjs.map +1 -0
- package/lib/{common-utils-BiOW17Ao.mjs → common-utils-CCzT4Gnn.mjs} +2 -2
- package/lib/{common-utils-BiOW17Ao.mjs.map → common-utils-CCzT4Gnn.mjs.map} +1 -1
- package/lib/{component-dimensioning-DPyPzSsa.mjs → component-dimensioning-DWEZ4jZg.mjs} +7 -7
- package/lib/{component-dimensioning-DPyPzSsa.mjs.map → component-dimensioning-DWEZ4jZg.mjs.map} +1 -1
- package/lib/{component-raycast-helper-RiQIybsX.mjs → component-raycast-helper-D2hyLpdX.mjs} +17 -17
- package/lib/{component-raycast-helper-RiQIybsX.mjs.map → component-raycast-helper-D2hyLpdX.mjs.map} +1 -1
- package/lib/configurator-BENT3shs.mjs +2 -0
- package/lib/{configurator-C_rsqn9l.mjs → configurator-BjLLdSf8.mjs} +16 -16
- package/lib/{configurator-C_rsqn9l.mjs.map → configurator-BjLLdSf8.mjs.map} +1 -1
- package/lib/{continuous-drawing-helper-C_Yc0uuv.mjs → continuous-drawing-helper-CCuU99Vh.mjs} +3 -3
- package/lib/{continuous-drawing-helper-C_Yc0uuv.mjs.map → continuous-drawing-helper-CCuU99Vh.mjs.map} +1 -1
- package/lib/{dat.gui.module-BLjoST8r.mjs → dat.gui.module-B2PXSbre.mjs} +1 -1
- package/lib/{dat.gui.module-BLjoST8r.mjs.map → dat.gui.module-B2PXSbre.mjs.map} +1 -1
- package/lib/{decorate-BAtqSPNS.mjs → decorate-CX1ZGuFY.mjs} +1 -1
- package/lib/{decorate-BAtqSPNS.mjs.map → decorate-CX1ZGuFY.mjs.map} +1 -1
- package/lib/{dimensioning-helper-D9oxGkry.mjs → dimensioning-helper-CjuQqjBn.mjs} +14 -14
- package/lib/{dimensioning-helper-D9oxGkry.mjs.map → dimensioning-helper-CjuQqjBn.mjs.map} +1 -1
- package/lib/dimensioning-helper-ImsWfczi.mjs +2 -0
- package/lib/{dist-DGov-RNo.mjs → dist-Blgk0vU0.mjs} +1 -1
- package/lib/{dist-DGov-RNo.mjs.map → dist-Blgk0vU0.mjs.map} +1 -1
- package/lib/{fflate.module-CTnSdWOb.mjs → fflate.module-DTkA0kF8.mjs} +1 -1
- package/lib/{fflate.module-CTnSdWOb.mjs.map → fflate.module-DTkA0kF8.mjs.map} +1 -1
- package/lib/{glb-viewer-A5vSLFZ5.mjs → glb-viewer-9Ata6ZNJ.mjs} +59 -45
- package/lib/glb-viewer-9Ata6ZNJ.mjs.map +1 -0
- package/lib/glb-viewer-CGqSGT38.mjs +2 -0
- package/lib/{highlight-coordinator-CZEJGeXA.mjs → highlight-coordinator-PyWNABN9.mjs} +3 -3
- package/lib/{highlight-coordinator-CZEJGeXA.mjs.map → highlight-coordinator-PyWNABN9.mjs.map} +1 -1
- package/lib/{homag-intelligence-BdCDX7LF.mjs → homag-intelligence-BNqPqVgE.mjs} +3 -3
- package/lib/{homag-intelligence-BdCDX7LF.mjs.map → homag-intelligence-BNqPqVgE.mjs.map} +1 -1
- package/lib/{imos-ix-poc-export-helper-CaXXDNvP.mjs → imos-ix-poc-export-helper-C1LfrtjM.mjs} +3 -3
- package/lib/{imos-ix-poc-export-helper-CaXXDNvP.mjs.map → imos-ix-poc-export-helper-C1LfrtjM.mjs.map} +1 -1
- package/lib/{kernel-utils-BYEsHVYJ.mjs → kernel-utils-Cn4evFqF.mjs} +2 -2
- package/lib/{kernel-utils-BYEsHVYJ.mjs.map → kernel-utils-Cn4evFqF.mjs.map} +1 -1
- package/lib/{layer-CIWL5ZW3.mjs → layer-DvZF9ur3.mjs} +1 -1
- package/lib/{layer-CIWL5ZW3.mjs.map → layer-DvZF9ur3.mjs.map} +1 -1
- package/lib/{main-BUl8iCi1.mjs → main-n3n3jdja.mjs} +1097 -1017
- package/lib/{main-BUl8iCi1.mjs.map → main-n3n3jdja.mjs.map} +1 -1
- package/lib/{material-viewer-C4SqVaGG.mjs → material-viewer-Cv5Awgwm.mjs} +24 -24
- package/lib/{material-viewer-C4SqVaGG.mjs.map → material-viewer-Cv5Awgwm.mjs.map} +1 -1
- package/lib/{packages-C9gO5mKk.mjs → packages-B3bi3adH.mjs} +5 -5
- package/lib/{packages-C9gO5mKk.mjs.map → packages-B3bi3adH.mjs.map} +1 -1
- package/lib/planner-DIT2VvMG.mjs +44 -0
- package/lib/{planner-t4QH26WW.mjs.map → planner-DIT2VvMG.mjs.map} +1 -1
- package/lib/planner-DaI8ZwEe.mjs +2 -0
- package/lib/{plugin-system-COZJdJH_.mjs → plugin-system-FuZpDWqv.mjs} +3 -3
- package/lib/{plugin-system-COZJdJH_.mjs.map → plugin-system-FuZpDWqv.mjs.map} +1 -1
- package/lib/roomle-headless-setup-CMHahWyC.mjs +612 -0
- package/lib/roomle-headless-setup-CMHahWyC.mjs.map +1 -0
- package/lib/roomle-headless.d.ts +113 -34
- package/lib/roomle-headless.js +433 -84
- package/lib/roomle-headless.js.map +1 -1
- package/lib/{roomle-renderer-DhLUaHJZ.mjs → roomle-renderer-BR0UKz2y.mjs} +2 -2
- package/lib/{roomle-renderer-DhLUaHJZ.mjs.map → roomle-renderer-BR0UKz2y.mjs.map} +1 -1
- package/lib/roomle-sdk.d.ts +37 -9
- package/lib/roomle-sdk.js +8 -8
- package/lib/{roomle-webgpu-renderer-CRGcdahn.mjs → roomle-webgpu-renderer-fOYJoKJU.mjs} +175 -173
- package/lib/roomle-webgpu-renderer-fOYJoKJU.mjs.map +1 -0
- package/lib/{scene-renderer-D5CfxCag.mjs → scene-renderer-CAzAJ4pS.mjs} +212 -211
- package/lib/{scene-renderer-D5CfxCag.mjs.map → scene-renderer-CAzAJ4pS.mjs.map} +1 -1
- package/lib/{script-loader-D6IuUFjw.mjs → script-loader-BAWHLt9q.mjs} +3 -3
- package/lib/{script-loader-D6IuUFjw.mjs.map → script-loader-BAWHLt9q.mjs.map} +1 -1
- package/lib/{shading-settings-BEMqEGzB.mjs → shading-settings-BPpgt0Fq.mjs} +101 -146
- package/lib/shading-settings-BPpgt0Fq.mjs.map +1 -0
- package/lib/{stats-helper-DAfbSToL.mjs → stats-helper-CqiTcJuc.mjs} +3 -3
- package/lib/{stats-helper-DAfbSToL.mjs.map → stats-helper-CqiTcJuc.mjs.map} +1 -1
- package/lib/{svgo.browser-DYieWzyw.mjs → svgo.browser-EB1zkPfG.mjs} +1 -1
- package/lib/{svgo.browser-DYieWzyw.mjs.map → svgo.browser-EB1zkPfG.mjs.map} +1 -1
- package/lib/{three.core-DjCexDCp.mjs → three.core-CmmDf_BZ.mjs} +73 -38
- package/lib/{three.core-DjCexDCp.mjs.map → three.core-CmmDf_BZ.mjs.map} +1 -1
- package/lib/{three.module-CuRNgijg.mjs → three.module-BkkLbA6n.mjs} +857 -857
- package/lib/{three.module-CuRNgijg.mjs.map → three.module-BkkLbA6n.mjs.map} +1 -1
- package/lib/three.tsl-8HwZJGJ8.mjs +2 -0
- package/lib/{three.tsl-BIBER8nk.mjs → three.tsl-Cw9IeeKW.mjs} +64 -52
- package/lib/{three.tsl-BIBER8nk.mjs.map → three.tsl-Cw9IeeKW.mjs.map} +1 -1
- package/lib/three.webgpu-Bw4_U6Q1.mjs +3 -0
- package/lib/{three.webgpu-Bz4Xtk0X.mjs → three.webgpu-DL5l_0xI.mjs} +1742 -1728
- package/lib/{three.webgpu-Bz4Xtk0X.mjs.map → three.webgpu-DL5l_0xI.mjs.map} +1 -1
- package/lib/{threejs-utils-Dpvg3Czz.mjs → threejs-utils-PRhv_eX3.mjs} +63 -63
- package/lib/{threejs-utils-Dpvg3Czz.mjs.map → threejs-utils-PRhv_eX3.mjs.map} +1 -1
- package/lib/{tools-core-BDOFf9le.mjs → tools-core-CmrXkw3J.mjs} +3 -3
- package/lib/{tools-core-BDOFf9le.mjs.map → tools-core-CmrXkw3J.mjs.map} +1 -1
- package/lib/webgpu-wkXAkJ6p.mjs +5084 -0
- package/lib/webgpu-wkXAkJ6p.mjs.map +1 -0
- package/lib/workers-YGDNEfpU.mjs +6 -0
- package/lib/{workers-DcgrO-z7.mjs.map → workers-YGDNEfpU.mjs.map} +1 -1
- package/package.json +5 -4
- package/lib/asset-loader.worker-C_5RQYHp.mjs.map +0 -1
- package/lib/budgeteer.sw-DxeAvd0v.mjs.map +0 -1
- package/lib/configurator-BBlZVIId.mjs +0 -2
- package/lib/dimensioning-helper-Bzf1sbpy.mjs +0 -2
- package/lib/glb-viewer-A5vSLFZ5.mjs.map +0 -1
- package/lib/glb-viewer-B4ILlvw0.mjs +0 -2
- package/lib/planner-49YwTdiA.mjs +0 -2
- package/lib/planner-t4QH26WW.mjs +0 -44
- package/lib/roomle-headless-setup-Cc8EAnVe.mjs +0 -1204
- package/lib/roomle-headless-setup-Cc8EAnVe.mjs.map +0 -1
- package/lib/roomle-webgpu-renderer-CRGcdahn.mjs.map +0 -1
- package/lib/shading-settings-BEMqEGzB.mjs.map +0 -1
- package/lib/three.tsl-Q-21y0pO.mjs +0 -2
- package/lib/three.webgpu-dtN0kDKB.mjs +0 -3
- package/lib/workers-DcgrO-z7.mjs +0 -6
|
@@ -7123,12 +7123,47 @@ var $s = {}, ec = class extends Error {
|
|
|
7123
7123
|
constructor(e = []) {
|
|
7124
7124
|
super(), this.isArrayCamera = !0, this.isMultiViewCamera = !1, this.cameras = e;
|
|
7125
7125
|
}
|
|
7126
|
-
}, Rc =
|
|
7126
|
+
}, Rc = class {
|
|
7127
|
+
constructor() {
|
|
7128
|
+
this._previousTime = 0, this._currentTime = 0, this._startTime = performance.now(), this._delta = 0, this._elapsed = 0, this._timescale = 1, this._document = null, this._pageVisibilityHandler = null;
|
|
7129
|
+
}
|
|
7130
|
+
connect(e) {
|
|
7131
|
+
this._document = e, e.hidden !== void 0 && (this._pageVisibilityHandler = zc.bind(this), e.addEventListener("visibilitychange", this._pageVisibilityHandler, !1));
|
|
7132
|
+
}
|
|
7133
|
+
disconnect() {
|
|
7134
|
+
this._pageVisibilityHandler !== null && (this._document.removeEventListener("visibilitychange", this._pageVisibilityHandler), this._pageVisibilityHandler = null), this._document = null;
|
|
7135
|
+
}
|
|
7136
|
+
getDelta() {
|
|
7137
|
+
return this._delta / 1e3;
|
|
7138
|
+
}
|
|
7139
|
+
getElapsed() {
|
|
7140
|
+
return this._elapsed / 1e3;
|
|
7141
|
+
}
|
|
7142
|
+
getTimescale() {
|
|
7143
|
+
return this._timescale;
|
|
7144
|
+
}
|
|
7145
|
+
setTimescale(e) {
|
|
7146
|
+
return this._timescale = e, this;
|
|
7147
|
+
}
|
|
7148
|
+
reset() {
|
|
7149
|
+
return this._currentTime = performance.now() - this._startTime, this;
|
|
7150
|
+
}
|
|
7151
|
+
dispose() {
|
|
7152
|
+
this.disconnect();
|
|
7153
|
+
}
|
|
7154
|
+
update(e) {
|
|
7155
|
+
return this._pageVisibilityHandler !== null && this._document.hidden === !0 ? this._delta = 0 : (this._previousTime = this._currentTime, this._currentTime = (e === void 0 ? performance.now() : e) - this._startTime, this._delta = (this._currentTime - this._previousTime) * this._timescale, this._elapsed += this._delta), this;
|
|
7156
|
+
}
|
|
7157
|
+
};
|
|
7158
|
+
function zc() {
|
|
7159
|
+
this._document.hidden === !1 && this.reset();
|
|
7160
|
+
}
|
|
7161
|
+
var Bc = "\\[\\]\\.:\\/", Vc = RegExp("[" + Bc + "]", "g"), Hc = "[^" + Bc + "]", Uc = "[^" + Bc.replace("\\.", "") + "]", Wc = /* @__PURE__ */ "((?:WC+[\\/:])*)".replace("WC", Hc), Gc = /* @__PURE__ */ "(WCOD+)?".replace("WCOD", Uc), Kc = /* @__PURE__ */ "(?:\\.(WC+)(?:\\[(.+)\\])?)?".replace("WC", Hc), qc = /* @__PURE__ */ "\\.(WC+)(?:\\[(.+)\\])?".replace("WC", Hc), Jc = RegExp("^" + Wc + Gc + Kc + qc + "$"), Yc = [
|
|
7127
7162
|
"material",
|
|
7128
7163
|
"materials",
|
|
7129
7164
|
"bones",
|
|
7130
7165
|
"map"
|
|
7131
|
-
],
|
|
7166
|
+
], Xc = class {
|
|
7132
7167
|
constructor(e, t, n) {
|
|
7133
7168
|
let r = n || Z.parseTrackName(t);
|
|
7134
7169
|
this._targetGroup = e, this._bindings = e.subscribe_(t, r);
|
|
@@ -7158,10 +7193,10 @@ var $s = {}, ec = class extends Error {
|
|
|
7158
7193
|
return t && t.isAnimationObjectGroup ? new e.Composite(t, n, r) : new e(t, n, r);
|
|
7159
7194
|
}
|
|
7160
7195
|
static sanitizeNodeName(e) {
|
|
7161
|
-
return e.replace(/\s/g, "_").replace(
|
|
7196
|
+
return e.replace(/\s/g, "_").replace(Vc, "");
|
|
7162
7197
|
}
|
|
7163
7198
|
static parseTrackName(e) {
|
|
7164
|
-
let t =
|
|
7199
|
+
let t = Jc.exec(e);
|
|
7165
7200
|
if (t === null) throw Error("PropertyBinding: Cannot parse trackName: " + e);
|
|
7166
7201
|
let n = {
|
|
7167
7202
|
nodeName: t[2],
|
|
@@ -7172,7 +7207,7 @@ var $s = {}, ec = class extends Error {
|
|
|
7172
7207
|
}, r = n.nodeName && n.nodeName.lastIndexOf(".");
|
|
7173
7208
|
if (r !== void 0 && r !== -1) {
|
|
7174
7209
|
let e = n.nodeName.substring(r + 1);
|
|
7175
|
-
|
|
7210
|
+
Yc.indexOf(e) !== -1 && (n.nodeName = n.nodeName.substring(0, r), n.objectName = e);
|
|
7176
7211
|
}
|
|
7177
7212
|
if (n.propertyName === null || n.propertyName.length === 0) throw Error("PropertyBinding: can not parse propertyName from trackName: " + e);
|
|
7178
7213
|
return n;
|
|
@@ -7349,7 +7384,7 @@ var $s = {}, ec = class extends Error {
|
|
|
7349
7384
|
this.node = null, this.getValue = this._getValue_unbound, this.setValue = this._setValue_unbound;
|
|
7350
7385
|
}
|
|
7351
7386
|
};
|
|
7352
|
-
Z.Composite =
|
|
7387
|
+
Z.Composite = Xc, Z.prototype.BindingType = {
|
|
7353
7388
|
Direct: 0,
|
|
7354
7389
|
EntireArray: 1,
|
|
7355
7390
|
ArrayElement: 2,
|
|
@@ -7385,7 +7420,7 @@ Z.Composite = Jc, Z.prototype.BindingType = {
|
|
|
7385
7420
|
Z.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate
|
|
7386
7421
|
]
|
|
7387
7422
|
];
|
|
7388
|
-
var
|
|
7423
|
+
var Zc = class extends Qr {
|
|
7389
7424
|
constructor(e, t, n = 1) {
|
|
7390
7425
|
super(e, t), this.isInstancedInterleavedBuffer = !0, this.meshPerAttribute = n;
|
|
7391
7426
|
}
|
|
@@ -7400,7 +7435,7 @@ var Yc = class extends Qr {
|
|
|
7400
7435
|
let t = super.toJSON(e);
|
|
7401
7436
|
return t.isInstancedInterleavedBuffer = !0, t.meshPerAttribute = this.meshPerAttribute, t;
|
|
7402
7437
|
}
|
|
7403
|
-
},
|
|
7438
|
+
}, Qc = /* @__PURE__ */ new R(), $c = class {
|
|
7404
7439
|
constructor(e, t, n = 0, r = Infinity) {
|
|
7405
7440
|
this.ray = new li(e, t), this.near = n, this.far = r, this.camera = null, this.layers = new Mn(), this.params = {
|
|
7406
7441
|
Mesh: {},
|
|
@@ -7417,27 +7452,27 @@ var Yc = class extends Qr {
|
|
|
7417
7452
|
t.isPerspectiveCamera ? (this.ray.origin.setFromMatrixPosition(t.matrixWorld), this.ray.direction.set(e.x, e.y, .5).unproject(t).sub(this.ray.origin).normalize(), this.camera = t) : t.isOrthographicCamera ? (this.ray.origin.set(e.x, e.y, (t.near + t.far) / (t.near - t.far)).unproject(t), this.ray.direction.set(0, 0, -1).transformDirection(t.matrixWorld), this.camera = t) : A("Raycaster: Unsupported camera type: " + t.type);
|
|
7418
7453
|
}
|
|
7419
7454
|
setFromXRController(e) {
|
|
7420
|
-
return
|
|
7455
|
+
return Qc.identity().extractRotation(e.matrixWorld), this.ray.origin.setFromMatrixPosition(e.matrixWorld), this.ray.direction.set(0, 0, -1).applyMatrix4(Qc), this;
|
|
7421
7456
|
}
|
|
7422
7457
|
intersectObject(e, t = !0, n = []) {
|
|
7423
|
-
return
|
|
7458
|
+
return tl(e, this, n, t), n.sort(el), n;
|
|
7424
7459
|
}
|
|
7425
7460
|
intersectObjects(e, t = !0, n = []) {
|
|
7426
|
-
for (let r = 0, i = e.length; r < i; r++)
|
|
7427
|
-
return n.sort(
|
|
7461
|
+
for (let r = 0, i = e.length; r < i; r++) tl(e[r], this, n, t);
|
|
7462
|
+
return n.sort(el), n;
|
|
7428
7463
|
}
|
|
7429
7464
|
};
|
|
7430
|
-
function
|
|
7465
|
+
function el(e, t) {
|
|
7431
7466
|
return e.distance - t.distance;
|
|
7432
7467
|
}
|
|
7433
|
-
function
|
|
7468
|
+
function tl(e, t, n, r) {
|
|
7434
7469
|
let i = !0;
|
|
7435
7470
|
if (e.layers.test(t.layers) && e.raycast(t, n) === !1 && (i = !1), i === !0 && r === !0) {
|
|
7436
7471
|
let r = e.children;
|
|
7437
|
-
for (let e = 0, i = r.length; e < i; e++)
|
|
7472
|
+
for (let e = 0, i = r.length; e < i; e++) tl(r[e], t, n, !0);
|
|
7438
7473
|
}
|
|
7439
7474
|
}
|
|
7440
|
-
var
|
|
7475
|
+
var nl = class {
|
|
7441
7476
|
constructor(e = !0) {
|
|
7442
7477
|
this.autoStart = e, this.startTime = 0, this.oldTime = 0, this.elapsedTime = 0, this.running = !1, k("Clock: This module has been deprecated. Please use THREE.Timer instead.");
|
|
7443
7478
|
}
|
|
@@ -7459,7 +7494,7 @@ var el = class {
|
|
|
7459
7494
|
}
|
|
7460
7495
|
return e;
|
|
7461
7496
|
}
|
|
7462
|
-
},
|
|
7497
|
+
}, rl = class e {
|
|
7463
7498
|
static {
|
|
7464
7499
|
e.prototype.isMatrix2 = !0;
|
|
7465
7500
|
}
|
|
@@ -7482,7 +7517,7 @@ var el = class {
|
|
|
7482
7517
|
let i = this.elements;
|
|
7483
7518
|
return i[0] = e, i[2] = t, i[1] = n, i[3] = r, this;
|
|
7484
7519
|
}
|
|
7485
|
-
},
|
|
7520
|
+
}, il = /* @__PURE__ */ new F(), al = class {
|
|
7486
7521
|
constructor(e = new F(Infinity, Infinity), t = new F(-Infinity, -Infinity)) {
|
|
7487
7522
|
this.isBox2 = !0, this.min = e, this.max = t;
|
|
7488
7523
|
}
|
|
@@ -7495,7 +7530,7 @@ var el = class {
|
|
|
7495
7530
|
return this;
|
|
7496
7531
|
}
|
|
7497
7532
|
setFromCenterAndSize(e, t) {
|
|
7498
|
-
let n =
|
|
7533
|
+
let n = il.copy(t).multiplyScalar(.5);
|
|
7499
7534
|
return this.min.copy(e).sub(n), this.max.copy(e).add(n), this;
|
|
7500
7535
|
}
|
|
7501
7536
|
clone() {
|
|
@@ -7541,7 +7576,7 @@ var el = class {
|
|
|
7541
7576
|
return t.copy(e).clamp(this.min, this.max);
|
|
7542
7577
|
}
|
|
7543
7578
|
distanceToPoint(e) {
|
|
7544
|
-
return this.clampPoint(e,
|
|
7579
|
+
return this.clampPoint(e, il).distanceTo(e);
|
|
7545
7580
|
}
|
|
7546
7581
|
intersect(e) {
|
|
7547
7582
|
return this.min.max(e.min), this.max.min(e.max), this.isEmpty() && this.makeEmpty(), this;
|
|
@@ -7555,7 +7590,7 @@ var el = class {
|
|
|
7555
7590
|
equals(e) {
|
|
7556
7591
|
return e.min.equals(this.min) && e.max.equals(this.max);
|
|
7557
7592
|
}
|
|
7558
|
-
},
|
|
7593
|
+
}, ol = /* @__PURE__ */ new I(), sl = /* @__PURE__ */ new I(), cl = /* @__PURE__ */ new I(), ll = /* @__PURE__ */ new I(), ul = /* @__PURE__ */ new I(), dl = /* @__PURE__ */ new I(), fl = /* @__PURE__ */ new I(), pl = class {
|
|
7559
7594
|
constructor(e = new I(), t = new I()) {
|
|
7560
7595
|
this.start = e, this.end = t;
|
|
7561
7596
|
}
|
|
@@ -7581,31 +7616,31 @@ var el = class {
|
|
|
7581
7616
|
return this.delta(t).multiplyScalar(e).add(this.start);
|
|
7582
7617
|
}
|
|
7583
7618
|
closestPointToPointParameter(e, t) {
|
|
7584
|
-
|
|
7585
|
-
let n =
|
|
7619
|
+
ol.subVectors(e, this.start), sl.subVectors(this.end, this.start);
|
|
7620
|
+
let n = sl.dot(sl);
|
|
7586
7621
|
if (n === 0) return 0;
|
|
7587
|
-
let r =
|
|
7622
|
+
let r = sl.dot(ol) / n;
|
|
7588
7623
|
return t && (r = M(r, 0, 1)), r;
|
|
7589
7624
|
}
|
|
7590
7625
|
closestPointToPoint(e, t, n) {
|
|
7591
7626
|
let r = this.closestPointToPointParameter(e, t);
|
|
7592
7627
|
return this.delta(n).multiplyScalar(r).add(this.start);
|
|
7593
7628
|
}
|
|
7594
|
-
distanceSqToLine3(e, t =
|
|
7629
|
+
distanceSqToLine3(e, t = dl, n = fl) {
|
|
7595
7630
|
let r = 1e-8 * 1e-8, i, a, o = this.start, s = e.start, c = this.end, l = e.end;
|
|
7596
|
-
|
|
7597
|
-
let u =
|
|
7631
|
+
cl.subVectors(c, o), ll.subVectors(l, s), ul.subVectors(o, s);
|
|
7632
|
+
let u = cl.dot(cl), d = ll.dot(ll), f = ll.dot(ul);
|
|
7598
7633
|
if (u <= r && d <= r) return t.copy(o), n.copy(s), t.sub(n), t.dot(t);
|
|
7599
7634
|
if (u <= r) i = 0, a = f / d, a = M(a, 0, 1);
|
|
7600
7635
|
else {
|
|
7601
|
-
let e =
|
|
7636
|
+
let e = cl.dot(ul);
|
|
7602
7637
|
if (d <= r) a = 0, i = M(-e / u, 0, 1);
|
|
7603
7638
|
else {
|
|
7604
|
-
let t =
|
|
7639
|
+
let t = cl.dot(ll), n = u * d - t * t;
|
|
7605
7640
|
i = n === 0 ? 0 : M((t * f - e * d) / n, 0, 1), a = (t * i + f) / d, a < 0 ? (a = 0, i = M(-e / u, 0, 1)) : a > 1 && (a = 1, i = M((t - e) / u, 0, 1));
|
|
7606
7641
|
}
|
|
7607
7642
|
}
|
|
7608
|
-
return t.copy(o).addScaledVector(
|
|
7643
|
+
return t.copy(o).addScaledVector(cl, i), n.copy(s).addScaledVector(ll, a), t.distanceToSquared(n);
|
|
7609
7644
|
}
|
|
7610
7645
|
applyMatrix4(e) {
|
|
7611
7646
|
return this.start.applyMatrix4(e), this.end.applyMatrix4(e), this;
|
|
@@ -7616,7 +7651,7 @@ var el = class {
|
|
|
7616
7651
|
clone() {
|
|
7617
7652
|
return new this.constructor().copy(this);
|
|
7618
7653
|
}
|
|
7619
|
-
},
|
|
7654
|
+
}, ml = /* @__PURE__ */ new I(), Q = /* @__PURE__ */ new hc(), hl = class extends va {
|
|
7620
7655
|
constructor(e) {
|
|
7621
7656
|
let t = new Zr(), n = new oa({
|
|
7622
7657
|
color: 16777215,
|
|
@@ -7651,15 +7686,15 @@ var el = class {
|
|
|
7651
7686
|
}
|
|
7652
7687
|
};
|
|
7653
7688
|
function $(e, t, n, r, i, a, o) {
|
|
7654
|
-
|
|
7689
|
+
ml.set(i, a, o).unproject(r);
|
|
7655
7690
|
let s = t[e];
|
|
7656
7691
|
if (s !== void 0) {
|
|
7657
7692
|
let e = n.getAttribute("position");
|
|
7658
|
-
for (let t = 0, n = s.length; t < n; t++) e.setXYZ(s[t],
|
|
7693
|
+
for (let t = 0, n = s.length; t < n; t++) e.setXYZ(s[t], ml.x, ml.y, ml.z);
|
|
7659
7694
|
}
|
|
7660
7695
|
}
|
|
7661
|
-
function
|
|
7662
|
-
let i =
|
|
7696
|
+
function gl(e, t, n, r) {
|
|
7697
|
+
let i = _l(r);
|
|
7663
7698
|
switch (n) {
|
|
7664
7699
|
case T: return e * t;
|
|
7665
7700
|
case O: return e * t / i.components * i.byteLength;
|
|
@@ -7708,7 +7743,7 @@ function ml(e, t, n, r) {
|
|
|
7708
7743
|
}
|
|
7709
7744
|
throw Error(`Unable to determine texture byte length for ${n} format.`);
|
|
7710
7745
|
}
|
|
7711
|
-
function
|
|
7746
|
+
function _l(e) {
|
|
7712
7747
|
switch (e) {
|
|
7713
7748
|
case f:
|
|
7714
7749
|
case p: return {
|
|
@@ -7742,6 +7777,6 @@ function hl(e) {
|
|
|
7742
7777
|
}
|
|
7743
7778
|
typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: { revision: "184" } })), typeof window < "u" && (window.__THREE__ ? k("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ = "184");
|
|
7744
7779
|
//#endregion
|
|
7745
|
-
export { ut as $, Se as $n, os as $r, et as $t, Ic as A,
|
|
7780
|
+
export { ut as $, Se as $n, os as $r, et as $t, Ic as A, Ye as Ai, ns as An, ne as Ar, Ue as At, xn as B, Ct as Bi, ve as Bn, Qe as Br, pl as Bt, nl as C, I as Ci, Xe as Cn, re as Cr, Zc as Ct, ht as D, bn as Di, vo as Dn, $c as Dr, $r as Dt, cn as E, ft as Ei, wc as En, li as Er, Qr as Et, Ns as F, vt as Fi, po as Fn, rs as Fr, Ls as Ft, st as G, Tt as Gi, D as Gn, yo as Gr, ya as Gt, ic as H, Dt as Hi, Ve as Hn, nr as Hr, uo as Ht, Ha as I, A as Ii, mo as In, ye as Ir, Mn as It, te as J, Ae as Jn, m as Jr, Ps as Jt, Zs as K, Et as Ki, oe as Kn, is as Kr, va as Kt, _o as L, gl as Li, $t as Ln, He as Lr, oc as Lt, ka as M, Je as Mi, Ta as Mn, n as Mr, Ge as Mt, co as N, cs as Ni, ba as Nn, rt as Nr, ct as Nt, Oa as O, pt as Oi, yc as On, Oc as Or, Ms as Ot, lo as P, yt as Pi, Z as Pn, Ot as Pr, nt as Pt, Fs as Q, Fe as Qn, Gr as Qr, $e as Qt, Fa as R, fs as Ri, Hs as Rn, Be as Rr, Ac as Rt, r as S, F as Si, o as Sn, se as Sr, Bi as St, zs as T, Ws as Ti, B as Tn, _s as Tr, g as Tt, Fr as U, St as Ui, ze as Un, gs as Ur, fo as Ut, Ii as V, ls as Vi, Mt as Vn, tt as Vr, oa as Vt, at as W, k as Wi, be as Wn, ss as Wr, Ds as Wt, t as X, Me as Xn, Pi as Xr, u as Xt, Aa as Y, je as Yn, zi as Yr, d as Yt, Ec as Z, Pe as Zn, mn as Zr, l as Zt, Js as _, C as _i, vs as _n, Re as _r, Nc as _t, Lc as a, Us as ai, rl as an, Oe as ar, tc as at, Za as b, x as bi, a as bn, fe as br, it as bt, Is as c, Rc as ci, Si as cn, _e as cr, v as ct, al as d, zr as di, Ts as dn, ce as dr, na as dt, kc as ei, Qs as en, Ce as er, Va as et, _r as f, Br as fi, Cs as fn, le as fr, aa as ft, p as g, S as gi, ys as gn, Le as gr, sc as gt, Zr as h, w as hi, bs as hn, ae as hr, y as ht, Wa as i, lt as ii, Qt as in, De as ir, Ma as it, ja as j, qe as ji, Cc as jn, yn as jr, We as jt, Ia as k, Xn as ki, Qi as kn, O as kr, Ke as kt, Fi as l, mt as li, ui as ln, me as lr, tr as lt, Rr as m, f as mi, Ss as mn, E as mr, Jn as mt, Dc as n, xc as ni, Xs as nn, Te as nr, jn as nt, e as o, L as oi, nn as on, ke as or, Vr as ot, Na as p, ps as pi, Es as pn, ue as pr, dt as pt, ee as q, Ne as qn, $o as qr, c as qt, Gs as r, ti as ri, Y as rn, Ee as rr, kt as rt, Ze as s, ac as si, R as sn, Ie as sr, G as st, T as t, ho as ti, jc as tn, we as tr, Ua as tt, Rs as u, gr as ui, ws as un, pe as ur, Da as ut, hc as v, _ as vi, xs as vn, he as vr, rc as vt, V as w, vn as wi, Bs as wn, ie as wr, Ji as wt, Pa as x, h as xi, s as xn, de as xr, ot as xt, hl as y, b as yi, i as yn, ge as yr, fn as yt, Sn as z, _t as zi, Vs as zn, xe as zr, ma as zt };
|
|
7746
7781
|
|
|
7747
|
-
//# sourceMappingURL=three.core-
|
|
7782
|
+
//# sourceMappingURL=three.core-CmmDf_BZ.mjs.map
|