@realsee/five 6.7.0-alpha.25 → 6.7.0-alpha.27
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/assets/search.js +1 -1
- package/docs/classes/five.AdaptiveLuminancePass.html +1 -1
- package/docs/classes/five.BoundingMesh.html +1 -1
- package/docs/classes/five.EffectComposer.html +1 -1
- package/docs/classes/five.EyeDomeLightingPass.html +1 -1
- package/docs/classes/five.FivePass.html +1 -1
- package/docs/classes/five.FiveRenderer.html +1 -1
- 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.PanoCircleMesh.html +2 -2
- package/docs/classes/five.PanoCircleMeshCustom.html +3 -3
- package/docs/classes/five.PanoCircleMeshSolid.html +3 -3
- package/docs/classes/five.Parameter.html +1 -1
- package/docs/classes/five.Tile3D.html +1 -1
- package/docs/classes/five.TileNode.html +2 -2
- 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.IntersectMesh.html +2 -2
- package/docs/interfaces/five.LooseWorkWithExtrinsics.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.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 +7 -3
- 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.DynamicPathLinePluginController.html +1 -1
- package/docs/interfaces/plugins.DynamicPathLinePluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.DynamicPathLinePluginType.State.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 +3 -3
- package/five/index.js +18 -18
- package/five/index.mjs +197 -170
- 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.d.ts +1 -1
- package/shader-lib/index.js +17 -9
- package/shader-lib/index.mjs +208 -199
- 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 +16 -8
- 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 +18 -18
- 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: 12/
|
|
5
|
-
* Version: 6.7.0-alpha.
|
|
4
|
+
* Generated: 2025/12/11
|
|
5
|
+
* Version: 6.7.0-alpha.27
|
|
6
6
|
* Terms:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
* Update: July 28, 2021
|
|
@@ -13434,18 +13434,18 @@ function parse$1(n, t) {
|
|
|
13434
13434
|
if (typeof Ie != "string")
|
|
13435
13435
|
throw new Error("X3p: PointDataLink not found.");
|
|
13436
13436
|
Ie = pathJoin(le, Ie);
|
|
13437
|
-
var
|
|
13438
|
-
if (
|
|
13439
|
-
throw new Error("X3p: ".concat(
|
|
13440
|
-
for (var Se = getPointArray(
|
|
13437
|
+
var $e = se[Ie];
|
|
13438
|
+
if (!$e)
|
|
13439
|
+
throw new Error("X3p: ".concat($e, " not found."));
|
|
13440
|
+
for (var Se = getPointArray($e.buffer, Ve.z.dataType), ze = Number((oe = (ve = xe.querySelector("Record3 MatrixDimension SizeX")) === null || ve === void 0 ? void 0 : ve.textContent) !== null && oe !== void 0 ? oe : "0"), Fe = Number((Ee = (de = xe.querySelector("Record3 MatrixDimension SizeY")) === null || de === void 0 ? void 0 : de.textContent) !== null && Ee !== void 0 ? Ee : "0"), Oe = Math.floor(ze - 1), Le = Math.floor(Fe - 1), Ue = Oe + 1, tt = Le + 1, lt = new Float32Array(Ue * tt * 3), nt = new Float32Array(Ue * tt * 2), ot = new Uint32Array(Oe * Le * 6), At = new THREE.Box3(), We = 0; We < tt; We++)
|
|
13441
13441
|
for (var Ct = We * Ve.y.increment + Ve.y.offset, _e = 0; _e < Ue; _e++) {
|
|
13442
13442
|
var Ne = We * Ue + _e, bt = _e * Ve.x.increment + Ve.x.offset, It = Se[Ne], Tt = !isNaN(It), yt = Tt ? It : NaN;
|
|
13443
13443
|
_vector.set(bt, -Ct, yt), ye && _vector.applyMatrix3(ye), Tt && At.expandByPoint(_vector), lt[Ne * 3 + 0] = _vector.x, lt[Ne * 3 + 1] = _vector.y, lt[Ne * 3 + 2] = _vector.z, nt[Ne * 2 + 0] = _e / Oe, nt[Ne * 2 + 1] = 1 - We / Le;
|
|
13444
13444
|
}
|
|
13445
13445
|
for (var We = 0; We < Le; We++)
|
|
13446
13446
|
for (var _e = 0; _e < Oe; _e++) {
|
|
13447
|
-
var Rt = _e + Ue * We,
|
|
13448
|
-
ot[Xe + 0] = Rt, ot[Xe + 1] =
|
|
13447
|
+
var Rt = _e + Ue * We, rt = _e + Ue * (We + 1), it = _e + 1 + Ue * (We + 1), ct = _e + 1 + Ue * We, Xe = (We * Oe + _e) * 6;
|
|
13448
|
+
ot[Xe + 0] = Rt, ot[Xe + 1] = rt, ot[Xe + 2] = ct, ot[Xe + 3] = rt, ot[Xe + 4] = it, ot[Xe + 5] = ct;
|
|
13449
13449
|
}
|
|
13450
13450
|
var fe = new THREE.BufferGeometry();
|
|
13451
13451
|
fe.setAttribute("position", new THREE.BufferAttribute(lt, 3)), fe.setAttribute("uv", new THREE.BufferAttribute(nt, 2)), fe.setIndex(new THREE.BufferAttribute(ot, 1)), (!fe.groups || fe.groups.length === 0) && fe.addGroup(0, fe.index ? fe.index.count : fe.attributes.position.count, 0), fe.boundingBox = At;
|
|
@@ -14532,7 +14532,7 @@ var Motion = (
|
|
|
14532
14532
|
return n * n * n;
|
|
14533
14533
|
}, easeInQuart = function(n) {
|
|
14534
14534
|
return n * n * n * n;
|
|
14535
|
-
}, APPEAR_ANIMATION_DURATION = 500, versionMap$1 = /* @__PURE__ */ new WeakMap(), TileNode = (
|
|
14535
|
+
}, APPEAR_ANIMATION_DURATION = 500, versionMap$1 = /* @__PURE__ */ new WeakMap(), scratchIntersectPoint = new THREE.Vector3(), scratchClippingBoxMatrixInverse = new THREE.Matrix4(), TileNode = (
|
|
14536
14536
|
/** @class */
|
|
14537
14537
|
(function(n) {
|
|
14538
14538
|
__extends(t, n);
|
|
@@ -14561,10 +14561,17 @@ var Motion = (
|
|
|
14561
14561
|
var h = 0, p = -1;
|
|
14562
14562
|
if ((d.object instanceof PBMMesh || d.object instanceof PBMSkinnedMesh || d.object instanceof PBMPointCloud) && d.face) {
|
|
14563
14563
|
var g = Array.isArray(d.object.material) ? d.object.material[d.face.materialIndex] : d.object.material;
|
|
14564
|
-
|
|
14564
|
+
if (g) {
|
|
14565
|
+
h = g.floorIndex, p = g.shownFloorIndex;
|
|
14566
|
+
for (var m = 0, E = g.clippers; m < E.length; m++) {
|
|
14567
|
+
var y = E[m];
|
|
14568
|
+
if (!(typeof y.floorIndex == "number" && y.floorIndex !== h) && (scratchClippingBoxMatrixInverse.getInverse(y.clippingBoxMatrix), scratchIntersectPoint.copy(d.point).applyMatrix4(scratchClippingBoxMatrixInverse), Math.abs(scratchIntersectPoint.x) < 0.5 && Math.abs(scratchIntersectPoint.y) < 0.5 && Math.abs(scratchIntersectPoint.z) < 0.5))
|
|
14569
|
+
return !1;
|
|
14570
|
+
}
|
|
14571
|
+
}
|
|
14565
14572
|
}
|
|
14566
|
-
var
|
|
14567
|
-
return e.floorIndex !== void 0 ?
|
|
14573
|
+
var v = p;
|
|
14574
|
+
return e.floorIndex !== void 0 ? v = e.floorIndex : e.floor !== void 0 && (v = e.floor === null ? -1 : e.floor), v >= 0 && h !== v ? !1 : (Object.assign(d, { floorIndex: h, floor: h }), s ? s.call(e, d) : !0);
|
|
14568
14575
|
};
|
|
14569
14576
|
for (var u = this.children.slice(), l; l = u.pop(); )
|
|
14570
14577
|
if (l.visible) {
|
|
@@ -14611,7 +14618,7 @@ function updatePBMMesh(n, t, e, r, o, s, u) {
|
|
|
14611
14618
|
versionMap$1.set(n, u.version), l = !0, n.castShadow = u.castShadow, n.receiveShadow = u.receiveShadow;
|
|
14612
14619
|
for (var c = n.material, f = 0, d = c; f < d.length; f++) {
|
|
14613
14620
|
var h = d[f];
|
|
14614
|
-
h.customShaders = u.customShaders, h.pano0 = u.pano0, h.pano1 = u.pano1, h.pano0Depth = u.pano0Depth, h.pano1Depth = u.pano1Depth, h.refinedScreen = u.refinedScreen, h.modelAlpha = u.modelAlpha, h.progress = u.progress, h.transition = u.transition, h.opacity = u.opacity, h.floorStyle = u.floorStyle, h.constantColor = u.constantColor, h.shownFloorIndex = u.shownFloorIndex, h.clippers = u.clippers, h.brightness = u.brightness, h.useHQWeight = u.useHQWeight, h.useHQDepth = u.useHQDepth, h.colorSaturation = u.colorSaturation, h.colorBrightness = u.colorBrightness, h.gradientTexture = u.gradientTexture, h.vertexMarks = u.vertexMarks, h.modelBoundingMax.copy(u.boundingBox.max), h.modelBoundingMin.copy(u.boundingBox.min), h.shaderType === "none" ? (h.transparent = !0, h.blending = THREE.NormalBlending, h.blendDst = THREE.OneMinusSrcAlphaFactor, h.blendEquation = THREE.AddEquation, h.blendSrcAlpha = null, h.blendDstAlpha = null, h.blendEquationAlpha = null, h.depthWrite = !1, h.depthTest = !0) : (h.transparent = h.alphaMode === "BLEND", h.blending = THREE.NormalBlending, h.blendDst = THREE.OneMinusSrcAlphaFactor, h.blendEquation = THREE.AddEquation, h.blendSrcAlpha = null, h.blendDstAlpha = null, h.blendEquationAlpha = null, h.depthWrite = !0, h.depthTest = !0, u.useAddBlend && (h.depthWrite = !1, h.depthTest = !1, h.blending = THREE.AdditiveBlending), h.shownFloorIndex > -1 && h.shownFloorIndex !== h.floorIndex && (h.transparent = !0), h.opacity < 1 && (h.transparent = !0), h.alphaMap && (h.transparent = !0), h.brightness < 1 && (h.transparent = !0), h.depthWrite = !h.transparent, u.useAddBlend && (h.depthWrite = !1, h.depthTest = !1, h.blending = THREE.AdditiveBlending));
|
|
14621
|
+
h.customShaders = u.customShaders, h.pano0 = u.pano0, h.pano1 = u.pano1, h.pano0Depth = u.pano0Depth, h.pano1Depth = u.pano1Depth, h.refinedScreen = u.refinedScreen, h.modelAlpha = u.modelAlpha, h.progress = u.progress, h.transition = u.transition, h.opacity = u.opacity, h.floorStyle = u.floorStyle, h.constantColor = u.constantColor, h.shownFloorIndex = u.shownFloorIndex, h.clippers = u.clippers, h.brightness = u.brightness, h.useHQWeight = u.useHQWeight, h.useHQDepth = u.useHQDepth, h.colorSaturation = u.colorSaturation, h.colorBrightness = u.colorBrightness, h.gradientTexture = u.gradientTexture, h.vertexMarks = u.vertexMarks, h.modelBoundingMax.copy(u.boundingBox.max), h.modelBoundingMin.copy(u.boundingBox.min), h.shaderType === "none" ? (h.transparent = !0, h.blending = THREE.NormalBlending, h.blendDst = THREE.OneMinusSrcAlphaFactor, h.blendEquation = THREE.AddEquation, h.blendSrcAlpha = null, h.blendDstAlpha = null, h.blendEquationAlpha = null, h.depthWrite = !1, h.depthTest = !0) : (h.transparent = h.alphaMode === "BLEND", h.blending = THREE.NormalBlending, h.blendDst = THREE.OneMinusSrcAlphaFactor, h.blendEquation = THREE.AddEquation, h.blendSrcAlpha = null, h.blendDstAlpha = null, h.blendEquationAlpha = null, h.depthWrite = !0, h.depthTest = !0, u.useAddBlend && (h.depthWrite = !1, h.depthTest = !1, h.blending = THREE.AdditiveBlending), h.shownFloorIndex > -1 && h.shownFloorIndex !== h.floorIndex && (h.transparent = !0), h.opacity < 1 && (h.transparent = !0), h.alphaMap && (h.transparent = !0), h.brightness < 1 && (h.transparent = !0), h.modelAlpha <= 0 && (h.transparent = !1), h.depthWrite = !h.transparent, u.useAddBlend && (h.depthWrite = !1, h.depthTest = !1, h.blending = THREE.AdditiveBlending));
|
|
14615
14622
|
}
|
|
14616
14623
|
}
|
|
14617
14624
|
return l;
|
|
@@ -17379,7 +17386,7 @@ var versionMap = /* @__PURE__ */ new WeakMap(), cameraBoxSize = new THREE.Vector
|
|
|
17379
17386
|
function t(e) {
|
|
17380
17387
|
e === void 0 && (e = {});
|
|
17381
17388
|
var r = this, o, s = new PBMMeshMaterial("none");
|
|
17382
|
-
return s.flatShading = !0, s.depthWrite = !1, s.transparent = !1, s.blending = THREE.CustomBlending, s.blendSrc = THREE.SrcAlphaFactor, s.blendDst = THREE.OneMinusSrcAlphaFactor, s.blendSrcAlpha = THREE.OneFactor, s.blendDstAlpha = THREE.OneMinusSrcAlphaFactor, r = n.call(this, scratchGeometry, [s]) || this, r.name = (o = e.name) !== null && o !== void 0 ? o : "", r.frustumCulled = !1, r.renderOrder = -999999, r;
|
|
17389
|
+
return s.flatShading = !0, s.depthWrite = !1, s.transparent = !1, s.blending = THREE.CustomBlending, s.blendSrc = THREE.SrcAlphaFactor, s.blendDst = THREE.OneMinusSrcAlphaFactor, s.blendSrcAlpha = THREE.OneFactor, s.blendDstAlpha = THREE.OneMinusSrcAlphaFactor, s.floorIndex = -1, r = n.call(this, scratchGeometry, [s]) || this, r.name = (o = e.name) !== null && o !== void 0 ? o : "", r.frustumCulled = !1, r.renderOrder = -999999, r;
|
|
17383
17390
|
}
|
|
17384
17391
|
return t.prototype.update = function(e, r, o) {
|
|
17385
17392
|
var s = !1, u = Parameter.resolveValue(o.parameter);
|
|
@@ -19040,13 +19047,15 @@ var EffectComposer = (
|
|
|
19040
19047
|
}, n.prototype.insertPass = function(t, e) {
|
|
19041
19048
|
this.passes.splice(e, 0, t);
|
|
19042
19049
|
}, n.prototype.render = function(t) {
|
|
19050
|
+
var e = !1;
|
|
19043
19051
|
this.renderTarget1.texture.encoding = t.outputEncoding, this.renderTarget2.texture.encoding = t.outputEncoding;
|
|
19044
|
-
for (var
|
|
19045
|
-
return
|
|
19046
|
-
}),
|
|
19047
|
-
var
|
|
19048
|
-
|
|
19052
|
+
for (var r = this.clock.getDelta(), o = !1, s = this.passes.filter(function(f) {
|
|
19053
|
+
return f.enabled;
|
|
19054
|
+
}), u = 0; u < s.length; u++) {
|
|
19055
|
+
var l = s[u], c = u === s.length - 1;
|
|
19056
|
+
l.renderToScreen = this.renderToScreen && c, l.renderToScreen && (e = !0), l.gbuffer = this.gbuffer, l.render(t, this.writeBuffer, this.readBuffer, r, o), l.gbuffer = null, l.needsSwap && this.swapBuffers();
|
|
19049
19057
|
}
|
|
19058
|
+
return e;
|
|
19050
19059
|
}, n.prototype.setSize = function(t, e) {
|
|
19051
19060
|
this.renderTarget1.setSize(t, e), this.renderTarget2.setSize(t, e);
|
|
19052
19061
|
for (var r = 0; r < this.passes.length; r++)
|
|
@@ -19269,7 +19278,7 @@ var AdaptiveLuminancePass = (
|
|
|
19269
19278
|
__extends(t, n);
|
|
19270
19279
|
function t() {
|
|
19271
19280
|
var e = n.call(this) || this;
|
|
19272
|
-
e.progress = 0, e.luminanceScreenSampleScale = 0.6, e.luminanceScale =
|
|
19281
|
+
e.progress = 0, e.luminanceScreenSampleScale = 0.6, e.luminanceScale = 0.3, e.luminanceStep = 0.01;
|
|
19273
19282
|
var r = e.enabled;
|
|
19274
19283
|
return Object.defineProperty(e, "enabled", {
|
|
19275
19284
|
get: function() {
|
|
@@ -19400,10 +19409,11 @@ void main() {
|
|
|
19400
19409
|
/** @class */
|
|
19401
19410
|
(function() {
|
|
19402
19411
|
function n() {
|
|
19412
|
+
this.name = "SceneRenderer";
|
|
19403
19413
|
}
|
|
19404
19414
|
return n.prototype.clearBuffers = function() {
|
|
19405
|
-
}, n.prototype.render = function(t, e, r, o, s) {
|
|
19406
|
-
t.setRenderTarget(
|
|
19415
|
+
}, n.prototype.render = function(t, e, r, o, s, u) {
|
|
19416
|
+
return s ? (t.setRenderTarget(u), t.render(e, o), !0) : !1;
|
|
19407
19417
|
}, n;
|
|
19408
19418
|
})()
|
|
19409
19419
|
), scratchViewport$3 = new THREE.Vector4(), sampleVertexShader = `
|
|
@@ -19441,49 +19451,53 @@ var SSAASceneRnderer = (
|
|
|
19441
19451
|
__extends(t, n);
|
|
19442
19452
|
function t() {
|
|
19443
19453
|
var e = n !== null && n.apply(this, arguments) || this;
|
|
19444
|
-
return e.
|
|
19454
|
+
return e.name = "SSAASceneRnderer", e.sampleLevel = 2, e.unbiased = !0, e.sampleRenderTarget = null, e;
|
|
19445
19455
|
}
|
|
19446
19456
|
return t.prototype.clearBuffers = function() {
|
|
19447
19457
|
n.prototype.clearBuffers.call(this), this.sampleRenderTarget && (this.sampleRenderTarget.dispose(), this.sampleRenderTarget = null);
|
|
19448
|
-
}, t.prototype.render = function(e, r, o, s, u) {
|
|
19449
|
-
|
|
19458
|
+
}, t.prototype.render = function(e, r, o, s, u, l) {
|
|
19459
|
+
if (this.sampleLevel < 0)
|
|
19460
|
+
return n.prototype.render.call(this, e, r, o, s, !0, l);
|
|
19461
|
+
if (!u)
|
|
19462
|
+
return !1;
|
|
19463
|
+
var c = e.getPixelRatio(), f = e.getViewport(scratchViewport$3), d = f.width * c, h = f.height * c;
|
|
19450
19464
|
this.sampleRenderTarget || (this.sampleRenderTarget = new THREE.WebGLRenderTarget(1, 1, {
|
|
19451
19465
|
minFilter: THREE.LinearFilter,
|
|
19452
19466
|
magFilter: THREE.LinearFilter,
|
|
19453
19467
|
format: THREE.RGBAFormat,
|
|
19454
19468
|
stencilBuffer: !0,
|
|
19455
19469
|
depthBuffer: !0
|
|
19456
|
-
}), this.sampleRenderTarget.texture.name = "
|
|
19457
|
-
var
|
|
19470
|
+
}), this.sampleRenderTarget.texture.name = "".concat(this.name, ".sample")), this.sampleRenderTarget.texture.encoding = e.outputEncoding, this.sampleRenderTarget.setSize(d, h), l != null && l.depthTexture && (e.setRenderTarget(l), e.render(r, s));
|
|
19471
|
+
var p = JitterVectors[Math.max(0, Math.min(this.sampleLevel, 5))], g = e.autoClear;
|
|
19458
19472
|
e.autoClear = !1;
|
|
19459
|
-
var
|
|
19460
|
-
fullWidth:
|
|
19461
|
-
fullHeight:
|
|
19473
|
+
var m = e.getClearColor().getHex(), E = e.getClearAlpha(), y = 1 / p.length, v = 1 / 32, A = {
|
|
19474
|
+
fullWidth: d,
|
|
19475
|
+
fullHeight: h,
|
|
19462
19476
|
offsetX: 0,
|
|
19463
19477
|
offsetY: 0,
|
|
19464
|
-
width:
|
|
19465
|
-
height:
|
|
19466
|
-
},
|
|
19467
|
-
|
|
19468
|
-
for (var
|
|
19469
|
-
var
|
|
19478
|
+
width: d,
|
|
19479
|
+
height: h
|
|
19480
|
+
}, b = Object.assign({}, s.view);
|
|
19481
|
+
b.enabled && Object.assign(A, b);
|
|
19482
|
+
for (var T = 0; T < p.length; T++) {
|
|
19483
|
+
var S = p[T];
|
|
19470
19484
|
s.setViewOffset && s.setViewOffset(
|
|
19471
|
-
|
|
19472
|
-
|
|
19473
|
-
|
|
19474
|
-
|
|
19485
|
+
A.fullWidth,
|
|
19486
|
+
A.fullHeight,
|
|
19487
|
+
A.offsetX + S[0] * 0.0625,
|
|
19488
|
+
A.offsetY + S[1] * 0.0625,
|
|
19475
19489
|
// 0.0625 = 1 / 16
|
|
19476
|
-
|
|
19477
|
-
|
|
19490
|
+
A.width,
|
|
19491
|
+
A.height
|
|
19478
19492
|
);
|
|
19479
|
-
var
|
|
19493
|
+
var R = y;
|
|
19480
19494
|
if (this.unbiased) {
|
|
19481
|
-
var
|
|
19482
|
-
|
|
19495
|
+
var M = -0.5 + (T + 0.5) / p.length;
|
|
19496
|
+
R += v * M;
|
|
19483
19497
|
}
|
|
19484
|
-
e.
|
|
19498
|
+
e.setRenderTarget(this.sampleRenderTarget), e.setClearColor(m, E), e.clear(), e.render(r, s), e.setRenderTarget(l), T === 0 && (e.setClearColor(0, 0), e.clearColor(), e.clearStencil()), renderSample(e, this.sampleRenderTarget.texture, R);
|
|
19485
19499
|
}
|
|
19486
|
-
s.setViewOffset &&
|
|
19500
|
+
return s.setViewOffset && b.enabled ? s.setViewOffset(b.fullWidth, b.fullHeight, b.offsetX, b.offsetY, b.width, b.height) : s.clearViewOffset && s.clearViewOffset(), s.needsRender = !1, e.autoClear = g, e.setClearColor(m, E), !0;
|
|
19487
19501
|
}, t;
|
|
19488
19502
|
})(SceneRenderer)
|
|
19489
19503
|
), JitterVectors = [
|
|
@@ -19629,12 +19643,14 @@ var PointCloudHighQualitySceneRnderer = (
|
|
|
19629
19643
|
__extends(t, n);
|
|
19630
19644
|
function t() {
|
|
19631
19645
|
var e = n !== null && n.apply(this, arguments) || this;
|
|
19632
|
-
return e.tempRenderTarget = null, e;
|
|
19646
|
+
return e.name = "PointCloudHighQualitySceneRnderer", e.tempRenderTarget = null, e;
|
|
19633
19647
|
}
|
|
19634
19648
|
return t.prototype.clearBuffers = function() {
|
|
19635
19649
|
n.prototype.clearBuffers.call(this), this.tempRenderTarget && (this.tempRenderTarget.dispose(), this.tempRenderTarget = null);
|
|
19636
|
-
}, t.prototype.render = function(e, r, o, s, u) {
|
|
19637
|
-
|
|
19650
|
+
}, t.prototype.render = function(e, r, o, s, u, l) {
|
|
19651
|
+
if (!u)
|
|
19652
|
+
return !1;
|
|
19653
|
+
var c = e.getPixelRatio(), f = e.getViewport(scratchViewport$2), d = f.width * c, h = f.height * c;
|
|
19638
19654
|
this.tempRenderTarget || (this.tempRenderTarget = new THREE.WebGLRenderTarget(1, 1, {
|
|
19639
19655
|
magFilter: THREE.LinearFilter,
|
|
19640
19656
|
minFilter: THREE.LinearFilter,
|
|
@@ -19642,15 +19658,15 @@ var PointCloudHighQualitySceneRnderer = (
|
|
|
19642
19658
|
generateMipmaps: !1,
|
|
19643
19659
|
depthBuffer: !0,
|
|
19644
19660
|
stencilBuffer: !0
|
|
19645
|
-
}), this.tempRenderTarget.texture.name = "
|
|
19646
|
-
var
|
|
19647
|
-
if (!
|
|
19648
|
-
var
|
|
19649
|
-
|
|
19650
|
-
}
|
|
19651
|
-
this.tempRenderTarget.texture.encoding = e.outputEncoding, this.tempRenderTarget.setSize(
|
|
19652
|
-
var
|
|
19653
|
-
e.autoClearColor = !0, e.autoClearDepth = !0, e.setClearColor(new THREE.Color(0, 0, 0)), e.setClearAlpha(0), o.parameter.set("useHQDepth", !0), o.parameter.set("useHQWeight", !1), o.update(e, s), e.setRenderTarget(this.tempRenderTarget), e.render(r, s), o.parameter.set("useHQDepth", !1), o.parameter.set("useHQWeight", !0), o.update(e, s), e.autoClearDepth = !1, e.autoClearColor = !0, e.render(r, s), o.parameter.set("useHQDepth", !1), o.parameter.set("useHQWeight", !1), o.update(e, s), o.needsRender = !1, e.setClearColor(
|
|
19661
|
+
}), this.tempRenderTarget.texture.name = "".concat(this.name, ".temp"));
|
|
19662
|
+
var p = this.tempRenderTarget.depthTexture;
|
|
19663
|
+
if (!p || p.image.width !== d || p.image.height !== h) {
|
|
19664
|
+
var g = new THREE.DepthTexture(d, h);
|
|
19665
|
+
g.generateMipmaps = !1, g.format = THREE.DepthStencilFormat, g.type = THREE.UnsignedInt248Type, g.needsUpdate = !0, this.tempRenderTarget.depthTexture = g, p && p.dispose(), this.tempRenderTarget.dispose();
|
|
19666
|
+
}
|
|
19667
|
+
this.tempRenderTarget.texture.encoding = e.outputEncoding, this.tempRenderTarget.setSize(d, h);
|
|
19668
|
+
var m = e.getClearColor().clone(), E = e.getClearAlpha();
|
|
19669
|
+
return e.autoClearColor = !0, e.autoClearDepth = !0, e.setClearColor(new THREE.Color(0, 0, 0)), e.setClearAlpha(0), o.parameter.set("useHQDepth", !0), o.parameter.set("useHQWeight", !1), o.update(e, s), e.setRenderTarget(this.tempRenderTarget), e.render(r, s), o.parameter.set("useHQDepth", !1), o.parameter.set("useHQWeight", !0), o.update(e, s), e.autoClearDepth = !1, e.autoClearColor = !0, e.render(r, s), o.parameter.set("useHQDepth", !1), o.parameter.set("useHQWeight", !1), o.update(e, s), o.needsRender = !1, e.setClearColor(m, E), e.autoClearDepth = !0, e.autoClearColor = !0, e.setRenderTarget(l), renderFullScreenDepth(e, this.tempRenderTarget.depthTexture), e.autoClearDepth = !1, renderPointCloudHighQualityFullScreen(e, this.tempRenderTarget.texture, this.tempRenderTarget.depthTexture), e.autoClearDepth = !0, !0;
|
|
19654
19670
|
}, t;
|
|
19655
19671
|
})(SceneRenderer)
|
|
19656
19672
|
), scratchViewport$1 = new THREE.Vector4(), normalMaterial = new THREE.MeshNormalMaterial({
|
|
@@ -19677,22 +19693,23 @@ var PointCloudHighQualitySceneRnderer = (
|
|
|
19677
19693
|
"point-cloud-high-quality": new PointCloudHighQualitySceneRnderer()
|
|
19678
19694
|
};
|
|
19679
19695
|
}
|
|
19680
|
-
return n.prototype.renderSceneToBuffers = function(t, e, r, o, s) {
|
|
19681
|
-
var
|
|
19682
|
-
|
|
19683
|
-
for (var
|
|
19684
|
-
var
|
|
19685
|
-
|
|
19696
|
+
return n.prototype.renderSceneToBuffers = function(t, e, r, o, s, u) {
|
|
19697
|
+
var l = this.composer, c = l.gbuffer, f = l.status, d = f.needsColorGBuffer, h = f.needsDepthGBuffer, p = f.needsNormalGBuffer, g = !1;
|
|
19698
|
+
c.clear(), this.colorRenderTarget.texture.encoding = t.outputEncoding, this.normalRenderTarget.texture.encoding = t.outputEncoding;
|
|
19699
|
+
for (var m in this.sceneRenders) {
|
|
19700
|
+
var E = m;
|
|
19701
|
+
E !== this.renderMode && this.sceneRenders[E].clearBuffers();
|
|
19686
19702
|
}
|
|
19687
19703
|
if (this.sceneRenders[this.renderMode]) {
|
|
19688
|
-
var
|
|
19689
|
-
this.sceneRenders[this.renderMode].render(t, e, r, o,
|
|
19704
|
+
var y = u ? null : this.colorRenderTarget;
|
|
19705
|
+
g = this.sceneRenders[this.renderMode].render(t, e, r, o, s, y);
|
|
19690
19706
|
}
|
|
19691
|
-
if (
|
|
19707
|
+
if (d && c.set("color", this.colorRenderTarget.texture), h && c.set("depth", this.colorRenderTarget.depthTexture), p) {
|
|
19692
19708
|
t.setRenderTarget(this.normalRenderTarget);
|
|
19693
|
-
var
|
|
19694
|
-
e.overrideMaterial = normalMaterial, t.setRenderTarget(this.normalRenderTarget), t.render(e, o), e.overrideMaterial =
|
|
19709
|
+
var v = e.overrideMaterial;
|
|
19710
|
+
e.overrideMaterial = normalMaterial, t.setRenderTarget(this.normalRenderTarget), t.render(e, o), e.overrideMaterial = v, c.set("normal", this.normalRenderTarget.texture);
|
|
19695
19711
|
}
|
|
19712
|
+
return g;
|
|
19696
19713
|
}, n.prototype.render = function(t, e, r, o, s) {
|
|
19697
19714
|
var u = !1;
|
|
19698
19715
|
this.composer.updateStatus();
|
|
@@ -19700,7 +19717,7 @@ var PointCloudHighQualitySceneRnderer = (
|
|
|
19700
19717
|
t.setRenderTarget(null);
|
|
19701
19718
|
var c = this.composer.status, f = c.endabledPassNumber, d = c.needsDepthGBuffer, h = c.needsNormalGBuffer, p = c.version;
|
|
19702
19719
|
if (f === 0)
|
|
19703
|
-
this.colorRenderTarget.depthTexture && (this.colorRenderTarget.depthTexture.dispose(), this.colorRenderTarget.depthTexture = null, this.colorRenderTarget.dispose()), this.colorRenderTarget.setSize(1, 1), this.normalRenderTarget.setSize(1, 1), this.composer.setSize(1, 1), this.composerVersion = "",
|
|
19720
|
+
this.colorRenderTarget.depthTexture && (this.colorRenderTarget.depthTexture.dispose(), this.colorRenderTarget.depthTexture = null, this.colorRenderTarget.dispose()), this.colorRenderTarget.setSize(1, 1), this.normalRenderTarget.setSize(1, 1), this.composer.setSize(1, 1), this.composerVersion = "", u = this.renderSceneToBuffers(t, e, r, o, s, !0);
|
|
19704
19721
|
else {
|
|
19705
19722
|
var g = t.getPixelRatio(), m = t.getViewport(scratchViewport$1), E = m.width * g, y = m.height * g;
|
|
19706
19723
|
if (this.composer.setSize(E, y), s === !1 && p !== this.composerVersion && (this.composerVersion = p, s = !0), s) {
|
|
@@ -19712,9 +19729,9 @@ var PointCloudHighQualitySceneRnderer = (
|
|
|
19712
19729
|
}
|
|
19713
19730
|
} else
|
|
19714
19731
|
this.colorRenderTarget.depthTexture && (this.colorRenderTarget.depthTexture.dispose(), this.colorRenderTarget.depthTexture = null, this.colorRenderTarget.dispose());
|
|
19715
|
-
this.colorRenderTarget.setSize(E, y), h ? this.normalRenderTarget.setSize(E, y) : this.normalRenderTarget.setSize(1, 1)
|
|
19732
|
+
this.colorRenderTarget.setSize(E, y), h ? this.normalRenderTarget.setSize(E, y) : this.normalRenderTarget.setSize(1, 1);
|
|
19716
19733
|
}
|
|
19717
|
-
t.setRenderTarget(this.composer.readBuffer), renderFullScreen(t, this.colorRenderTarget.texture), this.composer.render(t)
|
|
19734
|
+
this.renderSceneToBuffers(t, e, r, o, s, !1), t.setRenderTarget(this.composer.readBuffer), renderFullScreen(t, this.colorRenderTarget.texture), u = this.composer.render(t);
|
|
19718
19735
|
}
|
|
19719
19736
|
return t.setRenderTarget(l), u;
|
|
19720
19737
|
}, n.prototype.dispose = function() {
|
|
@@ -19975,6 +19992,7 @@ void main() {
|
|
|
19975
19992
|
blendSrcAlpha: THREE.OneFactor,
|
|
19976
19993
|
blendDstAlpha: THREE.OneMinusSrcAlphaFactor,
|
|
19977
19994
|
depthWrite: !1,
|
|
19995
|
+
transparent: !0,
|
|
19978
19996
|
vertexShader: vertexShader$4,
|
|
19979
19997
|
fragmentShader: fragmentShader$4,
|
|
19980
19998
|
uniforms: {
|
|
@@ -20269,6 +20287,7 @@ void main() {
|
|
|
20269
20287
|
blendSrcAlpha: THREE.OneFactor,
|
|
20270
20288
|
blendDstAlpha: THREE.OneMinusSrcAlphaFactor,
|
|
20271
20289
|
depthWrite: !1,
|
|
20290
|
+
transparent: !0,
|
|
20272
20291
|
vertexShader: vertexShader$3,
|
|
20273
20292
|
fragmentShader: fragmentShader$3,
|
|
20274
20293
|
uniforms: {
|
|
@@ -20582,6 +20601,7 @@ void main() {
|
|
|
20582
20601
|
blendSrcAlpha: THREE.OneFactor,
|
|
20583
20602
|
blendDstAlpha: THREE.OneMinusSrcAlphaFactor,
|
|
20584
20603
|
depthWrite: !1,
|
|
20604
|
+
transparent: !0,
|
|
20585
20605
|
vertexShader: vertexShader$2,
|
|
20586
20606
|
fragmentShader: fragmentShader$2,
|
|
20587
20607
|
defines: {
|
|
@@ -20963,8 +20983,8 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20963
20983
|
var Te = B[ce][_];
|
|
20964
20984
|
O(Y, Te) < 0 && V.push(B[ce]), Y[ce] = Te, ce++;
|
|
20965
20985
|
}
|
|
20966
|
-
return V = V.sort(function(
|
|
20967
|
-
return
|
|
20986
|
+
return V = V.sort(function(Ze, De) {
|
|
20987
|
+
return Ze[_] > De[_];
|
|
20968
20988
|
}), V;
|
|
20969
20989
|
}
|
|
20970
20990
|
function H(B, _) {
|
|
@@ -21012,7 +21032,7 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21012
21032
|
};
|
|
21013
21033
|
function le(B) {
|
|
21014
21034
|
var _, N = B.options.inputClass;
|
|
21015
|
-
return N ? _ = N : z ? _ =
|
|
21035
|
+
return N ? _ = N : z ? _ = tt : J ? _ = Ne : U ? _ = yt : _ = ze, new _(B, me);
|
|
21016
21036
|
}
|
|
21017
21037
|
function me(B, _, N) {
|
|
21018
21038
|
var V = N.pointers.length, Y = N.changedPointers.length, ce = _ & ee && V - Y === 0, Te = _ & ($ | X) && V - Y === 0;
|
|
@@ -21021,8 +21041,8 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21021
21041
|
function ge(B, _) {
|
|
21022
21042
|
var N = B.session, V = _.pointers, Y = V.length;
|
|
21023
21043
|
N.firstInput || (N.firstInput = be(_)), Y > 1 && !N.firstMultiple ? N.firstMultiple = be(_) : Y === 1 && (N.firstMultiple = !1);
|
|
21024
|
-
var ce = N.firstInput, Te = N.firstMultiple,
|
|
21025
|
-
_.timeStamp = f(), _.deltaTime = _.timeStamp - ce.timeStamp, _.angle = Ve(
|
|
21044
|
+
var ce = N.firstInput, Te = N.firstMultiple, Ge = Te ? Te.center : ce.center, Ze = _.center = He(V);
|
|
21045
|
+
_.timeStamp = f(), _.deltaTime = _.timeStamp - ce.timeStamp, _.angle = Ve(Ge, Ze), _.distance = he(Ge, Ze), Ae(N, _), _.offsetDirection = xe(_.deltaX, _.deltaY);
|
|
21026
21046
|
var De = Ce(_.deltaTime, _.deltaX, _.deltaY);
|
|
21027
21047
|
_.overallVelocityX = De.x, _.overallVelocityY = De.y, _.overallVelocity = c(De.x) > c(De.y) ? De.x : De.y, _.scale = Te ? Be(Te.pointers, V) : 1, _.rotation = Te ? ye(Te.pointers, V) : 0, _.maxPointers = N.prevInput ? _.pointers.length > N.prevInput.maxPointers ? _.pointers.length : N.prevInput.maxPointers : _.pointers.length, ue(N, _);
|
|
21028
21048
|
var St = B.element;
|
|
@@ -21039,13 +21059,13 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21039
21059
|
}), _.deltaX = Y.x + (N.x - V.x), _.deltaY = Y.y + (N.y - V.y);
|
|
21040
21060
|
}
|
|
21041
21061
|
function ue(B, _) {
|
|
21042
|
-
var N = B.lastInterval || _, V = _.timeStamp - N.timeStamp, Y, ce, Te,
|
|
21062
|
+
var N = B.lastInterval || _, V = _.timeStamp - N.timeStamp, Y, ce, Te, Ge;
|
|
21043
21063
|
if (_.eventType != X && (V > ae || N.velocity === r)) {
|
|
21044
|
-
var
|
|
21045
|
-
ce = St.x, Te = St.y, Y = c(St.x) > c(St.y) ? St.x : St.y,
|
|
21064
|
+
var Ze = _.deltaX - N.deltaX, De = _.deltaY - N.deltaY, St = Ce(V, Ze, De);
|
|
21065
|
+
ce = St.x, Te = St.y, Y = c(St.x) > c(St.y) ? St.x : St.y, Ge = xe(Ze, De), B.lastInterval = _;
|
|
21046
21066
|
} else
|
|
21047
|
-
Y = N.velocity, ce = N.velocityX, Te = N.velocityY,
|
|
21048
|
-
_.velocity = Y, _.velocityX = ce, _.velocityY = Te, _.direction =
|
|
21067
|
+
Y = N.velocity, ce = N.velocityX, Te = N.velocityY, Ge = N.direction;
|
|
21068
|
+
_.velocity = Y, _.velocityX = ce, _.velocityY = Te, _.direction = Ge;
|
|
21049
21069
|
}
|
|
21050
21070
|
function be(B) {
|
|
21051
21071
|
for (var _ = [], N = 0; N < B.pointers.length; )
|
|
@@ -21104,9 +21124,9 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21104
21124
|
mousedown: ee,
|
|
21105
21125
|
mousemove: Z,
|
|
21106
21126
|
mouseup: $
|
|
21107
|
-
},
|
|
21127
|
+
}, $e = "mousedown", Se = "mousemove mouseup";
|
|
21108
21128
|
function ze() {
|
|
21109
|
-
this.evEl =
|
|
21129
|
+
this.evEl = $e, this.evWin = Se, this.pressed = !1, se.apply(this, arguments);
|
|
21110
21130
|
}
|
|
21111
21131
|
v(ze, se, {
|
|
21112
21132
|
/**
|
|
@@ -21137,20 +21157,20 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21137
21157
|
// see https://twitter.com/jacobrossi/status/480596438489890816
|
|
21138
21158
|
}, Le = "pointerdown", Ue = "pointermove pointerup pointercancel";
|
|
21139
21159
|
n.MSPointerEvent && !n.PointerEvent && (Le = "MSPointerDown", Ue = "MSPointerMove MSPointerUp MSPointerCancel");
|
|
21140
|
-
function
|
|
21160
|
+
function tt() {
|
|
21141
21161
|
this.evEl = Le, this.evWin = Ue, se.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
|
|
21142
21162
|
}
|
|
21143
|
-
v(
|
|
21163
|
+
v(tt, se, {
|
|
21144
21164
|
/**
|
|
21145
21165
|
* handle mouse events
|
|
21146
21166
|
* @param {Object} ev
|
|
21147
21167
|
*/
|
|
21148
21168
|
handler: function(_) {
|
|
21149
|
-
var N = this.store, V = !1, Y = !1, ce = _.type.toLowerCase().replace("ms", ""), Te = Fe[ce],
|
|
21150
|
-
Te & ee && (_.button === 0 || _.button === 2 ||
|
|
21169
|
+
var N = this.store, V = !1, Y = !1, ce = _.type.toLowerCase().replace("ms", ""), Te = Fe[ce], Ge = Oe[_.pointerType] || _.pointerType, Ze = Ge == Q, De = O(N, _.pointerId, "pointerId");
|
|
21170
|
+
Te & ee && (_.button === 0 || _.button === 2 || Ze) ? De < 0 && (N.push(_), De = N.length - 1) : Te & ($ | X) ? V = !0 : !Ze && _.buttons === 0 && (V = !0, Y = !0, Te = Fe.pointerup), !(De < 0) && (Y || (N[De] = _), this.callback(this.manager, Te, {
|
|
21151
21171
|
pointers: N,
|
|
21152
21172
|
changedPointers: [_],
|
|
21153
|
-
pointerType:
|
|
21173
|
+
pointerType: Ge,
|
|
21154
21174
|
srcEvent: N[De]
|
|
21155
21175
|
}), V && N.splice(De, 1));
|
|
21156
21176
|
}
|
|
@@ -21206,19 +21226,19 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21206
21226
|
var N = C(B.touches), V = this.targetIds;
|
|
21207
21227
|
if (_ & (ee | Z) && N.length === 1)
|
|
21208
21228
|
return V[N[0].identifier] = !0, [N, N];
|
|
21209
|
-
var Y, ce, Te = C(B.changedTouches),
|
|
21229
|
+
var Y, ce, Te = C(B.changedTouches), Ge = [], Ze = this.target;
|
|
21210
21230
|
if (ce = N.filter(function(De) {
|
|
21211
|
-
return M(De.target,
|
|
21231
|
+
return M(De.target, Ze);
|
|
21212
21232
|
}), _ === ee)
|
|
21213
21233
|
for (Y = 0; Y < ce.length; )
|
|
21214
21234
|
V[ce[Y].identifier] = !0, Y++;
|
|
21215
21235
|
for (Y = 0; Y < Te.length; )
|
|
21216
|
-
V[Te[Y].identifier] &&
|
|
21217
|
-
if (
|
|
21236
|
+
V[Te[Y].identifier] && Ge.push(Te[Y]), _ & ($ | X) && delete V[Te[Y].identifier], Y++;
|
|
21237
|
+
if (Ge.length)
|
|
21218
21238
|
return [
|
|
21219
21239
|
// merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'
|
|
21220
|
-
I(ce.concat(
|
|
21221
|
-
|
|
21240
|
+
I(ce.concat(Ge), "identifier"),
|
|
21241
|
+
Ge
|
|
21222
21242
|
];
|
|
21223
21243
|
}
|
|
21224
21244
|
var It = 2500, Tt = 25;
|
|
@@ -21252,9 +21272,9 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21252
21272
|
}
|
|
21253
21273
|
});
|
|
21254
21274
|
function Rt(B, _) {
|
|
21255
|
-
B & ee ? (this.primaryTouch = _.changedPointers[0].identifier,
|
|
21275
|
+
B & ee ? (this.primaryTouch = _.changedPointers[0].identifier, rt.call(this, _)) : B & ($ | X) && rt.call(this, _);
|
|
21256
21276
|
}
|
|
21257
|
-
function
|
|
21277
|
+
function rt(B) {
|
|
21258
21278
|
var _ = B.changedPointers[0];
|
|
21259
21279
|
if (_.identifier === this.primaryTouch) {
|
|
21260
21280
|
var N = { x: _.clientX, y: _.clientY };
|
|
@@ -21274,7 +21294,7 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21274
21294
|
}
|
|
21275
21295
|
return !1;
|
|
21276
21296
|
}
|
|
21277
|
-
var ct = s ? H(s.style, "touchAction") : r, Xe = ct !== r, fe = "compute", we = "auto", Me = "manipulation", ke = "none",
|
|
21297
|
+
var ct = s ? H(s.style, "touchAction") : r, Xe = ct !== r, fe = "compute", we = "auto", Me = "manipulation", ke = "none", je = "pan-x", st = "pan-y", Qe = Ht();
|
|
21278
21298
|
function Je(B, _) {
|
|
21279
21299
|
this.manager = B, this.set(_);
|
|
21280
21300
|
}
|
|
@@ -21312,10 +21332,10 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21312
21332
|
_.preventDefault();
|
|
21313
21333
|
return;
|
|
21314
21334
|
}
|
|
21315
|
-
var V = this.actions, Y = w(V, ke) && !Qe[ke], ce = w(V, st) && !Qe[st], Te = w(V,
|
|
21335
|
+
var V = this.actions, Y = w(V, ke) && !Qe[ke], ce = w(V, st) && !Qe[st], Te = w(V, je) && !Qe[je];
|
|
21316
21336
|
if (Y) {
|
|
21317
|
-
var
|
|
21318
|
-
if (
|
|
21337
|
+
var Ge = B.pointers.length === 1, Ze = B.distance < 2, De = B.deltaTime < 250;
|
|
21338
|
+
if (Ge && Ze && De)
|
|
21319
21339
|
return;
|
|
21320
21340
|
}
|
|
21321
21341
|
if (!(Te && ce) && (Y || ce && N & ie || Te && N & ve))
|
|
@@ -21332,8 +21352,8 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21332
21352
|
function ft(B) {
|
|
21333
21353
|
if (w(B, ke))
|
|
21334
21354
|
return ke;
|
|
21335
|
-
var _ = w(B,
|
|
21336
|
-
return _ && N ? ke : _ || N ? _ ?
|
|
21355
|
+
var _ = w(B, je), N = w(B, st);
|
|
21356
|
+
return _ && N ? ke : _ || N ? _ ? je : st : w(B, Me) ? Me : we;
|
|
21337
21357
|
}
|
|
21338
21358
|
function Ht() {
|
|
21339
21359
|
if (!Xe)
|
|
@@ -21552,7 +21572,7 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21552
21572
|
},
|
|
21553
21573
|
getTouchAction: function() {
|
|
21554
21574
|
var B = this.options.direction, _ = [];
|
|
21555
|
-
return B & ie && _.push(st), B & ve && _.push(
|
|
21575
|
+
return B & ie && _.push(st), B & ve && _.push(je), _;
|
|
21556
21576
|
},
|
|
21557
21577
|
directionTest: function(B) {
|
|
21558
21578
|
var _ = this.options, N = !0, V = B.distance, Y = B.direction, ce = B.deltaX, Te = B.deltaY;
|
|
@@ -21712,8 +21732,8 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21712
21732
|
return this.failTimeout();
|
|
21713
21733
|
var ce = this.pTime ? B.timeStamp - this.pTime < _.interval : !0, Te = !this.pCenter || he(this.pCenter, B.center) < _.posThreshold;
|
|
21714
21734
|
this.pTime = B.timeStamp, this.pCenter = B.center, !Te || !ce ? this.count = 1 : this.count += 1, this._input = B;
|
|
21715
|
-
var
|
|
21716
|
-
if (
|
|
21735
|
+
var Ge = this.count % _.taps;
|
|
21736
|
+
if (Ge === 0)
|
|
21717
21737
|
return this.hasRequireFailures() ? (this._timer = d(function() {
|
|
21718
21738
|
this.state = pt, this.tryEmit();
|
|
21719
21739
|
}, _.interval, this), dt) : pt;
|
|
@@ -21831,7 +21851,7 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21831
21851
|
tapHighlightColor: "rgba(0,0,0,0)"
|
|
21832
21852
|
}
|
|
21833
21853
|
};
|
|
21834
|
-
var
|
|
21854
|
+
var Ye = 1, ut = 2;
|
|
21835
21855
|
function Ke(B, _) {
|
|
21836
21856
|
this.options = m({}, qe.defaults, _ || {}), this.options.inputTarget = this.options.inputTarget || B, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = B, this.input = le(this), this.touchAction = new Je(this, this.options.touchAction), ht(this, !0), p(this.options.recognizers, function(N) {
|
|
21837
21857
|
var V = this.add(new N[0](N[1]));
|
|
@@ -21854,7 +21874,7 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21854
21874
|
* @param {Boolean} [force]
|
|
21855
21875
|
*/
|
|
21856
21876
|
stop: function(B) {
|
|
21857
|
-
this.session.stopped = B ? ut :
|
|
21877
|
+
this.session.stopped = B ? ut : Ye;
|
|
21858
21878
|
},
|
|
21859
21879
|
/**
|
|
21860
21880
|
* run the recognizers!
|
|
@@ -22003,7 +22023,7 @@ var Hammer = (function(n, t, e, r) {
|
|
|
22003
22023
|
TouchAction: Je,
|
|
22004
22024
|
TouchInput: Ne,
|
|
22005
22025
|
MouseInput: ze,
|
|
22006
|
-
PointerEventInput:
|
|
22026
|
+
PointerEventInput: tt,
|
|
22007
22027
|
TouchMouseInput: yt,
|
|
22008
22028
|
SingleTouchInput: At,
|
|
22009
22029
|
Recognizer: Et,
|
|
@@ -22649,14 +22669,15 @@ void main() {
|
|
|
22649
22669
|
blendDst: THREE.OneMinusSrcAlphaFactor,
|
|
22650
22670
|
blendSrcAlpha: THREE.OneFactor,
|
|
22651
22671
|
blendDstAlpha: THREE.OneMinusSrcAlphaFactor,
|
|
22652
|
-
depthWrite: !1
|
|
22672
|
+
depthWrite: !1,
|
|
22673
|
+
transparent: !0
|
|
22653
22674
|
}), IntersectMesh = (
|
|
22654
22675
|
/** @class */
|
|
22655
22676
|
(function(n) {
|
|
22656
22677
|
__extends(t, n);
|
|
22657
22678
|
function t() {
|
|
22658
22679
|
var e = n.call(this) || this;
|
|
22659
|
-
return e.ringMesh = new THREE.Mesh(sharedGeometry$2, sharedMaterial), e.ringMesh.position.z = 0.01, e.ringMesh.renderOrder =
|
|
22680
|
+
return e.ringMesh = new THREE.Mesh(sharedGeometry$2, sharedMaterial), e.ringMesh.position.z = 0.01, e.ringMesh.renderOrder = 9999999999, e.add(e.ringMesh), e;
|
|
22660
22681
|
}
|
|
22661
22682
|
return t.prototype.dispose = function() {
|
|
22662
22683
|
this.remove(this.ringMesh);
|
|
@@ -23033,7 +23054,7 @@ void main() {
|
|
|
23033
23054
|
this.intersectMesh.visible = !1, this.needsRender = !0;
|
|
23034
23055
|
}, t;
|
|
23035
23056
|
})(BaseController)
|
|
23036
|
-
), defaultTopviewControllerCustomInitArgs = __assign({}, omit(defaultFloorplanControllerCustomInitArgs, ["defaultLongitude", "defaultLatitude", "maxLatitude", "minLatitude"])), TopviewController = (
|
|
23057
|
+
), defaultTopviewControllerCustomInitArgs = __assign(__assign({}, omit(defaultFloorplanControllerCustomInitArgs, ["defaultLongitude", "defaultLatitude", "maxLatitude", "minLatitude"])), { defaultLongitude: 0, defaultLatitude: Math.PI / 2 }), TopviewController = (
|
|
23037
23058
|
/** @class */
|
|
23038
23059
|
(function(n) {
|
|
23039
23060
|
__extends(t, n);
|
|
@@ -23042,15 +23063,21 @@ void main() {
|
|
|
23042
23063
|
return r = n.call(this, o) || this, r.mode = "Topview", r;
|
|
23043
23064
|
}
|
|
23044
23065
|
return t.parseArgs = function(e) {
|
|
23066
|
+
var r, o;
|
|
23045
23067
|
if (e instanceof t)
|
|
23046
23068
|
return e;
|
|
23047
|
-
var
|
|
23048
|
-
return n.parseArgs.call(this,
|
|
23069
|
+
var s = __assign(__assign({}, e), { maxLatitude: +Math.PI / 2, minLatitude: -Math.PI / 2, defaultLongitude: (r = e.defaultLongitude) !== null && r !== void 0 ? r : defaultTopviewControllerCustomInitArgs.defaultLongitude, defaultLatitude: (o = e.defaultLatitude) !== null && o !== void 0 ? o : defaultTopviewControllerCustomInitArgs.defaultLatitude });
|
|
23070
|
+
return n.parseArgs.call(this, s);
|
|
23049
23071
|
}, t.initAnimationEndState = function(e) {
|
|
23050
|
-
var r = this.parseArgs(e),
|
|
23051
|
-
|
|
23072
|
+
var r, o, s = this.parseArgs(e), u = n.initAnimationEndState.call(this, __assign(__assign({}, s), { initial: __assign(__assign({}, s.initial), { state: __assign(__assign({}, s.initial.state), {
|
|
23073
|
+
// 如果没有用户输入的 state, 则使用默认值。
|
|
23074
|
+
// 避免后续 super.initAnimationEndState 中缺失使用 currentState 的逻辑。
|
|
23075
|
+
longitude: (r = s.initial.state.longitude) !== null && r !== void 0 ? r : s.defaultLongitude,
|
|
23076
|
+
latitude: (o = s.initial.state.latitude) !== null && o !== void 0 ? o : s.defaultLatitude
|
|
23077
|
+
}) }) }));
|
|
23078
|
+
return __assign(__assign({}, u), { mode: "Topview" });
|
|
23052
23079
|
}, t.prototype.updateConfiguration = function(e) {
|
|
23053
|
-
return n.prototype.updateConfiguration.call(this, __assign(
|
|
23080
|
+
return n.prototype.updateConfiguration.call(this, __assign({}, e));
|
|
23054
23081
|
}, t.prototype.updateModel = function(e) {
|
|
23055
23082
|
this.needsRender = !0;
|
|
23056
23083
|
var r = this.modelScene.boundingBox.getCenter(new THREE.Vector3());
|
|
@@ -24217,8 +24244,8 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
24217
24244
|
fe.position.copy(Me.position).applyMatrix4(Me.work.transform), fe.scale.setScalar(18);
|
|
24218
24245
|
else {
|
|
24219
24246
|
fe.position.copy(Me.standingPosition).applyMatrix4(Me.work.transform);
|
|
24220
|
-
var
|
|
24221
|
-
|
|
24247
|
+
var je = o.adjustPanoCircleMeshPositionFix.get(Me.panoId);
|
|
24248
|
+
je && (scratchVector3$3.set(je.x, je.y, je.z), scratchVector3$3.equals(fe.position) && (fe.position.y += je.w)), fe.scale.setScalar(1.2);
|
|
24222
24249
|
}
|
|
24223
24250
|
var st = o.camera.position.clone().setY(fe.position.y), Qe = new THREE.Vector3().copy(fe.position).sub(st).normalize();
|
|
24224
24251
|
if (we === panoStringify(o.currentPano)) {
|
|
@@ -24236,43 +24263,43 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
24236
24263
|
fe.setOpacity(0), fe.setCurrent(!1), fe.updateTime && fe.updateTime(e, r), fe.visible = !1;
|
|
24237
24264
|
});
|
|
24238
24265
|
else if (Z) {
|
|
24239
|
-
var Ie = Z.work.observers,
|
|
24266
|
+
var Ie = Z.work.observers, $e = arrayMin(Z.accessibleNodes, function(fe) {
|
|
24240
24267
|
var we = Ie[fe];
|
|
24241
24268
|
return we ? Z.standingPosition.distanceTo(we.standingPosition) : 1 / 0;
|
|
24242
|
-
}, !0), Se =
|
|
24269
|
+
}, !0), Se = $e[1];
|
|
24243
24270
|
Se = clamp$1(Se, 3, 1 / 0);
|
|
24244
24271
|
var ze = Z.accessibleNodes.concat(Z.panoIndex).map(function(fe) {
|
|
24245
24272
|
return panoStringify({ panoIndex: fe, workCode: Z.work.workCode });
|
|
24246
24273
|
});
|
|
24247
24274
|
this.panoMeshes.forEach(function(fe, we) {
|
|
24248
|
-
var Me = o.works.getObserver(we), ke = !1,
|
|
24275
|
+
var Me = o.works.getObserver(we), ke = !1, je = 1;
|
|
24249
24276
|
if (ze.indexOf(we) === -1)
|
|
24250
|
-
ke = !1,
|
|
24277
|
+
ke = !1, je = 0;
|
|
24251
24278
|
else if (!Me)
|
|
24252
|
-
ke = !1,
|
|
24279
|
+
ke = !1, je = 0;
|
|
24253
24280
|
else if (!Me.loadable && !Me.active)
|
|
24254
|
-
ke = !1,
|
|
24281
|
+
ke = !1, je = 0;
|
|
24255
24282
|
else {
|
|
24256
24283
|
var st = fe.position.clone().project(o.camera), Qe = Math.abs(st.x) < 1 && Math.abs(st.y) < 1 && Math.abs(st.z) < 1;
|
|
24257
24284
|
ke = Qe && !fe.loading && fe.progress === 0 && $ !== null && panoStringify({ panoIndex: $.panoIndex, workCode: $.work.workCode }) === we;
|
|
24258
24285
|
var Je = fe.position.clone().setY(o.camera.position.y).distanceTo(o.camera.position);
|
|
24259
|
-
|
|
24286
|
+
je = Je < 0.01 ? 0 : clamp$1(Se / Je, 0.1, 0.85);
|
|
24260
24287
|
}
|
|
24261
24288
|
if (Me && Me === ne) {
|
|
24262
24289
|
var ft = Me.position.distanceTo(Me.standingPosition) > o.aerialObserverMinHeight;
|
|
24263
24290
|
if (ft) {
|
|
24264
24291
|
var Je = fe.position.distanceTo(o.camera.position);
|
|
24265
|
-
Je < 35 && (
|
|
24292
|
+
Je < 35 && (je = 0);
|
|
24266
24293
|
}
|
|
24267
24294
|
}
|
|
24268
|
-
fe.setCurrent(ke), fe.setOpacity(
|
|
24295
|
+
o.modelScene.parameter.resolveValue().modelAlpha > 0 && (je = 0), fe.setCurrent(ke), fe.setOpacity(je), fe.updateTime && fe.updateTime(e, r);
|
|
24269
24296
|
});
|
|
24270
24297
|
}
|
|
24271
24298
|
{
|
|
24272
24299
|
var w = (l = this.modelScene.parameter.progress) !== null && l !== void 0 ? l : 1, Fe = Math.round(w), Oe = this.modelScene.parameter.pano0, Le = this.modelScene.parameter.pano1, Ue = Fe === 0 ? Oe : Le, H = void 0;
|
|
24273
24300
|
if (Ue && (H = this.works.getObserver(Ue.panoId), H || (H = this.panoPictureObserverMap.get(Ue))), this.tiling.appearDuration = this.tileAppearDuration, this.tiling.maxRequest = w < (canUseNativeImageBitmap() ? 0.6 : 0.99) ? 0 : this.tileMaxRequest, this.tiling.imageOptions = this.imageOptions, !H || !Ue || this.tileLevelForFov === !1 || this.camera.perspToOrtho.x > 0) {
|
|
24274
24301
|
this.tiling.setObserver(null);
|
|
24275
|
-
var
|
|
24302
|
+
var tt = {
|
|
24276
24303
|
renderer: this.renderer,
|
|
24277
24304
|
resolution: this.camera.resolution,
|
|
24278
24305
|
pixelRatio: this.camera.pixelRatio,
|
|
@@ -24285,11 +24312,11 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
24285
24312
|
minLevel: 0,
|
|
24286
24313
|
level: 0
|
|
24287
24314
|
};
|
|
24288
|
-
this.tiling.update(
|
|
24315
|
+
this.tiling.update(tt), this.modelScene.parameter.set("refinedScreen", null);
|
|
24289
24316
|
} else {
|
|
24290
24317
|
var lt = getImageSizeLevel(Ue.mapSize), nt = lt + 1, ot = new THREE.Vector2().copy(this.camera.resolution).multiplyScalar(this.camera.pixelRatio), At = Math.floor(this.tileLevelForFov(this.camera.fov, ot)), We = At > lt ? At : 0;
|
|
24291
24318
|
this.tiling.setObserver(H);
|
|
24292
|
-
var
|
|
24319
|
+
var tt = {
|
|
24293
24320
|
renderer: this.renderer,
|
|
24294
24321
|
resolution: this.camera.resolution,
|
|
24295
24322
|
pixelRatio: this.camera.pixelRatio,
|
|
@@ -24301,7 +24328,7 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
24301
24328
|
panoZoom: Ue.zoom,
|
|
24302
24329
|
minLevel: nt,
|
|
24303
24330
|
level: We
|
|
24304
|
-
}, Ct = this.tiling.update(
|
|
24331
|
+
}, Ct = this.tiling.update(tt), _e = {
|
|
24305
24332
|
map: this.tiling.renderTarget.texture,
|
|
24306
24333
|
matrixInverse: this.tiling.camera.matrixWorldInverse,
|
|
24307
24334
|
projectionMatrix: this.tiling.camera.projectionMatrix,
|
|
@@ -24320,7 +24347,7 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
24320
24347
|
var yt = T.effect, Rt = this.modelScene.parameter, Oe = Rt.pano0, Le = Rt.pano1;
|
|
24321
24348
|
if (Oe && Le && Oe !== Le && (yt === "fly" || yt === "model") && this.flyEffectUseDepthBuffer) {
|
|
24322
24349
|
if (((f = this.modelScene.parameter.pano0Depth) === null || f === void 0 ? void 0 : f.panoId) !== Oe.panoId || ((d = this.modelScene.parameter.pano1Depth) === null || d === void 0 ? void 0 : d.panoId) !== Le.panoId) {
|
|
24323
|
-
var
|
|
24350
|
+
var rt = 500, it = 512;
|
|
24324
24351
|
this.pano0DepthCubeRenderTarget ? this.pano0DepthCubeRenderTarget.width !== it && this.pano0DepthCubeRenderTarget.setSize(it, it) : this.pano0DepthCubeRenderTarget = new THREE.WebGLCubeRenderTarget(it, {
|
|
24325
24352
|
minFilter: THREE.NearestFilter,
|
|
24326
24353
|
magFilter: THREE.NearestFilter,
|
|
@@ -24331,20 +24358,20 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
24331
24358
|
generateMipmaps: !1
|
|
24332
24359
|
});
|
|
24333
24360
|
var ct = new THREE.CubeCamera(this.camera.near, this.camera.far, this.pano0DepthCubeRenderTarget);
|
|
24334
|
-
ct.matrix.copy(Oe.matrix), ct.matrixWorld.copy(ct.matrix), ct.matrixAutoUpdate = !1, renderDepthCube(this.renderer, this.modelScene, ct,
|
|
24361
|
+
ct.matrix.copy(Oe.matrix), ct.matrixWorld.copy(ct.matrix), ct.matrixAutoUpdate = !1, renderDepthCube(this.renderer, this.modelScene, ct, rt);
|
|
24335
24362
|
var Xe = new THREE.CubeCamera(this.camera.near, this.camera.far, this.pano1DepthCubeRenderTarget);
|
|
24336
|
-
Xe.matrix.copy(Le.matrix), Xe.matrixWorld.copy(Xe.matrix), Xe.matrixAutoUpdate = !1, renderDepthCube(this.renderer, this.modelScene, Xe,
|
|
24363
|
+
Xe.matrix.copy(Le.matrix), Xe.matrixWorld.copy(Xe.matrix), Xe.matrixAutoUpdate = !1, renderDepthCube(this.renderer, this.modelScene, Xe, rt), this.modelScene.parameter.set({
|
|
24337
24364
|
pano0Depth: {
|
|
24338
24365
|
panoId: Oe.panoId,
|
|
24339
24366
|
map: this.pano0DepthCubeRenderTarget.texture,
|
|
24340
24367
|
mapSize: this.pano0DepthCubeRenderTarget.width,
|
|
24341
|
-
maxDepth:
|
|
24368
|
+
maxDepth: rt
|
|
24342
24369
|
},
|
|
24343
24370
|
pano1Depth: {
|
|
24344
24371
|
panoId: Le.panoId,
|
|
24345
24372
|
map: this.pano1DepthCubeRenderTarget.texture,
|
|
24346
24373
|
mapSize: this.pano1DepthCubeRenderTarget.width,
|
|
24347
|
-
maxDepth:
|
|
24374
|
+
maxDepth: rt
|
|
24348
24375
|
}
|
|
24349
24376
|
});
|
|
24350
24377
|
}
|
|
@@ -25921,8 +25948,8 @@ void main() {
|
|
|
25921
25948
|
});
|
|
25922
25949
|
var Ie = new THREE.CubeCamera(this.camera.near, this.camera.far, this.pano0DepthCubeRenderTarget);
|
|
25923
25950
|
Ie.matrix.copy(de.matrix), Ie.matrixWorld.copy(Ie.matrix), Ie.matrixAutoUpdate = !1, renderDepthCube(this.renderer, this.modelScene, Ie, ye);
|
|
25924
|
-
var
|
|
25925
|
-
|
|
25951
|
+
var $e = new THREE.CubeCamera(this.camera.near, this.camera.far, this.pano1DepthCubeRenderTarget);
|
|
25952
|
+
$e.matrix.copy(Ee.matrix), $e.matrixWorld.copy($e.matrix), $e.matrixAutoUpdate = !1, renderDepthCube(this.renderer, this.modelScene, $e, ye), this.modelScene.parameter.set({
|
|
25926
25953
|
pano0Depth: {
|
|
25927
25954
|
panoId: de.panoId,
|
|
25928
25955
|
map: this.pano0DepthCubeRenderTarget.texture,
|
|
@@ -27534,7 +27561,7 @@ var circleImageURL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYA
|
|
|
27534
27561
|
}
|
|
27535
27562
|
return Object.defineProperty(t, "version", {
|
|
27536
27563
|
get: function() {
|
|
27537
|
-
return "6.7.0-alpha.
|
|
27564
|
+
return "6.7.0-alpha.27";
|
|
27538
27565
|
},
|
|
27539
27566
|
enumerable: !1,
|
|
27540
27567
|
configurable: !0
|
|
@@ -28448,14 +28475,14 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
28448
28475
|
if (!Re)
|
|
28449
28476
|
return "continue";
|
|
28450
28477
|
Pe && Pe.update(Re, re, oe);
|
|
28451
|
-
var qe = ye.xrManager.getController(pe),
|
|
28452
|
-
Re.handedness === "left" ? ye.xrControllerRay.left.set(ut, new THREE.Vector3(0, 0, -1).applyEuler(qe.rotation)) : Re.handedness === "right" && ye.xrControllerRay.right.set(ut, new THREE.Vector3(0, 0, -1).applyEuler(qe.rotation)), ye.controllerWrappers[pe].position.copy(new THREE.Vector3(0, 0, 0).add(te).sub(
|
|
28478
|
+
var qe = ye.xrManager.getController(pe), Ye = new THREE.Vector3(0, 1.2, 0), ut = qe.position.clone().add(te).sub(Ye);
|
|
28479
|
+
Re.handedness === "left" ? ye.xrControllerRay.left.set(ut, new THREE.Vector3(0, 0, -1).applyEuler(qe.rotation)) : Re.handedness === "right" && ye.xrControllerRay.right.set(ut, new THREE.Vector3(0, 0, -1).applyEuler(qe.rotation)), ye.controllerWrappers[pe].position.copy(new THREE.Vector3(0, 0, 0).add(te).sub(Ye));
|
|
28453
28480
|
var Ke = ye.modelScene.intersectRaycaster(ye.xrControllerRay.right);
|
|
28454
28481
|
if (Ke.length === 0) {
|
|
28455
28482
|
var ht = ye.works.getResolvedObserver(ye.currentPano);
|
|
28456
|
-
Ke = ye.xrControllerRay.right.intersectObject(ye.modelScene.boundingMesh, !0).map(function(
|
|
28457
|
-
var
|
|
28458
|
-
return __assign({ floorIndex: De, floor: De },
|
|
28483
|
+
Ke = ye.xrControllerRay.right.intersectObject(ye.modelScene.boundingMesh, !0).map(function(Ge) {
|
|
28484
|
+
var Ze, De = (Ze = ht == null ? void 0 : ht.floorIndex) !== null && Ze !== void 0 ? Ze : 0;
|
|
28485
|
+
return __assign({ floorIndex: De, floor: De }, Ge);
|
|
28459
28486
|
});
|
|
28460
28487
|
}
|
|
28461
28488
|
if (Ke.length >= 1 && Ke[0].face)
|
|
@@ -28490,10 +28517,10 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
28490
28517
|
userAction: this.userAction,
|
|
28491
28518
|
state: __assign(__assign(__assign({}, this.currentPano), { mode: this.mode }), clonePose(this.camera.pose))
|
|
28492
28519
|
}));
|
|
28493
|
-
var Ie = this.works.getResolvedObserver(this.currentPano),
|
|
28520
|
+
var Ie = this.works.getResolvedObserver(this.currentPano), $e = this.locationMotion.ended ? this.getForwardObserverOrNot(this.xrManager.cameraVR) : null, Se = this.works.getObserver(w.panoId), ze = this.works.getObserver(P.panoId);
|
|
28494
28521
|
if (this.adjustPanoCircleMeshPositionBasedOnModel && this.helper.visible && Ie) {
|
|
28495
28522
|
for (var Fe = [], Oe = Ie.work.observers, Le = 0, Ue = Ie.accessibleNodes; Le < Ue.length; Le++) {
|
|
28496
|
-
var
|
|
28523
|
+
var tt = Ue[Le], U = Oe[tt];
|
|
28497
28524
|
U && Fe.push(U);
|
|
28498
28525
|
}
|
|
28499
28526
|
var lt = /* @__PURE__ */ new Map();
|
|
@@ -28530,37 +28557,37 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
28530
28557
|
this.accessibleObserverFloorCheckCount++;
|
|
28531
28558
|
}
|
|
28532
28559
|
}
|
|
28533
|
-
var
|
|
28560
|
+
var rt = /* @__PURE__ */ new Map();
|
|
28534
28561
|
if (Se)
|
|
28535
28562
|
for (var it = 0, ct = Se.accessibleNodes; it < ct.length; it++) {
|
|
28536
|
-
var
|
|
28563
|
+
var tt = ct[it], U = Se.work.observers[tt];
|
|
28537
28564
|
if (U) {
|
|
28538
28565
|
var Ne = panoStringify({
|
|
28539
28566
|
panoIndex: U.panoIndex,
|
|
28540
28567
|
workCode: U.work.workCode
|
|
28541
28568
|
});
|
|
28542
|
-
|
|
28569
|
+
rt.set(Ne, U);
|
|
28543
28570
|
}
|
|
28544
28571
|
}
|
|
28545
28572
|
if (ze)
|
|
28546
28573
|
for (var Xe = 0, fe = ze.accessibleNodes; Xe < fe.length; Xe++) {
|
|
28547
|
-
var
|
|
28574
|
+
var tt = fe[Xe], U = ze.work.observers[tt];
|
|
28548
28575
|
if (U) {
|
|
28549
28576
|
var Ne = panoStringify({
|
|
28550
28577
|
panoIndex: U.panoIndex,
|
|
28551
28578
|
workCode: U.work.workCode
|
|
28552
28579
|
});
|
|
28553
|
-
|
|
28580
|
+
rt.set(Ne, U);
|
|
28554
28581
|
}
|
|
28555
28582
|
}
|
|
28556
28583
|
if (this.panoMeshes.forEach(function(pe, Pe) {
|
|
28557
|
-
var Re =
|
|
28558
|
-
Re ?
|
|
28559
|
-
}),
|
|
28584
|
+
var Re = rt.get(Pe);
|
|
28585
|
+
Re ? rt.delete(Pe) : (o.helper.remove(pe), pe.dispose(), o.panoMeshes.delete(Pe));
|
|
28586
|
+
}), rt.forEach(function(pe, Pe) {
|
|
28560
28587
|
var Re = o.panoCircleMeshCreator(pe, {
|
|
28561
28588
|
aerialObserverMinHeight: o.aerialObserverMinHeight
|
|
28562
28589
|
});
|
|
28563
|
-
o.panoMeshes.set(Pe, Re), o.helper.add(Re),
|
|
28590
|
+
o.panoMeshes.set(Pe, Re), o.helper.add(Re), rt.delete(Pe);
|
|
28564
28591
|
}), this.panoMeshes.forEach(function(pe, Pe) {
|
|
28565
28592
|
var Re = o.works.getObserver(Pe);
|
|
28566
28593
|
if (Re) {
|
|
@@ -28569,8 +28596,8 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
28569
28596
|
pe.position.copy(Re.position).applyMatrix4(Re.work.transform), pe.scale.setScalar(18);
|
|
28570
28597
|
else {
|
|
28571
28598
|
pe.position.copy(Re.standingPosition).applyMatrix4(Re.work.transform);
|
|
28572
|
-
var
|
|
28573
|
-
|
|
28599
|
+
var Ye = o.adjustPanoCircleMeshPositionFix.get(Re.panoId);
|
|
28600
|
+
Ye && (scratchVector3.set(Ye.x, Ye.y, Ye.z), scratchVector3.equals(pe.position) && (pe.position.y += Ye.w)), pe.scale.setScalar(1.2);
|
|
28574
28601
|
}
|
|
28575
28602
|
var ut = o.camera.position.clone().setY(pe.position.y), Ke = new THREE.Vector3().copy(pe.position).sub(ut).normalize();
|
|
28576
28603
|
if (Pe === panoStringify(o.currentPano)) {
|
|
@@ -28593,31 +28620,31 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
28593
28620
|
return Pe ? Ie.standingPosition.distanceTo(Pe.standingPosition) : 1 / 0;
|
|
28594
28621
|
}, !0), ke = Me[1];
|
|
28595
28622
|
ke = clamp$1(ke, 2.5, 1 / 0);
|
|
28596
|
-
var
|
|
28623
|
+
var je = Ie.accessibleNodes.concat(Ie.panoIndex).map(function(pe) {
|
|
28597
28624
|
return panoStringify({ panoIndex: pe, workCode: Ie.work.workCode });
|
|
28598
28625
|
});
|
|
28599
28626
|
this.panoMeshes.forEach(function(pe, Pe) {
|
|
28600
|
-
var Re = o.works.getObserver(Pe), qe = !1,
|
|
28601
|
-
if (
|
|
28602
|
-
qe = !1,
|
|
28627
|
+
var Re = o.works.getObserver(Pe), qe = !1, Ye = 1;
|
|
28628
|
+
if (je.indexOf(Pe) === -1)
|
|
28629
|
+
qe = !1, Ye = 0;
|
|
28603
28630
|
else if (!Re)
|
|
28604
|
-
qe = !1,
|
|
28631
|
+
qe = !1, Ye = 0;
|
|
28605
28632
|
else if (!Re.loadable && !Re.active)
|
|
28606
|
-
qe = !1,
|
|
28633
|
+
qe = !1, Ye = 0;
|
|
28607
28634
|
else {
|
|
28608
28635
|
var ut = pe.position.clone().project(o.camera), Ke = Math.abs(ut.x) < 1 && Math.abs(ut.y) < 1 && Math.abs(ut.z) < 1;
|
|
28609
|
-
qe = Ke && !pe.loading && pe.progress === 0 &&
|
|
28636
|
+
qe = Ke && !pe.loading && pe.progress === 0 && $e !== null && panoStringify({ panoIndex: $e.panoIndex, workCode: $e.work.workCode }) === Pe;
|
|
28610
28637
|
var ht = pe.position.clone().setY(o.camera.position.y).distanceTo(o.camera.position);
|
|
28611
|
-
|
|
28638
|
+
Ye = ht < 0.01 ? 0 : clamp$1(ke / ht, 0.1, 0.85);
|
|
28612
28639
|
}
|
|
28613
28640
|
if (Re && Re === ze) {
|
|
28614
28641
|
var Bt = Re.position.distanceTo(Re.standingPosition) > o.aerialObserverMinHeight;
|
|
28615
28642
|
if (Bt) {
|
|
28616
28643
|
var ht = pe.position.distanceTo(o.camera.position);
|
|
28617
|
-
ht < 35 && (
|
|
28644
|
+
ht < 35 && (Ye = 0);
|
|
28618
28645
|
}
|
|
28619
28646
|
}
|
|
28620
|
-
pe.setCurrent(qe), pe.setOpacity(
|
|
28647
|
+
o.modelScene.parameter.resolveValue().modelAlpha > 0 && (Ye = 0), pe.setCurrent(qe), pe.setOpacity(Ye), pe.updateTime && pe.updateTime(e, r);
|
|
28621
28648
|
});
|
|
28622
28649
|
}
|
|
28623
28650
|
{
|
|
@@ -29256,7 +29283,7 @@ var DEFAULT_MODE_CHANGE_DURATION = 1e3, DEFAULT_CAMERA_FOV = 90, DEFAULT_REQUEST
|
|
|
29256
29283
|
}
|
|
29257
29284
|
return Object.defineProperty(t, "version", {
|
|
29258
29285
|
get: function() {
|
|
29259
|
-
return "6.7.0-alpha.
|
|
29286
|
+
return "6.7.0-alpha.27";
|
|
29260
29287
|
},
|
|
29261
29288
|
enumerable: !1,
|
|
29262
29289
|
configurable: !0
|