@realsee/five 6.3.0-alpha.3 → 6.3.0-alpha.5

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/five/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 11/8/2024
5
- * Version: 6.3.0-alpha.3
4
+ * Generated: 11/12/2024
5
+ * Version: 6.3.0-alpha.5
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
@@ -5253,19 +5253,22 @@ var Wi = {
5253
5253
  vertexShader: jc,
5254
5254
  fragmentShader: Xc,
5255
5255
  uniforms: d.UniformsUtils.merge([Wi, { opacity: { value: 1 } }, d.UniformsLib.fog]),
5256
- lights: !1
5256
+ lights: !1,
5257
+ clipping: !1
5257
5258
  },
5258
5259
  basic: {
5259
5260
  vertexShader: _c,
5260
5261
  fragmentShader: Wc,
5261
5262
  uniforms: d.UniformsUtils.merge([Wi, d.ShaderLib.basic.uniforms]),
5262
- lights: !1
5263
+ lights: !1,
5264
+ clipping: !0
5263
5265
  },
5264
5266
  phong: {
5265
5267
  vertexShader: Zc,
5266
5268
  fragmentShader: Yc,
5267
5269
  uniforms: d.UniformsUtils.merge([Wi, d.ShaderLib.phong.uniforms]),
5268
- lights: !0
5270
+ lights: !0,
5271
+ clipping: !0
5269
5272
  }
5270
5273
  }, $n = (
5271
5274
  /** @class */
@@ -5279,6 +5282,7 @@ var Wi = {
5279
5282
  fragmentShader: L.fragmentShader,
5280
5283
  uniforms: d.UniformsUtils.clone(L.uniforms),
5281
5284
  lights: L.lights,
5285
+ clipping: L.clipping,
5282
5286
  defines: {
5283
5287
  USE_CONSTANT_COLOR: !1,
5284
5288
  USE_EDL: !1,
@@ -5466,7 +5470,7 @@ var Wi = {
5466
5470
  e.vertexShader = e.vertexShader.replace(/NUM_CLIPPERS/g, o), e.fragmentShader = e.fragmentShader.replace(/NUM_CLIPPERS/g, o);
5467
5471
  }, t.prototype.refreshUniforms = function(e) {
5468
5472
  var r, i, a = this.uniforms;
5469
- a.diffuse && a.diffuse.value.copy(this.color), a.opacity && (a.opacity.value = this.opacity), a.color && a.diffuse.value.copy(this.color), a.emissive && a.emissive.value.copy(this.emissive).multiplyScalar(this.emissiveIntensity), a.map && (a.map.value = this.map), a.alphaMap && (a.alphaMap.value = this.alphaMap), a.specularMap && (a.specularMap.value = this.specularMap), a.envMap && (a.envMap.value = this.envMap, a.flipEnvMap.value = !((r = this.envMap) === null || r === void 0) && r.isCubeTexture ? -1 : 1, a.reflectivity.value = this.reflectivity, a.refractionRatio.value = this.refractionRatio, a.maxMipLevel.value = this.envMap && (i = e.properties.get(this.envMap).__maxMipLevel) !== null && i !== void 0 ? i : 0), a.lightMap && (a.lightMap.value = this.lightMap, a.lightMapIntensity.value = this.lightMapIntensity), a.aoMap && (a.aoMap.value = this.aoMap, a.aoMapIntensity.value = this.aoMapIntensity), a.specular && a.specular.value.copy(this.specular), a.shininess && (a.shininess.value = Math.max(this.shininess, 1e-4)), a.emissiveMap && (a.emissiveMap.value = this.emissiveMap), a.bumpMap && (a.bumpMap.value = this.bumpMap, a.bumpScale.value = this.bumpScale, this.side === d.BackSide && (a.bumpScale.value *= -1)), a.normalMap && (a.normalMap.value = this.normalMap, a.normalScale.value.copy(this.normalScale), this.side === d.BackSide && a.normalScale.value.negate()), a.displacementMap && (a.displacementMap.value = this.displacementMap, a.displacementScale.value = this.displacementScale, a.displacementBias.value = this.displacementBias);
5473
+ a.diffuse && a.diffuse.value.copy(this.color), a.opacity && (a.opacity.value = this.opacity), a.color && a.diffuse.value.copy(this.color), a.emissive && a.emissive.value.copy(this.emissive).multiplyScalar(this.emissiveIntensity), a.map && (a.map.value = this.map), a.alphaMap && (a.alphaMap.value = this.alphaMap), a.specularMap && (a.specularMap.value = this.specularMap), a.envMap && (a.envMap.value = this.envMap, a.flipEnvMap.value = !((r = this.envMap) === null || r === void 0) && r.isCubeTexture ? -1 : 1, a.reflectivity.value = this.reflectivity, a.refractionRatio.value = this.refractionRatio, a.maxMipLevel.value = this.envMap && (i = e == null ? void 0 : e.properties.get(this.envMap).__maxMipLevel) !== null && i !== void 0 ? i : 0), a.lightMap && (a.lightMap.value = this.lightMap, a.lightMapIntensity.value = this.lightMapIntensity), a.aoMap && (a.aoMap.value = this.aoMap, a.aoMapIntensity.value = this.aoMapIntensity), a.specular && a.specular.value.copy(this.specular), a.shininess && (a.shininess.value = Math.max(this.shininess, 1e-4)), a.emissiveMap && (a.emissiveMap.value = this.emissiveMap), a.bumpMap && (a.bumpMap.value = this.bumpMap, a.bumpScale.value = this.bumpScale, this.side === d.BackSide && (a.bumpScale.value *= -1)), a.normalMap && (a.normalMap.value = this.normalMap, a.normalScale.value.copy(this.normalScale), this.side === d.BackSide && a.normalScale.value.negate()), a.displacementMap && (a.displacementMap.value = this.displacementMap, a.displacementScale.value = this.displacementScale, a.displacementBias.value = this.displacementBias);
5470
5474
  var o;
5471
5475
  this.map ? o = this.map : this.specularMap ? o = this.specularMap : this.displacementMap ? o = this.displacementMap : this.normalMap ? o = this.normalMap : this.bumpMap ? o = this.bumpMap : this.alphaMap ? o = this.alphaMap : this.emissiveMap && (o = this.emissiveMap), o !== void 0 && (o.matrixAutoUpdate === !0 && o.updateMatrix(), a.uvTransform.value.copy(o.matrix));
5472
5476
  var s;
@@ -5486,7 +5490,7 @@ const ed = function() {
5486
5490
  return t[a].split(o).map(function(s) {
5487
5491
  return s.charCodeAt(a) > i ? s : String.fromCharCode((s.charCodeAt(a) + r) % i);
5488
5492
  }).join(o);
5489
- }("{vs|z-sy|n-sy||H0vs-qrsv{rq5b`RlP\\[`aN[alP\\Y\\_6--{vs|z-rp@-p|{n{P|y|H0r{qvs0vs-qrsv{rq5b`Rl]\\V[al[\\_ZNY6--n\bv{t-rp@-[|znyH0r{qvs0vs-qrsv{rq5b`RlRQY6--n\bv{t-sy|n-Y|tQr}uH0r{qvsp-Pyv}}r-\n--znA-znv\x07V{rrH--sy|n-sy||V{qr\x07H\fH0vs-[bZlPYV]]R_`-K-=--{vs|z-Pyv}}r-pyv}}rh[bZlPYV]]R_`jH0r{qvs0vs-qrsv{rq5b`Rl]YN[RlQV`aN[PR6--p-]yn{r-\n----rp@-{|znyH----sy|n-p|{n{H--\fH--{vs|z-]yn{r-rr{{r]yn{rhCjH--{vs|z-rp@-rr{{r]yn{r[|znyH--{vs|z-sy|n-rr{{r]yn{rQH--{vs|z-sy|n-rr{{r]yn{rQr}uH0r{qvsn\bv{t-rpA-d|yq]|vv|{Hn\bv{t-rp@-PnzrnQvrpv|{Hn\bv{t-rp@-P|y|Hn\bv{t-sy|n-]|v{`v rH{vs|z-sy|n-|}npv\bH{vs|z-sy|n-z|qryNy}unH{vs|z-sy|n-u|{Sy||V{qr\x07H<<u调整{vs|z-sy|n-p|y|`nnv|{H{vs|z-sy|n-p|y|Ovtu{rH0v{pyqr-Ip|zz|{K0v{pyqr-Is|tl}nlsntzr{K0v{pyqr-Iy|tqr}uosl}nlsntzr{K0v{pyqr-Ipyv}}v{tl}yn{rl}nlsntzr{Krp@-nqwP|y|arz}rnr5rp@-p|y|9-sy|n-rz}rnr6\n----<<-将色温范围从-:>;=-到->;=-映射到实际的色温范围----sy|n-rz}-J-5rz}rnr-8->;=6-7-B===;=H-<<-范围从-=-到->====----<<-计算色温系数----sy|n-lsnp|9-tlsnp|9-olsnp|H----vs-5rz}-IJ-CC==;=6-\n--------lsnp|-J->;=H--------tlsnp|-J-=;@F==E>BDEDCF=>FC=DEA-7-y|t5rz}-<->==;=6-:-=;C@>EA>AA@DEEC?DAB=FEH--------olsnp|-J-rz}-IJ->F==;=-L-=;=-G-=;BA@?=CDEF>>=>FC=DEA@-7-y|t5rz}-<->==;=-:->=;=6-:->;>FC?BA=EF>AH----\f-ryr-\n--------lsnp|-J->;?F?F@C>EC=C?DAB=FE=A-7-}|5rz}-<->==;=-:-C=;=9-:=;>@@?=ADBF?6H--------tlsnp|-J->;>?FEF=EC=EFB?FA>>DCB-7-}|5rz}-<->==;=-:-C=;=9-:=;=DBB>AEAF?6H--------olsnp|-J->;=H----\f----<<-调整颜色----rp@-nqwrqP|y|H----nqwrqP|y|;-J-pynz}5p|y|;-7-lsnp|9-=;=9->;=6H----nqwrqP|y|;t-J-pynz}5p|y|;t-7-tlsnp|9-=;=9->;=6H----nqwrqP|y|;o-J-pynz}5p|y|;o-7-olsnp|9-=;=9->;=6H----r{-nqwrqP|y|H\frp@-to?u5rp@-p6-\n----rpA-X-J-rpA5=;=9-:>;=-<-@;=9-?;=-<-@;=9-:>;=6H----rpA-}-J-zv\x075rpA5p;ot9-X; 69-rpA5p;to9-X;\x07\b69-r}5p;o9-p;t66H----rpA-\0-J-zv\x075rpA5};\x07\b9-p;69-rpA5p;9-};\b \x0769-r}5};\x079-p;66H----sy|n-q-J-\0;\x07-:-zv{5\0;9-\0;\b6H----sy|n-r-J->;=r:>=H----r{-rp@5no5\0; -8-5\0;-:-\0;\b6-<-5C;=-7-q-8-r669-q-<-5\0;\x07-8-r69-\0;\x076H\frp@-u?to5rp@-p6-\n----rpA-X-J-rpA5>;=9-?;=-<-@;=9->;=-<-@;=9-@;=6H----rp@-}-J-no5snp5p;\x07\x07\x07-8-X;\x07\b 6-7-C;=-:-X;6H----r{-p; -7-zv\x075X;\x07\x07\x079-pynz}5}-:-X;\x07\x07\x079-=;=9->;=69-p;\b6H\f|vq-znv{56-\n--<<-JJJ-点大小剔除-JJJ--vs-5]|v{`v r-I-=;==>6-\n----qvpnqH--\f--<<-JJJ-前置裁切计算-JJJ--0vs-[bZlPYV]]R_`-K-=----o||y-pyv}}rqH----rpA-pyv}}r]|vv|{H----0}ntzn-{|yyly||}ln----s|-5-v{-v-J-=H-v-I-[bZlPYV]]R_`H-v-88-6-\n------pyv}}r]|vv|{-J-pyv}}rh-v-j;znv\x07V{rr-7-d|yq]|vv|{H------pyv}}rq-J-5pyv}}rh-v-j;sy||V{qr\x07-I-=;=-\v\v-no5sy||-:-pyv}}rh-v-j;sy||V{qr\x076-I->;=6H------pyv}}rq-J-pyv}}rq-33-pyv}}r]|vv|{;\x07-K-:=;B-33-pyv}}r]|vv|{;\x07-I-=;BH------pyv}}rq-J-pyv}}rq-33-pyv}}r]|vv|{;\b-K-:=;B-33-pyv}}r]|vv|{;\b-I-=;BH------pyv}}rq-J-pyv}}rq-33-pyv}}r]|vv|{; -K-:=;B-33-pyv}}r]|vv|{; -I-=;BH------vs-5pyv}}rq6-\n--------qvpnqH------\f----\f----0}ntzn-{|yyly||}lr{q--0r{qvs--<<-JJJJJJJJJJJJJJJJ--<<-JJJ-形状裁切-JJJ--0vs-qrsv{rq5b`Rl]\\V[al`UN]RlPV_PYR6----sy|n--J-?;=-7-tyl]|v{P||q;\x07-:->;=H----sy|n--J-?;=-7-tyl]|v{P||q;\b-:->;=H----sy|n-pp-J-7-8-7H----vs-5]|v{`v r-K-E;=-33-pp-K->;=6-\n------qvpnqH----\f--0r{qvs--<<-JJJJJJJJJJJJJ--0v{pyqr-Iy|tqr}uoslsntzr{K--<<-JJJ-颜色-JJJ--rpA-sv{nyP|y|-J-_TOa|Yv{rn5rpA5P|y|9-|}npv\b66H--0vs-qrsv{rq5b`Rl]\\V[al[\\_ZNY6----0vs-qrsv{rq5b`Rl]\\V[alONPXlUVQQR[6------rp@-pnzrnQvrpv|{-J-{|znyv r5pnzrn]|vv|{-:-d|yq]|vv|{;\x07\b 6H------vs-5q|5pnzrnQvrpv|{9-[|zny6-I-=;=6-\n--------qvpnqH------\f----0ryvs-qrsv{rq5b`Rl]\\V[alONPXlQN_X6------rp@-pnzrnQvrpv|{-J-{|znyv r5pnzrn]|vv|{-:-d|yq]|vv|{;\x07\b 6H------vs-5q|5pnzrnQvrpv|{9-[|zny6-I-=;=6-\n--------sv{nyP|y|;\x07\b -J-sv{nyP|y|;\x07\b -7-=;EH------\f----0r{qvs--0r{qvs--tylSntP|y|-J-sv{nyP|y|H--<<-JJJJJJJJJJJ--<<-JJJ-纯色-JJJ--0vs-qrsv{rq5b`RlP\\[`aN[alP\\Y\\_6----tylSntP|y|-J-rpA5p|{n{P|y|;9-p|{n{P|y|;t9-p|{n{P|y|;o9-|}npv\b6H--0r{qvs--<<-JJJJJJJJJJJ--<<-JJJ-楼层显示-JJJ--sy|n-sy||\\}npv\b-J->;=H--vs-5u|{Sy||V{qr\x07-K-:=;=>-33-no5sy||-:-u|{Sy||V{qr\x076-K-=;FF6-\n----sy||\\}npv\b-J-=;>-7-zv{55>;=-8-PnzrnQvrpv|{;\b69->;=6H--\f--tylSntP|y|;n-J-tylSntP|y|;n-7-sy||\\}npv\bH--<<-JJJJJJJJJJJJJJ--tylSntP|y|;n-J-tylSntP|y|;n-7-z|qryNy}unH--<<提取亮度--rp@-toP|y|-J-tylSntP|y|;toH--rp@-uP|y|-J-to?u5toP|y|6H--rp@-sv{nyU`c-J-rp@5uP|y|;\x079-uP|y|;\b-8-p|y|`nnv|{9-uP|y|; -8-p|y|Ovtu{r6H--tylSntP|y|;to-J-u?to5sv{nyU`c6H--0v{pyqr-I|{rzn}}v{tlsntzr{K--0v{pyqr-Ir{p|qv{tlsntzr{K--0v{pyqr-Is|tlsntzr{K--0v{pyqr-I}rzyv}yvrqlny}unlsntzr{K--0vs-qrsv{rq5b`RlRQY6----tylSntP|y|;n-J-Y|tQr}uH--0r{qvs--0vs-qrsv{rq5b`RlU^ldRVTUa6----sy|n-qvn{pr-J-?;=-7-yr{tu5tyl]|v{P||q;\x07\b-:-=;B6H----sy|n-rvtu-J-zn\x075=;=9->;=-:-qvn{pr6H----rvtu-J-}|5rvtu9->;B6H----tylSntP|y|;n-J-rvtuH----tylSntP|y|;\x07\b -J-tylSntP|y|;\x07\b -7-rvtuH--0r{qvs--<<平整度着色--0vs-qrsv{rq5b`Rl]YN[RlQV`aN[PR6----o||y-v{vqr-J-rH----s|-5v{-v-J-=H-v-I-CH-v886-\n--------vs-5q|5rr{{r]yn{rhvj;{|zny9-d|yq]|vv|{;\x07\b 6-8-rr{{r]yn{rhvj;p|{n{-K-=;=6-\n------------v{vqr-J-snyrH------------ornxH--------\f----\f----vs-5v{vqr6-\n------sy|n-qvn{pra|]yn{r-J-5q|5rr{{r]yn{r[|zny9-d|yq]|vv|{;\x07\b 6-8-rr{{r]yn{rQ6-<-yr{tu5rr{{r]yn{r[|zny6H------sy|n-}|tr-J-qvn{pra|]yn{r-7-5>;=-<-rr{{r]yn{rQr}u6H------<<-}|tr-J-}|tr-7-}|tr-7-}|trH------vs5qvn{pra|]yn{r-K-=;=6-\n--------tylSntP|y|-J-zv\x075rpA5=;=9>;=9=;=9>;=69-rpA5>;=9=;=9=;=9>;=69-}|tr6H------\fryr\n--------tylSntP|y|-J-zv\x075rpA5=;=9>;=9=;=9>;=69-rpA5=;=9=;=9>;=9>;=69-}|tr6H------\f----\f--0r{qvs\f"), td = function() {
5493
+ }("{vs|z-sy|n-sy||H0vs-qrsv{rq5b`RlP\\[`aN[alP\\Y\\_6--{vs|z-rp@-p|{n{P|y|H0r{qvs0vs-qrsv{rq5b`Rl]\\V[al[\\_ZNY6--n\bv{t-rp@-[|znyH0r{qvs0vs-qrsv{rq5b`RlRQY6--n\bv{t-sy|n-Y|tQr}uH0r{qvsp-Pyv}}r-\n--znA-znv\x07V{rrH--sy|n-sy||V{qr\x07H\fH0vs-[bZlPYV]]R_`-K-=--{vs|z-Pyv}}r-pyv}}rh[bZlPYV]]R_`jH0r{qvs0vs-qrsv{rq5b`Rl]YN[RlQV`aN[PR6--p-]yn{r-\n----rp@-{|znyH----sy|n-p|{n{H--\fH--{vs|z-]yn{r-rr{{r]yn{rhCjH--{vs|z-rp@-rr{{r]yn{r[|znyH--{vs|z-sy|n-rr{{r]yn{rQH--{vs|z-sy|n-rr{{r]yn{rQr}uH0r{qvsn\bv{t-rpA-d|yq]|vv|{Hn\bv{t-rp@-PnzrnQvrpv|{Hn\bv{t-rp@-P|y|Hn\bv{t-sy|n-]|v{`v rH{vs|z-sy|n-|}npv\bH{vs|z-sy|n-z|qryNy}unH{vs|z-sy|n-u|{Sy||V{qr\x07H<<u调整{vs|z-sy|n-p|y|`nnv|{H{vs|z-sy|n-p|y|Ovtu{rH0v{pyqr-Ip|zz|{K0v{pyqr-Is|tl}nlsntzr{K0v{pyqr-Iy|tqr}uosl}nlsntzr{K0v{pyqr-Ipyv}}v{tl}yn{rl}nlsntzr{Krp@-nqwP|y|arz}rnr5rp@-p|y|9-sy|n-rz}rnr6\n----<<-将色温范围从-:>;=-到->;=-映射到实际的色温范围----sy|n-rz}-J-5rz}rnr-8->;=6-7-B===;=H-<<-范围从-=-到->====----<<-计算色温系数----sy|n-lsnp|9-tlsnp|9-olsnp|H----vs-5rz}-IJ-CC==;=6-\n--------lsnp|-J->;=H--------tlsnp|-J-=;@F==E>BDEDCF=>FC=DEA-7-y|t5rz}-<->==;=6-:-=;C@>EA>AA@DEEC?DAB=FEH--------olsnp|-J-rz}-IJ->F==;=-L-=;=-G-=;BA@?=CDEF>>=>FC=DEA@-7-y|t5rz}-<->==;=-:->=;=6-:->;>FC?BA=EF>AH----\f-ryr-\n--------lsnp|-J->;?F?F@C>EC=C?DAB=FE=A-7-}|5rz}-<->==;=-:-C=;=9-:=;>@@?=ADBF?6H--------tlsnp|-J->;>?FEF=EC=EFB?FA>>DCB-7-}|5rz}-<->==;=-:-C=;=9-:=;=DBB>AEAF?6H--------olsnp|-J->;=H----\f----<<-调整颜色----rp@-nqwrqP|y|H----nqwrqP|y|;-J-pynz}5p|y|;-7-lsnp|9-=;=9->;=6H----nqwrqP|y|;t-J-pynz}5p|y|;t-7-tlsnp|9-=;=9->;=6H----nqwrqP|y|;o-J-pynz}5p|y|;o-7-olsnp|9-=;=9->;=6H----r{-nqwrqP|y|H\frp@-to?u5rp@-p6-\n----rpA-X-J-rpA5=;=9-:>;=-<-@;=9-?;=-<-@;=9-:>;=6H----rpA-}-J-zv\x075rpA5p;ot9-X; 69-rpA5p;to9-X;\x07\b69-r}5p;o9-p;t66H----rpA-\0-J-zv\x075rpA5};\x07\b9-p;69-rpA5p;9-};\b \x0769-r}5};\x079-p;66H----sy|n-q-J-\0;\x07-:-zv{5\0;9-\0;\b6H----sy|n-r-J->;=r:>=H----r{-rp@5no5\0; -8-5\0;-:-\0;\b6-<-5C;=-7-q-8-r669-q-<-5\0;\x07-8-r69-\0;\x076H\frp@-u?to5rp@-p6-\n----rpA-X-J-rpA5>;=9-?;=-<-@;=9->;=-<-@;=9-@;=6H----rp@-}-J-no5snp5p;\x07\x07\x07-8-X;\x07\b 6-7-C;=-:-X;6H----r{-p; -7-zv\x075X;\x07\x07\x079-pynz}5}-:-X;\x07\x07\x079-=;=9->;=69-p;\b6H\f|vq-znv{56-\n--<<-JJJ-点大小剔除-JJJ--vs-5]|v{`v r-I-=;==>6-\n----qvpnqH--\f--<<-JJJ-前置裁切计算-JJJ--0vs-[bZlPYV]]R_`-K-=----o||y-pyv}}rqH----rpA-pyv}}r]|vv|{H----0}ntzn-{|yyly||}ln----s|-5-v{-v-J-=H-v-I-[bZlPYV]]R_`H-v-88-6-\n------pyv}}r]|vv|{-J-pyv}}rh-v-j;znv\x07V{rr-7-d|yq]|vv|{H------pyv}}rq-J-5pyv}}rh-v-j;sy||V{qr\x07-I-=;=-\v\v-no5sy||-:-pyv}}rh-v-j;sy||V{qr\x076-I->;=6H------pyv}}rq-J-pyv}}rq-33-pyv}}r]|vv|{;\x07-K-:=;B-33-pyv}}r]|vv|{;\x07-I-=;BH------pyv}}rq-J-pyv}}rq-33-pyv}}r]|vv|{;\b-K-:=;B-33-pyv}}r]|vv|{;\b-I-=;BH------pyv}}rq-J-pyv}}rq-33-pyv}}r]|vv|{; -K-:=;B-33-pyv}}r]|vv|{; -I-=;BH------vs-5pyv}}rq6-\n--------qvpnqH------\f----\f----0}ntzn-{|yyly||}lr{q--0r{qvs--<<-JJJJJJJJJJJJJJJJ--<<-JJJ-形状裁切-JJJ--0vs-qrsv{rq5b`Rl]\\V[al`UN]RlPV_PYR6----sy|n--J-?;=-7-tyl]|v{P||q;\x07-:->;=H----sy|n--J-?;=-7-tyl]|v{P||q;\b-:->;=H----sy|n-pp-J-7-8-7H----vs-5]|v{`v r-K-E;=-33-pp-K->;=6-\n------qvpnqH----\f--0r{qvs--<<-JJJJJJJJJJJJJ--0v{pyqr-Ipyv}}v{tl}yn{rlsntzr{K--0v{pyqr-Iy|tqr}uoslsntzr{K--<<-JJJ-颜色-JJJ--rpA-sv{nyP|y|-J-_TOa|Yv{rn5rpA5P|y|9-|}npv\b66H--0vs-qrsv{rq5b`Rl]\\V[al[\\_ZNY6----0vs-qrsv{rq5b`Rl]\\V[alONPXlUVQQR[6------rp@-pnzrnQvrpv|{-J-{|znyv r5pnzrn]|vv|{-:-d|yq]|vv|{;\x07\b 6H------vs-5q|5pnzrnQvrpv|{9-[|zny6-I-=;=6-\n--------qvpnqH------\f----0ryvs-qrsv{rq5b`Rl]\\V[alONPXlQN_X6------rp@-pnzrnQvrpv|{-J-{|znyv r5pnzrn]|vv|{-:-d|yq]|vv|{;\x07\b 6H------vs-5q|5pnzrnQvrpv|{9-[|zny6-I-=;=6-\n--------sv{nyP|y|;\x07\b -J-sv{nyP|y|;\x07\b -7-=;EH------\f----0r{qvs--0r{qvs--tylSntP|y|-J-sv{nyP|y|H--<<-JJJJJJJJJJJ--<<-JJJ-纯色-JJJ--0vs-qrsv{rq5b`RlP\\[`aN[alP\\Y\\_6----tylSntP|y|-J-rpA5p|{n{P|y|;9-p|{n{P|y|;t9-p|{n{P|y|;o9-|}npv\b6H--0r{qvs--<<-JJJJJJJJJJJ--<<-JJJ-楼层显示-JJJ--sy|n-sy||\\}npv\b-J->;=H--vs-5u|{Sy||V{qr\x07-K-:=;=>-33-no5sy||-:-u|{Sy||V{qr\x076-K-=;FF6-\n----sy||\\}npv\b-J-=;>-7-zv{55>;=-8-PnzrnQvrpv|{;\b69->;=6H--\f--tylSntP|y|;n-J-tylSntP|y|;n-7-sy||\\}npv\bH--<<-JJJJJJJJJJJJJJ--tylSntP|y|;n-J-tylSntP|y|;n-7-z|qryNy}unH--<<提取亮度--rp@-toP|y|-J-tylSntP|y|;toH--rp@-uP|y|-J-to?u5toP|y|6H--rp@-sv{nyU`c-J-rp@5uP|y|;\x079-uP|y|;\b-8-p|y|`nnv|{9-uP|y|; -8-p|y|Ovtu{r6H--tylSntP|y|;to-J-u?to5sv{nyU`c6H--0v{pyqr-I|{rzn}}v{tlsntzr{K--0v{pyqr-Ir{p|qv{tlsntzr{K--0v{pyqr-Is|tlsntzr{K--0v{pyqr-I}rzyv}yvrqlny}unlsntzr{K--0vs-qrsv{rq5b`RlRQY6----tylSntP|y|;n-J-Y|tQr}uH--0r{qvs--0vs-qrsv{rq5b`RlU^ldRVTUa6----sy|n-qvn{pr-J-?;=-7-yr{tu5tyl]|v{P||q;\x07\b-:-=;B6H----sy|n-rvtu-J-zn\x075=;=9->;=-:-qvn{pr6H----rvtu-J-}|5rvtu9->;B6H----tylSntP|y|;n-J-rvtuH----tylSntP|y|;\x07\b -J-tylSntP|y|;\x07\b -7-rvtuH--0r{qvs--<<平整度着色--0vs-qrsv{rq5b`Rl]YN[RlQV`aN[PR6----o||y-v{vqr-J-rH----s|-5v{-v-J-=H-v-I-CH-v886-\n--------vs-5q|5rr{{r]yn{rhvj;{|zny9-d|yq]|vv|{;\x07\b 6-8-rr{{r]yn{rhvj;p|{n{-K-=;=6-\n------------v{vqr-J-snyrH------------ornxH--------\f----\f----vs-5v{vqr6-\n------sy|n-qvn{pra|]yn{r-J-5q|5rr{{r]yn{r[|zny9-d|yq]|vv|{;\x07\b 6-8-rr{{r]yn{rQ6-<-yr{tu5rr{{r]yn{r[|zny6H------sy|n-}|tr-J-qvn{pra|]yn{r-7-5>;=-<-rr{{r]yn{rQr}u6H------<<-}|tr-J-}|tr-7-}|tr-7-}|trH------vs5qvn{pra|]yn{r-K-=;=6-\n--------tylSntP|y|-J-zv\x075rpA5=;=9>;=9=;=9>;=69-rpA5>;=9=;=9=;=9>;=69-}|tr6H------\fryr\n--------tylSntP|y|-J-zv\x075rpA5=;=9>;=9=;=9>;=69-rpA5=;=9=;=9>;=9>;=69-}|tr6H------\f----\f--0r{qvs\f"), td = function() {
5490
5494
  for (var t = [], e = 0; e < arguments.length; e++)
5491
5495
  t[e] = arguments[e];
5492
5496
  var r = 113, i = 126, a = 0, o = "";
@@ -5530,6 +5534,7 @@ var rd = Object.assign({
5530
5534
  fragmentShader: ed,
5531
5535
  uniforms: d.UniformsUtils.clone(rd),
5532
5536
  lights: !1,
5537
+ clipping: !0,
5533
5538
  defines: {
5534
5539
  USE_CONSTANT_COLOR: !1,
5535
5540
  USE_EDL: !1,
@@ -5748,12 +5753,12 @@ var rd = Object.assign({
5748
5753
  var V = L.points, U = L.depth, q = !1;
5749
5754
  if (V.length !== 0 && V.length % 4 === 0) {
5750
5755
  q = !0;
5751
- var N = V[0], H = V[1], J = V[2], j = V[3], _ = new d.Vector3().subVectors(H, N), Z = new d.Vector3().subVectors(J, N), W = new d.Vector3().crossVectors(_, Z).normalize(), ee = -W.dot(N), Y = U, ne = N.clone().add(W.clone().negate().multiplyScalar(Y)), te = N.clone().add(W.clone().multiplyScalar(Y)), ue = H.clone().add(W.clone().negate().multiplyScalar(Y)), ae = H.clone().add(W.clone().multiplyScalar(Y)), ye = J.clone().add(W.clone().negate().multiplyScalar(Y)), fe = J.clone().add(W.clone().multiplyScalar(Y)), Ae = j.clone().add(W.clone().negate().multiplyScalar(Y)), Pe = j.clone().add(W.clone().multiplyScalar(Y)), we = new d.Plane().setFromCoplanarPoints(te, ae, fe), Me = new d.Plane().setFromCoplanarPoints(ye, ue, ne), re = new d.Plane().setFromCoplanarPoints(ae, te, ne), ie = new d.Plane().setFromCoplanarPoints(Ae, Pe, fe), G = new d.Plane().setFromCoplanarPoints(fe, ae, ue), Fe = new d.Plane().setFromCoplanarPoints(ne, te, Pe);
5756
+ var N = V[0], H = V[1], J = V[2], j = V[3], _ = new d.Vector3().subVectors(H, N), Z = new d.Vector3().subVectors(J, N), W = new d.Vector3().crossVectors(_, Z).normalize(), ee = -W.dot(N), Y = U, ne = N.clone().add(W.clone().negate().multiplyScalar(Y)), te = N.clone().add(W.clone().multiplyScalar(Y)), ue = H.clone().add(W.clone().negate().multiplyScalar(Y)), ie = H.clone().add(W.clone().multiplyScalar(Y)), ye = J.clone().add(W.clone().negate().multiplyScalar(Y)), fe = J.clone().add(W.clone().multiplyScalar(Y)), Ae = j.clone().add(W.clone().negate().multiplyScalar(Y)), Pe = j.clone().add(W.clone().multiplyScalar(Y)), we = new d.Plane().setFromCoplanarPoints(te, ie, fe), Me = new d.Plane().setFromCoplanarPoints(ye, ue, ne), re = new d.Plane().setFromCoplanarPoints(ie, te, ne), ae = new d.Plane().setFromCoplanarPoints(Ae, Pe, fe), G = new d.Plane().setFromCoplanarPoints(fe, ie, ue), Fe = new d.Plane().setFromCoplanarPoints(ne, te, Pe);
5752
5757
  this.uniforms.evennessPlanes.value = [
5753
5758
  { normal: we.normal, constant: we.constant },
5754
5759
  { normal: Me.normal, constant: Me.constant },
5755
5760
  { normal: re.normal, constant: re.constant },
5756
- { normal: ie.normal, constant: ie.constant },
5761
+ { normal: ae.normal, constant: ae.constant },
5757
5762
  { normal: G.normal, constant: G.constant },
5758
5763
  { normal: Fe.normal, constant: Fe.constant }
5759
5764
  ], this.uniforms.evennessPoints.value = L, this.uniforms.evennessPlaneDepth.value = U, this.uniforms.evennessPlaneNormal.value = W, this.uniforms.evennessPlaneD.value = ee;
@@ -5778,7 +5783,7 @@ var rd = Object.assign({
5778
5783
  function(n) {
5779
5784
  se(t, n);
5780
5785
  function t(e) {
5781
- var r = e.preserveDrawingBuffer, i = r === void 0 ? !0 : r, a = e.premultipliedAlpha, o = a === void 0 ? !1 : a, s = e.stencil, l = s === void 0 ? !0 : s, u = e.backgroundColor, c = u === void 0 ? 1579548 : u, f = e.backgroundAlpha, v = f === void 0 ? 1 : f, m = e.pixelRatio, h = m === void 0 ? 1 : m, p = e.antialias, g = e.webgl2, A = e.logarithmicDepthBuffer, y = e.precision, x = this, b = {
5786
+ var r = e.preserveDrawingBuffer, i = r === void 0 ? !0 : r, a = e.premultipliedAlpha, o = a === void 0 ? !0 : a, s = e.stencil, l = s === void 0 ? !0 : s, u = e.backgroundColor, c = u === void 0 ? 1579548 : u, f = e.backgroundAlpha, v = f === void 0 ? 1 : f, m = e.pixelRatio, h = m === void 0 ? 1 : m, p = e.antialias, g = e.webgl2, A = e.logarithmicDepthBuffer, y = e.precision, x = this, b = {
5782
5787
  antialias: p,
5783
5788
  alpha: !0,
5784
5789
  // Mac Safari 下 alpha 必须为 ture。不然会创建失败。
@@ -6320,7 +6325,7 @@ var hd = new d.Vector3(), Fs = (
6320
6325
  this.state.visibilityPlaneMask = t.cullingVolume.computeVisibilityWithPlaneMask(r, o), this.state.visible = this.state.visibilityPlaneMask !== Nn.MASK_OUTSIDE;
6321
6326
  } else
6322
6327
  this.state.distanceToCamera = 0, this.state.centerZDepth = 0, this.state.visibilityPlaneMask = Nn.MASK_INDETERMINATE, this.state.visible = !0;
6323
- if (this.state.distanceToCamera < t.camera.near && (this.state.distanceToCamera = t.camera.near), this.levelOfContent <= 0 && (this.state.visible = !0), this.viewerRequestVolume) {
6328
+ if (this.levelOfContent <= 0 && (this.state.visible = !0), this.viewerRequestVolume) {
6324
6329
  var s = e ? this.viewerRequestVolume.clone().applyMatrix4(e) : this.viewerRequestVolume;
6325
6330
  this.state.inRequestVolume = s.distanceSquaredToPoint(t.camera.position) <= 0;
6326
6331
  } else
@@ -7098,14 +7103,14 @@ var un = (
7098
7103
  }, t.prototype.intersectRay = function(e, r, i, a) {
7099
7104
  for (var o = this.offsetArray, s = this.rootNodePacked, l = new Float32Array(s), u = new Uint32Array(s), c = new Uint16Array(s), f = new un(1 / r.x, 1 / r.y, 1 / r.z), v = [0], m, h, p, g; (m = v.pop()) !== void 0; )
7100
7105
  if (g = m * wr / 4, Os(e, f, l[g], l[g + 1], l[g + 2], l[g + 3], l[g + 4], l[g + 5])) {
7101
- for (var A = u[g + 6], y = u[g + 7], x = void 0, b = void 0, w = void 0, E = e.x, S = e.y, M = e.z, R = r.x, O = r.y, C = r.z, P = void 0, z = void 0, T = void 0, k = void 0, L = void 0, V = void 0, U = void 0, q = void 0, N = void 0, H = void 0, J = void 0, j = void 0, _ = void 0, Z = void 0, W = void 0, ee = void 0, Y = void 0, ne = void 0, te = void 0, ue = void 0, ae = void 0, ye = void 0, fe = void 0, Ae = void 0, Pe = void 0, we = void 0, Me = void 0; A < y; A++) {
7106
+ for (var A = u[g + 6], y = u[g + 7], x = void 0, b = void 0, w = void 0, E = e.x, S = e.y, M = e.z, R = r.x, O = r.y, C = r.z, P = void 0, z = void 0, T = void 0, k = void 0, L = void 0, V = void 0, U = void 0, q = void 0, N = void 0, H = void 0, J = void 0, j = void 0, _ = void 0, Z = void 0, W = void 0, ee = void 0, Y = void 0, ne = void 0, te = void 0, ue = void 0, ie = void 0, ye = void 0, fe = void 0, Ae = void 0, Pe = void 0, we = void 0, Me = void 0; A < y; A++) {
7102
7107
  if (x = o[A], b = x * 3, this.getPositionByIndex(b, qe), P = qe.x, z = qe.y, T = qe.z, this.getPositionByIndex(b + 1, qe), k = qe.x, L = qe.y, V = qe.z, this.getPositionByIndex(b + 2, qe), U = qe.x, q = qe.y, N = qe.z, H = k - P, J = L - z, j = V - T, _ = U - P, Z = q - z, W = N - T, ee = J * W - j * Z, Y = j * _ - H * W, ne = H * Z - J * _, fe = R * ee + O * Y + C * ne, fe > 0)
7103
7108
  ye = 1;
7104
7109
  else if (fe < 0)
7105
7110
  ye = -1, fe = -fe;
7106
7111
  else
7107
7112
  continue;
7108
- te = E - P, ue = S - z, ae = M - T, Ae = ye * (R * (ue * W - ae * Z) + O * (ae * _ - te * W) + C * (te * Z - ue * _)), !(Ae < 0) && (Pe = ye * (R * (J * ae - j * ue) + O * (j * te - H * ae) + C * (H * ue - J * te)), !(Pe < 0) && (Ae + Pe > fe || (we = -ye * (te * ee + ue * Y + ae * ne), !(we < 0) && (Me = we / fe, a.push(new zs([P, z, T, k, L, V, U, q, N], [E + R * Me, S + O * Me, M + C * Me], x))))));
7113
+ te = E - P, ue = S - z, ie = M - T, Ae = ye * (R * (ue * W - ie * Z) + O * (ie * _ - te * W) + C * (te * Z - ue * _)), !(Ae < 0) && (Pe = ye * (R * (J * ie - j * ue) + O * (j * te - H * ie) + C * (H * ue - J * te)), !(Pe < 0) && (Ae + Pe > fe || (we = -ye * (te * ee + ue * Y + ie * ne), !(we < 0) && (Me = we / fe, a.push(new zs([P, z, T, k, L, V, U, q, N], [E + R * Me, S + O * Me, M + C * Me], x))))));
7109
7114
  }
7110
7115
  g = m * wr / 2, h = c[g + 16], p = c[g + 17], h && v.push(h), p && v.push(p);
7111
7116
  }
@@ -7929,12 +7934,12 @@ var ef = (
7929
7934
  }) : Y.push(W);
7930
7935
  var ne = J.array;
7931
7936
  if (J.normalized) {
7932
- for (var te = ia(ne.constructor), ue = new Float32Array(ne.length), ae = 0, ye = ne.length; ae < ye; ae++)
7933
- ue[ae] = ne[ae] * te;
7937
+ for (var te = ia(ne.constructor), ue = new Float32Array(ne.length), ie = 0, ye = ne.length; ie < ye; ie++)
7938
+ ue[ie] = ne[ie] * te;
7934
7939
  ne = ue;
7935
7940
  }
7936
- for (var ae = 0, ye = Y.length; ae < ye; ae++) {
7937
- var fe = new Z(Y[ae] + "." + Vr[_.path], H.array, ne, ee);
7941
+ for (var ie = 0, ye = Y.length; ie < ye; ie++) {
7942
+ var fe = new Z(Y[ie] + "." + Vr[_.path], H.array, ne, ee);
7938
7943
  z.push(fe);
7939
7944
  }
7940
7945
  }, k = 0, L = M.length; k < L; k++)
@@ -9604,7 +9609,7 @@ var fr = (
9604
9609
  a.normalScale.set(u, u);
9605
9610
  }
9606
9611
  }
9607
- return r.disposeSet.add(a), Promise.all(i).then(function() {
9612
+ return r.disposeSet.add(a), a.refreshUniforms(), Promise.all(i).then(function() {
9608
9613
  return a;
9609
9614
  });
9610
9615
  }, t;
@@ -10542,9 +10547,9 @@ function Uf(n) {
10542
10547
  Y += f.vertices.xyz.length / 3, w += f.faces.indices.length;
10543
10548
  }
10544
10549
  for (var S = new Float32Array(Y * 3), M = new Float32Array(Y * 2), R = void 0, ne = new Float32Array(Y), te = new Uint32Array(w), O = l ? new Float32Array(w) : void 0, C = [], P = [1 / 0, 1 / 0, 1 / 0, -1 / 0, -1 / 0, -1 / 0], ue = 0, z = 0, T = 0; T < b.length; T++) {
10545
- for (var k = [1 / 0, 1 / 0, 1 / 0, -1 / 0, -1 / 0, -1 / 0], f = b[T], L = f.vertices.xyz, ae = f.vertices.marks, V = f.vertices.uvs, U = f.faces.indices, ye = L.length / 3, H = U.length, E = 0; E < ye; E++) {
10550
+ for (var k = [1 / 0, 1 / 0, 1 / 0, -1 / 0, -1 / 0, -1 / 0], f = b[T], L = f.vertices.xyz, ie = f.vertices.marks, V = f.vertices.uvs, U = f.faces.indices, ye = L.length / 3, H = U.length, E = 0; E < ye; E++) {
10546
10551
  var j = S[z * 3 + E * 3] = L[E * 3], _ = S[z * 3 + E * 3 + 1] = L[E * 3 + 1], Z = S[z * 3 + E * 3 + 2] = L[E * 3 + 2];
10547
- O && (O[z + E] = ae[E]), M[z * 2 + E * 2] = V[E * 2], M[z * 2 + E * 2 + 1] = V[E * 2 + 1], ne[z + E] = x, j < k[0] && (k[0] = j), _ < k[1] && (k[1] = _), Z < k[2] && (k[2] = Z), j > k[3] && (k[3] = j), _ > k[4] && (k[4] = _), Z > k[5] && (k[5] = Z);
10552
+ O && (O[z + E] = ie[E]), M[z * 2 + E * 2] = V[E * 2], M[z * 2 + E * 2 + 1] = V[E * 2 + 1], ne[z + E] = x, j < k[0] && (k[0] = j), _ < k[1] && (k[1] = _), Z < k[2] && (k[2] = Z), j > k[3] && (k[3] = j), _ > k[4] && (k[4] = _), Z > k[5] && (k[5] = Z);
10548
10553
  }
10549
10554
  k[0] < P[0] && (P[0] = k[0]), k[1] < P[1] && (P[1] = k[1]), k[2] < P[2] && (P[2] = k[2]), k[3] > P[3] && (P[3] = k[3]), k[4] > P[4] && (P[4] = k[4]), k[5] > P[5] && (P[5] = k[5]);
10550
10555
  for (var E = 0; E < H; E++)
@@ -10607,7 +10612,7 @@ function iu(n, t, e, r, i, a) {
10607
10612
  f.add(O);
10608
10613
  for (var T = [], k = 0, L = S; k < L.length; k++) {
10609
10614
  var z = L[k], V = e[z.chunkName] || (z.texture ? vt(t || "", z.texture) : void 0), U = new $n("basic");
10610
- U.floor = E, O.attributes.normal === void 0 && (U.flatShading = !0), O.attributes.mask && (U.defines.USE_VERTEX_MARK = !0), T.push(U), V ? c[V] ? c[V].push(U) : c[V] = [U] : U.color = new d.Color(16777215), f.add(U);
10615
+ U.floor = E, O.attributes.normal === void 0 && (U.flatShading = !0), O.attributes.mask && (U.defines.USE_VERTEX_MARK = !0), T.push(U), V ? c[V] ? c[V].push(U) : c[V] = [U] : U.color = new d.Color(16777215), f.add(U), U.refreshUniforms();
10611
10616
  }
10612
10617
  var q = new Yt(O, T);
10613
10618
  q.name = "model_floor_" + E, q.userData.createAt = p, q.userData.description = g, q.matrix.compose(q.position, q.quaternion, q.scale), q.matrixAutoUpdate = !1, q.frustumCulled = !1, s = p, l = g, u.push(q);
@@ -10618,14 +10623,14 @@ function iu(n, t, e, r, i, a) {
10618
10623
  var Y = null;
10619
10624
  ee in i && (Y = i[ee]), Y || (Y = co(ee, H, a)), J.push(Y.then(function(ne) {
10620
10625
  for (var te = 0, ue = c[ee]; te < ue.length; te++) {
10621
- var ae = ue[te];
10622
- ae.map && (f.delete(ae.map), ae.map.dispose()), ae.map = ne, f.add(ne);
10626
+ var ie = ue[te];
10627
+ ie.map && (f.delete(ie.map), ie.map.dispose()), ie.map = ne, ie.refreshUniforms(), f.add(ne);
10623
10628
  }
10624
10629
  return ne;
10625
10630
  }).catch(function() {
10626
10631
  for (var ne = 0, te = c[ee]; ne < te.length; ne++) {
10627
10632
  var ue = te[ne];
10628
- ue.map && (f.delete(ue.map), ue.map.dispose()), ue.map = null, ue.color = new d.Color(16777215);
10633
+ ue.map && (f.delete(ue.map), ue.map.dispose()), ue.map = null, ue.color = new d.Color(16777215), ue.refreshUniforms();
10629
10634
  }
10630
10635
  return null;
10631
10636
  }));
@@ -11222,7 +11227,7 @@ function _f(n, t, e, r, i, a, o, s) {
11222
11227
  var h = n.d;
11223
11228
  h > 0 && h < 1 && (u.opacity = h);
11224
11229
  }
11225
- return u.floor = 0, {
11230
+ return u.floor = 0, u.refreshUniforms(), {
11226
11231
  material: u,
11227
11232
  textureReady: Promise.all(l).then(Q)
11228
11233
  };
@@ -12257,6 +12262,9 @@ var _t = {
12257
12262
  this.tileset.selectedTiles.map(function(e) {
12258
12263
  return e.id;
12259
12264
  }),
12265
+ this.tileset.trajectories.map(function(e) {
12266
+ return e.index;
12267
+ }),
12260
12268
  this.debug
12261
12269
  ]);
12262
12270
  }, Object.defineProperty(t.prototype, "maxMemoryUsage", {
@@ -12795,8 +12803,8 @@ function Mh(n, t, e) {
12795
12803
  return C;
12796
12804
  Array.isArray(t.transform) ? e.transform.fromArray(t.transform) : t.transform && e.transform.copy(t.transform), n = S.map(function(re) {
12797
12805
  return JSON.parse(re);
12798
- }).reduce(function(re, ie) {
12799
- return Ua(re, ie);
12806
+ }).reduce(function(re, ae) {
12807
+ return Ua(re, ae);
12800
12808
  }), Object.defineProperty(e, "raw", {
12801
12809
  configurable: !1,
12802
12810
  get: function() {
@@ -12864,11 +12872,11 @@ function Mh(n, t, e) {
12864
12872
  });
12865
12873
  var U;
12866
12874
  Array.isArray(n.model.textures) ? (U = n.model.textures.map(function(re) {
12867
- var ie, G;
12868
- return ui(T, re, (G = (ie = n.model.textureBase) !== null && ie !== void 0 ? ie : n.model.material_base_url) !== null && G !== void 0 ? G : "", t);
12875
+ var ae, G;
12876
+ return ui(T, re, (G = (ae = n.model.textureBase) !== null && ae !== void 0 ? ae : n.model.material_base_url) !== null && G !== void 0 ? G : "", t);
12869
12877
  }), Object.freeze(U)) : Array.isArray(n.model.material_textures) && (U = n.model.material_textures.map(function(re) {
12870
- var ie, G;
12871
- return ui(T, re, (G = (ie = n.model.textureBase) !== null && ie !== void 0 ? ie : n.model.material_base_url) !== null && G !== void 0 ? G : "", t);
12878
+ var ae, G;
12879
+ return ui(T, re, (G = (ae = n.model.textureBase) !== null && ae !== void 0 ? ae : n.model.material_base_url) !== null && G !== void 0 ? G : "", t);
12872
12880
  }), Object.freeze(U)), Object.defineProperty(k, "textures", {
12873
12881
  configurable: !1,
12874
12882
  get: function() {
@@ -12925,7 +12933,7 @@ function Mh(n, t, e) {
12925
12933
  var ne = [];
12926
12934
  n.panorama && (Array.isArray(n.panorama) ? ne = n.panorama : Array.isArray(n.panorama.list) ? ne = n.panorama.list : Array.isArray(n.panorama.info) && (ne = n.panorama.info));
12927
12935
  for (var te = function(re) {
12928
- var ie = {}, G = n.observers[re];
12936
+ var ae = {}, G = n.observers[re];
12929
12937
  if (!G)
12930
12938
  return "break";
12931
12939
  var Fe = ne[re];
@@ -12935,17 +12943,17 @@ function Mh(n, t, e) {
12935
12943
  // 处理 active
12936
12944
  // observer.active | panorama.active 有一个 false 则为 false
12937
12945
  active: G.active !== !1 && Fe.active !== !1
12938
- }), Object.defineProperty(ie, "work", {
12946
+ }), Object.defineProperty(ae, "work", {
12939
12947
  configurable: !1,
12940
12948
  get: function() {
12941
12949
  return e;
12942
12950
  }
12943
- }), Object.defineProperty(ie, "index", {
12951
+ }), Object.defineProperty(ae, "index", {
12944
12952
  configurable: !1,
12945
12953
  get: function() {
12946
12954
  return re;
12947
12955
  }
12948
- }), ee.add(re), Object.defineProperty(ie, "panoIndex", {
12956
+ }), ee.add(re), Object.defineProperty(ae, "panoIndex", {
12949
12957
  configurable: !1,
12950
12958
  get: function() {
12951
12959
  return re;
@@ -12955,7 +12963,7 @@ function Mh(n, t, e) {
12955
12963
  workCode: e.workCode,
12956
12964
  panoIndex: re
12957
12965
  });
12958
- W.add(ke), Object.defineProperty(ie, "panoId", {
12966
+ W.add(ke), Object.defineProperty(ae, "panoId", {
12959
12967
  configurable: !1,
12960
12968
  get: function() {
12961
12969
  return ke;
@@ -12965,35 +12973,35 @@ function Mh(n, t, e) {
12965
12973
  workCode: e.workCode,
12966
12974
  panoIndex: re
12967
12975
  });
12968
- Object.defineProperty(ie, "pano", {
12976
+ Object.defineProperty(ae, "pano", {
12969
12977
  configurable: !1,
12970
12978
  get: function() {
12971
12979
  return Te;
12972
12980
  }
12973
12981
  });
12974
12982
  var Ge = G.active !== !1;
12975
- Object.defineProperty(ie, "active", {
12983
+ Object.defineProperty(ae, "active", {
12976
12984
  configurable: !1,
12977
12985
  get: function() {
12978
12986
  return Ge;
12979
12987
  }
12980
12988
  });
12981
12989
  var be = G.loadable === !0;
12982
- Object.defineProperty(ie, "loadable", {
12990
+ Object.defineProperty(ae, "loadable", {
12983
12991
  configurable: !1,
12984
12992
  get: function() {
12985
12993
  return be;
12986
12994
  }
12987
12995
  });
12988
12996
  var ve = G.derived_id;
12989
- Object.defineProperty(ie, "derivedId", {
12997
+ Object.defineProperty(ae, "derivedId", {
12990
12998
  configurable: !1,
12991
12999
  get: function() {
12992
13000
  return ve;
12993
13001
  }
12994
13002
  });
12995
13003
  var xe = G.derived_id_str;
12996
- Object.defineProperty(ie, "derivedIdStr", {
13004
+ Object.defineProperty(ae, "derivedIdStr", {
12997
13005
  configurable: !1,
12998
13006
  get: function() {
12999
13007
  return xe;
@@ -13084,7 +13092,7 @@ function Mh(n, t, e) {
13084
13092
  }
13085
13093
  });
13086
13094
  }
13087
- Object.freeze(me), Object.defineProperty(ie, "images", {
13095
+ Object.freeze(me), Object.defineProperty(ae, "images", {
13088
13096
  configurable: !1,
13089
13097
  get: function() {
13090
13098
  return me;
@@ -13097,7 +13105,7 @@ function Mh(n, t, e) {
13097
13105
  vr.fromArray(G.position);
13098
13106
  else
13099
13107
  return "break";
13100
- Object.freeze(vr), Object.defineProperty(ie, "position", {
13108
+ Object.freeze(vr), Object.defineProperty(ae, "position", {
13101
13109
  configurable: !1,
13102
13110
  get: function() {
13103
13111
  return vr;
@@ -13114,7 +13122,7 @@ function Mh(n, t, e) {
13114
13122
  Ut.fromArray(G.standing_position);
13115
13123
  else
13116
13124
  return "break";
13117
- Object.freeze(Ut), Object.defineProperty(ie, "standingPosition", {
13125
+ Object.freeze(Ut), Object.defineProperty(ae, "standingPosition", {
13118
13126
  configurable: !1,
13119
13127
  get: function() {
13120
13128
  return Ut;
@@ -13130,49 +13138,49 @@ function Mh(n, t, e) {
13130
13138
  St.set(Mr, cn, _r, Wr);
13131
13139
  } else
13132
13140
  return "break";
13133
- Object.freeze(St), Object.defineProperty(ie, "quaternion", {
13141
+ Object.freeze(St), Object.defineProperty(ae, "quaternion", {
13134
13142
  configurable: !1,
13135
13143
  get: function() {
13136
13144
  return St;
13137
13145
  }
13138
13146
  });
13139
13147
  var Gt = 0;
13140
- jt(G.floorIndex) ? Gt = G.floorIndex : jt(G.floor_index) ? Gt = G.floor_index : jt(G.floor) && (Gt = G.floor), Object.defineProperty(ie, "floorIndex", {
13148
+ jt(G.floorIndex) ? Gt = G.floorIndex : jt(G.floor_index) ? Gt = G.floor_index : jt(G.floor) && (Gt = G.floor), Object.defineProperty(ae, "floorIndex", {
13141
13149
  configurable: !1,
13142
13150
  get: function() {
13143
13151
  return Gt;
13144
13152
  }
13145
13153
  });
13146
13154
  var Ye;
13147
- G.video && (Ye = {}, typeof G.video.source == "string" && (Ye.source = G.video.source), G.video.matrix instanceof d.Matrix4 ? Ye.matrix = G.video.matrix.clone() : Array.isArray(G.video.matrix) && (Ye.matrix = new d.Matrix4().fromArray(G.video.matrix)), G.video.size instanceof d.Vector2 ? Ye.size = G.video.size.clone() : Array.isArray(G.video.size) && (Ye.size = new d.Vector2().fromArray(G.video.size)), Ye.source && Ye.matrix && Ye.size && (ie.video = Ye)), Object.freeze(Ye), Object.defineProperty(ie, "video", {
13155
+ G.video && (Ye = {}, typeof G.video.source == "string" && (Ye.source = G.video.source), G.video.matrix instanceof d.Matrix4 ? Ye.matrix = G.video.matrix.clone() : Array.isArray(G.video.matrix) && (Ye.matrix = new d.Matrix4().fromArray(G.video.matrix)), G.video.size instanceof d.Vector2 ? Ye.size = G.video.size.clone() : Array.isArray(G.video.size) && (Ye.size = new d.Vector2().fromArray(G.video.size)), Ye.source && Ye.matrix && Ye.size && (ae.video = Ye)), Object.freeze(Ye), Object.defineProperty(ae, "video", {
13148
13156
  configurable: !1,
13149
13157
  get: function() {
13150
13158
  return Ye;
13151
13159
  }
13152
- }), Array.isArray(G.accessibleNodes) ? (ie.accessibleNodes = G.accessibleNodes.slice(), ie.accessibleIds = G.accessibleNodes.map(function(He) {
13160
+ }), Array.isArray(G.accessibleNodes) ? (ae.accessibleNodes = G.accessibleNodes.slice(), ae.accessibleIds = G.accessibleNodes.map(function(He) {
13153
13161
  return De({
13154
13162
  workCode: e.workCode,
13155
13163
  panoIndex: He
13156
13164
  });
13157
- })) : Array.isArray(G.accessible_nodes) && (ie.accessibleNodes = G.accessible_nodes.slice(), ie.accessibleIds = G.accessible_nodes.map(function(He) {
13165
+ })) : Array.isArray(G.accessible_nodes) && (ae.accessibleNodes = G.accessible_nodes.slice(), ae.accessibleIds = G.accessible_nodes.map(function(He) {
13158
13166
  return De({
13159
13167
  workCode: e.workCode,
13160
13168
  panoIndex: He
13161
13169
  });
13162
- })), Array.isArray(G.visibleNodes) ? (ie.visibleNodes = G.visibleNodes.slice(), ie.visibleIds = G.visibleNodes.map(function(He) {
13170
+ })), Array.isArray(G.visibleNodes) ? (ae.visibleNodes = G.visibleNodes.slice(), ae.visibleIds = G.visibleNodes.map(function(He) {
13163
13171
  return De({
13164
13172
  workCode: e.workCode,
13165
13173
  panoIndex: He
13166
13174
  });
13167
- })) : Array.isArray(G.visible_nodes) && (ie.visibleNodes = G.visible_nodes.slice(), ie.visibleIds = G.visible_nodes.map(function(He) {
13175
+ })) : Array.isArray(G.visible_nodes) && (ae.visibleNodes = G.visible_nodes.slice(), ae.visibleIds = G.visible_nodes.map(function(He) {
13168
13176
  return De({
13169
13177
  workCode: e.workCode,
13170
13178
  panoIndex: He
13171
13179
  });
13172
- })), Y[re] = ie;
13180
+ })), Y[re] = ae;
13173
13181
  }, ue = 0; ue < n.observers.length; ue++) {
13174
- var ae = te(ue);
13175
- if (ae === "break")
13182
+ var ie = te(ue);
13183
+ if (ie === "break")
13176
13184
  break;
13177
13185
  }
13178
13186
  }
@@ -13188,12 +13196,12 @@ function Mh(n, t, e) {
13188
13196
  }
13189
13197
  });
13190
13198
  } else {
13191
- for (var ie = [], G = 0; G < Y.length; G++)
13192
- Y[G] !== re && (Math.abs(Y[G].position.y - re.position.y) > 3 || Y[G].position.distanceTo(re.position) > 10 || ie.push(Y[G].panoId));
13193
- Object.freeze(ie), Object.defineProperty(re, "accessibleIds", {
13199
+ for (var ae = [], G = 0; G < Y.length; G++)
13200
+ Y[G] !== re && (Math.abs(Y[G].position.y - re.position.y) > 3 || Y[G].position.distanceTo(re.position) > 10 || ae.push(Y[G].panoId));
13201
+ Object.freeze(ae), Object.defineProperty(re, "accessibleIds", {
13194
13202
  configurable: !1,
13195
13203
  get: function() {
13196
- return ie;
13204
+ return ae;
13197
13205
  }
13198
13206
  });
13199
13207
  }
@@ -13274,8 +13282,8 @@ function Mh(n, t, e) {
13274
13282
  jt(n.initial.panoIndex) ? we = n.initial.panoIndex : jt(n.initial.pano_index) ? we = n.initial.pano_index : jt(n.initial.pano) && (we = n.initial.pano), typeof we == "number" && (we = he(we, 0, e.observers.length - 1), e.initial.panoIndex = we);
13275
13283
  }
13276
13284
  if (jt(n.initial.distance) && (e.initial.distance = n.initial.distance), Array.isArray(n.initial.offset)) {
13277
- var Me = [0, 0, 0].map(function(re, ie) {
13278
- var G = Number(n.initial.offset[ie]);
13285
+ var Me = [0, 0, 0].map(function(re, ae) {
13286
+ var G = Number(n.initial.offset[ae]);
13279
13287
  return isNaN(G) || !isFinite(G) ? 0 : G;
13280
13288
  });
13281
13289
  e.initial.offset = new d.Vector3().fromArray(Me);
@@ -13387,8 +13395,8 @@ var P0 = {
13387
13395
  var v = new d.Vector3(), m = new d.Vector3(), h = new d.Vector3(), p = new d.Vector2(), g = new d.Vector2(), A = new d.Vector2(), y = new d.Vector3(), x = new d.Vector3();
13388
13396
  function b(N, H, J) {
13389
13397
  v.fromArray(i, N * 3), m.fromArray(i, H * 3), h.fromArray(i, J * 3), p.fromArray(o, N * 2), g.fromArray(o, H * 2), A.fromArray(o, J * 2);
13390
- var j = m.x - v.x, _ = h.x - v.x, Z = m.y - v.y, W = h.y - v.y, ee = m.z - v.z, Y = h.z - v.z, ne = g.x - p.x, te = A.x - p.x, ue = g.y - p.y, ae = A.y - p.y, ye = 1 / (ne * ae - te * ue);
13391
- y.set((ae * j - ue * _) * ye, (ae * Z - ue * W) * ye, (ae * ee - ue * Y) * ye), x.set((ne * _ - te * j) * ye, (ne * W - te * Z) * ye, (ne * Y - te * ee) * ye), u[N].add(y), u[H].add(y), u[J].add(y), c[N].add(x), c[H].add(x), c[J].add(x);
13398
+ var j = m.x - v.x, _ = h.x - v.x, Z = m.y - v.y, W = h.y - v.y, ee = m.z - v.z, Y = h.z - v.z, ne = g.x - p.x, te = A.x - p.x, ue = g.y - p.y, ie = A.y - p.y, ye = 1 / (ne * ie - te * ue);
13399
+ y.set((ie * j - ue * _) * ye, (ie * Z - ue * W) * ye, (ie * ee - ue * Y) * ye), x.set((ne * _ - te * j) * ye, (ne * W - te * Z) * ye, (ne * Y - te * ee) * ye), u[N].add(y), u[H].add(y), u[J].add(y), c[N].add(x), c[H].add(x), c[J].add(x);
13392
13400
  }
13393
13401
  var w = n.groups;
13394
13402
  w.length === 0 && (w = [{
@@ -13851,7 +13859,7 @@ var Aa = (
13851
13859
  var _ = N.split("#"), Z = _[0], W = _[1], ee = (o = (W || Z).split("?")[1]) !== null && o !== void 0 ? o : "", Y = it(e).ajax(N, {
13852
13860
  responseType: "text"
13853
13861
  }).then(function(ne) {
13854
- var te, ue, ae, ye = N ? N.slice(0, N.lastIndexOf("/") + 1) : "", fe = mi(JSON.parse(ne.body), ye), Ae = fe.root, Pe = fe.rootMeta, we = Pe === void 0 ? {} : Pe;
13862
+ var te, ue, ie, ye = N ? N.slice(0, N.lastIndexOf("/") + 1) : "", fe = mi(JSON.parse(ne.body), ye), Ae = fe.root, Pe = fe.rootMeta, we = Pe === void 0 ? {} : Pe;
13855
13863
  we.upAxis && we.upAxis !== H && (H = we.upAxis), "lodVersion" in fe && (H = "-Y", "floorInfo" in fe && (fe.properties = fe.properties || {}, fe.properties.floorInfo = fe.floorInfo.map(function(xe) {
13856
13864
  return {
13857
13865
  ground: -xe.ground,
@@ -13860,15 +13868,15 @@ var Aa = (
13860
13868
  }), delete fe.floorInfo), fe.asset.tilesetVersion = String(fe.lodVersion), delete fe.lodVersion);
13861
13869
  var Me = Ae.boundingVolume ? vi(Ae.boundingVolume) : void 0;
13862
13870
  Me && Ae.transform && Me.applyMatrix4(va.fromArray(Ae.transform));
13863
- var re = null, ie = new d.Matrix4(), G = new d.Matrix4();
13864
- we.coordinate ? (re = we.coordinate.ground_height, ie.fromArray(we.coordinate.pose_ecef_to_enu), G.fromArray(we.coordinate.pose_enu_to_ecef)) : (Me ? Me.getCenter(Wt) : Wt.setScalar(0), F0(H, Wt, ie), G.getInverse(ie));
13865
- var Fe = new d.Matrix4().copy(yi), ke = new d.Matrix4().copy(bi), Te = new d.Matrix4().premultiply(ie).premultiply(Fe), Ge = new d.Matrix4().getInverse(Te);
13871
+ var re = null, ae = new d.Matrix4(), G = new d.Matrix4();
13872
+ we.coordinate ? (re = we.coordinate.ground_height, ae.fromArray(we.coordinate.pose_ecef_to_enu), G.fromArray(we.coordinate.pose_enu_to_ecef)) : (Me ? Me.getCenter(Wt) : Wt.setScalar(0), F0(H, Wt, ae), G.getInverse(ae));
13873
+ var Fe = new d.Matrix4().copy(yi), ke = new d.Matrix4().copy(bi), Te = new d.Matrix4().premultiply(ae).premultiply(Fe), Ge = new d.Matrix4().getInverse(Te);
13866
13874
  fe.root = {
13867
13875
  refine: (te = Ae.refine) !== null && te !== void 0 ? te : "REPLACE",
13868
13876
  geometricError: Ae.geometricError,
13869
13877
  transform: Te.toArray(),
13870
13878
  boundingVolume: Me ? Me.toJson() : void 0,
13871
- viewerRequestVolume: !((ue = r["3d-tiles"]) === null || ue === void 0) && ue.viewerRequestVolume ? (ae = r["3d-tiles"]) === null || ae === void 0 ? void 0 : ae.viewerRequestVolume.toJson() : void 0,
13879
+ viewerRequestVolume: !((ue = r["3d-tiles"]) === null || ue === void 0) && ue.viewerRequestVolume ? (ie = r["3d-tiles"]) === null || ie === void 0 ? void 0 : ie.viewerRequestVolume.toJson() : void 0,
13872
13880
  children: [Ae]
13873
13881
  };
13874
13882
  var be = new yn(a, fe, {
@@ -13884,7 +13892,7 @@ var Aa = (
13884
13892
  localToEnuMatrix: ke,
13885
13893
  enuToLocalMatrix: Fe,
13886
13894
  enuToEcefMatrix: G,
13887
- ecefToEnuMatrix: ie,
13895
+ ecefToEnuMatrix: ae,
13888
13896
  localToEcefMatrix: Ge,
13889
13897
  ecefToLocalMatrix: Te
13890
13898
  }
@@ -13897,7 +13905,7 @@ var Aa = (
13897
13905
  });
13898
13906
  g.push(Y.catch(function(ne) {
13899
13907
  a.onError(ne);
13900
- var te = new d.Matrix4(), ue = new d.Matrix4(), ae = new d.Matrix4().copy(yi), ye = new d.Matrix4().copy(bi), fe = new d.Matrix4().premultiply(te).premultiply(ae), Ae = new d.Matrix4().getInverse(fe), Pe = N ? N.slice(0, N.lastIndexOf("/") + 1) : "", we = mi({
13908
+ var te = new d.Matrix4(), ue = new d.Matrix4(), ie = new d.Matrix4().copy(yi), ye = new d.Matrix4().copy(bi), fe = new d.Matrix4().premultiply(te).premultiply(ie), Ae = new d.Matrix4().getInverse(fe), Pe = N ? N.slice(0, N.lastIndexOf("/") + 1) : "", we = mi({
13901
13909
  asset: {
13902
13910
  version: "0.0"
13903
13911
  },
@@ -13916,7 +13924,7 @@ var Aa = (
13916
13924
  groundHeight: null,
13917
13925
  coordinateTransform: {
13918
13926
  localToEnuMatrix: ye,
13919
- enuToLocalMatrix: ae,
13927
+ enuToLocalMatrix: ie,
13920
13928
  enuToEcefMatrix: ue,
13921
13929
  ecefToEnuMatrix: te,
13922
13930
  localToEcefMatrix: Ae,
@@ -15069,7 +15077,7 @@ var mu = new d.Vector3(0, 0, 0), Uh = (
15069
15077
  var i = this, a = new d.BoxBufferGeometry(e.max.x - e.min.x + r.x * 2, e.max.y - e.min.y + r.y * 2, e.max.z - e.min.z + r.z * 2, 1, 1);
15070
15078
  a.clearGroups(), a.addGroup(0, a.index ? a.index.count : a.attributes.position.count, 0), a.applyMatrix4(new d.Matrix4().makeScale(-1, 1, 1)), a.computeVertexNormals();
15071
15079
  var o = new $n("none");
15072
- return i = n.call(this, a, [o]) || this, i.position.copy(e.getCenter(new d.Vector3())), i.frustumCulled = !1, i.boundingBox = new d.Box3(), i.boundingBox.setFromObject(i), i.renderOrder = -1001, i;
15080
+ return o.refreshUniforms(), i = n.call(this, a, [o]) || this, i.position.copy(e.getCenter(new d.Vector3())), i.frustumCulled = !1, i.boundingBox = new d.Box3(), i.boundingBox.setFromObject(i), i.renderOrder = -1001, i;
15073
15081
  }
15074
15082
  return t;
15075
15083
  }(Yt)
@@ -15328,14 +15336,14 @@ var Vn = function(n, t, e, r) {
15328
15336
  var B = I.ownerDocument || I;
15329
15337
  return B.defaultView || B.parentWindow || n;
15330
15338
  }
15331
- var V = /mobile|tablet|ip(ad|hone|od)|android/i, U = "ontouchstart" in n, q = z(n, "PointerEvent") !== r, N = U && V.test(navigator.userAgent), H = "touch", J = "pen", j = "mouse", _ = "kinect", Z = 25, W = 1, ee = 2, Y = 4, ne = 8, te = 1, ue = 2, ae = 4, ye = 8, fe = 16, Ae = ue | ae, Pe = ye | fe, we = Ae | Pe, Me = ["x", "y"], re = ["clientX", "clientY"];
15332
- function ie(I, B) {
15339
+ var V = /mobile|tablet|ip(ad|hone|od)|android/i, U = "ontouchstart" in n, q = z(n, "PointerEvent") !== r, N = U && V.test(navigator.userAgent), H = "touch", J = "pen", j = "mouse", _ = "kinect", Z = 25, W = 1, ee = 2, Y = 4, ne = 8, te = 1, ue = 2, ie = 4, ye = 8, fe = 16, Ae = ue | ie, Pe = ye | fe, we = Ae | Pe, Me = ["x", "y"], re = ["clientX", "clientY"];
15340
+ function ae(I, B) {
15333
15341
  var D = this;
15334
15342
  this.manager = I, this.callback = B, this.element = I.element, this.target = I.options.inputTarget, this.domHandler = function(K) {
15335
15343
  x(I.options.enable, [I]) && D.handler(K);
15336
15344
  }, this.init();
15337
15345
  }
15338
- ie.prototype = {
15346
+ ae.prototype = {
15339
15347
  /**
15340
15348
  * should handle the inputEvent data and trigger the callback
15341
15349
  * @virtual
@@ -15427,7 +15435,7 @@ var Vn = function(n, t, e, r) {
15427
15435
  };
15428
15436
  }
15429
15437
  function ge(I, B) {
15430
- return I === B ? te : l(I) >= l(B) ? I < 0 ? ue : ae : B < 0 ? ye : fe;
15438
+ return I === B ? te : l(I) >= l(B) ? I < 0 ? ue : ie : B < 0 ? ye : fe;
15431
15439
  }
15432
15440
  function me(I, B, D) {
15433
15441
  D || (D = Me);
@@ -15451,9 +15459,9 @@ var Vn = function(n, t, e, r) {
15451
15459
  mouseup: Y
15452
15460
  }, Le = "mousedown", Ze = "mousemove mouseup";
15453
15461
  function ot() {
15454
- this.evEl = Le, this.evWin = Ze, this.pressed = !1, ie.apply(this, arguments);
15462
+ this.evEl = Le, this.evWin = Ze, this.pressed = !1, ae.apply(this, arguments);
15455
15463
  }
15456
- A(ot, ie, {
15464
+ A(ot, ae, {
15457
15465
  /**
15458
15466
  * handle mouse events
15459
15467
  * @param {Object} ev
@@ -15483,9 +15491,9 @@ var Vn = function(n, t, e, r) {
15483
15491
  }, er = "pointerdown", Tt = "pointermove pointerup pointercancel";
15484
15492
  n.MSPointerEvent && !n.PointerEvent && (er = "MSPointerDown", Tt = "MSPointerMove MSPointerUp MSPointerCancel");
15485
15493
  function tr() {
15486
- this.evEl = er, this.evWin = Tt, ie.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
15494
+ this.evEl = er, this.evWin = Tt, ae.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
15487
15495
  }
15488
- A(tr, ie, {
15496
+ A(tr, ae, {
15489
15497
  /**
15490
15498
  * handle mouse events
15491
15499
  * @param {Object} ev
@@ -15507,9 +15515,9 @@ var Vn = function(n, t, e, r) {
15507
15515
  touchcancel: ne
15508
15516
  }, qt = "touchstart", rr = "touchstart touchmove touchend touchcancel";
15509
15517
  function Ht() {
15510
- this.evTarget = qt, this.evWin = rr, this.started = !1, ie.apply(this, arguments);
15518
+ this.evTarget = qt, this.evWin = rr, this.started = !1, ae.apply(this, arguments);
15511
15519
  }
15512
- A(Ht, ie, {
15520
+ A(Ht, ae, {
15513
15521
  handler: function(B) {
15514
15522
  var D = Sr[B.type];
15515
15523
  if (D === W && (this.started = !0), !!this.started) {
@@ -15534,9 +15542,9 @@ var Vn = function(n, t, e, r) {
15534
15542
  touchcancel: ne
15535
15543
  }, hr = "touchstart touchmove touchend touchcancel";
15536
15544
  function At() {
15537
- this.evTarget = hr, this.targetIds = {}, ie.apply(this, arguments);
15545
+ this.evTarget = hr, this.targetIds = {}, ae.apply(this, arguments);
15538
15546
  }
15539
- A(At, ie, {
15547
+ A(At, ae, {
15540
15548
  handler: function(B) {
15541
15549
  var D = Oe[B.type], K = pr.call(this, B, D);
15542
15550
  K && this.callback(this.manager, D, {
@@ -15568,11 +15576,11 @@ var Vn = function(n, t, e, r) {
15568
15576
  }
15569
15577
  var vr = 2500, Ut = 25;
15570
15578
  function St() {
15571
- ie.apply(this, arguments);
15579
+ ae.apply(this, arguments);
15572
15580
  var I = y(this.handler, this);
15573
15581
  this.touch = new At(this.manager, I), this.mouse = new ot(this.manager, I), this.primaryTouch = null, this.lastTouches = [];
15574
15582
  }
15575
- A(St, ie, {
15583
+ A(St, ae, {
15576
15584
  /**
15577
15585
  * handle mouse and touch events
15578
15586
  * @param {Hammer} manager
@@ -15839,7 +15847,7 @@ var Vn = function(n, t, e, r) {
15839
15847
  return I & Pn ? "cancel" : I & Tr ? "end" : I & dn ? "move" : I & Pt ? "start" : "";
15840
15848
  }
15841
15849
  function Ro(I) {
15842
- return I == fe ? "down" : I == ye ? "up" : I == ue ? "left" : I == ae ? "right" : "";
15850
+ return I == fe ? "down" : I == ye ? "up" : I == ue ? "left" : I == ie ? "right" : "";
15843
15851
  }
15844
15852
  function ni(I, B) {
15845
15853
  var D = B.manager;
@@ -15901,7 +15909,7 @@ var Vn = function(n, t, e, r) {
15901
15909
  },
15902
15910
  directionTest: function(I) {
15903
15911
  var B = this.options, D = !0, K = I.distance, $ = I.direction, ce = I.deltaX, Ie = I.deltaY;
15904
- return $ & B.direction || (B.direction & Ae ? ($ = ce === 0 ? te : ce < 0 ? ue : ae, D = ce != this.pX, K = Math.abs(I.deltaX)) : ($ = Ie === 0 ? te : Ie < 0 ? ye : fe, D = Ie != this.pY, K = Math.abs(I.deltaY))), I.direction = $, D && K > B.threshold && $ & B.direction;
15912
+ return $ & B.direction || (B.direction & Ae ? ($ = ce === 0 ? te : ce < 0 ? ue : ie, D = ce != this.pX, K = Math.abs(I.deltaX)) : ($ = Ie === 0 ? te : Ie < 0 ? ye : fe, D = Ie != this.pY, K = Math.abs(I.deltaY))), I.direction = $, D && K > B.threshold && $ & B.direction;
15905
15913
  },
15906
15914
  attrTest: function(I) {
15907
15915
  return Jt.prototype.attrTest.call(this, I) && (this.state & Pt || !(this.state & Pt) && this.directionTest(I));
@@ -16337,14 +16345,14 @@ var Vn = function(n, t, e, r) {
16337
16345
  STATE_FAILED: nr,
16338
16346
  DIRECTION_NONE: te,
16339
16347
  DIRECTION_LEFT: ue,
16340
- DIRECTION_RIGHT: ae,
16348
+ DIRECTION_RIGHT: ie,
16341
16349
  DIRECTION_UP: ye,
16342
16350
  DIRECTION_DOWN: fe,
16343
16351
  DIRECTION_HORIZONTAL: Ae,
16344
16352
  DIRECTION_VERTICAL: Pe,
16345
16353
  DIRECTION_ALL: we,
16346
16354
  Manager: Ki,
16347
- Input: ie,
16355
+ Input: ae,
16348
16356
  TouchAction: Ir,
16349
16357
  TouchInput: At,
16350
16358
  MouseInput: ot,
@@ -18639,8 +18647,8 @@ void main() {
18639
18647
  var ue = cr(Z.visibleIds, function(ve) {
18640
18648
  var xe = i.works.getResolvedObserver(ve);
18641
18649
  return xe ? Z.standingPosition.distanceTo(xe.standingPosition) : 1 / 0;
18642
- }, !0), ae = ue[1];
18643
- ae = he(ae, 2.5, 1 / 0);
18650
+ }, !0), ie = ue[1];
18651
+ ie = he(ie, 2.5, 1 / 0);
18644
18652
  for (var ye = Z.visibleIds.concat(De(this.currentPano)), fe = this.camera.getDirection(new d.Vector3()), Ae = 0, Pe = Object.keys(this.panoMeshes); Ae < Pe.length; Ae++) {
18645
18653
  var ne = Pe[Ae], te = this.panoMeshes[ne], we = this.works.getResolvedObserver(ne);
18646
18654
  if (ye.indexOf(ne) === -1)
@@ -18651,13 +18659,13 @@ void main() {
18651
18659
  te.setCurrent(!1), te.setOpacity(0);
18652
18660
  else {
18653
18661
  var Me = te.position.clone().setY(this.camera.position.y).distanceTo(this.camera.position);
18654
- te.setCurrent(!te.loading && te.progress === 0 && W !== null && W.panoId === ne), te.setOpacity(Me < 0.01 ? 0 : he(ae / Me * 1.2, 0.4, 0.85));
18655
- var re = this.camera.position.clone().setY(te.position.y), ie = new d.Vector3().copy(te.position).sub(re).normalize();
18662
+ te.setCurrent(!te.loading && te.progress === 0 && W !== null && W.panoId === ne), te.setOpacity(Me < 0.01 ? 0 : he(ie / Me * 1.2, 0.4, 0.85));
18663
+ var re = this.camera.position.clone().setY(te.position.y), ae = new d.Vector3().copy(te.position).sub(re).normalize();
18656
18664
  if (ne === De(this.currentPano)) {
18657
18665
  var G = he((0.5 - re.distanceTo(te.position)) / 0.5, 0, 1);
18658
- ie.multiplyScalar(1 - G).add(fe.clone().multiplyScalar(G));
18666
+ ae.multiplyScalar(1 - G).add(fe.clone().multiplyScalar(G));
18659
18667
  }
18660
- ie.length() > 0 && te.quaternion.setFromEuler(new d.Euler(0, Math.atan2(ie.x, ie.z), 0));
18668
+ ae.length() > 0 && te.quaternion.setFromEuler(new d.Euler(0, Math.atan2(ae.x, ae.z), 0));
18661
18669
  }
18662
18670
  te.updateTime && te.updateTime(e, r);
18663
18671
  }
@@ -19052,9 +19060,9 @@ void main() {
19052
19060
  W.lookAt(_);
19053
19061
  var ee = new d.Matrix4().makeRotationFromQuaternion(W.quaternion);
19054
19062
  W.lookAt(Z);
19055
- var Y = new d.Matrix4().makeRotationFromQuaternion(W.quaternion), ne = new d.Matrix4().getInverse(ee).premultiply(Y), te = this.cameraMotion.value.fov, ue = (v = H.fov) !== null && v !== void 0 ? v : this.cameraMotion.value.fov, ae = 1;
19056
- r.effect === "zoomin" ? ae = 1.5 : r.effect === "zoomout" && (ae = 0.4);
19057
- for (var ye = he(ue * ae, 1, 170), fe = 0; fe < w.length - 1; fe++) {
19063
+ var Y = new d.Matrix4().makeRotationFromQuaternion(W.quaternion), ne = new d.Matrix4().getInverse(ee).premultiply(Y), te = this.cameraMotion.value.fov, ue = (v = H.fov) !== null && v !== void 0 ? v : this.cameraMotion.value.fov, ie = 1;
19064
+ r.effect === "zoomin" ? ie = 1.5 : r.effect === "zoomout" && (ie = 0.4);
19065
+ for (var ye = he(ue * ie, 1, 170), fe = 0; fe < w.length - 1; fe++) {
19058
19066
  var Ae = w[fe].key;
19059
19067
  if (Ae) {
19060
19068
  var Pe = this.panoResources[Ae];
@@ -19093,8 +19101,8 @@ void main() {
19093
19101
  // resolve
19094
19102
  // 动画结束
19095
19103
  function() {
19096
- for (var Me, re, ie = 0, G = a.models; ie < G.length; ie++) {
19097
- var Fe = G[ie];
19104
+ for (var Me, re, ae = 0, G = a.models; ae < G.length; ae++) {
19105
+ var Fe = G[ae];
19098
19106
  Fe.show();
19099
19107
  }
19100
19108
  var ke = F(F({}, e), { mode: a.mode, longitude: a.camera.pose.longitude, latitude: a.camera.pose.latitude, fov: a.camera.pose.fov, offset: a.camera.pose.offset.clone(), distance: a.camera.pose.distance });
@@ -20208,26 +20216,26 @@ void main() {
20208
20216
  var Y = this.works.getResolvedObserver(this.currentPano);
20209
20217
  if (this.camera.pose.distance > 0.1 || b)
20210
20218
  for (var ne = 0, te = Object.keys(this.panoMeshes); ne < te.length; ne++) {
20211
- var ue = te[ne], ae = this.panoMeshes[ue];
20212
- ae.setOpacity(0), ae.updateTime && ae.updateTime(e, r), ae.visible = !1;
20219
+ var ue = te[ne], ie = this.panoMeshes[ue];
20220
+ ie.setOpacity(0), ie.updateTime && ie.updateTime(e, r), ie.visible = !1;
20213
20221
  }
20214
20222
  else if (Y)
20215
20223
  for (var ye = Y.visibleIds.concat(De(this.currentPano)), fe = 0, Ae = ye; fe < Ae.length; fe++) {
20216
20224
  var ue = Ae[fe], Pe = wt(ue), we = this.works.getResolvedObserver(Pe);
20217
20225
  if (we) {
20218
- var ae = this.panoMeshes[ue];
20226
+ var ie = this.panoMeshes[ue];
20219
20227
  if (!we.loadable && !we.active) {
20220
- ae.setOpacity(0);
20228
+ ie.setOpacity(0);
20221
20229
  continue;
20222
20230
  }
20223
- var Me = ae.position.clone().setY(this.camera.position.y).distanceTo(this.camera.position);
20224
- Me < 0.05 ? ae.setOpacity(0) : ae.setOpacity(he(1.5 / Me, 0, 1)), lr(this.currentPano, Pe) && ae.setOpacity(0), ae.lookAt(this.camera.position);
20231
+ var Me = ie.position.clone().setY(this.camera.position.y).distanceTo(this.camera.position);
20232
+ Me < 0.05 ? ie.setOpacity(0) : ie.setOpacity(he(1.5 / Me, 0, 1)), lr(this.currentPano, Pe) && ie.setOpacity(0), ie.lookAt(this.camera.position);
20225
20233
  }
20226
20234
  }
20227
20235
  if (this.locationMotion.ended)
20228
- for (var re = this.intersect(e), ie = 0, G = this.works.resolvedObservers; ie < G.length; ie++) {
20229
- var we = G[ie], ae = this.panoMeshes[we.panoId];
20230
- ae && (ae.setCurrent(ae === re), ae.updateTime && ae.updateTime(e, r));
20236
+ for (var re = this.intersect(e), ae = 0, G = this.works.resolvedObservers; ae < G.length; ae++) {
20237
+ var we = G[ae], ie = this.panoMeshes[we.panoId];
20238
+ ie && (ie.setCurrent(ie === re), ie.updateTime && ie.updateTime(e, r));
20231
20239
  }
20232
20240
  (W !== this.camera.pose.longitude || ee !== this.camera.pose.latitude) && (this.cameraMotion.set(Vt(this.camera.pose, ["longitude", "latitude"]), 0).catch(Q), this.emit("camera.update", X("camera.update", {
20233
20241
  userAction: !0,
@@ -21418,7 +21426,7 @@ var hv = { type: "move" }, ts = (
21418
21426
  e.session.updateRenderState({ baseLayer: new XRWebGLLayer(e.session, e.gl, i) });
21419
21427
  break;
21420
21428
  case "Oculus":
21421
- e.session.updateRenderState({ layers: [new XRWebGLLayer(e.session, e.gl, i)] });
21429
+ e.session.updateRenderState({ baseLayer: new XRWebGLLayer(e.session, e.gl, i) });
21422
21430
  break;
21423
21431
  default:
21424
21432
  e.machineType;
@@ -21899,7 +21907,7 @@ var Av = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAA
21899
21907
  }
21900
21908
  return Object.defineProperty(t, "version", {
21901
21909
  get: function() {
21902
- return "6.3.0-alpha.3";
21910
+ return "6.3.0-alpha.5";
21903
21911
  },
21904
21912
  enumerable: !1,
21905
21913
  configurable: !0
@@ -22575,11 +22583,11 @@ var as = 300, kv = new d.Matrix4().makeRotationAxis(new d.Vector3(0, 1, 0), Math
22575
22583
  Z.lookAt(_);
22576
22584
  var ee = new d.Matrix4().makeRotationFromQuaternion(Z.quaternion), Y = new d.Matrix4().getInverse(W).premultiply(ee), ne = this.cameraMotion.value.fov, te = (f = N.fov) !== null && f !== void 0 ? f : this.cameraMotion.value.fov, ue = 1;
22577
22585
  r.effect === "zoomin" ? ue = 1.5 : r.effect === "zoomout" && (ue = 0.4);
22578
- for (var ae = te * ue, ye = 0; ye < b.length - 1; ye++) {
22586
+ for (var ie = te * ue, ye = 0; ye < b.length - 1; ye++) {
22579
22587
  var fe = b[ye].key;
22580
22588
  if (fe) {
22581
22589
  var Ae = this.panoResources[fe];
22582
- Ae && (Ae.fixCameraTransform.copy(Y), Ae.leftPanoPicture && (Ae.leftPanoPicture.zoom = Math.tan(ne / 2 / 180 * Math.PI) / Math.tan(ae / 2 / 180 * Math.PI)));
22590
+ Ae && (Ae.fixCameraTransform.copy(Y), Ae.leftPanoPicture && (Ae.leftPanoPicture.zoom = Math.tan(ne / 2 / 180 * Math.PI) / Math.tan(ie / 2 / 180 * Math.PI)));
22583
22591
  }
22584
22592
  }
22585
22593
  this.cameraMotion.setKeyframes([
@@ -22596,7 +22604,7 @@ var as = 300, kv = new d.Matrix4().makeRotationAxis(new d.Vector3(0, 1, 0), Math
22596
22604
  value: {
22597
22605
  longitude: (v = N.longitude) !== null && v !== void 0 ? v : this.cameraMotion.value.longitude,
22598
22606
  latitude: (m = N.latitude) !== null && m !== void 0 ? m : this.cameraMotion.value.latitude,
22599
- fov: ae
22607
+ fov: ie
22600
22608
  }
22601
22609
  },
22602
22610
  {
@@ -22614,8 +22622,8 @@ var as = 300, kv = new d.Matrix4().makeRotationAxis(new d.Vector3(0, 1, 0), Math
22614
22622
  // resolve
22615
22623
  // 动画结束
22616
22624
  function() {
22617
- for (var we, Me, re, ie = 0, G = a.models; ie < G.length; ie++) {
22618
- var Fe = G[ie];
22625
+ for (var we, Me, re, ae = 0, G = a.models; ae < G.length; ae++) {
22626
+ var Fe = G[ae];
22619
22627
  Fe.show();
22620
22628
  }
22621
22629
  var ke = F(F({}, e), { mode: a.mode, longitude: a.camera.pose.longitude, latitude: a.camera.pose.latitude, fov: a.camera.pose.fov, offset: a.camera.pose.offset.clone(), distance: 0 });
@@ -22804,7 +22812,7 @@ var as = 300, kv = new d.Matrix4().makeRotationAxis(new d.Vector3(0, 1, 0), Math
22804
22812
  }
22805
22813
  var W = this.xrManager.referenceSpace;
22806
22814
  if (W) {
22807
- var ee = this.xrManager.cameraVR, Y = this.xrManager.cameraL, ne = this.xrManager.cameraR, te = [Y, ne], ue = Z.getViewerPose(W), ae = new d.Vector3(0, 0, 0);
22815
+ var ee = this.xrManager.cameraVR, Y = this.xrManager.cameraL, ne = this.xrManager.cameraR, te = [Y, ne], ue = Z.getViewerPose(W), ie = new d.Vector3(0, 0, 0);
22808
22816
  if (ue) {
22809
22817
  var ye;
22810
22818
  ye = this.xrManager.session.renderState.baseLayer;
@@ -22818,13 +22826,13 @@ var as = 300, kv = new d.Matrix4().makeRotationAxis(new d.Vector3(0, 1, 0), Math
22818
22826
  fe.length !== ee.cameras.length && (ee.cameras.length = 0, Ae = !0), this.parallaxCameraMatrixs = [];
22819
22827
  var Pe = new d.Vector3(), we = new d.Vector3();
22820
22828
  new d.Matrix4().fromArray(fe[0].transform.matrix).decompose(Pe, new d.Quaternion(), new d.Vector3()), new d.Matrix4().fromArray(fe[1].transform.matrix).decompose(we, new d.Quaternion(), new d.Vector3()), we.clone().sub(Pe).normalize();
22821
- var Me = new d.Vector3(), re = new d.Quaternion(), ie = new d.Vector3();
22822
- this.camera.matrix.decompose(Me, re, ie);
22829
+ var Me = new d.Vector3(), re = new d.Quaternion(), ae = new d.Vector3();
22830
+ this.camera.matrix.decompose(Me, re, ae);
22823
22831
  for (var G = 0; G < fe.length; G++) {
22824
22832
  var Fe = fe[G], ke = ye.getViewport(Fe), Te = te[G];
22825
22833
  Te.matrix.fromArray(Fe.transform.matrix);
22826
22834
  var Ge = new d.Vector3(), be = new d.Quaternion(), ve = new d.Vector3();
22827
- Te.matrix.decompose(Ge, be, ve), ae.copy(Me), Te.position.copy(Me), Te.quaternion.copy(be), Te.scale.copy(ve), Te.updateMatrix(), Te.projectionMatrix.fromArray(Fe.projectionMatrix), Te.viewport.set(ke.x, ke.y, ke.width, ke.height), Ae === !0 && ee.cameras.push(Te);
22835
+ Te.matrix.decompose(Ge, be, ve), ie.copy(Me), Te.position.copy(Me), Te.quaternion.copy(be), Te.scale.copy(ve), Te.updateMatrix(), Te.projectionMatrix.fromArray(Fe.projectionMatrix), Te.viewport.set(ke.x, ke.y, ke.width, ke.height), Ae === !0 && ee.cameras.push(Te);
22828
22836
  }
22829
22837
  if (this.xrManager.session && this.xrManager.session.inputSources) {
22830
22838
  for (var G = 0; G < this.xrManager.session.inputSources.length; G++)
@@ -22841,8 +22849,8 @@ var as = 300, kv = new d.Matrix4().makeRotationAxis(new d.Vector3(0, 1, 0), Math
22841
22849
  var Ke = this.xrManager.controllers[G], rt = Qe[G];
22842
22850
  if (rt) {
22843
22851
  Ke && Ke.update(rt, Z, W);
22844
- var me = this.xrManager.getController(G), Xr = new d.Vector3(0, 1.2, 0), Le = me.position.clone().add(ae).sub(Xr);
22845
- rt.handedness === "left" ? this.xrControllerRay.left.set(Le, new d.Vector3(0, 0, -1).applyEuler(me.rotation)) : rt.handedness === "right" && this.xrControllerRay.right.set(Le, new d.Vector3(0, 0, -1).applyEuler(me.rotation)), this.controllerWrappers[G].position.copy(new d.Vector3(0, 0, 0).add(ae).sub(Xr));
22852
+ var me = this.xrManager.getController(G), Xr = new d.Vector3(0, 1.2, 0), Le = me.position.clone().add(ie).sub(Xr);
22853
+ rt.handedness === "left" ? this.xrControllerRay.left.set(Le, new d.Vector3(0, 0, -1).applyEuler(me.rotation)) : rt.handedness === "right" && this.xrControllerRay.right.set(Le, new d.Vector3(0, 0, -1).applyEuler(me.rotation)), this.controllerWrappers[G].position.copy(new d.Vector3(0, 0, 0).add(ie).sub(Xr));
22846
22854
  var Ze = this.models.intersectRaycaster(this.xrControllerRay.right);
22847
22855
  if (Ze.length === 0 && (Ze = this.xrControllerRay.right.intersectObject(this.boundingMesh, !0).map(function(Ir) {
22848
22856
  var Zr;
@@ -23459,7 +23467,7 @@ var jv = 800, cs = 90, Xv = function(n) {
23459
23467
  }
23460
23468
  return Object.defineProperty(t, "version", {
23461
23469
  get: function() {
23462
- return "6.3.0-alpha.3";
23470
+ return "6.3.0-alpha.5";
23463
23471
  },
23464
23472
  enumerable: !1,
23465
23473
  configurable: !0
@@ -23849,8 +23857,8 @@ var jv = 800, cs = 90, Xv = function(n) {
23849
23857
  if (o.controller)
23850
23858
  o.controller.destroy();
23851
23859
  else {
23852
- var ae = Rt[T].initAnimationEndState(ne);
23853
- o.camera.setFromPose(ae), o.modelGroup.visible = !0, o.emit("camera.update", X("camera.update", {
23860
+ var ie = Rt[T].initAnimationEndState(ne);
23861
+ o.camera.setFromPose(ie), o.modelGroup.visible = !0, o.emit("camera.update", X("camera.update", {
23854
23862
  state: o.getCurrentState(),
23855
23863
  userAction: a
23856
23864
  }));