bruce-cesium 6.9.9 → 7.0.0

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.
@@ -36790,7 +36790,8 @@
36790
36790
  if (this.disposed) {
36791
36791
  return;
36792
36792
  }
36793
- this.swapToFrame(this.findFrameIndex(currentTime));
36793
+ const idx = this.findFrameIndex(currentTime);
36794
+ this.swapToFrame(idx);
36794
36795
  }
36795
36796
  // Binary-search the frame whose timestamp is <= currentTime.
36796
36797
  findFrameIndex(currentTime) {
@@ -37408,6 +37409,17 @@
37408
37409
  return cEntities;
37409
37410
  }
37410
37411
  EntityRenderEnginePolygon.RenderGroup = RenderGroup;
37412
+ /**
37413
+ * Disposes a cEntity's TextureFrameSeriesAnimator.Animator (if any).
37414
+ */
37415
+ function DisposeTextureFrameSeriesAnimator(cEntity) {
37416
+ const existing = cEntity === null || cEntity === void 0 ? void 0 : cEntity[TEXTURE_FRAME_SERIES_ANIMATOR_KEY];
37417
+ if (existing && !existing.IsDisposed()) {
37418
+ existing.Dispose();
37419
+ cEntity[TEXTURE_FRAME_SERIES_ANIMATOR_KEY] = null;
37420
+ }
37421
+ }
37422
+ EntityRenderEnginePolygon.DisposeTextureFrameSeriesAnimator = DisposeTextureFrameSeriesAnimator;
37411
37423
  })(exports.EntityRenderEnginePolygon || (exports.EntityRenderEnginePolygon = {}));
37412
37424
  async function getName$3(api, entity) {
37413
37425
  try {
@@ -38309,6 +38321,7 @@
38309
38321
  entity._dispose();
38310
38322
  entity._dispose = null;
38311
38323
  }
38324
+ exports.EntityRenderEnginePolygon.DisposeTextureFrameSeriesAnimator(entity);
38312
38325
  if (entity._parentEntity && !ignoreParent) {
38313
38326
  doRemove({
38314
38327
  viewer,
@@ -38990,7 +39003,7 @@
38990
39003
  StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
38991
39004
  })(exports.StyleUtils || (exports.StyleUtils = {}));
38992
39005
 
38993
- const VERSION = "6.9.9";
39006
+ const VERSION = "7.0.0";
38994
39007
  /**
38995
39008
  * Updates the environment instance used by bruce-cesium to one specified.
38996
39009
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.