bruce-cesium 6.7.7 → 6.7.8
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/bruce-cesium.es5.js +18 -6
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +18 -6
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/getters/entity-filter-getter.js +5 -1
- package/dist/lib/rendering/getters/entity-filter-getter.js.map +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js +12 -4
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -13935,11 +13935,16 @@
|
|
|
13935
13935
|
cacheToken: tileset.generateVersion,
|
|
13936
13936
|
viaCdn: Boolean(this.item.cdnEnabled == null ? true : this.item.cdnEnabled)
|
|
13937
13937
|
});
|
|
13938
|
-
api.get(modelTreeUrl).then((
|
|
13938
|
+
api.get(modelTreeUrl).then(async (result) => {
|
|
13939
13939
|
if (this.disposed) {
|
|
13940
13940
|
return;
|
|
13941
13941
|
}
|
|
13942
|
-
|
|
13942
|
+
// S3 signed URLs may return application/octet-stream instead of application/json,
|
|
13943
|
+
// causing the API to return a Blob rather than a parsed object.
|
|
13944
|
+
if (result instanceof Blob) {
|
|
13945
|
+
result = JSON.parse(await result.text());
|
|
13946
|
+
}
|
|
13947
|
+
this.modelTree = result || null;
|
|
13943
13948
|
this.modelTreeUpdate.Trigger(this.modelTree);
|
|
13944
13949
|
}).catch((err) => {
|
|
13945
13950
|
this.modelTreeError = err.message || "Unknown error";
|
|
@@ -13947,12 +13952,15 @@
|
|
|
13947
13952
|
}
|
|
13948
13953
|
// In v1 the model-tree is inside the tileset.json.
|
|
13949
13954
|
else {
|
|
13950
|
-
api.get(tileset.loadUrl).then((
|
|
13955
|
+
api.get(tileset.loadUrl).then(async (result) => {
|
|
13951
13956
|
var _a;
|
|
13952
13957
|
if (this.disposed) {
|
|
13953
13958
|
return;
|
|
13954
13959
|
}
|
|
13955
|
-
|
|
13960
|
+
if (result instanceof Blob) {
|
|
13961
|
+
result = JSON.parse(await result.text());
|
|
13962
|
+
}
|
|
13963
|
+
this.modelTree = ((_a = result === null || result === void 0 ? void 0 : result.extensions) === null || _a === void 0 ? void 0 : _a.modelTree) || null;
|
|
13956
13964
|
this.modelTreeUpdate.Trigger(this.modelTree);
|
|
13957
13965
|
}).catch((err) => {
|
|
13958
13966
|
this.modelTreeError = err.message || "Unknown error";
|
|
@@ -15780,10 +15788,14 @@
|
|
|
15780
15788
|
}
|
|
15781
15789
|
// API gave us a URL to use.
|
|
15782
15790
|
else if (curCell.FetchURL) {
|
|
15783
|
-
|
|
15791
|
+
let tmpResponse = await this.api.get(curCell.FetchURL, {
|
|
15784
15792
|
abortSignal: abortController.signal,
|
|
15785
15793
|
noCache: true
|
|
15786
15794
|
});
|
|
15795
|
+
// S3 signed URLs may return application/octet-stream, causing a Blob result.
|
|
15796
|
+
if (tmpResponse instanceof Blob) {
|
|
15797
|
+
tmpResponse = JSON.parse(await tmpResponse.text());
|
|
15798
|
+
}
|
|
15787
15799
|
// Same mapping as bruce-models doing Entity.GetList.
|
|
15788
15800
|
response = {
|
|
15789
15801
|
entities: tmpResponse.Items ? tmpResponse.Items : [],
|
|
@@ -36382,7 +36394,7 @@
|
|
|
36382
36394
|
StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
|
|
36383
36395
|
})(exports.StyleUtils || (exports.StyleUtils = {}));
|
|
36384
36396
|
|
|
36385
|
-
const VERSION = "6.7.
|
|
36397
|
+
const VERSION = "6.7.8";
|
|
36386
36398
|
/**
|
|
36387
36399
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
36388
36400
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|