@realsee/five 6.6.0-alpha.8 → 6.6.0-alpha.9
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/docs/assets/hierarchy.js +1 -1
- package/docs/classes/five.Five.html +36 -36
- package/docs/classes/five.Model.html +1 -1
- package/docs/classes/five.ModelScene.html +1 -1
- package/docs/classes/five.PBMContainer.html +1 -1
- package/docs/classes/five.PBMGroup.html +1 -1
- package/docs/classes/five.PBMMesh.html +1 -1
- package/docs/classes/five.PBMMeshMaterial.html +1 -1
- package/docs/classes/five.PBMPointCloud.html +1 -1
- package/docs/classes/five.PBMPointCloudMaterial.html +1 -1
- package/docs/classes/five.PBMSkinnedMesh.html +1 -1
- package/docs/classes/five.Parameter.html +1 -1
- package/docs/classes/five.Tile3DModel.html +1 -1
- package/docs/classes/five.TileNode.html +1 -1
- package/docs/classes/five.TrajectoryNode.html +1 -1
- package/docs/classes/five.WorkResolvedObserver.html +1 -1
- package/docs/classes/gltf-loader.DDSLoader.html +1 -1
- package/docs/classes/gltf-loader.DRACOLoader.html +1 -1
- package/docs/classes/gltf-loader.GLTFObject.html +1 -1
- package/docs/classes/gltf-loader.THREEGLTFLoader.html +1 -1
- package/docs/classes/line.LineGeometry.html +1 -1
- package/docs/classes/line.LineMaterial.html +1 -1
- package/docs/classes/line.LineSegmentsGeometry.html +1 -1
- package/docs/classes/line.THREE_Line2.html +1 -1
- package/docs/classes/line.THREE_LineSegments2.html +1 -1
- package/docs/classes/plugins.RoundedBoxGeometry.html +1 -1
- package/docs/classes/vfx.Airflow.html +1 -1
- package/docs/classes/vfx.Flame.html +1 -1
- package/docs/classes/vfx.Particle.html +1 -1
- package/docs/classes/vfx.ParticleGPU.html +1 -1
- package/docs/classes/vfx.SpotLight.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/interfaces/five.EventCallback.html +1 -1
- package/docs/interfaces/five.LooseWorkPanorama.html +1 -1
- package/docs/interfaces/five.LooseWorkWithExtrinsics.html +1 -1
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ModelLike.html +1 -1
- package/docs/interfaces/five.PBMMaterial.html +1 -1
- package/docs/interfaces/five.PBMMeshMaterialParameters.html +1 -1
- package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +1 -1
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ParameterMaterialValue.html +1 -1
- package/docs/interfaces/five.ParameterTilesetValue.html +1 -1
- package/docs/interfaces/five.ParameterValue.html +1 -1
- package/docs/interfaces/five.ResolvedParameterValue.html +1 -1
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ViewLayer.html +1 -1
- package/docs/interfaces/five.WorkCubeImage.html +1 -1
- package/docs/interfaces/five.WorkImage.html +1 -1
- package/docs/interfaces/five.WorkObserver.html +1 -1
- package/docs/interfaces/five.WorkTile.html +1 -1
- package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/plugins.BackgroundPluginController.html +1 -1
- package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.ItemMaskController.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.State.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginController.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginType.State.html +1 -1
- package/docs/interfaces/plugins.PanoAnimeController.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.State.html +1 -1
- package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +1 -1
- package/docs/interfaces/plugins.PluginTemplateType.State.html +1 -1
- package/docs/interfaces/plugins.TrajectoryController.html +1 -1
- package/docs/interfaces/react.FiveInjectionTypes.html +1 -1
- package/docs/types/five.ParseOptions.html +1 -1
- package/five/index.d.ts +0 -2
- package/five/index.js +11 -11
- package/five/index.mjs +189 -187
- package/gltf-loader/index.js +3 -3
- package/gltf-loader/index.mjs +3 -3
- package/line/index.js +3 -3
- package/line/index.mjs +3 -3
- package/package.json +1 -1
- package/plugins/index.js +2 -2
- package/plugins/index.mjs +2 -2
- package/react/index.js +2 -2
- package/react/index.mjs +2 -2
- package/shader-lib/index.js +2 -2
- package/shader-lib/index.mjs +2 -2
- package/sticker/index.js +3 -3
- package/sticker/index.mjs +3 -3
- package/umd/five-gltf-loader.js +3 -3
- package/umd/five-line.js +3 -3
- package/umd/five-plugins.js +2 -2
- package/umd/five-react.js +2 -2
- package/umd/five-shader-lib.js +2 -2
- package/umd/five-sticker.js +3 -3
- package/umd/five-vfx.js +2 -2
- package/umd/five-vue.js +2 -2
- package/umd/five.js +11 -11
- package/vfx/index.js +2 -2
- package/vfx/index.mjs +2 -2
- package/vue/index.js +2 -2
- package/vue/index.mjs +2 -2
- package/work-downloader/index.js +2 -2
- package/work-downloader/index.mjs +2 -2
package/five/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five
|
|
4
|
-
* Generated: 9/
|
|
5
|
-
* Version: 6.6.0-alpha.
|
|
4
|
+
* Generated: 9/3/2025
|
|
5
|
+
* Version: 6.6.0-alpha.9
|
|
6
6
|
* Terms:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
* Update: July 28, 2021
|
|
@@ -13396,14 +13396,14 @@ function loadX3p(n, t) {
|
|
|
13396
13396
|
}
|
|
13397
13397
|
function parse$1(n, t) {
|
|
13398
13398
|
for (var e, r, o, s, u, l, c, d, f, h, p, A, g, m, E, v, y, b, T, S, R, w, C, I, O, M, B, F, L, _, N, D, Q, J, U, z, q, j, G, X, Y, Z, W, K, ne, ee, te, ie, de, se, pe, me, be, Te, ce = unzipSync(n), fe = "", re = null, ue = 0, ve = Object.keys(ce); ue < ve.length; ue++) {
|
|
13399
|
-
var
|
|
13400
|
-
/(^|\/)main\.xml$/i.test(
|
|
13399
|
+
var Ae = ve[ue];
|
|
13400
|
+
/(^|\/)main\.xml$/i.test(Ae) && (re = ce[Ae], fe = Ae.slice(0, Ae.lastIndexOf("/") + 1));
|
|
13401
13401
|
}
|
|
13402
13402
|
if (!re)
|
|
13403
13403
|
throw new Error("X3p: main.xml not found.");
|
|
13404
13404
|
if (typeof DOMParser == "undefined")
|
|
13405
13405
|
throw new Error("X3p: DOMParser not found.");
|
|
13406
|
-
var
|
|
13406
|
+
var Le = (e = t.color) !== null && e !== void 0 ? e : new THREE.Color(10066329), qe = new DOMParser(), $e = decodeText(re), Ve = qe.parseFromString($e, "text/xml"), he = Ve.querySelector("Record1 Axes"), Ye = {
|
|
13407
13407
|
x: {
|
|
13408
13408
|
type: (s = (o = (r = he == null ? void 0 : he.querySelector("CX AxisType")) === null || r === void 0 ? void 0 : r.textContent) === null || o === void 0 ? void 0 : o.toUpperCase()) !== null && s !== void 0 ? s : "I",
|
|
13409
13409
|
dataType: (c = (l = (u = he == null ? void 0 : he.querySelector("CX DataType")) === null || u === void 0 ? void 0 : u.textContent) === null || l === void 0 ? void 0 : l.toUpperCase()) !== null && c !== void 0 ? c : "D",
|
|
@@ -13422,29 +13422,29 @@ function parse$1(n, t) {
|
|
|
13422
13422
|
increment: Number((L = (F = he == null ? void 0 : he.querySelector("CZ Increment")) === null || F === void 0 ? void 0 : F.textContent) !== null && L !== void 0 ? L : "1"),
|
|
13423
13423
|
offset: Number((N = (_ = he == null ? void 0 : he.querySelector("CZ Offset")) === null || _ === void 0 ? void 0 : _.textContent) !== null && N !== void 0 ? N : "0")
|
|
13424
13424
|
}
|
|
13425
|
-
}, Ee = null, Oe =
|
|
13425
|
+
}, Ee = null, Oe = Ve.querySelector("Record1 Axes Rotation");
|
|
13426
13426
|
Oe && (Ee = new THREE.Matrix3(), Ee.set(Number((Q = (D = Oe.querySelector("r11")) === null || D === void 0 ? void 0 : D.textContent) !== null && Q !== void 0 ? Q : 0), Number((U = (J = Oe.querySelector("r12")) === null || J === void 0 ? void 0 : J.textContent) !== null && U !== void 0 ? U : 0), Number((q = (z = Oe.querySelector("r13")) === null || z === void 0 ? void 0 : z.textContent) !== null && q !== void 0 ? q : 0), Number((G = (j = Oe.querySelector("r21")) === null || j === void 0 ? void 0 : j.textContent) !== null && G !== void 0 ? G : 0), Number((Y = (X = Oe.querySelector("r22")) === null || X === void 0 ? void 0 : X.textContent) !== null && Y !== void 0 ? Y : 0), Number((W = (Z = Oe.querySelector("r23")) === null || Z === void 0 ? void 0 : Z.textContent) !== null && W !== void 0 ? W : 0), Number((ne = (K = Oe.querySelector("r31")) === null || K === void 0 ? void 0 : K.textContent) !== null && ne !== void 0 ? ne : 0), Number((te = (ee = Oe.querySelector("r32")) === null || ee === void 0 ? void 0 : ee.textContent) !== null && te !== void 0 ? te : 0), Number((de = (ie = Oe.querySelector("r33")) === null || ie === void 0 ? void 0 : ie.textContent) !== null && de !== void 0 ? de : 0)));
|
|
13427
|
-
var Fe = (se =
|
|
13427
|
+
var Fe = (se = Ve.querySelector("Record3 DataLink PointDataLink")) === null || se === void 0 ? void 0 : se.textContent;
|
|
13428
13428
|
if (typeof Fe != "string")
|
|
13429
13429
|
throw new Error("X3p: PointDataLink not found.");
|
|
13430
13430
|
Fe = pathJoin(fe, Fe);
|
|
13431
13431
|
var tt = ce[Fe];
|
|
13432
13432
|
if (!tt)
|
|
13433
13433
|
throw new Error("X3p: ".concat(tt, " not found."));
|
|
13434
|
-
for (var rt = getPointArray(tt.buffer, Ye.z.dataType),
|
|
13435
|
-
for (var gt =
|
|
13436
|
-
var
|
|
13437
|
-
_vector.set(dt, -gt, nt), Ee && _vector.applyMatrix3(Ee), Ge && At.expandByPoint(_vector), je[
|
|
13434
|
+
for (var rt = getPointArray(tt.buffer, Ye.z.dataType), Ne = Number((me = (pe = Ve.querySelector("Record3 MatrixDimension SizeX")) === null || pe === void 0 ? void 0 : pe.textContent) !== null && me !== void 0 ? me : "0"), Pe = Number((Te = (be = Ve.querySelector("Record3 MatrixDimension SizeY")) === null || be === void 0 ? void 0 : be.textContent) !== null && Te !== void 0 ? Te : "0"), _e = Math.floor(Ne - 1), ge = Math.floor(Pe - 1), Ce = _e + 1, Be = ge + 1, je = new Float32Array(Ce * Be * 3), Qe = new Float32Array(Ce * Be * 2), Ze = new Uint32Array(_e * ge * 6), At = new THREE.Box3(), Je = 0; Je < Be; Je++)
|
|
13435
|
+
for (var gt = Je * Ye.y.increment + Ye.y.offset, we = 0; we < Ce; we++) {
|
|
13436
|
+
var Ue = Je * Ce + we, dt = we * Ye.x.increment + Ye.x.offset, ht = rt[Ue], Ge = !isNaN(ht), nt = Ge ? ht : NaN;
|
|
13437
|
+
_vector.set(dt, -gt, nt), Ee && _vector.applyMatrix3(Ee), Ge && At.expandByPoint(_vector), je[Ue * 3 + 0] = _vector.x, je[Ue * 3 + 1] = _vector.y, je[Ue * 3 + 2] = _vector.z, Qe[Ue * 2 + 0] = we / _e, Qe[Ue * 2 + 1] = 1 - Je / ge;
|
|
13438
13438
|
}
|
|
13439
|
-
for (var
|
|
13439
|
+
for (var Je = 0; Je < ge; Je++)
|
|
13440
13440
|
for (var we = 0; we < _e; we++) {
|
|
13441
|
-
var ct = we + Ce *
|
|
13441
|
+
var ct = we + Ce * Je, oe = we + Ce * (Je + 1), xe = we + 1 + Ce * (Je + 1), Ie = we + 1 + Ce * Je, Se = (Je * _e + we) * 6;
|
|
13442
13442
|
Ze[Se + 0] = ct, Ze[Se + 1] = oe, Ze[Se + 2] = Ie, Ze[Se + 3] = oe, Ze[Se + 4] = xe, Ze[Se + 5] = Ie;
|
|
13443
13443
|
}
|
|
13444
13444
|
var ze = new THREE.BufferGeometry();
|
|
13445
|
-
ze.setAttribute("position", new THREE.BufferAttribute(je, 3)), ze.setAttribute("uv", new THREE.BufferAttribute(
|
|
13445
|
+
ze.setAttribute("position", new THREE.BufferAttribute(je, 3)), ze.setAttribute("uv", new THREE.BufferAttribute(Qe, 2)), ze.setIndex(new THREE.BufferAttribute(Ze, 1)), (!ze.groups || ze.groups.length === 0) && ze.addGroup(0, ze.index ? ze.index.count : ze.attributes.position.count, 0), ze.boundingBox = At;
|
|
13446
13446
|
var it = new PBMMeshMaterial(t.light ? "phong" : "basic");
|
|
13447
|
-
it.flatShading = !0, it.color.copy(
|
|
13447
|
+
it.flatShading = !0, it.color.copy(Le);
|
|
13448
13448
|
var yt = new PBMMesh(ze, [it]);
|
|
13449
13449
|
return {
|
|
13450
13450
|
object: yt,
|
|
@@ -14118,14 +14118,14 @@ var BVHVector3 = (
|
|
|
14118
14118
|
if (!(re < 0) && !(fe + re > pe)) {
|
|
14119
14119
|
var ue = -me * (be * ie + Te * de + ce * se);
|
|
14120
14120
|
if (!(ue < 0)) {
|
|
14121
|
-
var ve = ue / pe,
|
|
14122
|
-
(!u || u(
|
|
14121
|
+
var ve = ue / pe, Ae = new BVHVector3(T + w * ve, S + C * ve, R + I * ve), Le = new BVHIntersect(_, J, j, F, Ae);
|
|
14122
|
+
(!u || u(Le)) && (s ? ve < v && (v = ve, l.length > 0 && (l.length = 0), l.push(Le)) : l.push(Le));
|
|
14123
14123
|
}
|
|
14124
14124
|
}
|
|
14125
14125
|
}
|
|
14126
14126
|
}
|
|
14127
|
-
var
|
|
14128
|
-
$e && g.push($e),
|
|
14127
|
+
var qe = m * BYTES_PER_NODE / 2, $e = p[qe + 16], Ve = p[qe + 17];
|
|
14128
|
+
$e && g.push($e), Ve && g.push(Ve);
|
|
14129
14129
|
}
|
|
14130
14130
|
}
|
|
14131
14131
|
return l;
|
|
@@ -16420,12 +16420,12 @@ var Tile3D = (
|
|
|
16420
16420
|
if (c.loaded !== !1 && re.content) {
|
|
16421
16421
|
if (re.state.visible && (M = !0), S.skipLevelOfDetail) {
|
|
16422
16422
|
if (re.state.finalResolution) {
|
|
16423
|
-
var ue = re.state.ancestorWithContentAvailable, ve = ue && ue.content ? ue.content : re.content,
|
|
16424
|
-
(
|
|
16423
|
+
var ue = re.state.ancestorWithContentAvailable, ve = ue && ue.content ? ue.content : re.content, Ae = ve.loadState;
|
|
16424
|
+
(Ae === "UNLOADED" || Ae === "LOADING") && (c.loaded = !1);
|
|
16425
16425
|
}
|
|
16426
16426
|
} else if (re.state.visible && re.levelOfContent <= 0) {
|
|
16427
|
-
var
|
|
16428
|
-
(
|
|
16427
|
+
var Ae = re.content.loadState;
|
|
16428
|
+
(Ae === "UNLOADED" || Ae === "LOADING") && (c.loaded = !1);
|
|
16429
16429
|
}
|
|
16430
16430
|
}
|
|
16431
16431
|
}), M && this.tileset.selectedTiles.length === 0 && this.tileset.frameNumber < 500 && (this.loaded = !1), this.loaded === !0 && (this.refined = !1, this.refineProgress[1]++);
|
|
@@ -16467,8 +16467,8 @@ var Tile3D = (
|
|
|
16467
16467
|
trajectoryVersionMap.get(this) !== pe && (trajectoryVersionMap.set(this, pe), g = !0);
|
|
16468
16468
|
for (var me = Math.min(0, ((A = (p = this.parent) === null || p === void 0 ? void 0 : p.children) !== null && A !== void 0 ? A : []).indexOf(this)), be = me * 1e4, Te = function(re) {
|
|
16469
16469
|
var ue = ce.renderObjects[re], ve = re + be;
|
|
16470
|
-
ue.traverse(function(
|
|
16471
|
-
(
|
|
16470
|
+
ue.traverse(function(Ae) {
|
|
16471
|
+
(Ae instanceof THREE.Mesh || Ae instanceof THREE.Line || Ae instanceof THREE.Points) && (Ae.renderOrder = ve);
|
|
16472
16472
|
}), ce.add(ue);
|
|
16473
16473
|
}, ce = this, fe = 0; fe < this.renderObjects.length; fe++)
|
|
16474
16474
|
Te(fe);
|
|
@@ -19741,6 +19741,11 @@ var scratchGeometry = (function() {
|
|
|
19741
19741
|
}
|
|
19742
19742
|
}
|
|
19743
19743
|
return s;
|
|
19744
|
+
}, t.prototype.dispose = function() {
|
|
19745
|
+
for (var e = 0, r = this.material; e < r.length; e++) {
|
|
19746
|
+
var o = r[e];
|
|
19747
|
+
o.dispose(), o.pano0 = null, o.pano1 = null;
|
|
19748
|
+
}
|
|
19744
19749
|
}, t;
|
|
19745
19750
|
})(PBMMesh)
|
|
19746
19751
|
);
|
|
@@ -19906,8 +19911,8 @@ var Hammer = (function(n, t, e, r) {
|
|
|
19906
19911
|
` + k + ` AT
|
|
19907
19912
|
`;
|
|
19908
19913
|
return function() {
|
|
19909
|
-
var $ = new Error("get-stack-trace"), ae = $ && $.stack ? $.stack.replace(/^[^\(]+?[\n$]/gm, "").replace(/^\s+at\s+/gm, "").replace(/^Object.<anonymous>\s*\(/gm, "{anonymous}()@") : "Unknown Stack Trace",
|
|
19910
|
-
return
|
|
19914
|
+
var $ = new Error("get-stack-trace"), ae = $ && $.stack ? $.stack.replace(/^[^\(]+?[\n$]/gm, "").replace(/^\s+at\s+/gm, "").replace(/^Object.<anonymous>\s*\(/gm, "{anonymous}()@") : "Unknown Stack Trace", ye = n.console && (n.console.warn || n.console.log);
|
|
19915
|
+
return ye && ye.call(n.console, V, ae), P.apply(this, arguments);
|
|
19911
19916
|
};
|
|
19912
19917
|
}
|
|
19913
19918
|
var g;
|
|
@@ -19983,11 +19988,11 @@ var Hammer = (function(n, t, e, r) {
|
|
|
19983
19988
|
}
|
|
19984
19989
|
function B(P, H, k) {
|
|
19985
19990
|
for (var V = [], $ = [], ae = 0; ae < P.length; ) {
|
|
19986
|
-
var
|
|
19987
|
-
O($,
|
|
19991
|
+
var ye = P[ae][H];
|
|
19992
|
+
O($, ye) < 0 && V.push(P[ae]), $[ae] = ye, ae++;
|
|
19988
19993
|
}
|
|
19989
|
-
return V = V.sort(function(ut,
|
|
19990
|
-
return ut[H] >
|
|
19994
|
+
return V = V.sort(function(ut, De) {
|
|
19995
|
+
return ut[H] > De[H];
|
|
19991
19996
|
}), V;
|
|
19992
19997
|
}
|
|
19993
19998
|
function F(P, H) {
|
|
@@ -20035,19 +20040,19 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20035
20040
|
};
|
|
20036
20041
|
function fe(P) {
|
|
20037
20042
|
var H, k = P.options.inputClass;
|
|
20038
|
-
return k ? H = k : J ? H = Be : U ? H =
|
|
20043
|
+
return k ? H = k : J ? H = Be : U ? H = Ue : Q ? H = nt : H = Ne, new H(P, re);
|
|
20039
20044
|
}
|
|
20040
20045
|
function re(P, H, k) {
|
|
20041
|
-
var V = k.pointers.length, $ = k.changedPointers.length, ae = H & Y && V - $ === 0,
|
|
20042
|
-
k.isFirst = !!ae, k.isFinal = !!
|
|
20046
|
+
var V = k.pointers.length, $ = k.changedPointers.length, ae = H & Y && V - $ === 0, ye = H & (W | K) && V - $ === 0;
|
|
20047
|
+
k.isFirst = !!ae, k.isFinal = !!ye, ae && (P.session = {}), k.eventType = H, ue(P, k), P.emit("hammer.input", k), P.recognize(k), P.session.prevInput = k;
|
|
20043
20048
|
}
|
|
20044
20049
|
function ue(P, H) {
|
|
20045
20050
|
var k = P.session, V = H.pointers, $ = V.length;
|
|
20046
|
-
k.firstInput || (k.firstInput =
|
|
20047
|
-
var ae = k.firstInput,
|
|
20048
|
-
H.timeStamp = d(), H.deltaTime = H.timeStamp - ae.timeStamp, H.angle = Ye(
|
|
20049
|
-
var
|
|
20050
|
-
H.overallVelocityX =
|
|
20051
|
+
k.firstInput || (k.firstInput = Le(H)), $ > 1 && !k.firstMultiple ? k.firstMultiple = Le(H) : $ === 1 && (k.firstMultiple = !1);
|
|
20052
|
+
var ae = k.firstInput, ye = k.firstMultiple, ke = ye ? ye.center : ae.center, ut = H.center = qe(V);
|
|
20053
|
+
H.timeStamp = d(), H.deltaTime = H.timeStamp - ae.timeStamp, H.angle = Ye(ke, ut), H.distance = he(ke, ut), ve(k, H), H.offsetDirection = Ve(H.deltaX, H.deltaY);
|
|
20054
|
+
var De = $e(H.deltaTime, H.deltaX, H.deltaY);
|
|
20055
|
+
H.overallVelocityX = De.x, H.overallVelocityY = De.y, H.overallVelocity = c(De.x) > c(De.y) ? De.x : De.y, H.scale = ye ? Oe(ye.pointers, V) : 1, H.rotation = ye ? Ee(ye.pointers, V) : 0, H.maxPointers = k.prevInput ? H.pointers.length > k.prevInput.maxPointers ? H.pointers.length : k.prevInput.maxPointers : H.pointers.length, Ae(k, H);
|
|
20051
20056
|
var St = P.element;
|
|
20052
20057
|
w(H.srcEvent.target, St) && (St = H.srcEvent.target), H.target = St;
|
|
20053
20058
|
}
|
|
@@ -20061,16 +20066,16 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20061
20066
|
y: k.y
|
|
20062
20067
|
}), H.deltaX = $.x + (k.x - V.x), H.deltaY = $.y + (k.y - V.y);
|
|
20063
20068
|
}
|
|
20064
|
-
function
|
|
20065
|
-
var k = P.lastInterval || H, V = H.timeStamp - k.timeStamp, $, ae,
|
|
20069
|
+
function Ae(P, H) {
|
|
20070
|
+
var k = P.lastInterval || H, V = H.timeStamp - k.timeStamp, $, ae, ye, ke;
|
|
20066
20071
|
if (H.eventType != K && (V > X || k.velocity === r)) {
|
|
20067
|
-
var ut = H.deltaX - k.deltaX,
|
|
20068
|
-
ae = St.x,
|
|
20072
|
+
var ut = H.deltaX - k.deltaX, De = H.deltaY - k.deltaY, St = $e(V, ut, De);
|
|
20073
|
+
ae = St.x, ye = St.y, $ = c(St.x) > c(St.y) ? St.x : St.y, ke = Ve(ut, De), P.lastInterval = H;
|
|
20069
20074
|
} else
|
|
20070
|
-
$ = k.velocity, ae = k.velocityX,
|
|
20071
|
-
H.velocity = $, H.velocityX = ae, H.velocityY =
|
|
20075
|
+
$ = k.velocity, ae = k.velocityX, ye = k.velocityY, ke = k.direction;
|
|
20076
|
+
H.velocity = $, H.velocityX = ae, H.velocityY = ye, H.direction = ke;
|
|
20072
20077
|
}
|
|
20073
|
-
function
|
|
20078
|
+
function Le(P) {
|
|
20074
20079
|
for (var H = [], k = 0; k < P.pointers.length; )
|
|
20075
20080
|
H[k] = {
|
|
20076
20081
|
clientX: l(P.pointers[k].clientX),
|
|
@@ -20079,12 +20084,12 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20079
20084
|
return {
|
|
20080
20085
|
timeStamp: d(),
|
|
20081
20086
|
pointers: H,
|
|
20082
|
-
center:
|
|
20087
|
+
center: qe(H),
|
|
20083
20088
|
deltaX: P.deltaX,
|
|
20084
20089
|
deltaY: P.deltaY
|
|
20085
20090
|
};
|
|
20086
20091
|
}
|
|
20087
|
-
function
|
|
20092
|
+
function qe(P) {
|
|
20088
20093
|
var H = P.length;
|
|
20089
20094
|
if (H === 1)
|
|
20090
20095
|
return {
|
|
@@ -20104,7 +20109,7 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20104
20109
|
y: k / P || 0
|
|
20105
20110
|
};
|
|
20106
20111
|
}
|
|
20107
|
-
function
|
|
20112
|
+
function Ve(P, H) {
|
|
20108
20113
|
return P === H ? ne : c(P) >= c(H) ? P < 0 ? ee : te : H < 0 ? ie : de;
|
|
20109
20114
|
}
|
|
20110
20115
|
function he(P, H, k) {
|
|
@@ -20128,10 +20133,10 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20128
20133
|
mousemove: Z,
|
|
20129
20134
|
mouseup: W
|
|
20130
20135
|
}, tt = "mousedown", rt = "mousemove mouseup";
|
|
20131
|
-
function
|
|
20136
|
+
function Ne() {
|
|
20132
20137
|
this.evEl = tt, this.evWin = rt, this.pressed = !1, ce.apply(this, arguments);
|
|
20133
20138
|
}
|
|
20134
|
-
v(
|
|
20139
|
+
v(Ne, ce, {
|
|
20135
20140
|
/**
|
|
20136
20141
|
* handle mouse events
|
|
20137
20142
|
* @param {Object} ev
|
|
@@ -20158,10 +20163,10 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20158
20163
|
4: j,
|
|
20159
20164
|
5: G
|
|
20160
20165
|
// see https://twitter.com/jacobrossi/status/480596438489890816
|
|
20161
|
-
},
|
|
20162
|
-
n.MSPointerEvent && !n.PointerEvent && (
|
|
20166
|
+
}, ge = "pointerdown", Ce = "pointermove pointerup pointercancel";
|
|
20167
|
+
n.MSPointerEvent && !n.PointerEvent && (ge = "MSPointerDown", Ce = "MSPointerMove MSPointerUp MSPointerCancel");
|
|
20163
20168
|
function Be() {
|
|
20164
|
-
this.evEl =
|
|
20169
|
+
this.evEl = ge, this.evWin = Ce, ce.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
|
|
20165
20170
|
}
|
|
20166
20171
|
v(Be, ce, {
|
|
20167
20172
|
/**
|
|
@@ -20169,13 +20174,13 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20169
20174
|
* @param {Object} ev
|
|
20170
20175
|
*/
|
|
20171
20176
|
handler: function(H) {
|
|
20172
|
-
var k = this.store, V = !1, $ = !1, ae = H.type.toLowerCase().replace("ms", ""),
|
|
20173
|
-
|
|
20177
|
+
var k = this.store, V = !1, $ = !1, ae = H.type.toLowerCase().replace("ms", ""), ye = Pe[ae], ke = _e[H.pointerType] || H.pointerType, ut = ke == z, De = O(k, H.pointerId, "pointerId");
|
|
20178
|
+
ye & Y && (H.button === 0 || H.button === 2 || ut) ? De < 0 && (k.push(H), De = k.length - 1) : ye & (W | K) ? V = !0 : !ut && H.buttons === 0 && (V = !0, $ = !0, ye = Pe.pointerup), !(De < 0) && ($ || (k[De] = H), this.callback(this.manager, ye, {
|
|
20174
20179
|
pointers: k,
|
|
20175
20180
|
changedPointers: [H],
|
|
20176
|
-
pointerType:
|
|
20177
|
-
srcEvent: k[
|
|
20178
|
-
}), V && k.splice(
|
|
20181
|
+
pointerType: ke,
|
|
20182
|
+
srcEvent: k[De]
|
|
20183
|
+
}), V && k.splice(De, 1));
|
|
20179
20184
|
}
|
|
20180
20185
|
});
|
|
20181
20186
|
var je = {
|
|
@@ -20183,15 +20188,15 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20183
20188
|
touchmove: Z,
|
|
20184
20189
|
touchend: W,
|
|
20185
20190
|
touchcancel: K
|
|
20186
|
-
},
|
|
20191
|
+
}, Qe = "touchstart", Ze = "touchstart touchmove touchend touchcancel";
|
|
20187
20192
|
function At() {
|
|
20188
|
-
this.evTarget =
|
|
20193
|
+
this.evTarget = Qe, this.evWin = Ze, this.started = !1, ce.apply(this, arguments);
|
|
20189
20194
|
}
|
|
20190
20195
|
v(At, ce, {
|
|
20191
20196
|
handler: function(H) {
|
|
20192
20197
|
var k = je[H.type];
|
|
20193
20198
|
if (k === Y && (this.started = !0), !!this.started) {
|
|
20194
|
-
var V =
|
|
20199
|
+
var V = Je.call(this, H, k);
|
|
20195
20200
|
k & (W | K) && V[0].length - V[1].length === 0 && (this.started = !1), this.callback(this.manager, k, {
|
|
20196
20201
|
pointers: V[0],
|
|
20197
20202
|
changedPointers: V[1],
|
|
@@ -20201,7 +20206,7 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20201
20206
|
}
|
|
20202
20207
|
}
|
|
20203
20208
|
});
|
|
20204
|
-
function
|
|
20209
|
+
function Je(P, H) {
|
|
20205
20210
|
var k = M(P.touches), V = M(P.changedTouches);
|
|
20206
20211
|
return H & (W | K) && (k = B(k.concat(V), "identifier")), [k, V];
|
|
20207
20212
|
}
|
|
@@ -20211,10 +20216,10 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20211
20216
|
touchend: W,
|
|
20212
20217
|
touchcancel: K
|
|
20213
20218
|
}, we = "touchstart touchmove touchend touchcancel";
|
|
20214
|
-
function
|
|
20219
|
+
function Ue() {
|
|
20215
20220
|
this.evTarget = we, this.targetIds = {}, ce.apply(this, arguments);
|
|
20216
20221
|
}
|
|
20217
|
-
v(
|
|
20222
|
+
v(Ue, ce, {
|
|
20218
20223
|
handler: function(H) {
|
|
20219
20224
|
var k = gt[H.type], V = dt.call(this, H, k);
|
|
20220
20225
|
V && this.callback(this.manager, k, {
|
|
@@ -20229,26 +20234,26 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20229
20234
|
var k = M(P.touches), V = this.targetIds;
|
|
20230
20235
|
if (H & (Y | Z) && k.length === 1)
|
|
20231
20236
|
return V[k[0].identifier] = !0, [k, k];
|
|
20232
|
-
var $, ae,
|
|
20233
|
-
if (ae = k.filter(function(
|
|
20234
|
-
return w(
|
|
20237
|
+
var $, ae, ye = M(P.changedTouches), ke = [], ut = this.target;
|
|
20238
|
+
if (ae = k.filter(function(De) {
|
|
20239
|
+
return w(De.target, ut);
|
|
20235
20240
|
}), H === Y)
|
|
20236
20241
|
for ($ = 0; $ < ae.length; )
|
|
20237
20242
|
V[ae[$].identifier] = !0, $++;
|
|
20238
|
-
for ($ = 0; $ <
|
|
20239
|
-
V[
|
|
20240
|
-
if (
|
|
20243
|
+
for ($ = 0; $ < ye.length; )
|
|
20244
|
+
V[ye[$].identifier] && ke.push(ye[$]), H & (W | K) && delete V[ye[$].identifier], $++;
|
|
20245
|
+
if (ke.length)
|
|
20241
20246
|
return [
|
|
20242
20247
|
// merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'
|
|
20243
|
-
B(ae.concat(
|
|
20244
|
-
|
|
20248
|
+
B(ae.concat(ke), "identifier"),
|
|
20249
|
+
ke
|
|
20245
20250
|
];
|
|
20246
20251
|
}
|
|
20247
20252
|
var ht = 2500, Ge = 25;
|
|
20248
20253
|
function nt() {
|
|
20249
20254
|
ce.apply(this, arguments);
|
|
20250
20255
|
var P = y(this.handler, this);
|
|
20251
|
-
this.touch = new
|
|
20256
|
+
this.touch = new Ue(this.manager, P), this.mouse = new Ne(this.manager, P), this.primaryTouch = null, this.lastTouches = [];
|
|
20252
20257
|
}
|
|
20253
20258
|
v(nt, ce, {
|
|
20254
20259
|
/**
|
|
@@ -20291,8 +20296,8 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20291
20296
|
}
|
|
20292
20297
|
function xe(P) {
|
|
20293
20298
|
for (var H = P.srcEvent.clientX, k = P.srcEvent.clientY, V = 0; V < this.lastTouches.length; V++) {
|
|
20294
|
-
var $ = this.lastTouches[V], ae = Math.abs(H - $.x),
|
|
20295
|
-
if (ae <= Ge &&
|
|
20299
|
+
var $ = this.lastTouches[V], ae = Math.abs(H - $.x), ye = Math.abs(k - $.y);
|
|
20300
|
+
if (ae <= Ge && ye <= Ge)
|
|
20296
20301
|
return !0;
|
|
20297
20302
|
}
|
|
20298
20303
|
return !1;
|
|
@@ -20335,13 +20340,13 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20335
20340
|
H.preventDefault();
|
|
20336
20341
|
return;
|
|
20337
20342
|
}
|
|
20338
|
-
var V = this.actions, $ = C(V, pt) && !Pt[pt], ae = C(V, It) && !Pt[It],
|
|
20343
|
+
var V = this.actions, $ = C(V, pt) && !Pt[pt], ae = C(V, It) && !Pt[It], ye = C(V, Mt) && !Pt[Mt];
|
|
20339
20344
|
if ($) {
|
|
20340
|
-
var
|
|
20341
|
-
if (
|
|
20345
|
+
var ke = P.pointers.length === 1, ut = P.distance < 2, De = P.deltaTime < 250;
|
|
20346
|
+
if (ke && ut && De)
|
|
20342
20347
|
return;
|
|
20343
20348
|
}
|
|
20344
|
-
if (!(
|
|
20349
|
+
if (!(ye && ae) && ($ || ae && k & se || ye && k & pe))
|
|
20345
20350
|
return this.preventSrc(H);
|
|
20346
20351
|
},
|
|
20347
20352
|
/**
|
|
@@ -20578,8 +20583,8 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20578
20583
|
return P & se && H.push(It), P & pe && H.push(Mt), H;
|
|
20579
20584
|
},
|
|
20580
20585
|
directionTest: function(P) {
|
|
20581
|
-
var H = this.options, k = !0, V = P.distance, $ = P.direction, ae = P.deltaX,
|
|
20582
|
-
return $ & H.direction || (H.direction & se ? ($ = ae === 0 ? ne : ae < 0 ? ee : te, k = ae != this.pX, V = Math.abs(P.deltaX)) : ($ =
|
|
20586
|
+
var H = this.options, k = !0, V = P.distance, $ = P.direction, ae = P.deltaX, ye = P.deltaY;
|
|
20587
|
+
return $ & H.direction || (H.direction & se ? ($ = ae === 0 ? ne : ae < 0 ? ee : te, k = ae != this.pX, V = Math.abs(P.deltaX)) : ($ = ye === 0 ? ne : ye < 0 ? ie : de, k = ye != this.pY, V = Math.abs(P.deltaY))), P.direction = $, k && V > H.threshold && $ & H.direction;
|
|
20583
20588
|
},
|
|
20584
20589
|
attrTest: function(P) {
|
|
20585
20590
|
return We.prototype.attrTest.call(this, P) && (this.state & ot || !(this.state & ot) && this.directionTest(P));
|
|
@@ -20733,10 +20738,10 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20733
20738
|
if (V && $ && k) {
|
|
20734
20739
|
if (P.eventType != W)
|
|
20735
20740
|
return this.failTimeout();
|
|
20736
|
-
var ae = this.pTime ? P.timeStamp - this.pTime < H.interval : !0,
|
|
20737
|
-
this.pTime = P.timeStamp, this.pCenter = P.center, !
|
|
20738
|
-
var
|
|
20739
|
-
if (
|
|
20741
|
+
var ae = this.pTime ? P.timeStamp - this.pTime < H.interval : !0, ye = !this.pCenter || he(this.pCenter, P.center) < H.posThreshold;
|
|
20742
|
+
this.pTime = P.timeStamp, this.pCenter = P.center, !ye || !ae ? this.count = 1 : this.count += 1, this._input = P;
|
|
20743
|
+
var ke = this.count % H.taps;
|
|
20744
|
+
if (ke === 0)
|
|
20740
20745
|
return this.hasRequireFailures() ? (this._timer = f(function() {
|
|
20741
20746
|
this.state = vt, this.tryEmit();
|
|
20742
20747
|
}, H.interval, this), ot) : vt;
|
|
@@ -21024,8 +21029,8 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21024
21029
|
Manager: _t,
|
|
21025
21030
|
Input: ce,
|
|
21026
21031
|
TouchAction: at,
|
|
21027
|
-
TouchInput:
|
|
21028
|
-
MouseInput:
|
|
21032
|
+
TouchInput: Ue,
|
|
21033
|
+
MouseInput: Ne,
|
|
21029
21034
|
PointerEventInput: Be,
|
|
21030
21035
|
TouchMouseInput: nt,
|
|
21031
21036
|
SingleTouchInput: At,
|
|
@@ -22736,7 +22741,7 @@ void main() {
|
|
|
22736
22741
|
});
|
|
22737
22742
|
}
|
|
22738
22743
|
return n.prototype.dispose = function() {
|
|
22739
|
-
this.setObserver(null), this.renderTarget.dispose(), this.boundingMesh.dispose(), this.disposed = !0;
|
|
22744
|
+
this.setObserver(null), this.renderTarget.dispose(), this.boundingMesh.dispose(), this.scene.dispose(), this.disposed = !0;
|
|
22740
22745
|
}, n.prototype.cleanup = function() {
|
|
22741
22746
|
var t = this;
|
|
22742
22747
|
this.tileMeshes.forEach(function(e) {
|
|
@@ -23152,9 +23157,7 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
23152
23157
|
e.helper.remove(p), p.dispose();
|
|
23153
23158
|
}), this.panoMeshes.clear());
|
|
23154
23159
|
var r = this.videoTexture.image;
|
|
23155
|
-
r.pause(), r.oncanplay =
|
|
23156
|
-
}, r.ontimeupdate = function() {
|
|
23157
|
-
}, this.scene.remove(this.panoVideo.object), this.panoVideo.setMaterial(null), this.panoVideo.dispose();
|
|
23160
|
+
r.pause(), r.oncanplay = noop, r.ontimeupdate = noop, this.scene.remove(this.panoVideo.object), this.panoVideo.setMaterial(null), this.panoVideo.dispose();
|
|
23158
23161
|
for (var o = this.modelScene.parameter.resolveValue(), s = o.pano0, u = o.pano1, l = 0, c = Object.keys(this.panoResources); l < c.length; l++) {
|
|
23159
23162
|
var d = c[l], f = this.panoResources[d];
|
|
23160
23163
|
if (f.panoPicture) {
|
|
@@ -23280,23 +23283,23 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
23280
23283
|
return oe.distanceTo(ue) <= be;
|
|
23281
23284
|
})[0];
|
|
23282
23285
|
if (ve) {
|
|
23283
|
-
var
|
|
23284
|
-
|
|
23286
|
+
var Ae = new THREE.Vector4(ce.x, ce.y, ce.z, ve.y - ce.y), Le = this.adjustPanoCircleMeshPositionFix.get(fe);
|
|
23287
|
+
Le && !Ae.equals(Le) && (this.needsRender = !0), this.adjustPanoCircleMeshPositionFix.set(fe, Ae);
|
|
23285
23288
|
}
|
|
23286
23289
|
}
|
|
23287
23290
|
this.accessibleObserverFloorCheckCount++;
|
|
23288
23291
|
}
|
|
23289
23292
|
}
|
|
23290
|
-
var
|
|
23293
|
+
var qe = /* @__PURE__ */ new Map();
|
|
23291
23294
|
if (Z)
|
|
23292
|
-
for (var $e = 0,
|
|
23293
|
-
var ie =
|
|
23295
|
+
for (var $e = 0, Ve = Z.accessibleNodes; $e < Ve.length; $e++) {
|
|
23296
|
+
var ie = Ve[$e], M = Z.work.observers[ie];
|
|
23294
23297
|
if (M) {
|
|
23295
23298
|
var fe = panoStringify({
|
|
23296
23299
|
panoIndex: M.panoIndex,
|
|
23297
23300
|
workCode: M.work.workCode
|
|
23298
23301
|
});
|
|
23299
|
-
|
|
23302
|
+
qe.set(fe, M);
|
|
23300
23303
|
}
|
|
23301
23304
|
}
|
|
23302
23305
|
if (W)
|
|
@@ -23307,22 +23310,22 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
23307
23310
|
panoIndex: M.panoIndex,
|
|
23308
23311
|
workCode: M.work.workCode
|
|
23309
23312
|
});
|
|
23310
|
-
|
|
23313
|
+
qe.set(fe, M);
|
|
23311
23314
|
}
|
|
23312
23315
|
}
|
|
23313
23316
|
if (this.panoMeshes.forEach(function(oe, xe) {
|
|
23314
|
-
var Ie =
|
|
23317
|
+
var Ie = qe.get(xe);
|
|
23315
23318
|
if (Ie) {
|
|
23316
23319
|
oe.position.copy(Ie.standingPosition).applyMatrix4(Ie.work.transform);
|
|
23317
23320
|
var Se = o.adjustPanoCircleMeshPositionFix.get(xe);
|
|
23318
|
-
Se && (scratchVector3$3.set(Se.x, Se.y, Se.z), scratchVector3$3.equals(oe.position) && (oe.position.y += Se.w)), oe.scale.setScalar(1.2),
|
|
23321
|
+
Se && (scratchVector3$3.set(Se.x, Se.y, Se.z), scratchVector3$3.equals(oe.position) && (oe.position.y += Se.w)), oe.scale.setScalar(1.2), qe.delete(xe);
|
|
23319
23322
|
} else
|
|
23320
23323
|
o.helper.remove(oe), oe.dispose(), o.panoMeshes.delete(xe);
|
|
23321
|
-
}),
|
|
23324
|
+
}), qe.forEach(function(oe, xe) {
|
|
23322
23325
|
var Ie = o.panoCircleMeshCreator(panoParse(xe));
|
|
23323
23326
|
Ie.position.copy(oe.standingPosition).applyMatrix4(oe.work.transform);
|
|
23324
23327
|
var Se = o.adjustPanoCircleMeshPositionFix.get(xe);
|
|
23325
|
-
Se && (scratchVector3$3.set(Se.x, Se.y, Se.z), scratchVector3$3.equals(Ie.position) && (Ie.position.y += Se.w)), Ie.scale.setScalar(1.2), o.panoMeshes.set(xe, Ie), o.helper.add(Ie),
|
|
23328
|
+
Se && (scratchVector3$3.set(Se.x, Se.y, Se.z), scratchVector3$3.equals(Ie.position) && (Ie.position.y += Se.w)), Ie.scale.setScalar(1.2), o.panoMeshes.set(xe, Ie), o.helper.add(Ie), qe.delete(xe);
|
|
23326
23329
|
}), this.camera.pose.distance > 0.1 || R)
|
|
23327
23330
|
this.panoMeshes.forEach(function(oe) {
|
|
23328
23331
|
oe.setOpacity(0), oe.setCurrent(!1), oe.updateTime && oe.updateTime(e, r), oe.visible = !1;
|
|
@@ -23358,8 +23361,8 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
23358
23361
|
});
|
|
23359
23362
|
}
|
|
23360
23363
|
{
|
|
23361
|
-
var I = (l = this.modelScene.parameter.progress) !== null && l !== void 0 ? l : 1,
|
|
23362
|
-
if (
|
|
23364
|
+
var I = (l = this.modelScene.parameter.progress) !== null && l !== void 0 ? l : 1, Ne = Math.round(I), Pe = this.modelScene.parameter.pano0, _e = this.modelScene.parameter.pano1, ge = Ne === 0 ? Pe : _e, M = void 0;
|
|
23365
|
+
if (ge && (M = this.works.getObserver(ge.panoId), M || (M = this.panoPictureObserverMap.get(ge))), this.tiling.appearDuration = this.tileAppearDuration, this.tiling.maxRequest = I <= 0.6 ? 0 : this.tileMaxRequest, this.tiling.imageOptions = this.imageOptions, !M || !ge || this.tileLevelForFov === !1) {
|
|
23363
23366
|
this.tiling.setObserver(null);
|
|
23364
23367
|
var Ce = {
|
|
23365
23368
|
renderer: this.renderer,
|
|
@@ -23376,7 +23379,7 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
23376
23379
|
};
|
|
23377
23380
|
this.tiling.update(Ce), this.modelScene.parameter.set("refinedScreen", null);
|
|
23378
23381
|
} else {
|
|
23379
|
-
var Be = getImageSizeLevel(
|
|
23382
|
+
var Be = getImageSizeLevel(ge.mapSize), je = Be + 1, Qe = new THREE.Vector2().copy(this.camera.resolution).multiplyScalar(this.camera.pixelRatio), Ze = Math.floor(this.tileLevelForFov(this.camera.fov, Qe)), At = Ze > Be ? Ze : 0;
|
|
23380
23383
|
this.tiling.setObserver(M);
|
|
23381
23384
|
var Ce = {
|
|
23382
23385
|
renderer: this.renderer,
|
|
@@ -23385,25 +23388,25 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
23385
23388
|
time: this.camera.time,
|
|
23386
23389
|
cameraMatrix: this.camera.matrixWorld,
|
|
23387
23390
|
cameraProjectionMatrix: this.camera.projectionMatrix,
|
|
23388
|
-
panoMap:
|
|
23389
|
-
panoMatrix:
|
|
23390
|
-
panoZoom:
|
|
23391
|
+
panoMap: ge.map,
|
|
23392
|
+
panoMatrix: ge.matrix,
|
|
23393
|
+
panoZoom: ge.zoom,
|
|
23391
23394
|
minLevel: je,
|
|
23392
23395
|
level: At
|
|
23393
|
-
},
|
|
23396
|
+
}, Je = this.tiling.update(Ce), gt = {
|
|
23394
23397
|
map: this.tiling.renderTarget.texture,
|
|
23395
23398
|
matrixInverse: this.tiling.camera.matrixWorldInverse,
|
|
23396
23399
|
projectionMatrix: this.tiling.camera.projectionMatrix,
|
|
23397
|
-
pano:
|
|
23400
|
+
pano: Ne,
|
|
23398
23401
|
opacity: (Pe == null ? void 0 : Pe.panoId) === (_e == null ? void 0 : _e.panoId) ? 1 : easeInQuart(Math.abs(((c = this.modelScene.parameter.progress) !== null && c !== void 0 ? c : 0) - 0.5) * 2)
|
|
23399
23402
|
}, we = this.modelScene.parameter.refinedScreen;
|
|
23400
|
-
(
|
|
23403
|
+
(Je || gt.pano !== (we == null ? void 0 : we.pano) || gt.opacity !== (we == null ? void 0 : we.opacity)) && this.modelScene.parameter.set("refinedScreen", gt);
|
|
23401
23404
|
}
|
|
23402
23405
|
}
|
|
23403
23406
|
this.panoVideo.object.position.copy(this.camera.position), this.panoVideo.updateTime(e), X && X.video && (this.needsRender = !0), this.intersectMesh.scale.setScalar(clamp$1(this.cameraMotion.value.fov / 45, 0, 1));
|
|
23404
23407
|
{
|
|
23405
|
-
var
|
|
23406
|
-
if (Pe && _e && Pe !== _e &&
|
|
23408
|
+
var Ue = b.effect, dt = this.modelScene.parameter, Pe = dt.pano0, _e = dt.pano1;
|
|
23409
|
+
if (Pe && _e && Pe !== _e && Ue === "fly" && this.flyEffectUseDepthBuffer) {
|
|
23407
23410
|
if (((d = this.modelScene.parameter.pano0Depth) === null || d === void 0 ? void 0 : d.panoId) !== Pe.panoId || ((f = this.modelScene.parameter.pano1Depth) === null || f === void 0 ? void 0 : f.panoId) !== _e.panoId) {
|
|
23408
23411
|
var ht = 500, Ge = 512;
|
|
23409
23412
|
this.pano0DepthCubeRenderTarget ? this.pano0DepthCubeRenderTarget.width !== Ge && this.pano0DepthCubeRenderTarget.setSize(Ge, Ge) : this.pano0DepthCubeRenderTarget = new THREE.WebGLCubeRenderTarget(Ge, {
|
|
@@ -23759,16 +23762,19 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
23759
23762
|
matrix: re.video.matrix.clone(),
|
|
23760
23763
|
panoMatrix: re.matrix.clone().premultiply(re.work.transform),
|
|
23761
23764
|
alpha: 1
|
|
23762
|
-
}, ve = createUuid(),
|
|
23763
|
-
|
|
23764
|
-
|
|
23765
|
-
|
|
23766
|
-
},
|
|
23767
|
-
|
|
23768
|
-
},
|
|
23765
|
+
}, ve = createUuid(), Ae = s.videoTexture.image;
|
|
23766
|
+
Ae.setAttribute("uuid", ve), Ae.oncanplay = noop, Ae.ontimeupdate = noop, canplayVideo().then(function(qe) {
|
|
23767
|
+
qe && re.video && Ae.getAttribute("uuid") === ve && (Ae.oncanplay = function() {
|
|
23768
|
+
Ae.oncanplay = noop, Ae.play();
|
|
23769
|
+
}, Ae.ontimeupdate = function() {
|
|
23770
|
+
Ae.currentTime > 0.5 && (Ae.ontimeupdate = noop, s.panoVideo.setMaterial(ue));
|
|
23771
|
+
}, Ae.src = re.video.source);
|
|
23769
23772
|
}).catch((function() {
|
|
23770
|
-
|
|
23773
|
+
Ae.removeAttribute("uuid");
|
|
23771
23774
|
}));
|
|
23775
|
+
} else {
|
|
23776
|
+
var Le = s.videoTexture.image;
|
|
23777
|
+
Le.removeAttribute("uuid"), Le.oncanplay = noop, Le.ontimeupdate = noop;
|
|
23772
23778
|
}
|
|
23773
23779
|
},
|
|
23774
23780
|
// reject
|
|
@@ -24888,35 +24894,35 @@ void main() {
|
|
|
24888
24894
|
ie.set(me, N);
|
|
24889
24895
|
}
|
|
24890
24896
|
}
|
|
24891
|
-
if (this.panoMeshes.forEach(function(
|
|
24897
|
+
if (this.panoMeshes.forEach(function(ge, Ce) {
|
|
24892
24898
|
var Be = ie.get(Ce);
|
|
24893
|
-
Be ? (
|
|
24894
|
-
}), ie.forEach(function(
|
|
24899
|
+
Be ? (ge.position.copy(Be.position).applyMatrix4(Be.work.transform), ie.delete(Ce)) : (o.helper.remove(ge), ge.dispose(), o.panoMeshes.delete(Ce));
|
|
24900
|
+
}), ie.forEach(function(ge, Ce) {
|
|
24895
24901
|
var Be = new PanoSphereMesh();
|
|
24896
|
-
Be.position.copy(
|
|
24897
|
-
}), this.camera.pose.distance > 0.1 || R ? this.panoMeshes.forEach(function(
|
|
24898
|
-
|
|
24899
|
-
}) : this.panoMeshes.forEach(function(
|
|
24902
|
+
Be.position.copy(ge.position).applyMatrix4(ge.work.transform), o.panoMeshes.set(Ce, Be), o.helper.add(Be), ie.delete(Ce);
|
|
24903
|
+
}), this.camera.pose.distance > 0.1 || R ? this.panoMeshes.forEach(function(ge, Ce) {
|
|
24904
|
+
ge.setOpacity(0), ge.updateTime && ge.updateTime(e, r), ge.visible = !1;
|
|
24905
|
+
}) : this.panoMeshes.forEach(function(ge, Ce) {
|
|
24900
24906
|
var Be = panoParse(Ce), je = o.works.getObserver(Be);
|
|
24901
24907
|
if (je) {
|
|
24902
24908
|
if (!je.loadable && !je.active) {
|
|
24903
|
-
|
|
24909
|
+
ge.setOpacity(0);
|
|
24904
24910
|
return;
|
|
24905
24911
|
}
|
|
24906
|
-
var
|
|
24907
|
-
|
|
24912
|
+
var Qe = ge.position.clone().setY(o.camera.position.y).distanceTo(o.camera.position);
|
|
24913
|
+
Qe < 0.05 ? ge.setOpacity(0) : ge.setOpacity(clamp$1(1.5 / Qe, 0, 1)), panoEqual(o.currentPano, Be) && ge.setOpacity(0), ge.lookAt(o.camera.position);
|
|
24908
24914
|
}
|
|
24909
24915
|
}), this.locationMotion.ended) {
|
|
24910
24916
|
var ce = this.intersect(e);
|
|
24911
|
-
this.panoMeshes.forEach(function(
|
|
24912
|
-
|
|
24917
|
+
this.panoMeshes.forEach(function(ge, Ce) {
|
|
24918
|
+
ge.setCurrent(ge === ce), ge.updateTime && ge.updateTime(e, r);
|
|
24913
24919
|
});
|
|
24914
24920
|
}
|
|
24915
24921
|
{
|
|
24916
24922
|
var L = (l = this.modelScene.parameter.progress) !== null && l !== void 0 ? l : 1, fe = Math.round(L), re = this.modelScene.parameter.pano0, ue = this.modelScene.parameter.pano1, ve = fe === 0 ? re : ue, N = void 0;
|
|
24917
24923
|
if (ve && (N = this.works.getObserver(ve.panoId), N || (N = this.panoPictureObserverMap.get(ve))), this.tiling.appearDuration = this.tileAppearDuration, this.tiling.maxRequest = L <= 0.6 ? 0 : this.tileMaxRequest, this.tiling.imageOptions = this.imageOptions, !N || !ve || this.tileLevelForFov === !1) {
|
|
24918
24924
|
this.tiling.setObserver(null);
|
|
24919
|
-
var
|
|
24925
|
+
var Ae = {
|
|
24920
24926
|
renderer: this.renderer,
|
|
24921
24927
|
resolution: this.camera.resolution,
|
|
24922
24928
|
pixelRatio: this.camera.pixelRatio,
|
|
@@ -24929,11 +24935,11 @@ void main() {
|
|
|
24929
24935
|
minLevel: 0,
|
|
24930
24936
|
level: 0
|
|
24931
24937
|
};
|
|
24932
|
-
this.tiling.update(
|
|
24938
|
+
this.tiling.update(Ae), this.modelScene.parameter.set("refinedScreen", null);
|
|
24933
24939
|
} else {
|
|
24934
|
-
var
|
|
24940
|
+
var Le = getImageSizeLevel(ve.mapSize), qe = Le + 1, $e = new THREE.Vector2().copy(this.camera.resolution).multiplyScalar(this.camera.pixelRatio), Ve = Math.floor(this.tileLevelForFov(this.camera.fov, $e)), he = Ve > Le ? Ve : 0;
|
|
24935
24941
|
this.tiling.setObserver(N);
|
|
24936
|
-
var
|
|
24942
|
+
var Ae = {
|
|
24937
24943
|
renderer: this.renderer,
|
|
24938
24944
|
resolution: this.camera.resolution,
|
|
24939
24945
|
pixelRatio: this.camera.pixelRatio,
|
|
@@ -24943,9 +24949,9 @@ void main() {
|
|
|
24943
24949
|
panoMap: ve.map,
|
|
24944
24950
|
panoMatrix: ve.matrix,
|
|
24945
24951
|
panoZoom: ve.zoom,
|
|
24946
|
-
minLevel:
|
|
24952
|
+
minLevel: qe,
|
|
24947
24953
|
level: he
|
|
24948
|
-
}, Ye = this.tiling.update(
|
|
24954
|
+
}, Ye = this.tiling.update(Ae), Ee = {
|
|
24949
24955
|
map: this.tiling.renderTarget.texture,
|
|
24950
24956
|
matrixInverse: this.tiling.camera.matrixWorldInverse,
|
|
24951
24957
|
projectionMatrix: this.tiling.camera.projectionMatrix,
|
|
@@ -24960,12 +24966,12 @@ void main() {
|
|
|
24960
24966
|
var Fe = b.effect, tt = this.modelScene.parameter, re = tt.pano0, ue = tt.pano1;
|
|
24961
24967
|
if (re && ue && re !== ue && Fe === "fly" && this.flyEffectUseDepthBuffer) {
|
|
24962
24968
|
if (((d = this.modelScene.parameter.pano0Depth) === null || d === void 0 ? void 0 : d.panoId) !== re.panoId || ((f = this.modelScene.parameter.pano1Depth) === null || f === void 0 ? void 0 : f.panoId) !== ue.panoId) {
|
|
24963
|
-
var rt = 500,
|
|
24964
|
-
this.pano0DepthCubeRenderTarget ? this.pano0DepthCubeRenderTarget.width !==
|
|
24969
|
+
var rt = 500, Ne = 512;
|
|
24970
|
+
this.pano0DepthCubeRenderTarget ? this.pano0DepthCubeRenderTarget.width !== Ne && this.pano0DepthCubeRenderTarget.setSize(Ne, Ne) : this.pano0DepthCubeRenderTarget = new THREE.WebGLCubeRenderTarget(Ne, {
|
|
24965
24971
|
minFilter: THREE.NearestFilter,
|
|
24966
24972
|
magFilter: THREE.NearestFilter,
|
|
24967
24973
|
generateMipmaps: !1
|
|
24968
|
-
}), this.pano1DepthCubeRenderTarget ? this.pano1DepthCubeRenderTarget.width !==
|
|
24974
|
+
}), this.pano1DepthCubeRenderTarget ? this.pano1DepthCubeRenderTarget.width !== Ne && this.pano1DepthCubeRenderTarget.setSize(Ne, Ne) : this.pano1DepthCubeRenderTarget = new THREE.WebGLCubeRenderTarget(Ne, {
|
|
24969
24975
|
minFilter: THREE.NearestFilter,
|
|
24970
24976
|
magFilter: THREE.NearestFilter,
|
|
24971
24977
|
generateMipmaps: !1
|
|
@@ -26532,7 +26538,7 @@ var circleImageURL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYA
|
|
|
26532
26538
|
}
|
|
26533
26539
|
return Object.defineProperty(t, "version", {
|
|
26534
26540
|
get: function() {
|
|
26535
|
-
return "6.6.0-alpha.
|
|
26541
|
+
return "6.6.0-alpha.9";
|
|
26536
26542
|
},
|
|
26537
26543
|
enumerable: !1,
|
|
26538
26544
|
configurable: !0
|
|
@@ -27253,8 +27259,8 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
27253
27259
|
panoMatrix: fe.matrix.clone().premultiply(fe.work.transform),
|
|
27254
27260
|
alpha: 1
|
|
27255
27261
|
}, ue = createUuid(), ve = s.videoTexture.image;
|
|
27256
|
-
ve.setAttribute("uuid", ue), canplayVideo().then(function(
|
|
27257
|
-
|
|
27262
|
+
ve.setAttribute("uuid", ue), canplayVideo().then(function(Ae) {
|
|
27263
|
+
Ae && fe.video && ve.getAttribute("uuid") === ue && (ve.oncanplay = function() {
|
|
27258
27264
|
ve.oncanplay = noop, ve.play();
|
|
27259
27265
|
}, ve.ontimeupdate = function() {
|
|
27260
27266
|
ve.currentTime > 0.5 && (ve.ontimeupdate = noop, s.panoVideo.setMaterial(re));
|
|
@@ -27429,10 +27435,10 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
27429
27435
|
if (this.xrManager.setProjectionFromUnion(this.xrManager.cameraVR, this.xrManager.cameraL, this.xrManager.cameraR), this.camera.quaternion.copy(this.xrManager.cameraVR.quaternion), this.camera.scale.copy(this.xrManager.cameraVR.scale), this.camera.matrix.compose(this.camera.position, this.camera.quaternion, this.camera.scale), this.camera.computePose((c = v.distance) !== null && c !== void 0 ? c : this.camera.pose.distance), this.xrManager.session && this.xrManager.session.inputSources) {
|
|
27430
27436
|
for (var fe = 0; fe < this.xrManager.session.inputSources.length; fe++)
|
|
27431
27437
|
if (this.xrManager.session.inputSources[fe] && this.xrManager.session.inputSources[fe].targetRayMode === "transient-pointer") {
|
|
27432
|
-
var
|
|
27433
|
-
if (
|
|
27434
|
-
var
|
|
27435
|
-
this.gazeRay =
|
|
27438
|
+
var Ae = ie.getPose(this.xrManager.session.inputSources[fe].targetRaySpace, me);
|
|
27439
|
+
if (Ae) {
|
|
27440
|
+
var Le = Ae.transform.orientation, qe = new THREE.Quaternion(Le.x, Le.y, Le.z, Le.w), $e = new THREE.Vector3(0, 0, -1).applyQuaternion(qe), Ve = new THREE.Raycaster(this.camera.position, $e);
|
|
27441
|
+
this.gazeRay = Ve;
|
|
27436
27442
|
}
|
|
27437
27443
|
}
|
|
27438
27444
|
}
|
|
@@ -27448,8 +27454,8 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
27448
27454
|
if (st.length === 0) {
|
|
27449
27455
|
var Ht = Ee.works.getResolvedObserver(Ee.currentPano);
|
|
27450
27456
|
st = Ee.xrControllerRay.right.intersectObject(Ee.boundingMesh, !0).map(function(ae) {
|
|
27451
|
-
var
|
|
27452
|
-
return __assign({ floorIndex:
|
|
27457
|
+
var ye, ke = (ye = Ht == null ? void 0 : Ht.floorIndex) !== null && ye !== void 0 ? ye : 0;
|
|
27458
|
+
return __assign({ floorIndex: ke, floor: ke }, ae);
|
|
27453
27459
|
});
|
|
27454
27460
|
}
|
|
27455
27461
|
if (st.length >= 1 && st[0].face)
|
|
@@ -27484,10 +27490,10 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
27484
27490
|
userAction: this.userAction,
|
|
27485
27491
|
state: __assign(__assign(__assign({}, this.currentPano), { mode: this.mode }), clonePose(this.camera.pose))
|
|
27486
27492
|
}));
|
|
27487
|
-
var Fe = this.works.getResolvedObserver(this.currentPano), tt = this.locationMotion.ended ? this.getForwardObserverOrNot(this.xrManager.cameraVR) : null, rt = this.works.getObserver(w.panoId),
|
|
27493
|
+
var Fe = this.works.getResolvedObserver(this.currentPano), tt = this.locationMotion.ended ? this.getForwardObserverOrNot(this.xrManager.cameraVR) : null, rt = this.works.getObserver(w.panoId), Ne = this.works.getObserver(C.panoId);
|
|
27488
27494
|
if (this.adjustPanoCircleMeshPositionBasedOnModel && this.helper.visible && Fe) {
|
|
27489
|
-
for (var Pe = [], _e = Fe.work.observers,
|
|
27490
|
-
var Be = Ce[
|
|
27495
|
+
for (var Pe = [], _e = Fe.work.observers, ge = 0, Ce = Fe.accessibleNodes; ge < Ce.length; ge++) {
|
|
27496
|
+
var Be = Ce[ge], Q = _e[Be];
|
|
27491
27497
|
Q && Pe.push(Q);
|
|
27492
27498
|
}
|
|
27493
27499
|
var je = /* @__PURE__ */ new Map();
|
|
@@ -27498,13 +27504,13 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
27498
27504
|
return typeof He == "undefined" && (He = Re.standingPosition.distanceTo(Fe.standingPosition), je.set(Re, He)), Me - He;
|
|
27499
27505
|
}), Pe.length) {
|
|
27500
27506
|
this.accessibleObserverFloorCheckCount = this.accessibleObserverFloorCheckCount % Pe.length;
|
|
27501
|
-
var
|
|
27502
|
-
return le.work === (
|
|
27507
|
+
var Qe = Pe[this.accessibleObserverFloorCheckCount], Ze = this.modelScene.models.find(function(le) {
|
|
27508
|
+
return le.work === (Qe == null ? void 0 : Qe.work);
|
|
27503
27509
|
});
|
|
27504
|
-
if (
|
|
27505
|
-
var At = 0.3,
|
|
27506
|
-
panoIndex:
|
|
27507
|
-
workCode:
|
|
27510
|
+
if (Qe && Ze && Ze.visible) {
|
|
27511
|
+
var At = 0.3, Je = 0.05, gt = 5e-3, we = Qe.standingPosition.clone().applyMatrix4(Qe.work.transform), Ue = panoStringify({
|
|
27512
|
+
panoIndex: Qe.panoIndex,
|
|
27513
|
+
workCode: Qe.work.workCode
|
|
27508
27514
|
}), dt = adjustPanoCircleMeshVectors.map(function(le) {
|
|
27509
27515
|
scratchRaycaster.ray.origin.copy(we), scratchRaycaster.ray.origin.add(scratchVector3.copy(le).setY(At)), scratchRaycaster.ray.direction.set(0, -1, 0), scratchRaycaster.firstHitOnly = !0, scratchRaycaster.floorIndex = -1;
|
|
27510
27516
|
var Re = Ze.intersectRaycaster(scratchRaycaster)[0];
|
|
@@ -27514,11 +27520,11 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
27514
27520
|
return Re.y - le.y;
|
|
27515
27521
|
});
|
|
27516
27522
|
var ht = dt[Math.floor(dt.length / 2)], Ge = dt.filter(function(le) {
|
|
27517
|
-
return le.distanceTo(ht) <=
|
|
27523
|
+
return le.distanceTo(ht) <= Je;
|
|
27518
27524
|
})[0];
|
|
27519
27525
|
if (Ge) {
|
|
27520
|
-
var nt = new THREE.Vector4(we.x, we.y, we.z, Ge.y - we.y), ct = this.adjustPanoCircleMeshPositionFix.get(
|
|
27521
|
-
ct && !nt.equals(ct) && (this.needsRender = !0), this.adjustPanoCircleMeshPositionFix.set(
|
|
27526
|
+
var nt = new THREE.Vector4(we.x, we.y, we.z, Ge.y - we.y), ct = this.adjustPanoCircleMeshPositionFix.get(Ue);
|
|
27527
|
+
ct && !nt.equals(ct) && (this.needsRender = !0), this.adjustPanoCircleMeshPositionFix.set(Ue, nt);
|
|
27522
27528
|
}
|
|
27523
27529
|
}
|
|
27524
27530
|
this.accessibleObserverFloorCheckCount++;
|
|
@@ -27529,22 +27535,22 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
27529
27535
|
for (var xe = 0, Ie = rt.accessibleNodes; xe < Ie.length; xe++) {
|
|
27530
27536
|
var Be = Ie[xe], Q = rt.work.observers[Be];
|
|
27531
27537
|
if (Q) {
|
|
27532
|
-
var
|
|
27538
|
+
var Ue = panoStringify({
|
|
27533
27539
|
panoIndex: Q.panoIndex,
|
|
27534
27540
|
workCode: Q.work.workCode
|
|
27535
27541
|
});
|
|
27536
|
-
oe.set(
|
|
27542
|
+
oe.set(Ue, Q);
|
|
27537
27543
|
}
|
|
27538
27544
|
}
|
|
27539
|
-
if (
|
|
27540
|
-
for (var Se = 0, ze =
|
|
27541
|
-
var Be = ze[Se], Q =
|
|
27545
|
+
if (Ne)
|
|
27546
|
+
for (var Se = 0, ze = Ne.accessibleNodes; Se < ze.length; Se++) {
|
|
27547
|
+
var Be = ze[Se], Q = Ne.work.observers[Be];
|
|
27542
27548
|
if (Q) {
|
|
27543
|
-
var
|
|
27549
|
+
var Ue = panoStringify({
|
|
27544
27550
|
panoIndex: Q.panoIndex,
|
|
27545
27551
|
workCode: Q.work.workCode
|
|
27546
27552
|
});
|
|
27547
|
-
oe.set(
|
|
27553
|
+
oe.set(Ue, Q);
|
|
27548
27554
|
}
|
|
27549
27555
|
}
|
|
27550
27556
|
if (this.panoMeshes.forEach(function(le, Re) {
|
|
@@ -28894,11 +28900,11 @@ void main() {
|
|
|
28894
28900
|
}
|
|
28895
28901
|
}
|
|
28896
28902
|
}
|
|
28897
|
-
return
|
|
28903
|
+
return initLegacyEvent(m), m.enableLayeringRendering = (g = e.enableLayeringRendering) !== null && g !== void 0 ? g : !1, m._buildInRendererType = "default", m._builtinRenderer = null, m;
|
|
28898
28904
|
}
|
|
28899
28905
|
return Object.defineProperty(t, "version", {
|
|
28900
28906
|
get: function() {
|
|
28901
|
-
return "6.6.0-alpha.
|
|
28907
|
+
return "6.6.0-alpha.9";
|
|
28902
28908
|
},
|
|
28903
28909
|
enumerable: !1,
|
|
28904
28910
|
configurable: !0
|
|
@@ -28927,22 +28933,18 @@ void main() {
|
|
|
28927
28933
|
enumerable: !1,
|
|
28928
28934
|
configurable: !0
|
|
28929
28935
|
}), t.prototype.dispose = function() {
|
|
28930
|
-
var e
|
|
28936
|
+
var e;
|
|
28931
28937
|
if (this.destroyed !== !0) {
|
|
28932
|
-
delete __FIVE_DEBUG__.instances[this.ident], this.emit("dispose"), this.destroyed = !0, this.pause(), this.stopAnimationLoop && (this.stopAnimationLoop(), delete this.stopAnimationLoop),
|
|
28933
|
-
var
|
|
28934
|
-
|
|
28935
|
-
var
|
|
28936
|
-
|
|
28937
|
-
for (var
|
|
28938
|
-
var
|
|
28939
|
-
|
|
28938
|
+
delete __FIVE_DEBUG__.instances[this.ident], this.emit("dispose"), this.destroyed = !0, this.pause(), this.stopAnimationLoop && (this.stopAnimationLoop(), delete this.stopAnimationLoop), this.off(), this.networkSubscribe.off(), this.controller && (this.controller.destroy(), this.controller = void 0);
|
|
28939
|
+
var r = this.getElement();
|
|
28940
|
+
r && r.parentNode && r.parentNode.removeChild(r);
|
|
28941
|
+
var o = this.modelScene.parameter;
|
|
28942
|
+
o.pano0 && o.pano0.map.dispose(), o.pano1 && o.pano1.map !== ((e = o.pano0) === null || e === void 0 ? void 0 : e.map) && o.pano1.map.dispose(), o.reset("pano0", "pano1");
|
|
28943
|
+
for (var s = 0, u = this.modelScene.children.slice(); s < u.length; s++) {
|
|
28944
|
+
var l = u[s];
|
|
28945
|
+
l.dispose && l.dispose(), this.modelScene.remove(l);
|
|
28940
28946
|
}
|
|
28941
|
-
this.
|
|
28942
|
-
d.dispose();
|
|
28943
|
-
}), this.meshOriginMaterialMap.forEach(function(d) {
|
|
28944
|
-
d.dispose();
|
|
28945
|
-
}), this.renderer instanceof InternalWebGLRenderer && this.renderer.forceContextLoss && this.renderer.forceContextLoss();
|
|
28947
|
+
this.modelScene.dispose(), this.scene.dispose(), this.xrCustomObjectsScene.dispose(), worksMap.set(this, emptyWorks), this.renderer && (this.renderer.render(new THREE.Scene(), new THREE.Camera()), this.renderer.setAnimationLoop(null)), this.renderer instanceof InternalWebGLRenderer && this.renderer.forceContextLoss && this.renderer.forceContextLoss();
|
|
28946
28948
|
}
|
|
28947
28949
|
}, t.prototype.setViewport = function(e) {
|
|
28948
28950
|
Object.assign(this.viewport, e), this.needsRender = !0, this.modelSceneNeedsRender = !0;
|