bruce-cesium 6.8.6 → 6.8.7

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.
@@ -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,
@@ -34968,7 +34969,7 @@
34968
34969
  * @returns
34969
34970
  */
34970
34971
  async function RenderGroup(params) {
34971
- var _a, _b, _c, _d, _e, _f;
34972
+ var _a, _b, _c, _d, _e, _f, _g;
34972
34973
  const api = params.apiGetter.getApi();
34973
34974
  await api.Loading;
34974
34975
  const cEntities = new Map();
@@ -35078,7 +35079,7 @@
35078
35079
  style: mStyle,
35079
35080
  tags: tags,
35080
35081
  viewer: params.viewer,
35081
- lodUrl: BModels.ClientFile.GetUrl({
35082
+ lodUrl: (_g = lod.url) !== null && _g !== void 0 ? _g : BModels.ClientFile.GetUrl({
35082
35083
  api,
35083
35084
  fileId: lod.clientFileId,
35084
35085
  viaCdn: true
@@ -37444,7 +37445,7 @@
37444
37445
  StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
37445
37446
  })(exports.StyleUtils || (exports.StyleUtils = {}));
37446
37447
 
37447
- const VERSION = "6.8.6";
37448
+ const VERSION = "6.8.7";
37448
37449
  /**
37449
37450
  * Updates the environment instance used by bruce-cesium to one specified.
37450
37451
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.