bruce-cesium 4.3.0 → 4.3.1

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.
@@ -23293,9 +23293,12 @@ var WidgetLeftPanel = /** @class */ (function (_super) {
23293
23293
  */
23294
23294
  WidgetLeftPanel.prototype.AddPanelTab = function (params) {
23295
23295
  this.customTabs.set(params.tab, params.content);
23296
- this._addPanelTab(params.tab, params.title, params.svgStr);
23296
+ // We insert before the bottom breaker.
23297
+ var bottomBreaker = this._element.querySelector(".NextspaceLeftPanelBottomBreaker");
23298
+ var afterElement = bottomBreaker ? bottomBreaker.previousElementSibling : null;
23299
+ this._addPanelTab(params.tab, params.title, params.svgStr, afterElement);
23297
23300
  };
23298
- WidgetLeftPanel.prototype._addPanelTab = function (tab, title, svgStr) {
23301
+ WidgetLeftPanel.prototype._addPanelTab = function (tab, title, svgStr, afterElement) {
23299
23302
  var _this = this;
23300
23303
  var tabButton = document.createElement("div");
23301
23304
  tabButton.setAttribute("widget-left-panel-tab", tab);
@@ -23320,7 +23323,17 @@ var WidgetLeftPanel = /** @class */ (function (_super) {
23320
23323
  _this._updatePanelContent();
23321
23324
  _this._updatePanelStyles();
23322
23325
  };
23323
- this._element.appendChild(tabButton);
23326
+ if (afterElement && afterElement.parentElement) {
23327
+ if (afterElement.nextSibling) {
23328
+ afterElement.parentElement.insertBefore(tabButton, afterElement.nextSibling);
23329
+ }
23330
+ else {
23331
+ afterElement.parentElement.appendChild(tabButton);
23332
+ }
23333
+ }
23334
+ else {
23335
+ this._element.appendChild(tabButton);
23336
+ }
23324
23337
  };
23325
23338
  WidgetLeftPanel.prototype._addPlaceholderTab = function (title, svgStr) {
23326
23339
  var tabButton = document.createElement("div");
@@ -23457,10 +23470,11 @@ var WidgetLeftPanel = /** @class */ (function (_super) {
23457
23470
  console.error("Tab ".concat(this._enabledPanelTab, " not found."));
23458
23471
  return;
23459
23472
  }
23460
- tabContent = new (this.customTabs.get(this._enabledPanelTab)({
23473
+ var clazz = this.customTabs.get(this._enabledPanelTab);
23474
+ tabContent = new clazz({
23461
23475
  widget: this,
23462
23476
  container: container
23463
- }));
23477
+ });
23464
23478
  break;
23465
23479
  }
23466
23480
  this._enabledTabContent = tabContent;
@@ -26427,7 +26441,7 @@ var ViewerUtils;
26427
26441
  ViewerUtils.AssertIonToken = AssertIonToken;
26428
26442
  })(ViewerUtils || (ViewerUtils = {}));
26429
26443
 
26430
- var VERSION = "4.3.0";
26444
+ var VERSION = "4.3.1";
26431
26445
 
26432
26446
  export { VERSION, CesiumViewMonitor, ViewerUtils, MenuItemManager, EntityRenderEngine, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, GoogleSearchRenderManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, CESIUM_TIMELINE_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, CesiumEntityStyler, CesiumAnimatedProperty, CesiumAnimatedInOut, Draw3dPolygon, Draw3dPolyline, MeasureCreator, Widget, VIEWER_BOOKMARKS_WIDGET_KEY, WidgetBookmarks, WidgetBranding, WidgetCursorBar, WidgetEmbeddedInfoView, WidgetInfoView, WidgetNavCompass$$1 as WidgetNavCompass, WidgetSearchBar, VIEWER_LEFT_PANEL_WIDGET_KEY, VIEWER_LEFT_PANEL_CSS_VAR_LEFT, WidgetLeftPanel, WidgetLeftPanelTab, WidgetLeftPanelTabBookmarks };
26433
26447
  //# sourceMappingURL=bruce-cesium.es5.js.map