bruce-cesium 5.2.7 → 5.2.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 -12
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +17 -11
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js +16 -10
- 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
|
@@ -16850,24 +16850,29 @@
|
|
|
16850
16850
|
this.visualsManager = visualsManager;
|
|
16851
16851
|
}
|
|
16852
16852
|
Init() {
|
|
16853
|
-
var _a;
|
|
16853
|
+
var _a, _b;
|
|
16854
16854
|
const tilesetId = (_a = this.item.tileset) === null || _a === void 0 ? void 0 : _a.TilesetID;
|
|
16855
16855
|
if (!tilesetId) {
|
|
16856
16856
|
return;
|
|
16857
16857
|
}
|
|
16858
|
+
let accountId = (_b = this.item.tileset) === null || _b === void 0 ? void 0 : _b.ClientAccountID;
|
|
16859
|
+
if (!accountId) {
|
|
16860
|
+
accountId = this.getters.GetAccountId();
|
|
16861
|
+
}
|
|
16858
16862
|
this.renderPriority = this.item.renderPriority;
|
|
16859
16863
|
if (this.renderPriority == null) {
|
|
16860
16864
|
this.renderPriority = 0;
|
|
16861
16865
|
}
|
|
16862
16866
|
(async () => {
|
|
16863
|
-
var _a
|
|
16864
|
-
|
|
16867
|
+
var _a;
|
|
16868
|
+
const api = this.getters.GetBruceApi({
|
|
16869
|
+
accountId: accountId
|
|
16870
|
+
});
|
|
16865
16871
|
let coords = null;
|
|
16866
16872
|
let tileset = null;
|
|
16867
16873
|
// Single shared getter to avoid multiple assemblies fighting to render.
|
|
16868
16874
|
// This lets one complete, then the next start.
|
|
16869
16875
|
await exports.SharedGetters.Queue.Run("Rendering assembly.", async () => {
|
|
16870
|
-
var _a, _b;
|
|
16871
16876
|
if (this.disposed) {
|
|
16872
16877
|
return;
|
|
16873
16878
|
}
|
|
@@ -16875,7 +16880,7 @@
|
|
|
16875
16880
|
let canAccess = false;
|
|
16876
16881
|
try {
|
|
16877
16882
|
canAccess = await BModels.Tileset.Publish.IsAccessAllowed({
|
|
16878
|
-
sourceAccountId:
|
|
16883
|
+
sourceAccountId: accountId,
|
|
16879
16884
|
tilesetId: tilesetId,
|
|
16880
16885
|
forAccountId: this.getters.GetAccountId(),
|
|
16881
16886
|
getters: this.getters
|
|
@@ -16888,14 +16893,13 @@
|
|
|
16888
16893
|
console.error(e);
|
|
16889
16894
|
}
|
|
16890
16895
|
if (!canAccess) {
|
|
16891
|
-
console.warn(`Cannot access tileset: ${tilesetId}, from account: ${
|
|
16896
|
+
console.warn(`Cannot access tileset: ${tilesetId}, from account: ${accountId}.`);
|
|
16892
16897
|
return;
|
|
16893
16898
|
}
|
|
16894
16899
|
}
|
|
16895
16900
|
else {
|
|
16896
16901
|
console.warn("No tileset id found. Skipping access check.");
|
|
16897
16902
|
}
|
|
16898
|
-
api = this.getters.GetBruceApi();
|
|
16899
16903
|
tileset = (await BModels.Tileset.Get({
|
|
16900
16904
|
api,
|
|
16901
16905
|
tilesetId
|
|
@@ -16943,7 +16947,7 @@
|
|
|
16943
16947
|
tileset: tileset,
|
|
16944
16948
|
viewer: this.viewer,
|
|
16945
16949
|
coords: coords,
|
|
16946
|
-
accountId:
|
|
16950
|
+
accountId: accountId,
|
|
16947
16951
|
viaCdn: Boolean(this.item.cdnEnabled == null ? true : this.item.cdnEnabled),
|
|
16948
16952
|
noMemoryLimit: this.item["noMaximumMemory"]
|
|
16949
16953
|
});
|
|
@@ -16967,7 +16971,9 @@
|
|
|
16967
16971
|
this.onCTilesetLoad();
|
|
16968
16972
|
this.styler.Init({
|
|
16969
16973
|
viewer: this.viewer,
|
|
16970
|
-
|
|
16974
|
+
// Default API instead of the account one.
|
|
16975
|
+
// Records are driven by the account loading it instead of the source account.
|
|
16976
|
+
api: this.getters.GetBruceApi(),
|
|
16971
16977
|
cTileset: this.cTileset,
|
|
16972
16978
|
fallbackStyleId: this.item.styleId,
|
|
16973
16979
|
styleMapping: this.item.StyleMapping,
|
|
@@ -17049,7 +17055,7 @@
|
|
|
17049
17055
|
menuItemType: this.item.Type,
|
|
17050
17056
|
priority: this.renderPriority,
|
|
17051
17057
|
visual: feature,
|
|
17052
|
-
accountId: (_b = (_a = this.item.tileset) === null || _a === void 0 ? void 0 : _a.ClientAccountID) !== null && _b !== void 0 ? _b : this.getters.GetAccountId(),
|
|
17058
|
+
accountId: (_b = ((_a = this.item.tileset) === null || _a === void 0 ? void 0 : _a.ClientAccountID)) !== null && _b !== void 0 ? _b : this.getters.GetAccountId(),
|
|
17053
17059
|
tilesetId: (_c = this.item.tileset) === null || _c === void 0 ? void 0 : _c.TilesetID,
|
|
17054
17060
|
tilesetType: BModels.Tileset.EType.Cad,
|
|
17055
17061
|
rootId: this.rootId,
|
|
@@ -29876,7 +29882,7 @@
|
|
|
29876
29882
|
}
|
|
29877
29883
|
}
|
|
29878
29884
|
|
|
29879
|
-
const VERSION = "5.2.
|
|
29885
|
+
const VERSION = "5.2.8";
|
|
29880
29886
|
|
|
29881
29887
|
exports.VERSION = VERSION;
|
|
29882
29888
|
exports.isHistoricMetadataChanged = isHistoricMetadataChanged;
|