@jdultra/threedtiles 13.0.25 → 13.0.26
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/dist/threedtiles.es.js
CHANGED
|
@@ -2635,10 +2635,19 @@ class Ni {
|
|
|
2635
2635
|
}).then((u) => La(u, t)).then((u) => {
|
|
2636
2636
|
h.cache.put(l, u), h._checkSize(), h._meshReceived(h.cache, h.register, l);
|
|
2637
2637
|
}).catch((u) => {
|
|
2638
|
+
console.error(u);
|
|
2638
2639
|
}).finally(() => {
|
|
2639
2640
|
te--;
|
|
2640
2641
|
});
|
|
2641
|
-
}), this._scheduleDownload({
|
|
2642
|
+
}), this._scheduleDownload({
|
|
2643
|
+
shouldDoDownload: () => !0,
|
|
2644
|
+
doDownload: I,
|
|
2645
|
+
distanceFunction: i,
|
|
2646
|
+
getSiblings: s,
|
|
2647
|
+
level: r,
|
|
2648
|
+
loadingStrategy: o,
|
|
2649
|
+
uuid: a
|
|
2650
|
+
});
|
|
2642
2651
|
}
|
|
2643
2652
|
}
|
|
2644
2653
|
clear() {
|
|
@@ -3515,12 +3524,12 @@ class Wt extends E.Object3D {
|
|
|
3515
3524
|
h.geometry.setAttribute("color", new E.Float32BufferAttribute(f, 3));
|
|
3516
3525
|
}
|
|
3517
3526
|
}), t.add(g), t.updateMatrices()));
|
|
3518
|
-
}, t.cameraOnLoad ? () => t.
|
|
3527
|
+
}, t.cameraOnLoad ? () => t.loadingStrategy == "IMMEDIATE" ? t._calculateDistanceToCamera(t.cameraOnLoad) : t.loadingStrategy == "INCREMENTAL" ? t.parentTile ? t.parentTile._calculateDistanceToCamera(t.cameraOnLoad) / t.parentTile.level : t._calculateDistanceToCamera(t.cameraOnLoad) / 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);
|
|
3519
3528
|
} catch (g) {
|
|
3520
3529
|
t.displayErrors && gt(g);
|
|
3521
3530
|
}
|
|
3522
3531
|
} else r && n.includes(".json") && (t.jsonRequested = n, t.tileLoader.get(t.abortController, t.uuid, n, async (g) => {
|
|
3523
|
-
t.deleted || (g.rootPath = be.dirname(n), t.json.children.push(g), s == null ? delete t.json.content : t.json.contents.splice(s, 1), t.hasUnloadedJSONContent--);
|
|
3532
|
+
t.jsonReceived = !0, t.deleted || (g.rootPath = be.dirname(n), t.json.children.push(g), s == null ? delete t.json.content : t.json.contents.splice(s, 1), t.hasUnloadedJSONContent--);
|
|
3524
3533
|
}));
|
|
3525
3534
|
}
|
|
3526
3535
|
}
|
|
@@ -3532,7 +3541,7 @@ class Wt extends E.Object3D {
|
|
|
3532
3541
|
}), e.displayCopyright && ma());
|
|
3533
3542
|
}), e.meshContent = [], e.bbox && e.bbox.dispose(), e.childrenTiles.forEach((a) => a.dispose()), e.deleted = !0, e.splatsMesh && (e.meshContent.forEach((a) => a.hide()), e.parentTile || e.splatsMesh.dispose()), e.contentURL && (e.contentURL.forEach((a) => {
|
|
3534
3543
|
e.tileLoader.invalidate(a, e.uuid);
|
|
3535
|
-
}), e.contentURL = []), e.abortController && e.abortController.abort("tile not needed"), this.parent = null, this.dispatchEvent({ type: "removed" });
|
|
3544
|
+
}), e.contentURL = []), e.abortController && !e.jsonRequested && e.abortController.abort("tile not needed"), this.parent = null, this.dispatchEvent({ type: "removed" });
|
|
3536
3545
|
}
|
|
3537
3546
|
_disposeMeshContent() {
|
|
3538
3547
|
const e = this;
|