@realsee/five 6.7.0-alpha.26 → 6.7.0-alpha.28

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.
Files changed (109) hide show
  1. package/docs/assets/hierarchy.js +1 -1
  2. package/docs/assets/search.js +1 -1
  3. package/docs/classes/five.AdaptiveLuminancePass.html +1 -1
  4. package/docs/classes/five.EffectComposer.html +1 -1
  5. package/docs/classes/five.EyeDomeLightingPass.html +1 -1
  6. package/docs/classes/five.FivePass.html +1 -1
  7. package/docs/classes/five.FiveRenderer.html +1 -1
  8. package/docs/classes/five.Model.html +1 -1
  9. package/docs/classes/five.ModelScene.html +1 -1
  10. package/docs/classes/five.PBMContainer.html +1 -1
  11. package/docs/classes/five.PBMGroup.html +1 -1
  12. package/docs/classes/five.PBMMesh.html +1 -1
  13. package/docs/classes/five.PBMMeshMaterial.html +1 -1
  14. package/docs/classes/five.PBMPointCloud.html +1 -1
  15. package/docs/classes/five.PBMPointCloudMaterial.html +1 -1
  16. package/docs/classes/five.PBMSkinnedMesh.html +1 -1
  17. package/docs/classes/five.PanoCircleMesh.html +2 -2
  18. package/docs/classes/five.PanoCircleMeshCustom.html +3 -3
  19. package/docs/classes/five.PanoCircleMeshSolid.html +3 -3
  20. package/docs/classes/five.Parameter.html +1 -1
  21. package/docs/classes/five.Tile3D.html +1 -1
  22. package/docs/classes/five.TileNode.html +4 -3
  23. package/docs/classes/five.TrajectoryNode.html +1 -1
  24. package/docs/classes/five.WorkResolvedObserver.html +1 -1
  25. package/docs/classes/gltf-loader.DDSLoader.html +1 -1
  26. package/docs/classes/gltf-loader.DRACOLoader.html +1 -1
  27. package/docs/classes/gltf-loader.GLTFObject.html +1 -1
  28. package/docs/classes/gltf-loader.THREEGLTFLoader.html +1 -1
  29. package/docs/classes/line.LineGeometry.html +1 -1
  30. package/docs/classes/line.LineMaterial.html +1 -1
  31. package/docs/classes/line.LineSegmentsGeometry.html +1 -1
  32. package/docs/classes/line.THREE_Line2.html +1 -1
  33. package/docs/classes/line.THREE_LineSegments2.html +1 -1
  34. package/docs/classes/plugins.RoundedBoxGeometry.html +1 -1
  35. package/docs/classes/vfx.Airflow.html +1 -1
  36. package/docs/classes/vfx.Flame.html +1 -1
  37. package/docs/classes/vfx.Particle.html +1 -1
  38. package/docs/classes/vfx.ParticleGPU.html +1 -1
  39. package/docs/classes/vfx.SpotLight.html +1 -1
  40. package/docs/hierarchy.html +1 -1
  41. package/docs/interfaces/five.IntersectMesh.html +2 -2
  42. package/docs/interfaces/five.LooseWorkWithExtrinsics.html +1 -1
  43. package/docs/interfaces/five.PBMMaterial.html +1 -1
  44. package/docs/interfaces/five.PBMMeshMaterialParameters.html +1 -1
  45. package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +1 -1
  46. package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +1 -1
  47. package/docs/interfaces/five.ParameterMaterialValue.html +1 -1
  48. package/docs/interfaces/five.ParameterTilesetValue.html +1 -1
  49. package/docs/interfaces/five.ParameterValue.html +1 -1
  50. package/docs/interfaces/five.ResolvedParameterValue.html +1 -1
  51. package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -3
  52. package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +1 -1
  53. package/docs/interfaces/five.ViewLayer.html +1 -1
  54. package/docs/interfaces/five.WorkCubeImage.html +1 -1
  55. package/docs/interfaces/five.WorkImage.html +1 -1
  56. package/docs/interfaces/five.WorkObserver.html +1 -1
  57. package/docs/interfaces/five.WorkTile.html +1 -1
  58. package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +1 -1
  59. package/docs/interfaces/plugins.BackgroundPluginController.html +1 -1
  60. package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +1 -1
  61. package/docs/interfaces/plugins.DynamicPathLinePluginController.html +1 -1
  62. package/docs/interfaces/plugins.DynamicPathLinePluginType.EventMap.html +1 -1
  63. package/docs/interfaces/plugins.DynamicPathLinePluginType.State.html +1 -1
  64. package/docs/interfaces/plugins.ItemMaskController.html +1 -1
  65. package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +1 -1
  66. package/docs/interfaces/plugins.ItemMaskPluginType.State.html +1 -1
  67. package/docs/interfaces/plugins.OrientationPluginController.html +1 -1
  68. package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +1 -1
  69. package/docs/interfaces/plugins.OrientationPluginType.State.html +1 -1
  70. package/docs/interfaces/plugins.PanoAnimeController.html +1 -1
  71. package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +1 -1
  72. package/docs/interfaces/plugins.PanoAnimePluginType.State.html +1 -1
  73. package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +1 -1
  74. package/docs/interfaces/plugins.PluginTemplateType.State.html +1 -1
  75. package/docs/interfaces/plugins.TrajectoryController.html +1 -1
  76. package/docs/interfaces/react.FiveInjectionTypes.html +1 -1
  77. package/docs/types/five.ParseOptions.html +1 -1
  78. package/five/index.d.ts +5 -4
  79. package/five/index.js +19 -19
  80. package/five/index.mjs +225 -185
  81. package/gltf-loader/index.js +3 -3
  82. package/gltf-loader/index.mjs +3 -3
  83. package/line/index.js +3 -3
  84. package/line/index.mjs +3 -3
  85. package/package.json +1 -1
  86. package/plugins/index.js +2 -2
  87. package/plugins/index.mjs +2 -2
  88. package/react/index.js +2 -2
  89. package/react/index.mjs +2 -2
  90. package/shader-lib/index.d.ts +1 -1
  91. package/shader-lib/index.js +17 -9
  92. package/shader-lib/index.mjs +208 -199
  93. package/sticker/index.js +3 -3
  94. package/sticker/index.mjs +3 -3
  95. package/umd/five-gltf-loader.js +3 -3
  96. package/umd/five-line.js +3 -3
  97. package/umd/five-plugins.js +2 -2
  98. package/umd/five-react.js +2 -2
  99. package/umd/five-shader-lib.js +16 -8
  100. package/umd/five-sticker.js +3 -3
  101. package/umd/five-vfx.js +2 -2
  102. package/umd/five-vue.js +2 -2
  103. package/umd/five.js +19 -19
  104. package/vfx/index.js +2 -2
  105. package/vfx/index.mjs +2 -2
  106. package/vue/index.js +2 -2
  107. package/vue/index.mjs +2 -2
  108. package/work-downloader/index.js +2 -2
  109. 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/9/2025
5
- * Version: 6.7.0-alpha.26
4
+ * Generated: 12/12/2025
5
+ * Version: 6.7.0-alpha.28
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
@@ -9130,7 +9130,7 @@ var Parser = (
9130
9130
  o.metalnessMap = d, o.roughnessMap = d, e.disposeSet.add(d);
9131
9131
  })), s.doubleSided === !0 && (o.side = THREE.DoubleSide);
9132
9132
  var c = s.alphaMode || ALPHA_MODES.OPAQUE;
9133
- if (c === ALPHA_MODES.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, c === ALPHA_MODES.MASK && (o.alphaTest = s.alphaCutoff !== void 0 ? s.alphaCutoff : 0.5)), s.normalTexture !== void 0 && (r.push(this.createMaterialTexture(s.normalTexture).then(function(d) {
9133
+ if (c === ALPHA_MODES.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, c === ALPHA_MODES.MASK && (o.alphaTest = s.alphaCutoff !== void 0 ? s.alphaCutoff : 0.5, o.blending = THREE.CustomBlending, o.blendSrcAlpha = THREE.OneFactor)), s.normalTexture !== void 0 && (r.push(this.createMaterialTexture(s.normalTexture).then(function(d) {
9134
9134
  o.normalMap = d, e.disposeSet.add(d);
9135
9135
  })), o.normalScale = new THREE.Vector2(1, 1), s.normalTexture.scale !== void 0)) {
9136
9136
  var f = s.normalTexture.scale;
@@ -9250,6 +9250,26 @@ var Parser = (
9250
9250
  return s = s.then(function(d) {
9251
9251
  return e.disposeSet.add(d), d;
9252
9252
  }), this.cache.set(r, s), s;
9253
+ }, n.prototype.normalizeSkinWeights = function(t) {
9254
+ var e = t.geometry, r = e.attributes.skinWeight;
9255
+ if (!r.normalized)
9256
+ t.normalizeSkinWeights();
9257
+ else {
9258
+ var o = 0;
9259
+ if (r.array instanceof Uint8Array)
9260
+ o = 255;
9261
+ else if (r.array instanceof Uint16Array)
9262
+ o = 65535;
9263
+ else if (r.array instanceof Uint32Array)
9264
+ o = 4294967295;
9265
+ else
9266
+ return;
9267
+ for (var s = new THREE.Vector4(), u = 0, l = r.count; u < l; u++) {
9268
+ s.x = r.getX(u), s.y = r.getY(u), s.z = r.getZ(u), s.w = r.getW(u);
9269
+ var c = o / s.manhattanLength();
9270
+ c !== 1 && (!isNaN(c) && isFinite(c) ? s.multiplyScalar(c) : s.set(o, 0, 0, 0), r.setXYZW(u, s.x, s.y, s.z, s.w));
9271
+ }
9272
+ }
9253
9273
  }, n.prototype.loadMesh = function(t) {
9254
9274
  for (var e = this, r = null, o = 0, s = values(this.extensions); o < s.length; o++) {
9255
9275
  var u = s[o];
@@ -9268,7 +9288,7 @@ var Parser = (
9268
9288
  if (T === WEBGL_CONSTANTS.TRIANGLES || T === WEBGL_CONSTANTS.TRIANGLE_STRIP || T === WEBGL_CONSTANTS.TRIANGLE_FAN)
9269
9289
  if (T === WEBGL_CONSTANTS.TRIANGLE_STRIP ? A = e.toGeometryTrianglesDrawMode(A, THREE.TriangleStripDrawMode) : T === WEBGL_CONSTANTS.TRIANGLE_FAN && (A = e.toGeometryTrianglesDrawMode(A, THREE.TriangleFanDrawMode)), e.disposeSet.add(A), l.isSkinnedMesh) {
9270
9290
  var R = new THREE.SkinnedMesh(A, b);
9271
- A.attributes.skinWeight.normalized || R.normalizeSkinWeights(), S = R;
9291
+ e.normalizeSkinWeights(R), S = R;
9272
9292
  } else
9273
9293
  S = new THREE.Mesh(A, b);
9274
9294
  else if (T === WEBGL_CONSTANTS.POINTS)
@@ -10644,7 +10664,7 @@ var BaseExtension = (
10644
10664
  if (b === WEBGL_CONSTANTS.TRIANGLES || b === WEBGL_CONSTANTS.TRIANGLE_STRIP || b === WEBGL_CONSTANTS.TRIANGLE_FAN)
10645
10665
  if (b === WEBGL_CONSTANTS.TRIANGLE_STRIP ? v = r.toGeometryTrianglesDrawMode(v, THREE.TriangleStripDrawMode) : b === WEBGL_CONSTANTS.TRIANGLE_FAN && (v = r.toGeometryTrianglesDrawMode(v, THREE.TriangleFanDrawMode)), v.clearGroups(), v.addGroup(0, v.index ? v.index.count : v.attributes.position.count, 0), r.disposeSet.add(v), s.isSkinnedMesh) {
10646
10666
  var S = new PBMSkinnedMesh(v, [A]);
10647
- v.attributes.skinWeight.normalized || S.normalizeSkinWeights(), T = S;
10667
+ r.normalizeSkinWeights(S), T = S;
10648
10668
  } else
10649
10669
  T = new PBMMesh(v, [A]);
10650
10670
  else if (b === WEBGL_CONSTANTS.POINTS)
@@ -10692,7 +10712,7 @@ var BaseExtension = (
10692
10712
  });
10693
10713
  }), u;
10694
10714
  }, t.prototype.extendTexture = function(e, r, o) {
10695
- return e.minFilter = THREE.LinearFilter, e.magFilter = THREE.LinearFilter, e.generateMipmaps = !1, e;
10715
+ return e instanceof THREE.CompressedTexture || (e.minFilter = THREE.LinearFilter, e.magFilter = THREE.LinearFilter, e.generateMipmaps = !1), e;
10696
10716
  }, t.prototype.loadPBMPointCloudMaterial = function(e, r) {
10697
10717
  var o = new PBMPointCloudMaterial();
10698
10718
  return r.disposeSet.add(o), Promise.resolve(o);
@@ -10707,12 +10727,12 @@ var BaseExtension = (
10707
10727
  u.color = new THREE.Color().fromArray(f), u.colorAlpha = f[3];
10708
10728
  }
10709
10729
  c.baseColorTexture !== void 0 && o.push(r.createMaterialTexture(c.baseColorTexture).then(function(p) {
10710
- r.disposeSet.add(p), p.encoding = THREE.sRGBEncoding, u.map = p;
10730
+ p.encoding = THREE.sRGBEncoding, u.map = p, l.alphaMode === ALPHA_MODES.MASK && !(p instanceof THREE.CompressedTexture) && p.minFilter !== THREE.LinearMipmapLinearFilter && (p.minFilter = THREE.LinearMipmapLinearFilter, p.generateMipmaps = !0), r.disposeSet.add(p);
10711
10731
  })), u.metalness = c.metallicFactor !== void 0 ? c.metallicFactor : 1, u.roughness = c.roughnessFactor !== void 0 ? c.roughnessFactor : 1, c.metallicRoughnessTexture !== void 0 && o.push(r.createMaterialTexture(c.metallicRoughnessTexture).then(function(p) {
10712
- r.disposeSet.add(p), p.encoding = THREE.sRGBEncoding, u.roughnessMap = p, u.metalnessMap = p;
10732
+ u.roughnessMap = p, u.metalnessMap = p, r.disposeSet.add(p);
10713
10733
  })), l.doubleSided === !0 && (u.side = THREE.DoubleSide);
10714
10734
  var d = l.alphaMode || ALPHA_MODES.OPAQUE;
10715
- if (u.alphaMode = "OPAQUE", d === ALPHA_MODES.BLEND ? (u.alphaMode = "BLEND", u.transparent = !0, u.depthWrite = !1) : (u.transparent = !1, d === ALPHA_MODES.MASK && (u.alphaMode = "MASK", u.alphaTest = l.alphaCutoff !== void 0 ? l.alphaCutoff : 0.5)), l.normalTexture !== void 0 && (o.push(r.createMaterialTexture(l.normalTexture).then(function(p) {
10735
+ if (u.alphaMode = "OPAQUE", d === ALPHA_MODES.BLEND ? (u.alphaMode = "BLEND", u.transparent = !0, u.depthWrite = !1) : (u.transparent = !1, d === ALPHA_MODES.MASK && (u.alphaMode = "MASK", u.alphaTest = l.alphaCutoff !== void 0 ? l.alphaCutoff : 0.5, u.blending = THREE.CustomBlending, u.blendSrcAlpha = THREE.OneFactor)), l.normalTexture !== void 0 && (o.push(r.createMaterialTexture(l.normalTexture).then(function(p) {
10716
10736
  r.disposeSet.add(p), u.normalMap = p;
10717
10737
  })), u.normalScale = new THREE.Vector2(1, 1), l.normalTexture.scale !== void 0)) {
10718
10738
  var h = l.normalTexture.scale;
@@ -13434,18 +13454,18 @@ function parse$1(n, t) {
13434
13454
  if (typeof Ie != "string")
13435
13455
  throw new Error("X3p: PointDataLink not found.");
13436
13456
  Ie = pathJoin(le, Ie);
13437
- var Ze = se[Ie];
13438
- if (!Ze)
13439
- throw new Error("X3p: ".concat(Ze, " not found."));
13440
- for (var Se = getPointArray(Ze.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, $e = Le + 1, lt = new Float32Array(Ue * $e * 3), nt = new Float32Array(Ue * $e * 2), ot = new Uint32Array(Oe * Le * 6), At = new THREE.Box3(), We = 0; We < $e; We++)
13457
+ var $e = se[Ie];
13458
+ if (!$e)
13459
+ throw new Error("X3p: ".concat($e, " not found."));
13460
+ 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
13461
  for (var Ct = We * Ve.y.increment + Ve.y.offset, _e = 0; _e < Ue; _e++) {
13442
13462
  var Ne = We * Ue + _e, bt = _e * Ve.x.increment + Ve.x.offset, It = Se[Ne], Tt = !isNaN(It), yt = Tt ? It : NaN;
13443
13463
  _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
13464
  }
13445
13465
  for (var We = 0; We < Le; We++)
13446
13466
  for (var _e = 0; _e < Oe; _e++) {
13447
- var Rt = _e + Ue * We, tt = _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] = tt, ot[Xe + 2] = ct, ot[Xe + 3] = tt, ot[Xe + 4] = it, ot[Xe + 5] = ct;
13467
+ 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;
13468
+ 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
13469
  }
13450
13470
  var fe = new THREE.BufferGeometry();
13451
13471
  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;
@@ -14536,20 +14556,20 @@ var Motion = (
14536
14556
  /** @class */
14537
14557
  (function(n) {
14538
14558
  __extends(t, n);
14539
- function t(e, r, o) {
14540
- o === void 0 && (o = noop);
14541
- var s = n.call(this) || this;
14542
- return s.name = e, s.materials = [], s.pbmObjects = [], s.contentObject = r, s.appearMotion = new Motion({ appear: 0 }), s.disposers = [o], s.add(r), r.traverse(function(u) {
14543
- if (u instanceof THREE.Mesh || u instanceof THREE.Points) {
14544
- var l = u.material;
14545
- if (Array.isArray(l))
14546
- for (var c = 0; c < l.length; c++)
14547
- s.materials.push(l[c]);
14559
+ function t(e, r, o, s) {
14560
+ s === void 0 && (s = noop);
14561
+ var u = n.call(this) || this;
14562
+ return u.name = e, u.materials = [], u.pbmObjects = [], u.contentObject = r, u.animations = o, u.appearMotion = new Motion({ appear: 0 }), u.disposers = [s], u.add(r), r.traverse(function(l) {
14563
+ if (l instanceof THREE.Mesh || l instanceof THREE.Points) {
14564
+ var c = l.material;
14565
+ if (Array.isArray(c))
14566
+ for (var f = 0; f < c.length; f++)
14567
+ u.materials.push(c[f]);
14548
14568
  else
14549
- s.materials.push(l);
14569
+ u.materials.push(c);
14550
14570
  }
14551
- (u instanceof PBMMesh || u instanceof PBMSkinnedMesh || u instanceof PBMPointCloud) && s.pbmObjects.push(u);
14552
- }), s;
14571
+ (l instanceof PBMMesh || l instanceof PBMSkinnedMesh || l instanceof PBMPointCloud) && u.pbmObjects.push(l);
14572
+ }), u;
14553
14573
  }
14554
14574
  return t.prototype.generateBvhTree = function() {
14555
14575
  return generateBvhTree(this, !0, 200, 20);
@@ -14608,7 +14628,7 @@ var Motion = (
14608
14628
  }
14609
14629
  this.disposers.length = 0, this.pbmObjects.length = 0;
14610
14630
  }, t.prototype.clone = function() {
14611
- return new t(this.name, this.contentObject.clone());
14631
+ return new t(this.name, this.contentObject.clone(), this.animations);
14612
14632
  }, t;
14613
14633
  })(THREE.Object3D)
14614
14634
  );
@@ -14618,7 +14638,7 @@ function updatePBMMesh(n, t, e, r, o, s, u) {
14618
14638
  versionMap$1.set(n, u.version), l = !0, n.castShadow = u.castShadow, n.receiveShadow = u.receiveShadow;
14619
14639
  for (var c = n.material, f = 0, d = c; f < d.length; f++) {
14620
14640
  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));
14641
+ 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.alphaMode === "MASK" && (h.blending = THREE.CustomBlending, h.blendSrcAlpha = THREE.OneFactor), 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
14642
  }
14623
14643
  }
14624
14644
  return l;
@@ -15832,7 +15852,7 @@ function loadTileContent(n, t) {
15832
15852
  uri: s.uri,
15833
15853
  byteLength: s.byteLength,
15834
15854
  memoryUsage: s.memoryUsage,
15835
- object: new TileNode(n.id, s.scene, s.dispose)
15855
+ object: new TileNode(n.id, s.scene, s.animations, s.dispose)
15836
15856
  };
15837
15857
  return Promise.resolve().then(function() {
15838
15858
  u.object.traverse(function(l) {
@@ -19047,13 +19067,15 @@ var EffectComposer = (
19047
19067
  }, n.prototype.insertPass = function(t, e) {
19048
19068
  this.passes.splice(e, 0, t);
19049
19069
  }, n.prototype.render = function(t) {
19070
+ var e = !1;
19050
19071
  this.renderTarget1.texture.encoding = t.outputEncoding, this.renderTarget2.texture.encoding = t.outputEncoding;
19051
- for (var e = this.clock.getDelta(), r = !1, o = this.passes.filter(function(c) {
19052
- return c.enabled;
19053
- }), s = 0; s < o.length; s++) {
19054
- var u = o[s], l = s === o.length - 1;
19055
- u.renderToScreen = this.renderToScreen && l, u.gbuffer = this.gbuffer, u.render(t, this.writeBuffer, this.readBuffer, e, r), u.gbuffer = null, u.needsSwap && this.swapBuffers();
19072
+ for (var r = this.clock.getDelta(), o = !1, s = this.passes.filter(function(f) {
19073
+ return f.enabled;
19074
+ }), u = 0; u < s.length; u++) {
19075
+ var l = s[u], c = u === s.length - 1;
19076
+ 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
19077
  }
19078
+ return e;
19057
19079
  }, n.prototype.setSize = function(t, e) {
19058
19080
  this.renderTarget1.setSize(t, e), this.renderTarget2.setSize(t, e);
19059
19081
  for (var r = 0; r < this.passes.length; r++)
@@ -19407,10 +19429,11 @@ void main() {
19407
19429
  /** @class */
19408
19430
  (function() {
19409
19431
  function n() {
19432
+ this.name = "SceneRenderer";
19410
19433
  }
19411
19434
  return n.prototype.clearBuffers = function() {
19412
- }, n.prototype.render = function(t, e, r, o, s) {
19413
- t.setRenderTarget(s), t.render(e, o);
19435
+ }, n.prototype.render = function(t, e, r, o, s, u) {
19436
+ return s ? (t.setRenderTarget(u), t.render(e, o), !0) : !1;
19414
19437
  }, n;
19415
19438
  })()
19416
19439
  ), scratchViewport$3 = new THREE.Vector4(), sampleVertexShader = `
@@ -19448,49 +19471,53 @@ var SSAASceneRnderer = (
19448
19471
  __extends(t, n);
19449
19472
  function t() {
19450
19473
  var e = n !== null && n.apply(this, arguments) || this;
19451
- return e.sampleRenderTarget = null, e.sampleLevel = 2, e.unbiased = !0, e;
19474
+ return e.name = "SSAASceneRnderer", e.sampleLevel = 2, e.unbiased = !0, e.sampleRenderTarget = null, e;
19452
19475
  }
19453
19476
  return t.prototype.clearBuffers = function() {
19454
19477
  n.prototype.clearBuffers.call(this), this.sampleRenderTarget && (this.sampleRenderTarget.dispose(), this.sampleRenderTarget = null);
19455
- }, t.prototype.render = function(e, r, o, s, u) {
19456
- var l = e.getPixelRatio(), c = e.getViewport(scratchViewport$3), f = c.width * l, d = c.height * l;
19478
+ }, t.prototype.render = function(e, r, o, s, u, l) {
19479
+ if (this.sampleLevel < 0)
19480
+ return n.prototype.render.call(this, e, r, o, s, !0, l);
19481
+ if (!u)
19482
+ return !1;
19483
+ var c = e.getPixelRatio(), f = e.getViewport(scratchViewport$3), d = f.width * c, h = f.height * c;
19457
19484
  this.sampleRenderTarget || (this.sampleRenderTarget = new THREE.WebGLRenderTarget(1, 1, {
19458
19485
  minFilter: THREE.LinearFilter,
19459
19486
  magFilter: THREE.LinearFilter,
19460
19487
  format: THREE.RGBAFormat,
19461
19488
  stencilBuffer: !0,
19462
19489
  depthBuffer: !0
19463
- }), this.sampleRenderTarget.texture.name = "SSAASceneRnderer.sample"), this.sampleRenderTarget.texture.encoding = e.outputEncoding, this.sampleRenderTarget.setSize(f, d), u != null && u.depthTexture && (e.setRenderTarget(u), e.render(r, s));
19464
- var h = JitterVectors[Math.max(0, Math.min(this.sampleLevel, 5))], p = e.autoClear;
19490
+ }), 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));
19491
+ var p = JitterVectors[Math.max(0, Math.min(this.sampleLevel, 5))], g = e.autoClear;
19465
19492
  e.autoClear = !1;
19466
- var g = e.getClearColor().getHex(), m = e.getClearAlpha(), E = 1 / h.length, y = 1 / 32, v = {
19467
- fullWidth: f,
19468
- fullHeight: d,
19493
+ var m = e.getClearColor().getHex(), E = e.getClearAlpha(), y = 1 / p.length, v = 1 / 32, A = {
19494
+ fullWidth: d,
19495
+ fullHeight: h,
19469
19496
  offsetX: 0,
19470
19497
  offsetY: 0,
19471
- width: f,
19472
- height: d
19473
- }, A = Object.assign({}, s.view);
19474
- A.enabled && Object.assign(v, A);
19475
- for (var b = 0; b < h.length; b++) {
19476
- var T = h[b];
19498
+ width: d,
19499
+ height: h
19500
+ }, b = Object.assign({}, s.view);
19501
+ b.enabled && Object.assign(A, b);
19502
+ for (var T = 0; T < p.length; T++) {
19503
+ var S = p[T];
19477
19504
  s.setViewOffset && s.setViewOffset(
19478
- v.fullWidth,
19479
- v.fullHeight,
19480
- v.offsetX + T[0] * 0.0625,
19481
- v.offsetY + T[1] * 0.0625,
19505
+ A.fullWidth,
19506
+ A.fullHeight,
19507
+ A.offsetX + S[0] * 0.0625,
19508
+ A.offsetY + S[1] * 0.0625,
19482
19509
  // 0.0625 = 1 / 16
19483
- v.width,
19484
- v.height
19510
+ A.width,
19511
+ A.height
19485
19512
  );
19486
- var S = E;
19513
+ var R = y;
19487
19514
  if (this.unbiased) {
19488
- var R = -0.5 + (b + 0.5) / h.length;
19489
- S += y * R;
19515
+ var M = -0.5 + (T + 0.5) / p.length;
19516
+ R += v * M;
19490
19517
  }
19491
- e.setClearColor(g, m), e.setRenderTarget(this.sampleRenderTarget), e.clear(), e.render(r, s), e.setRenderTarget(u), b === 0 && (e.setClearColor(0, 0), e.clearColor(), e.clearStencil()), renderSample(e, this.sampleRenderTarget.texture, S);
19518
+ 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
19519
  }
19493
- s.setViewOffset && A.enabled ? s.setViewOffset(A.fullWidth, A.fullHeight, A.offsetX, A.offsetY, A.width, A.height) : s.clearViewOffset && s.clearViewOffset(), s.needsRender = !1, e.autoClear = p, e.setClearColor(g, m);
19520
+ 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
19521
  }, t;
19495
19522
  })(SceneRenderer)
19496
19523
  ), JitterVectors = [
@@ -19636,12 +19663,14 @@ var PointCloudHighQualitySceneRnderer = (
19636
19663
  __extends(t, n);
19637
19664
  function t() {
19638
19665
  var e = n !== null && n.apply(this, arguments) || this;
19639
- return e.tempRenderTarget = null, e;
19666
+ return e.name = "PointCloudHighQualitySceneRnderer", e.tempRenderTarget = null, e;
19640
19667
  }
19641
19668
  return t.prototype.clearBuffers = function() {
19642
19669
  n.prototype.clearBuffers.call(this), this.tempRenderTarget && (this.tempRenderTarget.dispose(), this.tempRenderTarget = null);
19643
- }, t.prototype.render = function(e, r, o, s, u) {
19644
- var l = e.getPixelRatio(), c = e.getViewport(scratchViewport$2), f = c.width * l, d = c.height * l;
19670
+ }, t.prototype.render = function(e, r, o, s, u, l) {
19671
+ if (!u)
19672
+ return !1;
19673
+ var c = e.getPixelRatio(), f = e.getViewport(scratchViewport$2), d = f.width * c, h = f.height * c;
19645
19674
  this.tempRenderTarget || (this.tempRenderTarget = new THREE.WebGLRenderTarget(1, 1, {
19646
19675
  magFilter: THREE.LinearFilter,
19647
19676
  minFilter: THREE.LinearFilter,
@@ -19649,15 +19678,15 @@ var PointCloudHighQualitySceneRnderer = (
19649
19678
  generateMipmaps: !1,
19650
19679
  depthBuffer: !0,
19651
19680
  stencilBuffer: !0
19652
- }), this.tempRenderTarget.texture.name = "PointCloudHighQualitySceneRnderer.temp");
19653
- var h = this.tempRenderTarget.depthTexture;
19654
- if (!h || h.image.width !== f || h.image.height !== d) {
19655
- var p = new THREE.DepthTexture(f, d);
19656
- p.generateMipmaps = !1, p.format = THREE.DepthStencilFormat, p.type = THREE.UnsignedInt248Type, p.needsUpdate = !0, this.tempRenderTarget.depthTexture = p, h && h.dispose(), this.tempRenderTarget.dispose();
19657
- }
19658
- this.tempRenderTarget.texture.encoding = e.outputEncoding, this.tempRenderTarget.setSize(f, d);
19659
- var g = e.getClearColor().clone(), m = e.getClearAlpha();
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(g, m), e.autoClearDepth = !0, e.autoClearColor = !0, e.setRenderTarget(u), renderFullScreenDepth(e, this.tempRenderTarget.depthTexture), e.autoClearDepth = !1, renderPointCloudHighQualityFullScreen(e, this.tempRenderTarget.texture, this.tempRenderTarget.depthTexture), e.autoClearDepth = !0;
19681
+ }), this.tempRenderTarget.texture.name = "".concat(this.name, ".temp"));
19682
+ var p = this.tempRenderTarget.depthTexture;
19683
+ if (!p || p.image.width !== d || p.image.height !== h) {
19684
+ var g = new THREE.DepthTexture(d, h);
19685
+ g.generateMipmaps = !1, g.format = THREE.DepthStencilFormat, g.type = THREE.UnsignedInt248Type, g.needsUpdate = !0, this.tempRenderTarget.depthTexture = g, p && p.dispose(), this.tempRenderTarget.dispose();
19686
+ }
19687
+ this.tempRenderTarget.texture.encoding = e.outputEncoding, this.tempRenderTarget.setSize(d, h);
19688
+ var m = e.getClearColor().clone(), E = e.getClearAlpha();
19689
+ 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
19690
  }, t;
19662
19691
  })(SceneRenderer)
19663
19692
  ), scratchViewport$1 = new THREE.Vector4(), normalMaterial = new THREE.MeshNormalMaterial({
@@ -19684,22 +19713,23 @@ var PointCloudHighQualitySceneRnderer = (
19684
19713
  "point-cloud-high-quality": new PointCloudHighQualitySceneRnderer()
19685
19714
  };
19686
19715
  }
19687
- return n.prototype.renderSceneToBuffers = function(t, e, r, o, s) {
19688
- var u = this.composer, l = u.gbuffer, c = u.status, f = c.needsColorGBuffer, d = c.needsDepthGBuffer, h = c.needsNormalGBuffer;
19689
- l.clear(), this.colorRenderTarget.texture.encoding = t.outputEncoding, this.normalRenderTarget.texture.encoding = t.outputEncoding;
19690
- for (var p in this.sceneRenders) {
19691
- var g = p;
19692
- g !== this.renderMode && this.sceneRenders[g].clearBuffers();
19716
+ return n.prototype.renderSceneToBuffers = function(t, e, r, o, s, u) {
19717
+ var l = this.composer, c = l.gbuffer, f = l.status, d = f.needsColorGBuffer, h = f.needsDepthGBuffer, p = f.needsNormalGBuffer, g = !1;
19718
+ c.clear(), this.colorRenderTarget.texture.encoding = t.outputEncoding, this.normalRenderTarget.texture.encoding = t.outputEncoding;
19719
+ for (var m in this.sceneRenders) {
19720
+ var E = m;
19721
+ E !== this.renderMode && this.sceneRenders[E].clearBuffers();
19693
19722
  }
19694
19723
  if (this.sceneRenders[this.renderMode]) {
19695
- var m = s ? null : this.colorRenderTarget;
19696
- this.sceneRenders[this.renderMode].render(t, e, r, o, m);
19724
+ var y = u ? null : this.colorRenderTarget;
19725
+ g = this.sceneRenders[this.renderMode].render(t, e, r, o, s, y);
19697
19726
  }
19698
- if (f && l.set("color", this.colorRenderTarget.texture), d && l.set("depth", this.colorRenderTarget.depthTexture), h) {
19727
+ if (d && c.set("color", this.colorRenderTarget.texture), h && c.set("depth", this.colorRenderTarget.depthTexture), p) {
19699
19728
  t.setRenderTarget(this.normalRenderTarget);
19700
- var E = e.overrideMaterial;
19701
- e.overrideMaterial = normalMaterial, t.setRenderTarget(this.normalRenderTarget), t.render(e, o), e.overrideMaterial = E, l.set("normal", this.normalRenderTarget.texture);
19729
+ var v = e.overrideMaterial;
19730
+ e.overrideMaterial = normalMaterial, t.setRenderTarget(this.normalRenderTarget), t.render(e, o), e.overrideMaterial = v, c.set("normal", this.normalRenderTarget.texture);
19702
19731
  }
19732
+ return g;
19703
19733
  }, n.prototype.render = function(t, e, r, o, s) {
19704
19734
  var u = !1;
19705
19735
  this.composer.updateStatus();
@@ -19707,7 +19737,7 @@ var PointCloudHighQualitySceneRnderer = (
19707
19737
  t.setRenderTarget(null);
19708
19738
  var c = this.composer.status, f = c.endabledPassNumber, d = c.needsDepthGBuffer, h = c.needsNormalGBuffer, p = c.version;
19709
19739
  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 = "", s && (this.renderSceneToBuffers(t, e, r, o, !0), u = !0);
19740
+ 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
19741
  else {
19712
19742
  var g = t.getPixelRatio(), m = t.getViewport(scratchViewport$1), E = m.width * g, y = m.height * g;
19713
19743
  if (this.composer.setSize(E, y), s === !1 && p !== this.composerVersion && (this.composerVersion = p, s = !0), s) {
@@ -19719,9 +19749,9 @@ var PointCloudHighQualitySceneRnderer = (
19719
19749
  }
19720
19750
  } else
19721
19751
  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), this.renderSceneToBuffers(t, e, r, o, !1);
19752
+ this.colorRenderTarget.setSize(E, y), h ? this.normalRenderTarget.setSize(E, y) : this.normalRenderTarget.setSize(1, 1);
19723
19753
  }
19724
- t.setRenderTarget(this.composer.readBuffer), renderFullScreen(t, this.colorRenderTarget.texture), this.composer.render(t), u = !0;
19754
+ this.renderSceneToBuffers(t, e, r, o, s, !1), t.setRenderTarget(this.composer.readBuffer), renderFullScreen(t, this.colorRenderTarget.texture), u = this.composer.render(t);
19725
19755
  }
19726
19756
  return t.setRenderTarget(l), u;
19727
19757
  }, n.prototype.dispose = function() {
@@ -19982,6 +20012,7 @@ void main() {
19982
20012
  blendSrcAlpha: THREE.OneFactor,
19983
20013
  blendDstAlpha: THREE.OneMinusSrcAlphaFactor,
19984
20014
  depthWrite: !1,
20015
+ transparent: !0,
19985
20016
  vertexShader: vertexShader$4,
19986
20017
  fragmentShader: fragmentShader$4,
19987
20018
  uniforms: {
@@ -20276,6 +20307,7 @@ void main() {
20276
20307
  blendSrcAlpha: THREE.OneFactor,
20277
20308
  blendDstAlpha: THREE.OneMinusSrcAlphaFactor,
20278
20309
  depthWrite: !1,
20310
+ transparent: !0,
20279
20311
  vertexShader: vertexShader$3,
20280
20312
  fragmentShader: fragmentShader$3,
20281
20313
  uniforms: {
@@ -20589,6 +20621,7 @@ void main() {
20589
20621
  blendSrcAlpha: THREE.OneFactor,
20590
20622
  blendDstAlpha: THREE.OneMinusSrcAlphaFactor,
20591
20623
  depthWrite: !1,
20624
+ transparent: !0,
20592
20625
  vertexShader: vertexShader$2,
20593
20626
  fragmentShader: fragmentShader$2,
20594
20627
  defines: {
@@ -20970,8 +21003,8 @@ var Hammer = (function(n, t, e, r) {
20970
21003
  var Te = B[ce][_];
20971
21004
  O(Y, Te) < 0 && V.push(B[ce]), Y[ce] = Te, ce++;
20972
21005
  }
20973
- return V = V.sort(function(Ye, De) {
20974
- return Ye[_] > De[_];
21006
+ return V = V.sort(function(Ze, De) {
21007
+ return Ze[_] > De[_];
20975
21008
  }), V;
20976
21009
  }
20977
21010
  function H(B, _) {
@@ -21019,7 +21052,7 @@ var Hammer = (function(n, t, e, r) {
21019
21052
  };
21020
21053
  function le(B) {
21021
21054
  var _, N = B.options.inputClass;
21022
- return N ? _ = N : z ? _ = $e : J ? _ = Ne : U ? _ = yt : _ = ze, new _(B, me);
21055
+ return N ? _ = N : z ? _ = tt : J ? _ = Ne : U ? _ = yt : _ = ze, new _(B, me);
21023
21056
  }
21024
21057
  function me(B, _, N) {
21025
21058
  var V = N.pointers.length, Y = N.changedPointers.length, ce = _ & ee && V - Y === 0, Te = _ & ($ | X) && V - Y === 0;
@@ -21028,8 +21061,8 @@ var Hammer = (function(n, t, e, r) {
21028
21061
  function ge(B, _) {
21029
21062
  var N = B.session, V = _.pointers, Y = V.length;
21030
21063
  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, je = Te ? Te.center : ce.center, Ye = _.center = He(V);
21032
- _.timeStamp = f(), _.deltaTime = _.timeStamp - ce.timeStamp, _.angle = Ve(je, Ye), _.distance = he(je, Ye), Ae(N, _), _.offsetDirection = xe(_.deltaX, _.deltaY);
21064
+ var ce = N.firstInput, Te = N.firstMultiple, Ge = Te ? Te.center : ce.center, Ze = _.center = He(V);
21065
+ _.timeStamp = f(), _.deltaTime = _.timeStamp - ce.timeStamp, _.angle = Ve(Ge, Ze), _.distance = he(Ge, Ze), Ae(N, _), _.offsetDirection = xe(_.deltaX, _.deltaY);
21033
21066
  var De = Ce(_.deltaTime, _.deltaX, _.deltaY);
21034
21067
  _.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
21068
  var St = B.element;
@@ -21046,13 +21079,13 @@ var Hammer = (function(n, t, e, r) {
21046
21079
  }), _.deltaX = Y.x + (N.x - V.x), _.deltaY = Y.y + (N.y - V.y);
21047
21080
  }
21048
21081
  function ue(B, _) {
21049
- var N = B.lastInterval || _, V = _.timeStamp - N.timeStamp, Y, ce, Te, je;
21082
+ var N = B.lastInterval || _, V = _.timeStamp - N.timeStamp, Y, ce, Te, Ge;
21050
21083
  if (_.eventType != X && (V > ae || N.velocity === r)) {
21051
- var Ye = _.deltaX - N.deltaX, De = _.deltaY - N.deltaY, St = Ce(V, Ye, De);
21052
- ce = St.x, Te = St.y, Y = c(St.x) > c(St.y) ? St.x : St.y, je = xe(Ye, De), B.lastInterval = _;
21084
+ var Ze = _.deltaX - N.deltaX, De = _.deltaY - N.deltaY, St = Ce(V, Ze, De);
21085
+ ce = St.x, Te = St.y, Y = c(St.x) > c(St.y) ? St.x : St.y, Ge = xe(Ze, De), B.lastInterval = _;
21053
21086
  } else
21054
- Y = N.velocity, ce = N.velocityX, Te = N.velocityY, je = N.direction;
21055
- _.velocity = Y, _.velocityX = ce, _.velocityY = Te, _.direction = je;
21087
+ Y = N.velocity, ce = N.velocityX, Te = N.velocityY, Ge = N.direction;
21088
+ _.velocity = Y, _.velocityX = ce, _.velocityY = Te, _.direction = Ge;
21056
21089
  }
21057
21090
  function be(B) {
21058
21091
  for (var _ = [], N = 0; N < B.pointers.length; )
@@ -21111,9 +21144,9 @@ var Hammer = (function(n, t, e, r) {
21111
21144
  mousedown: ee,
21112
21145
  mousemove: Z,
21113
21146
  mouseup: $
21114
- }, Ze = "mousedown", Se = "mousemove mouseup";
21147
+ }, $e = "mousedown", Se = "mousemove mouseup";
21115
21148
  function ze() {
21116
- this.evEl = Ze, this.evWin = Se, this.pressed = !1, se.apply(this, arguments);
21149
+ this.evEl = $e, this.evWin = Se, this.pressed = !1, se.apply(this, arguments);
21117
21150
  }
21118
21151
  v(ze, se, {
21119
21152
  /**
@@ -21144,20 +21177,20 @@ var Hammer = (function(n, t, e, r) {
21144
21177
  // see https://twitter.com/jacobrossi/status/480596438489890816
21145
21178
  }, Le = "pointerdown", Ue = "pointermove pointerup pointercancel";
21146
21179
  n.MSPointerEvent && !n.PointerEvent && (Le = "MSPointerDown", Ue = "MSPointerMove MSPointerUp MSPointerCancel");
21147
- function $e() {
21180
+ function tt() {
21148
21181
  this.evEl = Le, this.evWin = Ue, se.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
21149
21182
  }
21150
- v($e, se, {
21183
+ v(tt, se, {
21151
21184
  /**
21152
21185
  * handle mouse events
21153
21186
  * @param {Object} ev
21154
21187
  */
21155
21188
  handler: function(_) {
21156
- var N = this.store, V = !1, Y = !1, ce = _.type.toLowerCase().replace("ms", ""), Te = Fe[ce], je = Oe[_.pointerType] || _.pointerType, Ye = je == Q, De = O(N, _.pointerId, "pointerId");
21157
- Te & ee && (_.button === 0 || _.button === 2 || Ye) ? De < 0 && (N.push(_), De = N.length - 1) : Te & ($ | X) ? V = !0 : !Ye && _.buttons === 0 && (V = !0, Y = !0, Te = Fe.pointerup), !(De < 0) && (Y || (N[De] = _), this.callback(this.manager, Te, {
21189
+ 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");
21190
+ 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
21191
  pointers: N,
21159
21192
  changedPointers: [_],
21160
- pointerType: je,
21193
+ pointerType: Ge,
21161
21194
  srcEvent: N[De]
21162
21195
  }), V && N.splice(De, 1));
21163
21196
  }
@@ -21213,19 +21246,19 @@ var Hammer = (function(n, t, e, r) {
21213
21246
  var N = C(B.touches), V = this.targetIds;
21214
21247
  if (_ & (ee | Z) && N.length === 1)
21215
21248
  return V[N[0].identifier] = !0, [N, N];
21216
- var Y, ce, Te = C(B.changedTouches), je = [], Ye = this.target;
21249
+ var Y, ce, Te = C(B.changedTouches), Ge = [], Ze = this.target;
21217
21250
  if (ce = N.filter(function(De) {
21218
- return M(De.target, Ye);
21251
+ return M(De.target, Ze);
21219
21252
  }), _ === ee)
21220
21253
  for (Y = 0; Y < ce.length; )
21221
21254
  V[ce[Y].identifier] = !0, Y++;
21222
21255
  for (Y = 0; Y < Te.length; )
21223
- V[Te[Y].identifier] && je.push(Te[Y]), _ & ($ | X) && delete V[Te[Y].identifier], Y++;
21224
- if (je.length)
21256
+ V[Te[Y].identifier] && Ge.push(Te[Y]), _ & ($ | X) && delete V[Te[Y].identifier], Y++;
21257
+ if (Ge.length)
21225
21258
  return [
21226
21259
  // merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'
21227
- I(ce.concat(je), "identifier"),
21228
- je
21260
+ I(ce.concat(Ge), "identifier"),
21261
+ Ge
21229
21262
  ];
21230
21263
  }
21231
21264
  var It = 2500, Tt = 25;
@@ -21259,9 +21292,9 @@ var Hammer = (function(n, t, e, r) {
21259
21292
  }
21260
21293
  });
21261
21294
  function Rt(B, _) {
21262
- B & ee ? (this.primaryTouch = _.changedPointers[0].identifier, tt.call(this, _)) : B & ($ | X) && tt.call(this, _);
21295
+ B & ee ? (this.primaryTouch = _.changedPointers[0].identifier, rt.call(this, _)) : B & ($ | X) && rt.call(this, _);
21263
21296
  }
21264
- function tt(B) {
21297
+ function rt(B) {
21265
21298
  var _ = B.changedPointers[0];
21266
21299
  if (_.identifier === this.primaryTouch) {
21267
21300
  var N = { x: _.clientX, y: _.clientY };
@@ -21281,7 +21314,7 @@ var Hammer = (function(n, t, e, r) {
21281
21314
  }
21282
21315
  return !1;
21283
21316
  }
21284
- var ct = s ? H(s.style, "touchAction") : r, Xe = ct !== r, fe = "compute", we = "auto", Me = "manipulation", ke = "none", Ge = "pan-x", st = "pan-y", Qe = Ht();
21317
+ 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
21318
  function Je(B, _) {
21286
21319
  this.manager = B, this.set(_);
21287
21320
  }
@@ -21319,10 +21352,10 @@ var Hammer = (function(n, t, e, r) {
21319
21352
  _.preventDefault();
21320
21353
  return;
21321
21354
  }
21322
- var V = this.actions, Y = w(V, ke) && !Qe[ke], ce = w(V, st) && !Qe[st], Te = w(V, Ge) && !Qe[Ge];
21355
+ var V = this.actions, Y = w(V, ke) && !Qe[ke], ce = w(V, st) && !Qe[st], Te = w(V, je) && !Qe[je];
21323
21356
  if (Y) {
21324
- var je = B.pointers.length === 1, Ye = B.distance < 2, De = B.deltaTime < 250;
21325
- if (je && Ye && De)
21357
+ var Ge = B.pointers.length === 1, Ze = B.distance < 2, De = B.deltaTime < 250;
21358
+ if (Ge && Ze && De)
21326
21359
  return;
21327
21360
  }
21328
21361
  if (!(Te && ce) && (Y || ce && N & ie || Te && N & ve))
@@ -21339,8 +21372,8 @@ var Hammer = (function(n, t, e, r) {
21339
21372
  function ft(B) {
21340
21373
  if (w(B, ke))
21341
21374
  return ke;
21342
- var _ = w(B, Ge), N = w(B, st);
21343
- return _ && N ? ke : _ || N ? _ ? Ge : st : w(B, Me) ? Me : we;
21375
+ var _ = w(B, je), N = w(B, st);
21376
+ return _ && N ? ke : _ || N ? _ ? je : st : w(B, Me) ? Me : we;
21344
21377
  }
21345
21378
  function Ht() {
21346
21379
  if (!Xe)
@@ -21559,7 +21592,7 @@ var Hammer = (function(n, t, e, r) {
21559
21592
  },
21560
21593
  getTouchAction: function() {
21561
21594
  var B = this.options.direction, _ = [];
21562
- return B & ie && _.push(st), B & ve && _.push(Ge), _;
21595
+ return B & ie && _.push(st), B & ve && _.push(je), _;
21563
21596
  },
21564
21597
  directionTest: function(B) {
21565
21598
  var _ = this.options, N = !0, V = B.distance, Y = B.direction, ce = B.deltaX, Te = B.deltaY;
@@ -21719,8 +21752,8 @@ var Hammer = (function(n, t, e, r) {
21719
21752
  return this.failTimeout();
21720
21753
  var ce = this.pTime ? B.timeStamp - this.pTime < _.interval : !0, Te = !this.pCenter || he(this.pCenter, B.center) < _.posThreshold;
21721
21754
  this.pTime = B.timeStamp, this.pCenter = B.center, !Te || !ce ? this.count = 1 : this.count += 1, this._input = B;
21722
- var je = this.count % _.taps;
21723
- if (je === 0)
21755
+ var Ge = this.count % _.taps;
21756
+ if (Ge === 0)
21724
21757
  return this.hasRequireFailures() ? (this._timer = d(function() {
21725
21758
  this.state = pt, this.tryEmit();
21726
21759
  }, _.interval, this), dt) : pt;
@@ -21838,7 +21871,7 @@ var Hammer = (function(n, t, e, r) {
21838
21871
  tapHighlightColor: "rgba(0,0,0,0)"
21839
21872
  }
21840
21873
  };
21841
- var rt = 1, ut = 2;
21874
+ var Ye = 1, ut = 2;
21842
21875
  function Ke(B, _) {
21843
21876
  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
21877
  var V = this.add(new N[0](N[1]));
@@ -21861,7 +21894,7 @@ var Hammer = (function(n, t, e, r) {
21861
21894
  * @param {Boolean} [force]
21862
21895
  */
21863
21896
  stop: function(B) {
21864
- this.session.stopped = B ? ut : rt;
21897
+ this.session.stopped = B ? ut : Ye;
21865
21898
  },
21866
21899
  /**
21867
21900
  * run the recognizers!
@@ -22010,7 +22043,7 @@ var Hammer = (function(n, t, e, r) {
22010
22043
  TouchAction: Je,
22011
22044
  TouchInput: Ne,
22012
22045
  MouseInput: ze,
22013
- PointerEventInput: $e,
22046
+ PointerEventInput: tt,
22014
22047
  TouchMouseInput: yt,
22015
22048
  SingleTouchInput: At,
22016
22049
  Recognizer: Et,
@@ -22656,14 +22689,15 @@ void main() {
22656
22689
  blendDst: THREE.OneMinusSrcAlphaFactor,
22657
22690
  blendSrcAlpha: THREE.OneFactor,
22658
22691
  blendDstAlpha: THREE.OneMinusSrcAlphaFactor,
22659
- depthWrite: !1
22692
+ depthWrite: !1,
22693
+ transparent: !0
22660
22694
  }), IntersectMesh = (
22661
22695
  /** @class */
22662
22696
  (function(n) {
22663
22697
  __extends(t, n);
22664
22698
  function t() {
22665
22699
  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 = -2, e.add(e.ringMesh), e;
22700
+ 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
22701
  }
22668
22702
  return t.prototype.dispose = function() {
22669
22703
  this.remove(this.ringMesh);
@@ -23040,7 +23074,7 @@ void main() {
23040
23074
  this.intersectMesh.visible = !1, this.needsRender = !0;
23041
23075
  }, t;
23042
23076
  })(BaseController)
23043
- ), defaultTopviewControllerCustomInitArgs = __assign({}, omit(defaultFloorplanControllerCustomInitArgs, ["defaultLongitude", "defaultLatitude", "maxLatitude", "minLatitude"])), TopviewController = (
23077
+ ), defaultTopviewControllerCustomInitArgs = __assign(__assign({}, omit(defaultFloorplanControllerCustomInitArgs, ["defaultLongitude", "defaultLatitude", "maxLatitude", "minLatitude"])), { defaultLongitude: 0, defaultLatitude: Math.PI / 2 }), TopviewController = (
23044
23078
  /** @class */
23045
23079
  (function(n) {
23046
23080
  __extends(t, n);
@@ -23049,15 +23083,21 @@ void main() {
23049
23083
  return r = n.call(this, o) || this, r.mode = "Topview", r;
23050
23084
  }
23051
23085
  return t.parseArgs = function(e) {
23086
+ var r, o;
23052
23087
  if (e instanceof t)
23053
23088
  return e;
23054
- var r = __assign(__assign({}, e), { defaultLongitude: 0, defaultLatitude: Math.PI / 2 });
23055
- return n.parseArgs.call(this, r);
23089
+ 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 });
23090
+ return n.parseArgs.call(this, s);
23056
23091
  }, t.initAnimationEndState = function(e) {
23057
- var r = this.parseArgs(e), o = n.initAnimationEndState.call(this, r);
23058
- return __assign(__assign({}, o), { longitude: r.defaultLongitude, latitude: r.defaultLatitude, mode: "Topview" });
23092
+ 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), {
23093
+ // 如果没有用户输入的 state, 则使用默认值。
23094
+ // 避免后续 super.initAnimationEndState 中缺失使用 currentState 的逻辑。
23095
+ longitude: (r = s.initial.state.longitude) !== null && r !== void 0 ? r : s.defaultLongitude,
23096
+ latitude: (o = s.initial.state.latitude) !== null && o !== void 0 ? o : s.defaultLatitude
23097
+ }) }) }));
23098
+ return __assign(__assign({}, u), { mode: "Topview" });
23059
23099
  }, t.prototype.updateConfiguration = function(e) {
23060
- return n.prototype.updateConfiguration.call(this, __assign(__assign({}, e), { defaultLongitude: 0, defaultLatitude: Math.PI / 2 }));
23100
+ return n.prototype.updateConfiguration.call(this, __assign({}, e));
23061
23101
  }, t.prototype.updateModel = function(e) {
23062
23102
  this.needsRender = !0;
23063
23103
  var r = this.modelScene.boundingBox.getCenter(new THREE.Vector3());
@@ -24224,8 +24264,8 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
24224
24264
  fe.position.copy(Me.position).applyMatrix4(Me.work.transform), fe.scale.setScalar(18);
24225
24265
  else {
24226
24266
  fe.position.copy(Me.standingPosition).applyMatrix4(Me.work.transform);
24227
- var Ge = o.adjustPanoCircleMeshPositionFix.get(Me.panoId);
24228
- Ge && (scratchVector3$3.set(Ge.x, Ge.y, Ge.z), scratchVector3$3.equals(fe.position) && (fe.position.y += Ge.w)), fe.scale.setScalar(1.2);
24267
+ var je = o.adjustPanoCircleMeshPositionFix.get(Me.panoId);
24268
+ 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
24269
  }
24230
24270
  var st = o.camera.position.clone().setY(fe.position.y), Qe = new THREE.Vector3().copy(fe.position).sub(st).normalize();
24231
24271
  if (we === panoStringify(o.currentPano)) {
@@ -24243,43 +24283,43 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
24243
24283
  fe.setOpacity(0), fe.setCurrent(!1), fe.updateTime && fe.updateTime(e, r), fe.visible = !1;
24244
24284
  });
24245
24285
  else if (Z) {
24246
- var Ie = Z.work.observers, Ze = arrayMin(Z.accessibleNodes, function(fe) {
24286
+ var Ie = Z.work.observers, $e = arrayMin(Z.accessibleNodes, function(fe) {
24247
24287
  var we = Ie[fe];
24248
24288
  return we ? Z.standingPosition.distanceTo(we.standingPosition) : 1 / 0;
24249
- }, !0), Se = Ze[1];
24289
+ }, !0), Se = $e[1];
24250
24290
  Se = clamp$1(Se, 3, 1 / 0);
24251
24291
  var ze = Z.accessibleNodes.concat(Z.panoIndex).map(function(fe) {
24252
24292
  return panoStringify({ panoIndex: fe, workCode: Z.work.workCode });
24253
24293
  });
24254
24294
  this.panoMeshes.forEach(function(fe, we) {
24255
- var Me = o.works.getObserver(we), ke = !1, Ge = 1;
24295
+ var Me = o.works.getObserver(we), ke = !1, je = 1;
24256
24296
  if (ze.indexOf(we) === -1)
24257
- ke = !1, Ge = 0;
24297
+ ke = !1, je = 0;
24258
24298
  else if (!Me)
24259
- ke = !1, Ge = 0;
24299
+ ke = !1, je = 0;
24260
24300
  else if (!Me.loadable && !Me.active)
24261
- ke = !1, Ge = 0;
24301
+ ke = !1, je = 0;
24262
24302
  else {
24263
24303
  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
24304
  ke = Qe && !fe.loading && fe.progress === 0 && $ !== null && panoStringify({ panoIndex: $.panoIndex, workCode: $.work.workCode }) === we;
24265
24305
  var Je = fe.position.clone().setY(o.camera.position.y).distanceTo(o.camera.position);
24266
- Ge = Je < 0.01 ? 0 : clamp$1(Se / Je, 0.1, 0.85);
24306
+ je = Je < 0.01 ? 0 : clamp$1(Se / Je, 0.1, 0.85);
24267
24307
  }
24268
24308
  if (Me && Me === ne) {
24269
24309
  var ft = Me.position.distanceTo(Me.standingPosition) > o.aerialObserverMinHeight;
24270
24310
  if (ft) {
24271
24311
  var Je = fe.position.distanceTo(o.camera.position);
24272
- Je < 35 && (Ge = 0);
24312
+ Je < 35 && (je = 0);
24273
24313
  }
24274
24314
  }
24275
- fe.setCurrent(ke), fe.setOpacity(Ge), fe.updateTime && fe.updateTime(e, r);
24315
+ o.modelScene.parameter.resolveValue().modelAlpha > 0 && (je = 0), fe.setCurrent(ke), fe.setOpacity(je), fe.updateTime && fe.updateTime(e, r);
24276
24316
  });
24277
24317
  }
24278
24318
  {
24279
24319
  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
24320
  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
24321
  this.tiling.setObserver(null);
24282
- var $e = {
24322
+ var tt = {
24283
24323
  renderer: this.renderer,
24284
24324
  resolution: this.camera.resolution,
24285
24325
  pixelRatio: this.camera.pixelRatio,
@@ -24292,11 +24332,11 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
24292
24332
  minLevel: 0,
24293
24333
  level: 0
24294
24334
  };
24295
- this.tiling.update($e), this.modelScene.parameter.set("refinedScreen", null);
24335
+ this.tiling.update(tt), this.modelScene.parameter.set("refinedScreen", null);
24296
24336
  } else {
24297
24337
  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
24338
  this.tiling.setObserver(H);
24299
- var $e = {
24339
+ var tt = {
24300
24340
  renderer: this.renderer,
24301
24341
  resolution: this.camera.resolution,
24302
24342
  pixelRatio: this.camera.pixelRatio,
@@ -24308,7 +24348,7 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
24308
24348
  panoZoom: Ue.zoom,
24309
24349
  minLevel: nt,
24310
24350
  level: We
24311
- }, Ct = this.tiling.update($e), _e = {
24351
+ }, Ct = this.tiling.update(tt), _e = {
24312
24352
  map: this.tiling.renderTarget.texture,
24313
24353
  matrixInverse: this.tiling.camera.matrixWorldInverse,
24314
24354
  projectionMatrix: this.tiling.camera.projectionMatrix,
@@ -24327,7 +24367,7 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
24327
24367
  var yt = T.effect, Rt = this.modelScene.parameter, Oe = Rt.pano0, Le = Rt.pano1;
24328
24368
  if (Oe && Le && Oe !== Le && (yt === "fly" || yt === "model") && this.flyEffectUseDepthBuffer) {
24329
24369
  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 tt = 500, it = 512;
24370
+ var rt = 500, it = 512;
24331
24371
  this.pano0DepthCubeRenderTarget ? this.pano0DepthCubeRenderTarget.width !== it && this.pano0DepthCubeRenderTarget.setSize(it, it) : this.pano0DepthCubeRenderTarget = new THREE.WebGLCubeRenderTarget(it, {
24332
24372
  minFilter: THREE.NearestFilter,
24333
24373
  magFilter: THREE.NearestFilter,
@@ -24338,20 +24378,20 @@ var scratchRaycaster$1 = new THREE.Raycaster(), scratchVector3$3 = new THREE.Vec
24338
24378
  generateMipmaps: !1
24339
24379
  });
24340
24380
  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, tt);
24381
+ ct.matrix.copy(Oe.matrix), ct.matrixWorld.copy(ct.matrix), ct.matrixAutoUpdate = !1, renderDepthCube(this.renderer, this.modelScene, ct, rt);
24342
24382
  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, tt), this.modelScene.parameter.set({
24383
+ 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
24384
  pano0Depth: {
24345
24385
  panoId: Oe.panoId,
24346
24386
  map: this.pano0DepthCubeRenderTarget.texture,
24347
24387
  mapSize: this.pano0DepthCubeRenderTarget.width,
24348
- maxDepth: tt
24388
+ maxDepth: rt
24349
24389
  },
24350
24390
  pano1Depth: {
24351
24391
  panoId: Le.panoId,
24352
24392
  map: this.pano1DepthCubeRenderTarget.texture,
24353
24393
  mapSize: this.pano1DepthCubeRenderTarget.width,
24354
- maxDepth: tt
24394
+ maxDepth: rt
24355
24395
  }
24356
24396
  });
24357
24397
  }
@@ -25928,8 +25968,8 @@ void main() {
25928
25968
  });
25929
25969
  var Ie = new THREE.CubeCamera(this.camera.near, this.camera.far, this.pano0DepthCubeRenderTarget);
25930
25970
  Ie.matrix.copy(de.matrix), Ie.matrixWorld.copy(Ie.matrix), Ie.matrixAutoUpdate = !1, renderDepthCube(this.renderer, this.modelScene, Ie, ye);
25931
- var Ze = new THREE.CubeCamera(this.camera.near, this.camera.far, this.pano1DepthCubeRenderTarget);
25932
- Ze.matrix.copy(Ee.matrix), Ze.matrixWorld.copy(Ze.matrix), Ze.matrixAutoUpdate = !1, renderDepthCube(this.renderer, this.modelScene, Ze, ye), this.modelScene.parameter.set({
25971
+ var $e = new THREE.CubeCamera(this.camera.near, this.camera.far, this.pano1DepthCubeRenderTarget);
25972
+ $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
25973
  pano0Depth: {
25934
25974
  panoId: de.panoId,
25935
25975
  map: this.pano0DepthCubeRenderTarget.texture,
@@ -27541,7 +27581,7 @@ var circleImageURL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYA
27541
27581
  }
27542
27582
  return Object.defineProperty(t, "version", {
27543
27583
  get: function() {
27544
- return "6.7.0-alpha.26";
27584
+ return "6.7.0-alpha.28";
27545
27585
  },
27546
27586
  enumerable: !1,
27547
27587
  configurable: !0
@@ -28455,14 +28495,14 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
28455
28495
  if (!Re)
28456
28496
  return "continue";
28457
28497
  Pe && Pe.update(Re, re, oe);
28458
- var qe = ye.xrManager.getController(pe), rt = new THREE.Vector3(0, 1.2, 0), ut = qe.position.clone().add(te).sub(rt);
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(rt));
28498
+ var qe = ye.xrManager.getController(pe), Ye = new THREE.Vector3(0, 1.2, 0), ut = qe.position.clone().add(te).sub(Ye);
28499
+ 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
28500
  var Ke = ye.modelScene.intersectRaycaster(ye.xrControllerRay.right);
28461
28501
  if (Ke.length === 0) {
28462
28502
  var ht = ye.works.getResolvedObserver(ye.currentPano);
28463
- Ke = ye.xrControllerRay.right.intersectObject(ye.modelScene.boundingMesh, !0).map(function(je) {
28464
- var Ye, De = (Ye = ht == null ? void 0 : ht.floorIndex) !== null && Ye !== void 0 ? Ye : 0;
28465
- return __assign({ floorIndex: De, floor: De }, je);
28503
+ Ke = ye.xrControllerRay.right.intersectObject(ye.modelScene.boundingMesh, !0).map(function(Ge) {
28504
+ var Ze, De = (Ze = ht == null ? void 0 : ht.floorIndex) !== null && Ze !== void 0 ? Ze : 0;
28505
+ return __assign({ floorIndex: De, floor: De }, Ge);
28466
28506
  });
28467
28507
  }
28468
28508
  if (Ke.length >= 1 && Ke[0].face)
@@ -28497,10 +28537,10 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
28497
28537
  userAction: this.userAction,
28498
28538
  state: __assign(__assign(__assign({}, this.currentPano), { mode: this.mode }), clonePose(this.camera.pose))
28499
28539
  }));
28500
- var Ie = this.works.getResolvedObserver(this.currentPano), Ze = this.locationMotion.ended ? this.getForwardObserverOrNot(this.xrManager.cameraVR) : null, Se = this.works.getObserver(w.panoId), ze = this.works.getObserver(P.panoId);
28540
+ 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
28541
  if (this.adjustPanoCircleMeshPositionBasedOnModel && this.helper.visible && Ie) {
28502
28542
  for (var Fe = [], Oe = Ie.work.observers, Le = 0, Ue = Ie.accessibleNodes; Le < Ue.length; Le++) {
28503
- var $e = Ue[Le], U = Oe[$e];
28543
+ var tt = Ue[Le], U = Oe[tt];
28504
28544
  U && Fe.push(U);
28505
28545
  }
28506
28546
  var lt = /* @__PURE__ */ new Map();
@@ -28537,37 +28577,37 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
28537
28577
  this.accessibleObserverFloorCheckCount++;
28538
28578
  }
28539
28579
  }
28540
- var tt = /* @__PURE__ */ new Map();
28580
+ var rt = /* @__PURE__ */ new Map();
28541
28581
  if (Se)
28542
28582
  for (var it = 0, ct = Se.accessibleNodes; it < ct.length; it++) {
28543
- var $e = ct[it], U = Se.work.observers[$e];
28583
+ var tt = ct[it], U = Se.work.observers[tt];
28544
28584
  if (U) {
28545
28585
  var Ne = panoStringify({
28546
28586
  panoIndex: U.panoIndex,
28547
28587
  workCode: U.work.workCode
28548
28588
  });
28549
- tt.set(Ne, U);
28589
+ rt.set(Ne, U);
28550
28590
  }
28551
28591
  }
28552
28592
  if (ze)
28553
28593
  for (var Xe = 0, fe = ze.accessibleNodes; Xe < fe.length; Xe++) {
28554
- var $e = fe[Xe], U = ze.work.observers[$e];
28594
+ var tt = fe[Xe], U = ze.work.observers[tt];
28555
28595
  if (U) {
28556
28596
  var Ne = panoStringify({
28557
28597
  panoIndex: U.panoIndex,
28558
28598
  workCode: U.work.workCode
28559
28599
  });
28560
- tt.set(Ne, U);
28600
+ rt.set(Ne, U);
28561
28601
  }
28562
28602
  }
28563
28603
  if (this.panoMeshes.forEach(function(pe, Pe) {
28564
- var Re = tt.get(Pe);
28565
- Re ? tt.delete(Pe) : (o.helper.remove(pe), pe.dispose(), o.panoMeshes.delete(Pe));
28566
- }), tt.forEach(function(pe, Pe) {
28604
+ var Re = rt.get(Pe);
28605
+ Re ? rt.delete(Pe) : (o.helper.remove(pe), pe.dispose(), o.panoMeshes.delete(Pe));
28606
+ }), rt.forEach(function(pe, Pe) {
28567
28607
  var Re = o.panoCircleMeshCreator(pe, {
28568
28608
  aerialObserverMinHeight: o.aerialObserverMinHeight
28569
28609
  });
28570
- o.panoMeshes.set(Pe, Re), o.helper.add(Re), tt.delete(Pe);
28610
+ o.panoMeshes.set(Pe, Re), o.helper.add(Re), rt.delete(Pe);
28571
28611
  }), this.panoMeshes.forEach(function(pe, Pe) {
28572
28612
  var Re = o.works.getObserver(Pe);
28573
28613
  if (Re) {
@@ -28576,8 +28616,8 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
28576
28616
  pe.position.copy(Re.position).applyMatrix4(Re.work.transform), pe.scale.setScalar(18);
28577
28617
  else {
28578
28618
  pe.position.copy(Re.standingPosition).applyMatrix4(Re.work.transform);
28579
- var rt = o.adjustPanoCircleMeshPositionFix.get(Re.panoId);
28580
- rt && (scratchVector3.set(rt.x, rt.y, rt.z), scratchVector3.equals(pe.position) && (pe.position.y += rt.w)), pe.scale.setScalar(1.2);
28619
+ var Ye = o.adjustPanoCircleMeshPositionFix.get(Re.panoId);
28620
+ Ye && (scratchVector3.set(Ye.x, Ye.y, Ye.z), scratchVector3.equals(pe.position) && (pe.position.y += Ye.w)), pe.scale.setScalar(1.2);
28581
28621
  }
28582
28622
  var ut = o.camera.position.clone().setY(pe.position.y), Ke = new THREE.Vector3().copy(pe.position).sub(ut).normalize();
28583
28623
  if (Pe === panoStringify(o.currentPano)) {
@@ -28600,31 +28640,31 @@ var CONTROLLER_EVNET_DELTA_TIME = 300, scratchRaycaster = new THREE.Raycaster(),
28600
28640
  return Pe ? Ie.standingPosition.distanceTo(Pe.standingPosition) : 1 / 0;
28601
28641
  }, !0), ke = Me[1];
28602
28642
  ke = clamp$1(ke, 2.5, 1 / 0);
28603
- var Ge = Ie.accessibleNodes.concat(Ie.panoIndex).map(function(pe) {
28643
+ var je = Ie.accessibleNodes.concat(Ie.panoIndex).map(function(pe) {
28604
28644
  return panoStringify({ panoIndex: pe, workCode: Ie.work.workCode });
28605
28645
  });
28606
28646
  this.panoMeshes.forEach(function(pe, Pe) {
28607
- var Re = o.works.getObserver(Pe), qe = !1, rt = 1;
28608
- if (Ge.indexOf(Pe) === -1)
28609
- qe = !1, rt = 0;
28647
+ var Re = o.works.getObserver(Pe), qe = !1, Ye = 1;
28648
+ if (je.indexOf(Pe) === -1)
28649
+ qe = !1, Ye = 0;
28610
28650
  else if (!Re)
28611
- qe = !1, rt = 0;
28651
+ qe = !1, Ye = 0;
28612
28652
  else if (!Re.loadable && !Re.active)
28613
- qe = !1, rt = 0;
28653
+ qe = !1, Ye = 0;
28614
28654
  else {
28615
28655
  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 && Ze !== null && panoStringify({ panoIndex: Ze.panoIndex, workCode: Ze.work.workCode }) === Pe;
28656
+ qe = Ke && !pe.loading && pe.progress === 0 && $e !== null && panoStringify({ panoIndex: $e.panoIndex, workCode: $e.work.workCode }) === Pe;
28617
28657
  var ht = pe.position.clone().setY(o.camera.position.y).distanceTo(o.camera.position);
28618
- rt = ht < 0.01 ? 0 : clamp$1(ke / ht, 0.1, 0.85);
28658
+ Ye = ht < 0.01 ? 0 : clamp$1(ke / ht, 0.1, 0.85);
28619
28659
  }
28620
28660
  if (Re && Re === ze) {
28621
28661
  var Bt = Re.position.distanceTo(Re.standingPosition) > o.aerialObserverMinHeight;
28622
28662
  if (Bt) {
28623
28663
  var ht = pe.position.distanceTo(o.camera.position);
28624
- ht < 35 && (rt = 0);
28664
+ ht < 35 && (Ye = 0);
28625
28665
  }
28626
28666
  }
28627
- pe.setCurrent(qe), pe.setOpacity(rt), pe.updateTime && pe.updateTime(e, r);
28667
+ o.modelScene.parameter.resolveValue().modelAlpha > 0 && (Ye = 0), pe.setCurrent(qe), pe.setOpacity(Ye), pe.updateTime && pe.updateTime(e, r);
28628
28668
  });
28629
28669
  }
28630
28670
  {
@@ -29263,7 +29303,7 @@ var DEFAULT_MODE_CHANGE_DURATION = 1e3, DEFAULT_CAMERA_FOV = 90, DEFAULT_REQUEST
29263
29303
  }
29264
29304
  return Object.defineProperty(t, "version", {
29265
29305
  get: function() {
29266
- return "6.7.0-alpha.26";
29306
+ return "6.7.0-alpha.28";
29267
29307
  },
29268
29308
  enumerable: !1,
29269
29309
  configurable: !0