bruce-cesium 3.9.0 → 3.9.2

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.
@@ -8227,27 +8227,30 @@
8227
8227
  }
8228
8228
  }
8229
8229
  else if (entity instanceof Cesium.Cesium3DTileFeature) {
8230
- try {
8231
- CesiumAnimatedProperty.AnimateTFeatureColor({
8232
- durationMs: 500,
8233
- feature: entity,
8234
- targetColor: Cesium.Color.WHITE.withAlpha(0.0),
8235
- startColor: entity.color ? entity.color : Cesium.Color.WHITE.clone(),
8236
- viewer: viewer,
8237
- onDone: function () {
8238
- var tileset = entity === null || entity === void 0 ? void 0 : entity.tileset;
8239
- if (tileset && viewer.scene.primitives.contains(tileset)) {
8240
- entity.show = false;
8230
+ var tileset = entity === null || entity === void 0 ? void 0 : entity.tileset;
8231
+ if (tileset && (viewer === null || viewer === void 0 ? void 0 : viewer.scene) && viewer.scene.primitives.contains(tileset)) {
8232
+ try {
8233
+ CesiumAnimatedProperty.AnimateTFeatureColor({
8234
+ durationMs: 500,
8235
+ feature: entity,
8236
+ targetColor: Cesium.Color.WHITE.withAlpha(0.0),
8237
+ startColor: entity.color ? entity.color : Cesium.Color.WHITE.clone(),
8238
+ viewer: viewer,
8239
+ onDone: function () {
8240
+ var tileset = entity === null || entity === void 0 ? void 0 : entity.tileset;
8241
+ if (tileset && viewer.scene.primitives.contains(tileset)) {
8242
+ entity.show = false;
8243
+ }
8241
8244
  }
8245
+ });
8246
+ }
8247
+ catch (e) {
8248
+ console.error(e);
8249
+ // If an error occurs, just hide the feature.
8250
+ var tileset_1 = entity === null || entity === void 0 ? void 0 : entity.tileset;
8251
+ if (tileset_1 && viewer.scene.primitives.contains(tileset_1)) {
8252
+ entity.show = false;
8242
8253
  }
8243
- });
8244
- }
8245
- catch (e) {
8246
- console.error(e);
8247
- // If an error occurs, just hide the feature.
8248
- var tileset = entity === null || entity === void 0 ? void 0 : entity.tileset;
8249
- if (tileset && viewer.scene.primitives.contains(tileset)) {
8250
- entity.show = false;
8251
8254
  }
8252
8255
  }
8253
8256
  }
@@ -15319,7 +15322,10 @@
15319
15322
  }
15320
15323
  for (var i = 0; i < content.featuresLength; i++) {
15321
15324
  var feature = content.getFeature(i);
15322
- this.mapTilesetFeature(feature);
15325
+ var rego = this.mapTilesetFeature(feature);
15326
+ if ((rego === null || rego === void 0 ? void 0 : rego.entityId) && this.styler) {
15327
+ this.styler.QueueEntities([rego]);
15328
+ }
15323
15329
  }
15324
15330
  this.viewer.scene.requestRender();
15325
15331
  };
@@ -15352,7 +15358,9 @@
15352
15358
  rego: rego,
15353
15359
  requestRender: false
15354
15360
  });
15361
+ return rego;
15355
15362
  }
15363
+ return null;
15356
15364
  };
15357
15365
  Manager.prototype.ReRender = function (params) {
15358
15366
  return __awaiter(this, void 0, void 0, function () {
@@ -24086,7 +24094,7 @@
24086
24094
  ViewRenderEngine.Render = Render;
24087
24095
  })(exports.ViewRenderEngine || (exports.ViewRenderEngine = {}));
24088
24096
 
24089
- var VERSION = "3.9.0";
24097
+ var VERSION = "3.9.2";
24090
24098
 
24091
24099
  exports.VERSION = VERSION;
24092
24100
  exports.CesiumParabola = CesiumParabola;