bruce-cesium 3.4.7 → 3.4.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.
@@ -3786,14 +3786,14 @@
3786
3786
  };
3787
3787
  res(data);
3788
3788
  };
3789
- image_1.onerror = function () {
3790
- rej(null);
3789
+ image_1.onerror = function (e) {
3790
+ rej(e);
3791
3791
  };
3792
3792
  image_1.src = URL.createObjectURL(blob);
3793
3793
  return [3 /*break*/, 4];
3794
3794
  case 3:
3795
3795
  e_4 = _a.sent();
3796
- rej(null);
3796
+ rej(e_4);
3797
3797
  return [3 /*break*/, 4];
3798
3798
  case 4: return [2 /*return*/];
3799
3799
  }
@@ -6442,7 +6442,7 @@
6442
6442
  }
6443
6443
  // A sub-object can be culled while the siblings are not.
6444
6444
  // We only cull things that give us some benefit. For example clamped to ground graphics are expensive to keep rendered.
6445
- show = show ? !VisualRegisterCuller.IsCulled(viewer, rego, visual) : true;
6445
+ show = show ? !VisualRegisterCuller.IsCulled(viewer, rego, visual) : false;
6446
6446
  if (visual._parentEntity && !ignoreParent) {
6447
6447
  updateCEntityShow(viewer, visual._parentEntity, rego, show, false, depth + 1);
6448
6448
  }
@@ -6532,6 +6532,7 @@
6532
6532
  if (visible == null) {
6533
6533
  visible = getShowState(rego);
6534
6534
  }
6535
+ console.log("entityId", rego.entityId, "visible", visible, "overrideShow", rego.overrideShow);
6535
6536
  updateEntityShow(viewer, rego, visible);
6536
6537
  if (rego.best) {
6537
6538
  var isLabelled = register.GetIsLabelled({
@@ -7993,7 +7994,7 @@
7993
7994
  entityId: id,
7994
7995
  menuItemId: this.menuItemId
7995
7996
  });
7996
- if (rego && rego.overrideShow) {
7997
+ if (rego && rego.overrideShow != null) {
7997
7998
  rego.overrideShow = null;
7998
7999
  entitiesToUpdate.push(id);
7999
8000
  }
@@ -8072,8 +8073,8 @@
8072
8073
  entityId: entityId,
8073
8074
  menuItemId: this_1.menuItemId
8074
8075
  });
8075
- if (rego && !rego.overrideShow) {
8076
- rego.overrideShow = true;
8076
+ if (rego && rego.overrideShow != false) {
8077
+ rego.overrideShow = false;
8077
8078
  entitiesToUpdate.push(entityId);
8078
8079
  }
8079
8080
  }
@@ -9043,7 +9044,7 @@
9043
9044
  entityTypeId: entity.Bruce["EntityType.ID"],
9044
9045
  accountId: this.apiGetter.accountId,
9045
9046
  tagIds: tagIds ? [].concat(tagIds) : [],
9046
- overrideShow: wasClustered ? true : null,
9047
+ overrideShow: wasClustered ? false : null,
9047
9048
  name: cEntity.name,
9048
9049
  cdn: this.item.cdnEnabled
9049
9050
  };
@@ -10445,7 +10446,7 @@
10445
10446
  priority: 0,
10446
10447
  entityTypeId: entity.Bruce["EntityType.ID"],
10447
10448
  accountId: this.apiGetter.accountId,
10448
- overrideShow: clustered ? true : null,
10449
+ overrideShow: clustered ? false : null,
10449
10450
  name: cEntity.name
10450
10451
  },
10451
10452
  requestRender: false
@@ -21542,7 +21543,7 @@
21542
21543
  CesiumViewMonitor.Monitor = Monitor;
21543
21544
  })(exports.CesiumViewMonitor || (exports.CesiumViewMonitor = {}));
21544
21545
 
21545
- var VERSION$1 = "3.4.7";
21546
+ var VERSION$1 = "3.4.8";
21546
21547
 
21547
21548
  exports.VERSION = VERSION$1;
21548
21549
  exports.CesiumParabola = CesiumParabola;