bruce-cesium 6.8.6 → 6.8.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.
@@ -13675,7 +13675,7 @@
13675
13675
  viaCdn: false
13676
13676
  }) + "?generation=" + params.tileset.generateVersion;
13677
13677
  }
13678
- const cTileset = await createTileset(loadUrl, null, params.noMemoryLimit);
13678
+ const cTileset = await createTileset(loadUrl, params.skipLevelOfDetail ? { skipLevelOfDetail: true } : null, params.noMemoryLimit);
13679
13679
  params.viewer.scene.primitives.add(cTileset);
13680
13680
  watchTilesetDateRange(params.viewer, cTileset, params.tileset);
13681
13681
  OnTilesetReady(cTileset).then(() => {
@@ -14244,7 +14244,7 @@
14244
14244
  // We calculate it here instead of relying on the render engine as we need to extract the model-tree from it.
14245
14245
  let loadUrl = null;
14246
14246
  (async () => {
14247
- var _a, _b, _c, _d;
14247
+ var _a, _b, _c, _d, _e;
14248
14248
  if (!this.initQueue) {
14249
14249
  await delay(INIT_BATCH_DELAY_MS);
14250
14250
  if (this.disposed) {
@@ -14329,7 +14329,8 @@
14329
14329
  // TODO: this is a problem as we need to know what nodes are collapsed...
14330
14330
  // In >v1 the model-tree sits in its own file.
14331
14331
  if (((_c = tileset.settings) === null || _c === void 0 ? void 0 : _c["tilesetVersion"]) > 1) {
14332
- const modelTreeUrl = BModels.Tileset.GetFileUrl({
14332
+ // Newer APIs precalculate this URL.
14333
+ const modelTreeUrl = (_d = tileset.urlModelTree) !== null && _d !== void 0 ? _d : BModels.Tileset.GetFileUrl({
14333
14334
  api: api,
14334
14335
  file: "model_tree.json",
14335
14336
  tilesetId: tileset.id,
@@ -14374,7 +14375,7 @@
14374
14375
  const rootId = settings.rootEntityId;
14375
14376
  this.rootId = rootId;
14376
14377
  // If historic, we'll see if the root Entity has a historic position to use.
14377
- if (((_d = this.item.BruceEntity) === null || _d === void 0 ? void 0 : _d.historic) && rootId) {
14378
+ if (((_e = this.item.BruceEntity) === null || _e === void 0 ? void 0 : _e.historic) && rootId) {
14378
14379
  try {
14379
14380
  const { entity: root } = await BModels.Entity.Get({
14380
14381
  entityId: rootId,
@@ -14413,7 +14414,8 @@
14413
14414
  accountId: accountId,
14414
14415
  viaCdn: viaCdn,
14415
14416
  noMemoryLimit: this.item["noMaximumMemory"],
14416
- modelSpace: this.modelSpace
14417
+ modelSpace: this.modelSpace,
14418
+ skipLevelOfDetail: true
14417
14419
  });
14418
14420
  if (this.disposed) {
14419
14421
  this.doDispose();
@@ -34968,7 +34970,7 @@
34968
34970
  * @returns
34969
34971
  */
34970
34972
  async function RenderGroup(params) {
34971
- var _a, _b, _c, _d, _e, _f;
34973
+ var _a, _b, _c, _d, _e, _f, _g;
34972
34974
  const api = params.apiGetter.getApi();
34973
34975
  await api.Loading;
34974
34976
  const cEntities = new Map();
@@ -35078,7 +35080,7 @@
35078
35080
  style: mStyle,
35079
35081
  tags: tags,
35080
35082
  viewer: params.viewer,
35081
- lodUrl: BModels.ClientFile.GetUrl({
35083
+ lodUrl: (_g = lod.url) !== null && _g !== void 0 ? _g : BModels.ClientFile.GetUrl({
35082
35084
  api,
35083
35085
  fileId: lod.clientFileId,
35084
35086
  viaCdn: true
@@ -37444,7 +37446,7 @@
37444
37446
  StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
37445
37447
  })(exports.StyleUtils || (exports.StyleUtils = {}));
37446
37448
 
37447
- const VERSION = "6.8.6";
37449
+ const VERSION = "6.8.8";
37448
37450
  /**
37449
37451
  * Updates the environment instance used by bruce-cesium to one specified.
37450
37452
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.