@jdultra/threedtiles 13.0.14 → 13.0.15

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.
@@ -3,7 +3,7 @@ var Xt = (o, e, a) => e in o ? Wt(o, e, { enumerable: !0, configurable: !0, writ
3
3
  var ge = (o, e, a) => Xt(o, typeof e != "symbol" ? e + "" : e, a);
4
4
  import * as E from "three";
5
5
  import { Matrix3 as Ra, Vector3 as S, Box3 as Sa, Matrix4 as je, Ray as Zt, BufferGeometry as va, BufferAttribute as le, TrianglesDrawMode as $t, TriangleFanDrawMode as Qa, TriangleStripDrawMode as It, Loader as Fa, LoaderUtils as Pe, FileLoader as Be, Color as he, LinearSRGBColorSpace as K, SpotLight as eA, PointLight as aA, DirectionalLight as tA, MeshBasicMaterial as Le, SRGBColorSpace as re, MeshPhysicalMaterial as ee, Vector2 as pt, Quaternion as Ct, InstancedMesh as AA, InstancedBufferAttribute as ya, Object3D as Bt, TextureLoader as iA, ImageBitmapLoader as sA, InterleavedBuffer as rA, InterleavedBufferAttribute as nA, LinearFilter as Ce, LinearMipmapLinearFilter as $e, RepeatWrapping as wa, NearestFilter as M, PointsMaterial as oA, Material as aa, LineBasicMaterial as cA, MeshStandardMaterial as Ua, DoubleSide as dA, PropertyBinding as bA, SkinnedMesh as lA, Mesh as xa, LineSegments as hA, Line as gA, LineLoop as fA, Points as uA, Group as ta, PerspectiveCamera as IA, MathUtils as pA, OrthographicCamera as mt, Skeleton as CA, AnimationClip as BA, Bone as mA, InterpolateLinear as Et, ColorManagement as ka, NearestMipmapNearestFilter as EA, LinearMipmapNearestFilter as QA, NearestMipmapLinearFilter as yA, ClampToEdgeWrapping as wA, MirroredRepeatWrapping as xA, InterpolateDiscrete as kA, FrontSide as Ze, Texture as Na, VectorKeyframeTrack as Pa, NumberKeyframeTrack as _a, QuaternionKeyframeTrack as Ha, Sphere as DA, Interpolant as jA, CompressedCubeTexture as MA, CompressedArrayTexture as RA, CompressedTexture as qa, RGBAFormat as $, RGBA_ASTC_4x4_Format as Qt, RGB_BPTC_UNSIGNED_Format as SA, RGBA_BPTC_Format as vA, RGBA_ETC2_EAC_Format as FA, RGBA_PVRTC_4BPPV1_Format as TA, RGBA_S3TC_DXT5_Format as LA, RGB_ETC1_Format as GA, RGB_ETC2_Format as UA, RGB_PVRTC_4BPPV1_Format as NA, RGBA_S3TC_DXT1_Format as PA, UnsignedByteType as X, HalfFloatType as xe, FloatType as v, DataTexture as Ge, Data3DTexture as _A, NoColorSpace as HA, RGFormat as Ue, RedFormat as Ne, RGBA_ASTC_6x6_Format as Oa, WebGL3DRenderTarget as ne, ShaderMaterial as Aa, InstancedBufferGeometry as Ja, DynamicDrawUsage as Ka, Scene as qA, PlaneGeometry as OA } from "three";
6
- class $i {
6
+ class es {
7
7
  constructor() {
8
8
  this.cullMap = [], this.cullMaterial = new E.MeshBasicMaterial({ vertexColors: !0 }), this.cullMaterial.side = E.FrontSide, this.cullTarget = this._createCullTarget(), this.cullPixels = new Uint8Array(4 * this.cullTarget.width * this.cullTarget.height);
9
9
  }
@@ -3023,10 +3023,13 @@ class He extends _e {
3023
3023
  return i;
3024
3024
  }
3025
3025
  }
3026
+ function _i(o) {
3027
+ return new Worker("" + new URL("assets/PointsManager.worker-5fpGpVvf.js", import.meta.url).href, { type: "module", name: o == null ? void 0 : o.name });
3028
+ }
3026
3029
  new Sa(), new S(), new S(), new S(), new S();
3027
- const Ve = new S(), _i = new S(), zt = new Ra();
3030
+ const Ve = new S(), Hi = new S(), zt = new Ra();
3028
3031
  zt.set(1, 0, 0, 0, 0, 1, 0, -1, 0);
3029
- class Hi extends xa {
3032
+ class qi extends xa {
3030
3033
  constructor(e, a) {
3031
3034
  const A = Math.min(Math.ceil(8) * 512, Math.pow(512, 2));
3032
3035
  let i = 1 * Math.pow(512, 2);
@@ -3039,12 +3042,12 @@ class Hi extends xa {
3039
3042
  c.texture.type = v, e.initRenderTarget(c);
3040
3043
  const n = new ne(512, 512, 1, { magFilter: M, minFilter: M, anisotropy: 0, type: v, depthBuffer: !1, resolveDepthBuffer: !1 });
3041
3044
  n.texture.type = v, e.initRenderTarget(n);
3042
- const b = new Aa({ uniforms: { textureSize: { value: 512 }, numSlices: { value: 1 }, cov1Texture: { value: c.texture }, cov2Texture: { value: n.texture }, colorTexture: { value: s.texture }, positionTexture: { value: r.texture }, zUpToYUpMatrix3x3: { value: zt }, sizeMultiplier: { value: 1 }, cropRadius: { value: Number.MAX_VALUE }, cameraNear: { value: 0.01 }, cameraFar: { value: 10 }, computeLinearDepth: { value: !0 } }, vertexShader: qi(), fragmentShader: a || Oi(), transparent: !0, side: Ze, depthTest: !1, depthWrite: !1 }), d = new Ja(), l = new Float32Array([-0.5, 0.5, 0, 0.5, 0.5, 0, -0.5, -0.5, 0, 0.5, -0.5, 0]);
3045
+ const b = new Aa({ uniforms: { textureSize: { value: 512 }, numSlices: { value: 1 }, cov1Texture: { value: c.texture }, cov2Texture: { value: n.texture }, colorTexture: { value: s.texture }, positionTexture: { value: r.texture }, zUpToYUpMatrix3x3: { value: zt }, sizeMultiplier: { value: 1 }, cropRadius: { value: Number.MAX_VALUE }, cameraNear: { value: 0.01 }, cameraFar: { value: 10 }, computeLinearDepth: { value: !0 } }, vertexShader: Oi(), fragmentShader: a || Ji(), transparent: !0, side: Ze, depthTest: !1, depthWrite: !1 }), d = new Ja(), l = new Float32Array([-0.5, 0.5, 0, 0.5, 0.5, 0, -0.5, -0.5, 0, 0.5, -0.5, 0]);
3043
3046
  d.setIndex([0, 2, 1, 2, 3, 1]), d.setAttribute("position", new le(l, 3));
3044
3047
  const g = new Uint32Array(i), h = new ya(g, 1, !1);
3045
3048
  h.needsUpdate = !0, h.setUsage(Ka), d.setAttribute("order", h), d.instanceCount = 0, super(d, b), this.orderAttribute = h, this.textureSize = 512, this.numTextures = 1, this.batchSize = A, this.maxSplats = i, this.colorRenderTarget = s, this.positionRenderTarget = r, this.cov1RenderTarget = c, this.cov2RenderTarget = n, this.renderer = e, this.sortID = 0, this.freeAddresses = new He();
3046
3049
  for (let u = 0; u < this.maxSplats; u += A) this.freeAddresses.add(u);
3047
- this.worker = new Worker(new URL("" + new URL("assets/PointsManager.worker-5fpGpVvf.js", import.meta.url).href, import.meta.url), { type: "module" }), this.sortListeners = [], this.worker.onmessage = (u) => {
3050
+ this.worker = new _i({ type: "module" }), this.sortListeners = [], this.worker.onmessage = (u) => {
3048
3051
  const p = new Uint32Array(u.data.order);
3049
3052
  if (p.length > this.orderAttribute.count) {
3050
3053
  const B = new Ja(), C = new Float32Array([-0.5, 0.5, 0, 0.5, 0.5, 0, -0.5, -0.5, 0, 0.5, -0.5, 0]), w = [0, 2, 1, 2, 3, 1];
@@ -3122,7 +3125,7 @@ void main() {
3122
3125
  const p = u * u;
3123
3126
  for (let B = 0; B < g.length; B += 3) {
3124
3127
  Ve.set(g[B], -g[B + 2], g[B + 1]);
3125
- const C = _i.copy(Ve).sub(f.origin).dot(f.direction);
3128
+ const C = Hi.copy(Ve).sub(f.origin).dot(f.direction);
3126
3129
  C > 0 && f.distanceSqToPoint(Ve) < p && I.push({ distance: C, point: Ve.clone(), type: "splat" });
3127
3130
  }
3128
3131
  }, n > this.freeAddresses.size && this.growTextures();
@@ -3175,7 +3178,7 @@ void main() {
3175
3178
  i.texture.type = v, this.renderer.initRenderTarget(i), this.copyTex3D(this.cov2RenderTarget.texture, i, this.numTextures), this.cov2RenderTarget.dispose(), this.cov2RenderTarget = i, this.material.uniforms.cov2Texture.value = this.cov2RenderTarget.texture, this.numTextures = e, this.material.uniforms.numSlices.value = this.numTextures;
3176
3179
  }
3177
3180
  }
3178
- function qi() {
3181
+ function Oi() {
3179
3182
  return `
3180
3183
  precision highp float;
3181
3184
  precision highp int;
@@ -3334,7 +3337,7 @@ void main() {
3334
3337
  }
3335
3338
  `;
3336
3339
  }
3337
- function Oi() {
3340
+ function Ji() {
3338
3341
  return `
3339
3342
  precision highp float;
3340
3343
 
@@ -3377,10 +3380,10 @@ void main() {
3377
3380
  var W;
3378
3381
  const te = new E.Sphere(new E.Vector3(0, 0, 0), 1), ue = new se([0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1]);
3379
3382
  new E.Box3();
3380
- const ce = new E.Vector3(0, 0, 0), we = new E.Vector3(0, 0, 0), Ji = new E.Vector3(0, 1, 0), Ye = new E.Ray(), We = new E.Matrix4();
3383
+ const ce = new E.Vector3(0, 0, 0), we = new E.Vector3(0, 0, 0), Ki = new E.Vector3(0, 1, 0), Ye = new E.Ray(), We = new E.Matrix4();
3381
3384
  new E.Matrix4(), new E.Frustum();
3382
3385
  const Ca = new E.Vector3(), Xe = [], ht = new E.Quaternion(), Z = {};
3383
- function Ki() {
3386
+ function zi() {
3384
3387
  var o = [];
3385
3388
  for (let e in Z) Z.hasOwnProperty(e) && Z[e] > 0 && o.push(e);
3386
3389
  return o;
@@ -3436,7 +3439,7 @@ class Vt extends E.Object3D {
3436
3439
  }
3437
3440
  async _setup(e) {
3438
3441
  const a = this;
3439
- if (e.json.extensionsRequired && e.json.extensionsRequired.includes("JDULTRA_gaussian_splats") && (a.splatsMesh = new Hi(a.tileLoader.renderer), this.splatsMesh.setSplatsCropRadius(this.splatsCropRadius), this.splatsMesh.setSplatsSizeMultiplier(this.splatsSizeMultiplier), a.add(a.splatsMesh)), e.json.root ? (a.json = e.json.root, a.json.refine || (a.json.refine = e.json.refine), a.json.geometricError || (a.json.geometricError = e.json.geometricError), a.json.transform || (a.json.transform = e.json.transform), a.json.boundingVolume || (a.json.boundingVolume = e.json.boundingVolume)) : a.json = e.json, a.json.children || (a.json.getChildren ? a.json.children = await a.json.getChildren() : a.json.children = []), a.rootPath = e.json.rootPath ? e.json.rootPath : e.rootPath, a.json.refine ? a.refine = a.json.refine : a.refine = e.parentRefine, a.json.geometricError ? a.geometricError = a.json.geometricError : a.geometricError = e.parentGeometricError, a.json.transform) {
3442
+ if (e.json.extensionsRequired && e.json.extensionsRequired.includes("JDULTRA_gaussian_splats") && (a.splatsMesh = new qi(a.tileLoader.renderer), this.splatsMesh.setSplatsCropRadius(this.splatsCropRadius), this.splatsMesh.setSplatsSizeMultiplier(this.splatsSizeMultiplier), a.add(a.splatsMesh)), e.json.root ? (a.json = e.json.root, a.json.refine || (a.json.refine = e.json.refine), a.json.geometricError || (a.json.geometricError = e.json.geometricError), a.json.transform || (a.json.transform = e.json.transform), a.json.boundingVolume || (a.json.boundingVolume = e.json.boundingVolume)) : a.json = e.json, a.json.children || (a.json.getChildren ? a.json.children = await a.json.getChildren() : a.json.children = []), a.rootPath = e.json.rootPath ? e.json.rootPath : e.rootPath, a.json.refine ? a.refine = a.json.refine : a.refine = e.parentRefine, a.json.geometricError ? a.geometricError = a.json.geometricError : a.geometricError = e.parentGeometricError, a.json.transform) {
3440
3443
  let A = new E.Matrix4();
3441
3444
  A.elements = a.json.transform, a.applyMatrix4(A);
3442
3445
  }
@@ -3452,7 +3455,7 @@ class Vt extends E.Object3D {
3452
3455
  function t(A) {
3453
3456
  A.uri && A.uri.includes("json") || A.url && A.url.includes("json") ? a.hasUnloadedJSONContent++ : a.hasMeshContent++;
3454
3457
  }
3455
- if (a.json.content ? (t(a.json.content), a.hasMeshContent == 0 && (a.level = Math.max(0, a.parentTile ? a.parentTile.level + 0.01 : 0)), a.loadingStrategy === "IMMEDIATE" ? a._load(!0, !1) : a._load()) : a.json.contents && (a.json.contents.forEach((A) => t(A)), a.hasMeshContent == 0 && (a.level = Math.max(0, a.parentTile ? a.parentTile.level + 0.01 : 0)), a.loadingStrategy === "IMMEDIATE" ? a._load(!0, !1) : a._load()), a.centerModel && (we.copy(a.boundingVolume.center), this.json.boundingVolume.region && (this._transformWGS84ToCartesian(0.5 * (this.json.boundingVolume.region[0] + this.json.boundingVolume.region[2]), 0.5 * (this.json.boundingVolume.region[1] + this.json.boundingVolume.region[3]), 0.5 * (this.json.boundingVolume.region[4] + this.json.boundingVolume.region[5]), ce), ht.setFromUnitVectors(ce.normalize(), Ji.normalize()), a.applyQuaternion(ht)), we.applyMatrix4(a.matrix), a.position.sub(we), a.updateMatrices()), e.onLoadCallback && a.onLoadCallback(a), a.isSetup = !0, a.level > 0 && a.drawBoundingVolume && (a.bbox && console.log("double setup"), this.boundingVolume.aabb)) {
3458
+ if (a.json.content ? (t(a.json.content), a.hasMeshContent == 0 && (a.level = Math.max(0, a.parentTile ? a.parentTile.level + 0.01 : 0)), a.loadingStrategy === "IMMEDIATE" ? a._load(!0, !1) : a._load()) : a.json.contents && (a.json.contents.forEach((A) => t(A)), a.hasMeshContent == 0 && (a.level = Math.max(0, a.parentTile ? a.parentTile.level + 0.01 : 0)), a.loadingStrategy === "IMMEDIATE" ? a._load(!0, !1) : a._load()), a.centerModel && (we.copy(a.boundingVolume.center), this.json.boundingVolume.region && (this._transformWGS84ToCartesian(0.5 * (this.json.boundingVolume.region[0] + this.json.boundingVolume.region[2]), 0.5 * (this.json.boundingVolume.region[1] + this.json.boundingVolume.region[3]), 0.5 * (this.json.boundingVolume.region[4] + this.json.boundingVolume.region[5]), ce), ht.setFromUnitVectors(ce.normalize(), Ki.normalize()), a.applyQuaternion(ht)), we.applyMatrix4(a.matrix), a.position.sub(we), a.updateMatrices()), e.onLoadCallback && a.onLoadCallback(a), a.isSetup = !0, a.level > 0 && a.drawBoundingVolume && (a.bbox && console.log("double setup"), this.boundingVolume.aabb)) {
3456
3459
  let A = this.boundingVolume.aabb.clone();
3457
3460
  A.applyMatrix4(this.matrixWorld), a.bbox = new E.Box3Helper(A, new E.Color(Math.random(), Math.random(), Math.random())), a.add(a.bbox), a.bbox.material.visible = !1;
3458
3461
  }
@@ -3792,13 +3795,13 @@ function gt(o) {
3792
3795
  }
3793
3796
  function Ba() {
3794
3797
  W || ((W = document.createElement("div")).style.position = "fixed", W.style.bottom = "20px", W.style.left = "20px", W.style.color = "white", W.style.textShadow = "2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000", W.style.padding = "10px", W.style.backgroundColor = "rgba(0, 0, 0, 0.1)", document.body.appendChild(W));
3795
- const o = Ki();
3798
+ const o = zi();
3796
3799
  let e = "";
3797
3800
  o.forEach((a) => {
3798
3801
  e += a + ", ";
3799
3802
  }), e = e.slice(0, -2), W.textContent = e;
3800
3803
  }
3801
- const N = new E.Sphere(new E.Vector3(0, 0, 0), 1), de = new E.Vector3(0, 0, 0), ma = new E.Vector3(0, 0, 0), zi = new E.Vector3(0, 1, 0), Ea = new E.Vector2(), ft = new E.Quaternion(), ut = new E.Matrix4();
3804
+ const N = new E.Sphere(new E.Vector3(0, 0, 0), 1), de = new E.Vector3(0, 0, 0), ma = new E.Vector3(0, 0, 0), Vi = new E.Vector3(0, 1, 0), Ea = new E.Vector2(), ft = new E.Quaternion(), ut = new E.Matrix4();
3802
3805
  class Ga extends E.Object3D {
3803
3806
  constructor(e) {
3804
3807
  super();
@@ -3836,7 +3839,7 @@ class Ga extends E.Object3D {
3836
3839
  }
3837
3840
  if (a.json.content ? (A(a.json.content), a.load()) : a.json.contents && (a.json.contents.forEach((i) => A(i)), a.load()), a.centerModel) {
3838
3841
  const i = new E.Sphere();
3839
- a.boundingVolume instanceof se ? i.copy(a.boundingVolume.sphere) : a.boundingVolume instanceof E.Sphere && i.copy(a.boundingVolume), this.json.boundingVolume.region && (a.transformWGS84ToCartesian(0.5 * (a.json.boundingVolume.region[0] + a.json.boundingVolume.region[2]), 0.5 * (a.json.boundingVolume.region[1] + a.json.boundingVolume.region[3]), 0.5 * (a.json.boundingVolume.region[4] + a.json.boundingVolume.region[5]), de), ft.setFromUnitVectors(de.normalize(), zi.normalize()), a.master.applyQuaternion(ft), a.master.updateWorldMatrix(!1, !1)), ut.makeTranslation(-i.center.x * a.scale.x, -i.center.y * a.scale.y, -i.center.z * a.scale.z), a.master.matrix.multiply(ut), a.master.matrix.decompose(a.master.position, a.master.quaternion, a.master.scale);
3842
+ a.boundingVolume instanceof se ? i.copy(a.boundingVolume.sphere) : a.boundingVolume instanceof E.Sphere && i.copy(a.boundingVolume), this.json.boundingVolume.region && (a.transformWGS84ToCartesian(0.5 * (a.json.boundingVolume.region[0] + a.json.boundingVolume.region[2]), 0.5 * (a.json.boundingVolume.region[1] + a.json.boundingVolume.region[3]), 0.5 * (a.json.boundingVolume.region[4] + a.json.boundingVolume.region[5]), de), ft.setFromUnitVectors(de.normalize(), Vi.normalize()), a.master.applyQuaternion(ft), a.master.updateWorldMatrix(!1, !1)), ut.makeTranslation(-i.center.x * a.scale.x, -i.center.y * a.scale.y, -i.center.z * a.scale.z), a.master.matrix.multiply(ut), a.master.matrix.decompose(a.master.position, a.master.quaternion, a.master.scale);
3840
3843
  }
3841
3844
  a.isSetup = !0, e.onLoadCallback && e.onLoadCallback(a);
3842
3845
  }
@@ -3981,7 +3984,7 @@ class Ga extends E.Object3D {
3981
3984
  A.set(b, d, l);
3982
3985
  }
3983
3986
  }
3984
- class es extends E.Object3D {
3987
+ class as extends E.Object3D {
3985
3988
  constructor(e) {
3986
3989
  super(), e.master = this, e.domWidth && e.domHeight ? this.rendererSize = new E.Vector2(e.domWidth, e.domHeight) : this.rendererSize = new E.Vector2(1e3, 1e3), this.renderer = e.renderer, this.distanceBias = Math.max(1e-4, e.distanceBias ? e.distanceBias : 1), this.geometricErrorMultiplier = e.geometricErrorMultiplier ? e.geometricErrorMultiplier : 1, this.tileset = new Ga(e), e.static && (this.matrixAutoUpdate = !1), this.tileLoader = e.tileLoader;
3987
3990
  }
@@ -4002,7 +4005,7 @@ class es extends E.Object3D {
4002
4005
  this.geometricErrorMultiplier = e || 1;
4003
4006
  }
4004
4007
  }
4005
- class Vi {
4008
+ class Yi {
4006
4009
  constructor(e) {
4007
4010
  const a = this;
4008
4011
  a.scene = e, a.instancedTiles = [], a.instancedMesh, a.reuseableMatrix = new E.Matrix4();
@@ -4043,7 +4046,7 @@ class Vi {
4043
4046
  }), e.instancedMesh.dispose(), !0);
4044
4047
  }
4045
4048
  }
4046
- class Yi {
4049
+ class Wi {
4047
4050
  constructor() {
4048
4051
  const e = this;
4049
4052
  e.count = 0, e.json, e.instancedTiles = [];
@@ -4068,7 +4071,7 @@ class Yi {
4068
4071
  }
4069
4072
  }
4070
4073
  let Ie = 0;
4071
- class as {
4074
+ class ts {
4072
4075
  constructor(e, a) {
4073
4076
  if (this.zUpToYUpMatrix = new E.Matrix4(), this.zUpToYUpMatrix.set(1, 0, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 1), this.maxCachedItems = 100, this.maxInstances = 1, this.proxy = a.proxy, a && (this.meshCallback = a.meshCallback, this.pointsCallback = a.pointsCallback, a.maxCachedItems && (this.maxCachedItems = a.maxCachedItems), a.maxInstances && (this.maxInstances = a.maxInstances)), this.gltfLoader = new Dt(), a && a.dracoLoader) this.gltfLoader.setDRACOLoader(a.dracoLoader), this.hasDracoLoader = !0;
4074
4077
  else {
@@ -4106,7 +4109,7 @@ class as {
4106
4109
  if (!A.ok) throw new Error("missing content");
4107
4110
  return A.arrayBuffer();
4108
4111
  }).then(async (A) => {
4109
- await Wi(this.gltfLoader), this.gltfLoader.parse(A, null, (i) => {
4112
+ await Xi(this.gltfLoader), this.gltfLoader.parse(A, null, (i) => {
4110
4113
  let s;
4111
4114
  i.scene.asset = i.asset, t.sceneZupToYup && i.scene.applyMatrix4(this.zUpToYUpMatrix), i.scene.traverse((r) => {
4112
4115
  r.geometricError = t.geometricError, r.isMesh && (t.meshZupToYup && r.applyMatrix4(this.zUpToYUpMatrix), e.meshCallback && e.meshCallback(r, r.geometricError)), r.isPoints && console.error("instanced point cloud is not supported");
@@ -4169,14 +4172,14 @@ class as {
4169
4172
  const g = d.cache.get(l);
4170
4173
  if (g) g.addInstance(A);
4171
4174
  else if (a.includes(".b3dm") || a.includes(".glb") || a.includes(".gltf")) {
4172
- const h = new Vi(d.scene);
4175
+ const h = new Yi(d.scene);
4173
4176
  h.addInstance(A), d.cache.put(l, h);
4174
4177
  const f = new AbortController();
4175
4178
  e.signal.addEventListener("abort", () => {
4176
4179
  h.getCount() == 0 && f.abort();
4177
4180
  }), this.downloads.push({ abortController: f, tile: h, key: l, path: a, distanceFunction: i, getSiblings: s, level: r, uuid: t, sceneZupToYup: c, meshZupToYup: n, geometricError: b, shouldDoDownload: () => !0 });
4178
4181
  } else if (a.includes(".json")) {
4179
- const h = new Yi();
4182
+ const h = new Wi();
4180
4183
  h.addInstance(A), d.cache.put(l, h);
4181
4184
  const f = new AbortController();
4182
4185
  e.signal.addEventListener("abort", () => {
@@ -4213,7 +4216,7 @@ class as {
4213
4216
  }
4214
4217
  }
4215
4218
  }
4216
- async function Wi(o) {
4219
+ async function Xi(o) {
4217
4220
  return new Promise((e) => {
4218
4221
  const a = setInterval(() => {
4219
4222
  o.hasDracoLoader && !o.dracoLoader || o.hasKTX2Loader && !o.ktx2Loader || (clearInterval(a), e());
@@ -4221,13 +4224,13 @@ async function Wi(o) {
4221
4224
  });
4222
4225
  }
4223
4226
  export {
4224
- es as InstancedOGC3DTile,
4225
- as as InstancedTileLoader,
4227
+ as as InstancedOGC3DTile,
4228
+ ts as InstancedTileLoader,
4226
4229
  Vt as OGC3DTile,
4227
- $i as OcclusionCullingService,
4230
+ es as OcclusionCullingService,
4228
4231
  Ni as TileLoader,
4229
- Ki as getOGC3DTilesCopyrightInfo,
4230
- Oi as splatsFragmentShader,
4231
- qi as splatsVertexShader
4232
+ zi as getOGC3DTilesCopyrightInfo,
4233
+ Ji as splatsFragmentShader,
4234
+ Oi as splatsVertexShader
4232
4235
  };
4233
4236
  //# sourceMappingURL=threedtiles.es.js.map