@jdultra/threedtiles 13.0.28 → 13.0.29

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.
@@ -3513,30 +3513,27 @@ class Wt extends E.Object3D {
3513
3513
  for (let g in t.queryParams) t.queryParams.hasOwnProperty(g) && (d += "&" + g + "=" + t.queryParams[g]);
3514
3514
  n.includes("?") ? n += d : n += "?" + d.substring(1);
3515
3515
  }
3516
- if (n) if (o && (n.includes(".b3dm") || n.includes(".glb") || n.includes(".gltf"))) {
3517
- console.log("get");
3518
- try {
3519
- t.tileLoader.get(t.abortController, t.uuid, n, (g) => {
3520
- t.deleted || (g.asset && g.asset.copyright && (g.asset.copyright.split(";").forEach((h) => {
3521
- Z[h] ? Z[h]++ : Z[h] = 1;
3522
- }), t.displayCopyright && ma()), t.meshContent.push(g), t.splatsMesh || (g.traverse((h) => {
3523
- if ((h.isMesh || h.isPoints) && h.layers.disable(0), h.isMesh && t.occlusionCullingService) {
3524
- const b = h.geometry.attributes.position, f = [];
3525
- for (let I = 0; I < b.count; I++) f.push(t.color.r, t.color.g, t.color.b);
3526
- h.geometry.setAttribute("color", new E.Float32BufferAttribute(f, 3));
3527
- }
3528
- }), t.add(g), t.updateMatrices()));
3529
- }, t.cameraOnLoad ? () => t.loadingStrategy == "IMMEDIATE" ? t._calculateDistanceToCamera(t.cameraOnLoad) : t.loadingStrategy == "INCREMENTAL" ? t.parentTile ? t.parentTile._calculateDistanceToCamera(t.cameraOnLoad) / Math.max(1, t.parentTile.level) : t._calculateDistanceToCamera(t.cameraOnLoad) / Math.max(1, t.level) : t.loadingStrategy == "PERLEVEL" ? t.parentTile ? t.level + t.parentTile._calculateDistanceToCamera(t.cameraOnLoad) : t.level + t._calculateDistanceToCamera(t.cameraOnLoad) : 0 : () => 0, () => t._getSiblings(), t.level, t.loadingStrategy, !t.json.boundingVolume.region, !!t.json.boundingVolume.region, t.geometricError, t.splatsMesh);
3530
- } catch (g) {
3531
- t.displayErrors && gt(g);
3532
- }
3533
- } else r && n.includes(".json") && (t.jsonRequested = n, t.tileLoader.get(t.abortController, t.uuid, n, async (g) => {
3516
+ if (n) if (o && (n.includes(".b3dm") || n.includes(".glb") || n.includes(".gltf"))) try {
3517
+ t.tileLoader.get(t.abortController, t.uuid, n, (g) => {
3518
+ t.deleted || (g.asset && g.asset.copyright && (g.asset.copyright.split(";").forEach((h) => {
3519
+ Z[h] ? Z[h]++ : Z[h] = 1;
3520
+ }), t.displayCopyright && ma()), t.meshContent.push(g), t.splatsMesh || (g.traverse((h) => {
3521
+ if ((h.isMesh || h.isPoints) && h.layers.disable(0), h.isMesh && t.occlusionCullingService) {
3522
+ const b = h.geometry.attributes.position, f = [];
3523
+ for (let I = 0; I < b.count; I++) f.push(t.color.r, t.color.g, t.color.b);
3524
+ h.geometry.setAttribute("color", new E.Float32BufferAttribute(f, 3));
3525
+ }
3526
+ }), t.add(g), t.updateMatrices()));
3527
+ }, t.cameraOnLoad ? () => t.loadingStrategy == "IMMEDIATE" ? t._calculateDistanceToCamera(t.cameraOnLoad) : t.loadingStrategy == "INCREMENTAL" ? t.parentTile ? t.parentTile._calculateDistanceToCamera(t.cameraOnLoad) / Math.max(1, t.parentTile.level) : t._calculateDistanceToCamera(t.cameraOnLoad) / Math.max(1, t.level) : t.loadingStrategy == "PERLEVEL" ? t.parentTile ? t.level + t.parentTile._calculateDistanceToCamera(t.cameraOnLoad) : t.level + t._calculateDistanceToCamera(t.cameraOnLoad) : 0 : () => 0, () => t._getSiblings(), t.level, t.loadingStrategy, !t.json.boundingVolume.region, !!t.json.boundingVolume.region, t.geometricError, t.splatsMesh);
3528
+ } catch (g) {
3529
+ t.displayErrors && gt(g);
3530
+ }
3531
+ else r && n.includes(".json") && (t.jsonRequested = n, t.tileLoader.get(t.abortController, t.uuid, n, async (g) => {
3534
3532
  t.jsonReceived = !0, t.deleted || (g.rootPath = le.dirname(n), t.json.children.push(g), s == null ? delete t.json.content : t.json.contents.splice(s, 1), t.hasUnloadedJSONContent--);
3535
3533
  }));
3536
3534
  }
3537
3535
  }
3538
3536
  dispose() {
3539
- console.log("dispose");
3540
3537
  const e = this;
3541
3538
  e.meshContent.forEach((a) => {
3542
3539
  a && a.asset && a.asset.copyright && (a.asset.copyright.split(";").forEach((t) => {