@realsee/five 6.7.0-alpha.26 → 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.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 +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.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 +16 -16
- package/five/index.mjs +184 -164
- 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 +16 -16
- 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;
|
|
@@ -14618,7 +14618,7 @@ function updatePBMMesh(n, t, e, r, o, s, u) {
|
|
|
14618
14618
|
versionMap$1.set(n, u.version), l = !0, n.castShadow = u.castShadow, n.receiveShadow = u.receiveShadow;
|
|
14619
14619
|
for (var c = n.material, f = 0, d = c; f < d.length; f++) {
|
|
14620
14620
|
var h = d[f];
|
|
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.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));
|
|
14622
14622
|
}
|
|
14623
14623
|
}
|
|
14624
14624
|
return l;
|
|
@@ -19047,13 +19047,15 @@ var EffectComposer = (
|
|
|
19047
19047
|
}, n.prototype.insertPass = function(t, e) {
|
|
19048
19048
|
this.passes.splice(e, 0, t);
|
|
19049
19049
|
}, n.prototype.render = function(t) {
|
|
19050
|
+
var e = !1;
|
|
19050
19051
|
this.renderTarget1.texture.encoding = t.outputEncoding, this.renderTarget2.texture.encoding = t.outputEncoding;
|
|
19051
|
-
for (var
|
|
19052
|
-
return
|
|
19053
|
-
}),
|
|
19054
|
-
var
|
|
19055
|
-
|
|
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();
|
|
19056
19057
|
}
|
|
19058
|
+
return e;
|
|
19057
19059
|
}, n.prototype.setSize = function(t, e) {
|
|
19058
19060
|
this.renderTarget1.setSize(t, e), this.renderTarget2.setSize(t, e);
|
|
19059
19061
|
for (var r = 0; r < this.passes.length; r++)
|
|
@@ -19407,10 +19409,11 @@ void main() {
|
|
|
19407
19409
|
/** @class */
|
|
19408
19410
|
(function() {
|
|
19409
19411
|
function n() {
|
|
19412
|
+
this.name = "SceneRenderer";
|
|
19410
19413
|
}
|
|
19411
19414
|
return n.prototype.clearBuffers = function() {
|
|
19412
|
-
}, n.prototype.render = function(t, e, r, o, s) {
|
|
19413
|
-
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;
|
|
19414
19417
|
}, n;
|
|
19415
19418
|
})()
|
|
19416
19419
|
), scratchViewport$3 = new THREE.Vector4(), sampleVertexShader = `
|
|
@@ -19448,49 +19451,53 @@ var SSAASceneRnderer = (
|
|
|
19448
19451
|
__extends(t, n);
|
|
19449
19452
|
function t() {
|
|
19450
19453
|
var e = n !== null && n.apply(this, arguments) || this;
|
|
19451
|
-
return e.
|
|
19454
|
+
return e.name = "SSAASceneRnderer", e.sampleLevel = 2, e.unbiased = !0, e.sampleRenderTarget = null, e;
|
|
19452
19455
|
}
|
|
19453
19456
|
return t.prototype.clearBuffers = function() {
|
|
19454
19457
|
n.prototype.clearBuffers.call(this), this.sampleRenderTarget && (this.sampleRenderTarget.dispose(), this.sampleRenderTarget = null);
|
|
19455
|
-
}, t.prototype.render = function(e, r, o, s, u) {
|
|
19456
|
-
|
|
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;
|
|
19457
19464
|
this.sampleRenderTarget || (this.sampleRenderTarget = new THREE.WebGLRenderTarget(1, 1, {
|
|
19458
19465
|
minFilter: THREE.LinearFilter,
|
|
19459
19466
|
magFilter: THREE.LinearFilter,
|
|
19460
19467
|
format: THREE.RGBAFormat,
|
|
19461
19468
|
stencilBuffer: !0,
|
|
19462
19469
|
depthBuffer: !0
|
|
19463
|
-
}), this.sampleRenderTarget.texture.name = "
|
|
19464
|
-
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;
|
|
19465
19472
|
e.autoClear = !1;
|
|
19466
|
-
var
|
|
19467
|
-
fullWidth:
|
|
19468
|
-
fullHeight:
|
|
19473
|
+
var m = e.getClearColor().getHex(), E = e.getClearAlpha(), y = 1 / p.length, v = 1 / 32, A = {
|
|
19474
|
+
fullWidth: d,
|
|
19475
|
+
fullHeight: h,
|
|
19469
19476
|
offsetX: 0,
|
|
19470
19477
|
offsetY: 0,
|
|
19471
|
-
width:
|
|
19472
|
-
height:
|
|
19473
|
-
},
|
|
19474
|
-
|
|
19475
|
-
for (var
|
|
19476
|
-
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];
|
|
19477
19484
|
s.setViewOffset && s.setViewOffset(
|
|
19478
|
-
|
|
19479
|
-
|
|
19480
|
-
|
|
19481
|
-
|
|
19485
|
+
A.fullWidth,
|
|
19486
|
+
A.fullHeight,
|
|
19487
|
+
A.offsetX + S[0] * 0.0625,
|
|
19488
|
+
A.offsetY + S[1] * 0.0625,
|
|
19482
19489
|
// 0.0625 = 1 / 16
|
|
19483
|
-
|
|
19484
|
-
|
|
19490
|
+
A.width,
|
|
19491
|
+
A.height
|
|
19485
19492
|
);
|
|
19486
|
-
var
|
|
19493
|
+
var R = y;
|
|
19487
19494
|
if (this.unbiased) {
|
|
19488
|
-
var
|
|
19489
|
-
|
|
19495
|
+
var M = -0.5 + (T + 0.5) / p.length;
|
|
19496
|
+
R += v * M;
|
|
19490
19497
|
}
|
|
19491
|
-
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);
|
|
19492
19499
|
}
|
|
19493
|
-
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;
|
|
19494
19501
|
}, t;
|
|
19495
19502
|
})(SceneRenderer)
|
|
19496
19503
|
), JitterVectors = [
|
|
@@ -19636,12 +19643,14 @@ var PointCloudHighQualitySceneRnderer = (
|
|
|
19636
19643
|
__extends(t, n);
|
|
19637
19644
|
function t() {
|
|
19638
19645
|
var e = n !== null && n.apply(this, arguments) || this;
|
|
19639
|
-
return e.tempRenderTarget = null, e;
|
|
19646
|
+
return e.name = "PointCloudHighQualitySceneRnderer", e.tempRenderTarget = null, e;
|
|
19640
19647
|
}
|
|
19641
19648
|
return t.prototype.clearBuffers = function() {
|
|
19642
19649
|
n.prototype.clearBuffers.call(this), this.tempRenderTarget && (this.tempRenderTarget.dispose(), this.tempRenderTarget = null);
|
|
19643
|
-
}, t.prototype.render = function(e, r, o, s, u) {
|
|
19644
|
-
|
|
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;
|
|
19645
19654
|
this.tempRenderTarget || (this.tempRenderTarget = new THREE.WebGLRenderTarget(1, 1, {
|
|
19646
19655
|
magFilter: THREE.LinearFilter,
|
|
19647
19656
|
minFilter: THREE.LinearFilter,
|
|
@@ -19649,15 +19658,15 @@ var PointCloudHighQualitySceneRnderer = (
|
|
|
19649
19658
|
generateMipmaps: !1,
|
|
19650
19659
|
depthBuffer: !0,
|
|
19651
19660
|
stencilBuffer: !0
|
|
19652
|
-
}), this.tempRenderTarget.texture.name = "
|
|
19653
|
-
var
|
|
19654
|
-
if (!
|
|
19655
|
-
var
|
|
19656
|
-
|
|
19657
|
-
}
|
|
19658
|
-
this.tempRenderTarget.texture.encoding = e.outputEncoding, this.tempRenderTarget.setSize(
|
|
19659
|
-
var
|
|
19660
|
-
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;
|
|
19661
19670
|
}, t;
|
|
19662
19671
|
})(SceneRenderer)
|
|
19663
19672
|
), scratchViewport$1 = new THREE.Vector4(), normalMaterial = new THREE.MeshNormalMaterial({
|
|
@@ -19684,22 +19693,23 @@ var PointCloudHighQualitySceneRnderer = (
|
|
|
19684
19693
|
"point-cloud-high-quality": new PointCloudHighQualitySceneRnderer()
|
|
19685
19694
|
};
|
|
19686
19695
|
}
|
|
19687
|
-
return n.prototype.renderSceneToBuffers = function(t, e, r, o, s) {
|
|
19688
|
-
var
|
|
19689
|
-
|
|
19690
|
-
for (var
|
|
19691
|
-
var
|
|
19692
|
-
|
|
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();
|
|
19693
19702
|
}
|
|
19694
19703
|
if (this.sceneRenders[this.renderMode]) {
|
|
19695
|
-
var
|
|
19696
|
-
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);
|
|
19697
19706
|
}
|
|
19698
|
-
if (
|
|
19707
|
+
if (d && c.set("color", this.colorRenderTarget.texture), h && c.set("depth", this.colorRenderTarget.depthTexture), p) {
|
|
19699
19708
|
t.setRenderTarget(this.normalRenderTarget);
|
|
19700
|
-
var
|
|
19701
|
-
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);
|
|
19702
19711
|
}
|
|
19712
|
+
return g;
|
|
19703
19713
|
}, n.prototype.render = function(t, e, r, o, s) {
|
|
19704
19714
|
var u = !1;
|
|
19705
19715
|
this.composer.updateStatus();
|
|
@@ -19707,7 +19717,7 @@ var PointCloudHighQualitySceneRnderer = (
|
|
|
19707
19717
|
t.setRenderTarget(null);
|
|
19708
19718
|
var c = this.composer.status, f = c.endabledPassNumber, d = c.needsDepthGBuffer, h = c.needsNormalGBuffer, p = c.version;
|
|
19709
19719
|
if (f === 0)
|
|
19710
|
-
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);
|
|
19711
19721
|
else {
|
|
19712
19722
|
var g = t.getPixelRatio(), m = t.getViewport(scratchViewport$1), E = m.width * g, y = m.height * g;
|
|
19713
19723
|
if (this.composer.setSize(E, y), s === !1 && p !== this.composerVersion && (this.composerVersion = p, s = !0), s) {
|
|
@@ -19719,9 +19729,9 @@ var PointCloudHighQualitySceneRnderer = (
|
|
|
19719
19729
|
}
|
|
19720
19730
|
} else
|
|
19721
19731
|
this.colorRenderTarget.depthTexture && (this.colorRenderTarget.depthTexture.dispose(), this.colorRenderTarget.depthTexture = null, this.colorRenderTarget.dispose());
|
|
19722
|
-
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);
|
|
19723
19733
|
}
|
|
19724
|
-
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);
|
|
19725
19735
|
}
|
|
19726
19736
|
return t.setRenderTarget(l), u;
|
|
19727
19737
|
}, n.prototype.dispose = function() {
|
|
@@ -19982,6 +19992,7 @@ void main() {
|
|
|
19982
19992
|
blendSrcAlpha: THREE.OneFactor,
|
|
19983
19993
|
blendDstAlpha: THREE.OneMinusSrcAlphaFactor,
|
|
19984
19994
|
depthWrite: !1,
|
|
19995
|
+
transparent: !0,
|
|
19985
19996
|
vertexShader: vertexShader$4,
|
|
19986
19997
|
fragmentShader: fragmentShader$4,
|
|
19987
19998
|
uniforms: {
|
|
@@ -20276,6 +20287,7 @@ void main() {
|
|
|
20276
20287
|
blendSrcAlpha: THREE.OneFactor,
|
|
20277
20288
|
blendDstAlpha: THREE.OneMinusSrcAlphaFactor,
|
|
20278
20289
|
depthWrite: !1,
|
|
20290
|
+
transparent: !0,
|
|
20279
20291
|
vertexShader: vertexShader$3,
|
|
20280
20292
|
fragmentShader: fragmentShader$3,
|
|
20281
20293
|
uniforms: {
|
|
@@ -20589,6 +20601,7 @@ void main() {
|
|
|
20589
20601
|
blendSrcAlpha: THREE.OneFactor,
|
|
20590
20602
|
blendDstAlpha: THREE.OneMinusSrcAlphaFactor,
|
|
20591
20603
|
depthWrite: !1,
|
|
20604
|
+
transparent: !0,
|
|
20592
20605
|
vertexShader: vertexShader$2,
|
|
20593
20606
|
fragmentShader: fragmentShader$2,
|
|
20594
20607
|
defines: {
|
|
@@ -20970,8 +20983,8 @@ var Hammer = (function(n, t, e, r) {
|
|
|
20970
20983
|
var Te = B[ce][_];
|
|
20971
20984
|
O(Y, Te) < 0 && V.push(B[ce]), Y[ce] = Te, ce++;
|
|
20972
20985
|
}
|
|
20973
|
-
return V = V.sort(function(
|
|
20974
|
-
return
|
|
20986
|
+
return V = V.sort(function(Ze, De) {
|
|
20987
|
+
return Ze[_] > De[_];
|
|
20975
20988
|
}), V;
|
|
20976
20989
|
}
|
|
20977
20990
|
function H(B, _) {
|
|
@@ -21019,7 +21032,7 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21019
21032
|
};
|
|
21020
21033
|
function le(B) {
|
|
21021
21034
|
var _, N = B.options.inputClass;
|
|
21022
|
-
return N ? _ = N : z ? _ =
|
|
21035
|
+
return N ? _ = N : z ? _ = tt : J ? _ = Ne : U ? _ = yt : _ = ze, new _(B, me);
|
|
21023
21036
|
}
|
|
21024
21037
|
function me(B, _, N) {
|
|
21025
21038
|
var V = N.pointers.length, Y = N.changedPointers.length, ce = _ & ee && V - Y === 0, Te = _ & ($ | X) && V - Y === 0;
|
|
@@ -21028,8 +21041,8 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21028
21041
|
function ge(B, _) {
|
|
21029
21042
|
var N = B.session, V = _.pointers, Y = V.length;
|
|
21030
21043
|
N.firstInput || (N.firstInput = be(_)), Y > 1 && !N.firstMultiple ? N.firstMultiple = be(_) : Y === 1 && (N.firstMultiple = !1);
|
|
21031
|
-
var ce = N.firstInput, Te = N.firstMultiple,
|
|
21032
|
-
_.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);
|
|
21033
21046
|
var De = Ce(_.deltaTime, _.deltaX, _.deltaY);
|
|
21034
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, _);
|
|
21035
21048
|
var St = B.element;
|
|
@@ -21046,13 +21059,13 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21046
21059
|
}), _.deltaX = Y.x + (N.x - V.x), _.deltaY = Y.y + (N.y - V.y);
|
|
21047
21060
|
}
|
|
21048
21061
|
function ue(B, _) {
|
|
21049
|
-
var N = B.lastInterval || _, V = _.timeStamp - N.timeStamp, Y, ce, Te,
|
|
21062
|
+
var N = B.lastInterval || _, V = _.timeStamp - N.timeStamp, Y, ce, Te, Ge;
|
|
21050
21063
|
if (_.eventType != X && (V > ae || N.velocity === r)) {
|
|
21051
|
-
var
|
|
21052
|
-
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 = _;
|
|
21053
21066
|
} else
|
|
21054
|
-
Y = N.velocity, ce = N.velocityX, Te = N.velocityY,
|
|
21055
|
-
_.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;
|
|
21056
21069
|
}
|
|
21057
21070
|
function be(B) {
|
|
21058
21071
|
for (var _ = [], N = 0; N < B.pointers.length; )
|
|
@@ -21111,9 +21124,9 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21111
21124
|
mousedown: ee,
|
|
21112
21125
|
mousemove: Z,
|
|
21113
21126
|
mouseup: $
|
|
21114
|
-
},
|
|
21127
|
+
}, $e = "mousedown", Se = "mousemove mouseup";
|
|
21115
21128
|
function ze() {
|
|
21116
|
-
this.evEl =
|
|
21129
|
+
this.evEl = $e, this.evWin = Se, this.pressed = !1, se.apply(this, arguments);
|
|
21117
21130
|
}
|
|
21118
21131
|
v(ze, se, {
|
|
21119
21132
|
/**
|
|
@@ -21144,20 +21157,20 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21144
21157
|
// see https://twitter.com/jacobrossi/status/480596438489890816
|
|
21145
21158
|
}, Le = "pointerdown", Ue = "pointermove pointerup pointercancel";
|
|
21146
21159
|
n.MSPointerEvent && !n.PointerEvent && (Le = "MSPointerDown", Ue = "MSPointerMove MSPointerUp MSPointerCancel");
|
|
21147
|
-
function
|
|
21160
|
+
function tt() {
|
|
21148
21161
|
this.evEl = Le, this.evWin = Ue, se.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
|
|
21149
21162
|
}
|
|
21150
|
-
v(
|
|
21163
|
+
v(tt, se, {
|
|
21151
21164
|
/**
|
|
21152
21165
|
* handle mouse events
|
|
21153
21166
|
* @param {Object} ev
|
|
21154
21167
|
*/
|
|
21155
21168
|
handler: function(_) {
|
|
21156
|
-
var N = this.store, V = !1, Y = !1, ce = _.type.toLowerCase().replace("ms", ""), Te = Fe[ce],
|
|
21157
|
-
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, {
|
|
21158
21171
|
pointers: N,
|
|
21159
21172
|
changedPointers: [_],
|
|
21160
|
-
pointerType:
|
|
21173
|
+
pointerType: Ge,
|
|
21161
21174
|
srcEvent: N[De]
|
|
21162
21175
|
}), V && N.splice(De, 1));
|
|
21163
21176
|
}
|
|
@@ -21213,19 +21226,19 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21213
21226
|
var N = C(B.touches), V = this.targetIds;
|
|
21214
21227
|
if (_ & (ee | Z) && N.length === 1)
|
|
21215
21228
|
return V[N[0].identifier] = !0, [N, N];
|
|
21216
|
-
var Y, ce, Te = C(B.changedTouches),
|
|
21229
|
+
var Y, ce, Te = C(B.changedTouches), Ge = [], Ze = this.target;
|
|
21217
21230
|
if (ce = N.filter(function(De) {
|
|
21218
|
-
return M(De.target,
|
|
21231
|
+
return M(De.target, Ze);
|
|
21219
21232
|
}), _ === ee)
|
|
21220
21233
|
for (Y = 0; Y < ce.length; )
|
|
21221
21234
|
V[ce[Y].identifier] = !0, Y++;
|
|
21222
21235
|
for (Y = 0; Y < Te.length; )
|
|
21223
|
-
V[Te[Y].identifier] &&
|
|
21224
|
-
if (
|
|
21236
|
+
V[Te[Y].identifier] && Ge.push(Te[Y]), _ & ($ | X) && delete V[Te[Y].identifier], Y++;
|
|
21237
|
+
if (Ge.length)
|
|
21225
21238
|
return [
|
|
21226
21239
|
// merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'
|
|
21227
|
-
I(ce.concat(
|
|
21228
|
-
|
|
21240
|
+
I(ce.concat(Ge), "identifier"),
|
|
21241
|
+
Ge
|
|
21229
21242
|
];
|
|
21230
21243
|
}
|
|
21231
21244
|
var It = 2500, Tt = 25;
|
|
@@ -21259,9 +21272,9 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21259
21272
|
}
|
|
21260
21273
|
});
|
|
21261
21274
|
function Rt(B, _) {
|
|
21262
|
-
B & ee ? (this.primaryTouch = _.changedPointers[0].identifier,
|
|
21275
|
+
B & ee ? (this.primaryTouch = _.changedPointers[0].identifier, rt.call(this, _)) : B & ($ | X) && rt.call(this, _);
|
|
21263
21276
|
}
|
|
21264
|
-
function
|
|
21277
|
+
function rt(B) {
|
|
21265
21278
|
var _ = B.changedPointers[0];
|
|
21266
21279
|
if (_.identifier === this.primaryTouch) {
|
|
21267
21280
|
var N = { x: _.clientX, y: _.clientY };
|
|
@@ -21281,7 +21294,7 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21281
21294
|
}
|
|
21282
21295
|
return !1;
|
|
21283
21296
|
}
|
|
21284
|
-
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();
|
|
21285
21298
|
function Je(B, _) {
|
|
21286
21299
|
this.manager = B, this.set(_);
|
|
21287
21300
|
}
|
|
@@ -21319,10 +21332,10 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21319
21332
|
_.preventDefault();
|
|
21320
21333
|
return;
|
|
21321
21334
|
}
|
|
21322
|
-
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];
|
|
21323
21336
|
if (Y) {
|
|
21324
|
-
var
|
|
21325
|
-
if (
|
|
21337
|
+
var Ge = B.pointers.length === 1, Ze = B.distance < 2, De = B.deltaTime < 250;
|
|
21338
|
+
if (Ge && Ze && De)
|
|
21326
21339
|
return;
|
|
21327
21340
|
}
|
|
21328
21341
|
if (!(Te && ce) && (Y || ce && N & ie || Te && N & ve))
|
|
@@ -21339,8 +21352,8 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21339
21352
|
function ft(B) {
|
|
21340
21353
|
if (w(B, ke))
|
|
21341
21354
|
return ke;
|
|
21342
|
-
var _ = w(B,
|
|
21343
|
-
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;
|
|
21344
21357
|
}
|
|
21345
21358
|
function Ht() {
|
|
21346
21359
|
if (!Xe)
|
|
@@ -21559,7 +21572,7 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21559
21572
|
},
|
|
21560
21573
|
getTouchAction: function() {
|
|
21561
21574
|
var B = this.options.direction, _ = [];
|
|
21562
|
-
return B & ie && _.push(st), B & ve && _.push(
|
|
21575
|
+
return B & ie && _.push(st), B & ve && _.push(je), _;
|
|
21563
21576
|
},
|
|
21564
21577
|
directionTest: function(B) {
|
|
21565
21578
|
var _ = this.options, N = !0, V = B.distance, Y = B.direction, ce = B.deltaX, Te = B.deltaY;
|
|
@@ -21719,8 +21732,8 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21719
21732
|
return this.failTimeout();
|
|
21720
21733
|
var ce = this.pTime ? B.timeStamp - this.pTime < _.interval : !0, Te = !this.pCenter || he(this.pCenter, B.center) < _.posThreshold;
|
|
21721
21734
|
this.pTime = B.timeStamp, this.pCenter = B.center, !Te || !ce ? this.count = 1 : this.count += 1, this._input = B;
|
|
21722
|
-
var
|
|
21723
|
-
if (
|
|
21735
|
+
var Ge = this.count % _.taps;
|
|
21736
|
+
if (Ge === 0)
|
|
21724
21737
|
return this.hasRequireFailures() ? (this._timer = d(function() {
|
|
21725
21738
|
this.state = pt, this.tryEmit();
|
|
21726
21739
|
}, _.interval, this), dt) : pt;
|
|
@@ -21838,7 +21851,7 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21838
21851
|
tapHighlightColor: "rgba(0,0,0,0)"
|
|
21839
21852
|
}
|
|
21840
21853
|
};
|
|
21841
|
-
var
|
|
21854
|
+
var Ye = 1, ut = 2;
|
|
21842
21855
|
function Ke(B, _) {
|
|
21843
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) {
|
|
21844
21857
|
var V = this.add(new N[0](N[1]));
|
|
@@ -21861,7 +21874,7 @@ var Hammer = (function(n, t, e, r) {
|
|
|
21861
21874
|
* @param {Boolean} [force]
|
|
21862
21875
|
*/
|
|
21863
21876
|
stop: function(B) {
|
|
21864
|
-
this.session.stopped = B ? ut :
|
|
21877
|
+
this.session.stopped = B ? ut : Ye;
|
|
21865
21878
|
},
|
|
21866
21879
|
/**
|
|
21867
21880
|
* run the recognizers!
|
|
@@ -22010,7 +22023,7 @@ var Hammer = (function(n, t, e, r) {
|
|
|
22010
22023
|
TouchAction: Je,
|
|
22011
22024
|
TouchInput: Ne,
|
|
22012
22025
|
MouseInput: ze,
|
|
22013
|
-
PointerEventInput:
|
|
22026
|
+
PointerEventInput: tt,
|
|
22014
22027
|
TouchMouseInput: yt,
|
|
22015
22028
|
SingleTouchInput: At,
|
|
22016
22029
|
Recognizer: Et,
|
|
@@ -22656,14 +22669,15 @@ void main() {
|
|
|
22656
22669
|
blendDst: THREE.OneMinusSrcAlphaFactor,
|
|
22657
22670
|
blendSrcAlpha: THREE.OneFactor,
|
|
22658
22671
|
blendDstAlpha: THREE.OneMinusSrcAlphaFactor,
|
|
22659
|
-
depthWrite: !1
|
|
22672
|
+
depthWrite: !1,
|
|
22673
|
+
transparent: !0
|
|
22660
22674
|
}), IntersectMesh = (
|
|
22661
22675
|
/** @class */
|
|
22662
22676
|
(function(n) {
|
|
22663
22677
|
__extends(t, n);
|
|
22664
22678
|
function t() {
|
|
22665
22679
|
var e = n.call(this) || this;
|
|
22666
|
-
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;
|
|
22667
22681
|
}
|
|
22668
22682
|
return t.prototype.dispose = function() {
|
|
22669
22683
|
this.remove(this.ringMesh);
|
|
@@ -23040,7 +23054,7 @@ void main() {
|
|
|
23040
23054
|
this.intersectMesh.visible = !1, this.needsRender = !0;
|
|
23041
23055
|
}, t;
|
|
23042
23056
|
})(BaseController)
|
|
23043
|
-
), 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 = (
|
|
23044
23058
|
/** @class */
|
|
23045
23059
|
(function(n) {
|
|
23046
23060
|
__extends(t, n);
|
|
@@ -23049,15 +23063,21 @@ void main() {
|
|
|
23049
23063
|
return r = n.call(this, o) || this, r.mode = "Topview", r;
|
|
23050
23064
|
}
|
|
23051
23065
|
return t.parseArgs = function(e) {
|
|
23066
|
+
var r, o;
|
|
23052
23067
|
if (e instanceof t)
|
|
23053
23068
|
return e;
|
|
23054
|
-
var
|
|
23055
|
-
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);
|
|
23056
23071
|
}, t.initAnimationEndState = function(e) {
|
|
23057
|
-
var r = this.parseArgs(e),
|
|
23058
|
-
|
|
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" });
|
|
23059
23079
|
}, t.prototype.updateConfiguration = function(e) {
|
|
23060
|
-
return n.prototype.updateConfiguration.call(this, __assign(
|
|
23080
|
+
return n.prototype.updateConfiguration.call(this, __assign({}, e));
|
|
23061
23081
|
}, t.prototype.updateModel = function(e) {
|
|
23062
23082
|
this.needsRender = !0;
|
|
23063
23083
|
var r = this.modelScene.boundingBox.getCenter(new THREE.Vector3());
|
|
@@ -24224,8 +24244,8 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
24224
24244
|
fe.position.copy(Me.position).applyMatrix4(Me.work.transform), fe.scale.setScalar(18);
|
|
24225
24245
|
else {
|
|
24226
24246
|
fe.position.copy(Me.standingPosition).applyMatrix4(Me.work.transform);
|
|
24227
|
-
var
|
|
24228
|
-
|
|
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);
|
|
24229
24249
|
}
|
|
24230
24250
|
var st = o.camera.position.clone().setY(fe.position.y), Qe = new THREE.Vector3().copy(fe.position).sub(st).normalize();
|
|
24231
24251
|
if (we === panoStringify(o.currentPano)) {
|
|
@@ -24243,43 +24263,43 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
24243
24263
|
fe.setOpacity(0), fe.setCurrent(!1), fe.updateTime && fe.updateTime(e, r), fe.visible = !1;
|
|
24244
24264
|
});
|
|
24245
24265
|
else if (Z) {
|
|
24246
|
-
var Ie = Z.work.observers,
|
|
24266
|
+
var Ie = Z.work.observers, $e = arrayMin(Z.accessibleNodes, function(fe) {
|
|
24247
24267
|
var we = Ie[fe];
|
|
24248
24268
|
return we ? Z.standingPosition.distanceTo(we.standingPosition) : 1 / 0;
|
|
24249
|
-
}, !0), Se =
|
|
24269
|
+
}, !0), Se = $e[1];
|
|
24250
24270
|
Se = clamp$1(Se, 3, 1 / 0);
|
|
24251
24271
|
var ze = Z.accessibleNodes.concat(Z.panoIndex).map(function(fe) {
|
|
24252
24272
|
return panoStringify({ panoIndex: fe, workCode: Z.work.workCode });
|
|
24253
24273
|
});
|
|
24254
24274
|
this.panoMeshes.forEach(function(fe, we) {
|
|
24255
|
-
var Me = o.works.getObserver(we), ke = !1,
|
|
24275
|
+
var Me = o.works.getObserver(we), ke = !1, je = 1;
|
|
24256
24276
|
if (ze.indexOf(we) === -1)
|
|
24257
|
-
ke = !1,
|
|
24277
|
+
ke = !1, je = 0;
|
|
24258
24278
|
else if (!Me)
|
|
24259
|
-
ke = !1,
|
|
24279
|
+
ke = !1, je = 0;
|
|
24260
24280
|
else if (!Me.loadable && !Me.active)
|
|
24261
|
-
ke = !1,
|
|
24281
|
+
ke = !1, je = 0;
|
|
24262
24282
|
else {
|
|
24263
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;
|
|
24264
24284
|
ke = Qe && !fe.loading && fe.progress === 0 && $ !== null && panoStringify({ panoIndex: $.panoIndex, workCode: $.work.workCode }) === we;
|
|
24265
24285
|
var Je = fe.position.clone().setY(o.camera.position.y).distanceTo(o.camera.position);
|
|
24266
|
-
|
|
24286
|
+
je = Je < 0.01 ? 0 : clamp$1(Se / Je, 0.1, 0.85);
|
|
24267
24287
|
}
|
|
24268
24288
|
if (Me && Me === ne) {
|
|
24269
24289
|
var ft = Me.position.distanceTo(Me.standingPosition) > o.aerialObserverMinHeight;
|
|
24270
24290
|
if (ft) {
|
|
24271
24291
|
var Je = fe.position.distanceTo(o.camera.position);
|
|
24272
|
-
Je < 35 && (
|
|
24292
|
+
Je < 35 && (je = 0);
|
|
24273
24293
|
}
|
|
24274
24294
|
}
|
|
24275
|
-
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);
|
|
24276
24296
|
});
|
|
24277
24297
|
}
|
|
24278
24298
|
{
|
|
24279
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;
|
|
24280
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) {
|
|
24281
24301
|
this.tiling.setObserver(null);
|
|
24282
|
-
var
|
|
24302
|
+
var tt = {
|
|
24283
24303
|
renderer: this.renderer,
|
|
24284
24304
|
resolution: this.camera.resolution,
|
|
24285
24305
|
pixelRatio: this.camera.pixelRatio,
|
|
@@ -24292,11 +24312,11 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
24292
24312
|
minLevel: 0,
|
|
24293
24313
|
level: 0
|
|
24294
24314
|
};
|
|
24295
|
-
this.tiling.update(
|
|
24315
|
+
this.tiling.update(tt), this.modelScene.parameter.set("refinedScreen", null);
|
|
24296
24316
|
} else {
|
|
24297
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;
|
|
24298
24318
|
this.tiling.setObserver(H);
|
|
24299
|
-
var
|
|
24319
|
+
var tt = {
|
|
24300
24320
|
renderer: this.renderer,
|
|
24301
24321
|
resolution: this.camera.resolution,
|
|
24302
24322
|
pixelRatio: this.camera.pixelRatio,
|
|
@@ -24308,7 +24328,7 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
24308
24328
|
panoZoom: Ue.zoom,
|
|
24309
24329
|
minLevel: nt,
|
|
24310
24330
|
level: We
|
|
24311
|
-
}, Ct = this.tiling.update(
|
|
24331
|
+
}, Ct = this.tiling.update(tt), _e = {
|
|
24312
24332
|
map: this.tiling.renderTarget.texture,
|
|
24313
24333
|
matrixInverse: this.tiling.camera.matrixWorldInverse,
|
|
24314
24334
|
projectionMatrix: this.tiling.camera.projectionMatrix,
|
|
@@ -24327,7 +24347,7 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
24327
24347
|
var yt = T.effect, Rt = this.modelScene.parameter, Oe = Rt.pano0, Le = Rt.pano1;
|
|
24328
24348
|
if (Oe && Le && Oe !== Le && (yt === "fly" || yt === "model") && this.flyEffectUseDepthBuffer) {
|
|
24329
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) {
|
|
24330
|
-
var
|
|
24350
|
+
var rt = 500, it = 512;
|
|
24331
24351
|
this.pano0DepthCubeRenderTarget ? this.pano0DepthCubeRenderTarget.width !== it && this.pano0DepthCubeRenderTarget.setSize(it, it) : this.pano0DepthCubeRenderTarget = new THREE.WebGLCubeRenderTarget(it, {
|
|
24332
24352
|
minFilter: THREE.NearestFilter,
|
|
24333
24353
|
magFilter: THREE.NearestFilter,
|
|
@@ -24338,20 +24358,20 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
|
|
|
24338
24358
|
generateMipmaps: !1
|
|
24339
24359
|
});
|
|
24340
24360
|
var ct = new THREE.CubeCamera(this.camera.near, this.camera.far, this.pano0DepthCubeRenderTarget);
|
|
24341
|
-
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);
|
|
24342
24362
|
var Xe = new THREE.CubeCamera(this.camera.near, this.camera.far, this.pano1DepthCubeRenderTarget);
|
|
24343
|
-
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({
|
|
24344
24364
|
pano0Depth: {
|
|
24345
24365
|
panoId: Oe.panoId,
|
|
24346
24366
|
map: this.pano0DepthCubeRenderTarget.texture,
|
|
24347
24367
|
mapSize: this.pano0DepthCubeRenderTarget.width,
|
|
24348
|
-
maxDepth:
|
|
24368
|
+
maxDepth: rt
|
|
24349
24369
|
},
|
|
24350
24370
|
pano1Depth: {
|
|
24351
24371
|
panoId: Le.panoId,
|
|
24352
24372
|
map: this.pano1DepthCubeRenderTarget.texture,
|
|
24353
24373
|
mapSize: this.pano1DepthCubeRenderTarget.width,
|
|
24354
|
-
maxDepth:
|
|
24374
|
+
maxDepth: rt
|
|
24355
24375
|
}
|
|
24356
24376
|
});
|
|
24357
24377
|
}
|
|
@@ -25928,8 +25948,8 @@ void main() {
|
|
|
25928
25948
|
});
|
|
25929
25949
|
var Ie = new THREE.CubeCamera(this.camera.near, this.camera.far, this.pano0DepthCubeRenderTarget);
|
|
25930
25950
|
Ie.matrix.copy(de.matrix), Ie.matrixWorld.copy(Ie.matrix), Ie.matrixAutoUpdate = !1, renderDepthCube(this.renderer, this.modelScene, Ie, ye);
|
|
25931
|
-
var
|
|
25932
|
-
|
|
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({
|
|
25933
25953
|
pano0Depth: {
|
|
25934
25954
|
panoId: de.panoId,
|
|
25935
25955
|
map: this.pano0DepthCubeRenderTarget.texture,
|
|
@@ -27541,7 +27561,7 @@ var circleImageURL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYA
|
|
|
27541
27561
|
}
|
|
27542
27562
|
return Object.defineProperty(t, "version", {
|
|
27543
27563
|
get: function() {
|
|
27544
|
-
return "6.7.0-alpha.
|
|
27564
|
+
return "6.7.0-alpha.27";
|
|
27545
27565
|
},
|
|
27546
27566
|
enumerable: !1,
|
|
27547
27567
|
configurable: !0
|
|
@@ -28455,14 +28475,14 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
28455
28475
|
if (!Re)
|
|
28456
28476
|
return "continue";
|
|
28457
28477
|
Pe && Pe.update(Re, re, oe);
|
|
28458
|
-
var qe = ye.xrManager.getController(pe),
|
|
28459
|
-
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));
|
|
28460
28480
|
var Ke = ye.modelScene.intersectRaycaster(ye.xrControllerRay.right);
|
|
28461
28481
|
if (Ke.length === 0) {
|
|
28462
28482
|
var ht = ye.works.getResolvedObserver(ye.currentPano);
|
|
28463
|
-
Ke = ye.xrControllerRay.right.intersectObject(ye.modelScene.boundingMesh, !0).map(function(
|
|
28464
|
-
var
|
|
28465
|
-
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);
|
|
28466
28486
|
});
|
|
28467
28487
|
}
|
|
28468
28488
|
if (Ke.length >= 1 && Ke[0].face)
|
|
@@ -28497,10 +28517,10 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
28497
28517
|
userAction: this.userAction,
|
|
28498
28518
|
state: __assign(__assign(__assign({}, this.currentPano), { mode: this.mode }), clonePose(this.camera.pose))
|
|
28499
28519
|
}));
|
|
28500
|
-
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);
|
|
28501
28521
|
if (this.adjustPanoCircleMeshPositionBasedOnModel && this.helper.visible && Ie) {
|
|
28502
28522
|
for (var Fe = [], Oe = Ie.work.observers, Le = 0, Ue = Ie.accessibleNodes; Le < Ue.length; Le++) {
|
|
28503
|
-
var
|
|
28523
|
+
var tt = Ue[Le], U = Oe[tt];
|
|
28504
28524
|
U && Fe.push(U);
|
|
28505
28525
|
}
|
|
28506
28526
|
var lt = /* @__PURE__ */ new Map();
|
|
@@ -28537,37 +28557,37 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
28537
28557
|
this.accessibleObserverFloorCheckCount++;
|
|
28538
28558
|
}
|
|
28539
28559
|
}
|
|
28540
|
-
var
|
|
28560
|
+
var rt = /* @__PURE__ */ new Map();
|
|
28541
28561
|
if (Se)
|
|
28542
28562
|
for (var it = 0, ct = Se.accessibleNodes; it < ct.length; it++) {
|
|
28543
|
-
var
|
|
28563
|
+
var tt = ct[it], U = Se.work.observers[tt];
|
|
28544
28564
|
if (U) {
|
|
28545
28565
|
var Ne = panoStringify({
|
|
28546
28566
|
panoIndex: U.panoIndex,
|
|
28547
28567
|
workCode: U.work.workCode
|
|
28548
28568
|
});
|
|
28549
|
-
|
|
28569
|
+
rt.set(Ne, U);
|
|
28550
28570
|
}
|
|
28551
28571
|
}
|
|
28552
28572
|
if (ze)
|
|
28553
28573
|
for (var Xe = 0, fe = ze.accessibleNodes; Xe < fe.length; Xe++) {
|
|
28554
|
-
var
|
|
28574
|
+
var tt = fe[Xe], U = ze.work.observers[tt];
|
|
28555
28575
|
if (U) {
|
|
28556
28576
|
var Ne = panoStringify({
|
|
28557
28577
|
panoIndex: U.panoIndex,
|
|
28558
28578
|
workCode: U.work.workCode
|
|
28559
28579
|
});
|
|
28560
|
-
|
|
28580
|
+
rt.set(Ne, U);
|
|
28561
28581
|
}
|
|
28562
28582
|
}
|
|
28563
28583
|
if (this.panoMeshes.forEach(function(pe, Pe) {
|
|
28564
|
-
var Re =
|
|
28565
|
-
Re ?
|
|
28566
|
-
}),
|
|
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) {
|
|
28567
28587
|
var Re = o.panoCircleMeshCreator(pe, {
|
|
28568
28588
|
aerialObserverMinHeight: o.aerialObserverMinHeight
|
|
28569
28589
|
});
|
|
28570
|
-
o.panoMeshes.set(Pe, Re), o.helper.add(Re),
|
|
28590
|
+
o.panoMeshes.set(Pe, Re), o.helper.add(Re), rt.delete(Pe);
|
|
28571
28591
|
}), this.panoMeshes.forEach(function(pe, Pe) {
|
|
28572
28592
|
var Re = o.works.getObserver(Pe);
|
|
28573
28593
|
if (Re) {
|
|
@@ -28576,8 +28596,8 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
28576
28596
|
pe.position.copy(Re.position).applyMatrix4(Re.work.transform), pe.scale.setScalar(18);
|
|
28577
28597
|
else {
|
|
28578
28598
|
pe.position.copy(Re.standingPosition).applyMatrix4(Re.work.transform);
|
|
28579
|
-
var
|
|
28580
|
-
|
|
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);
|
|
28581
28601
|
}
|
|
28582
28602
|
var ut = o.camera.position.clone().setY(pe.position.y), Ke = new THREE.Vector3().copy(pe.position).sub(ut).normalize();
|
|
28583
28603
|
if (Pe === panoStringify(o.currentPano)) {
|
|
@@ -28600,31 +28620,31 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
|
|
|
28600
28620
|
return Pe ? Ie.standingPosition.distanceTo(Pe.standingPosition) : 1 / 0;
|
|
28601
28621
|
}, !0), ke = Me[1];
|
|
28602
28622
|
ke = clamp$1(ke, 2.5, 1 / 0);
|
|
28603
|
-
var
|
|
28623
|
+
var je = Ie.accessibleNodes.concat(Ie.panoIndex).map(function(pe) {
|
|
28604
28624
|
return panoStringify({ panoIndex: pe, workCode: Ie.work.workCode });
|
|
28605
28625
|
});
|
|
28606
28626
|
this.panoMeshes.forEach(function(pe, Pe) {
|
|
28607
|
-
var Re = o.works.getObserver(Pe), qe = !1,
|
|
28608
|
-
if (
|
|
28609
|
-
qe = !1,
|
|
28627
|
+
var Re = o.works.getObserver(Pe), qe = !1, Ye = 1;
|
|
28628
|
+
if (je.indexOf(Pe) === -1)
|
|
28629
|
+
qe = !1, Ye = 0;
|
|
28610
28630
|
else if (!Re)
|
|
28611
|
-
qe = !1,
|
|
28631
|
+
qe = !1, Ye = 0;
|
|
28612
28632
|
else if (!Re.loadable && !Re.active)
|
|
28613
|
-
qe = !1,
|
|
28633
|
+
qe = !1, Ye = 0;
|
|
28614
28634
|
else {
|
|
28615
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;
|
|
28616
|
-
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;
|
|
28617
28637
|
var ht = pe.position.clone().setY(o.camera.position.y).distanceTo(o.camera.position);
|
|
28618
|
-
|
|
28638
|
+
Ye = ht < 0.01 ? 0 : clamp$1(ke / ht, 0.1, 0.85);
|
|
28619
28639
|
}
|
|
28620
28640
|
if (Re && Re === ze) {
|
|
28621
28641
|
var Bt = Re.position.distanceTo(Re.standingPosition) > o.aerialObserverMinHeight;
|
|
28622
28642
|
if (Bt) {
|
|
28623
28643
|
var ht = pe.position.distanceTo(o.camera.position);
|
|
28624
|
-
ht < 35 && (
|
|
28644
|
+
ht < 35 && (Ye = 0);
|
|
28625
28645
|
}
|
|
28626
28646
|
}
|
|
28627
|
-
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);
|
|
28628
28648
|
});
|
|
28629
28649
|
}
|
|
28630
28650
|
{
|
|
@@ -29263,7 +29283,7 @@ var DEFAULT_MODE_CHANGE_DURATION = 1e3, DEFAULT_CAMERA_FOV = 90, DEFAULT_REQUEST
|
|
|
29263
29283
|
}
|
|
29264
29284
|
return Object.defineProperty(t, "version", {
|
|
29265
29285
|
get: function() {
|
|
29266
|
-
return "6.7.0-alpha.
|
|
29286
|
+
return "6.7.0-alpha.27";
|
|
29267
29287
|
},
|
|
29268
29288
|
enumerable: !1,
|
|
29269
29289
|
configurable: !0
|