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.
@@ -23222,9 +23222,12 @@
23222
23222
  */
23223
23223
  WidgetLeftPanel.prototype.AddPanelTab = function (params) {
23224
23224
  this.customTabs.set(params.tab, params.content);
23225
- this._addPanelTab(params.tab, params.title, params.svgStr);
23225
+ // We insert before the bottom breaker.
23226
+ var bottomBreaker = this._element.querySelector(".NextspaceLeftPanelBottomBreaker");
23227
+ var afterElement = bottomBreaker ? bottomBreaker.previousElementSibling : null;
23228
+ this._addPanelTab(params.tab, params.title, params.svgStr, afterElement);
23226
23229
  };
23227
- WidgetLeftPanel.prototype._addPanelTab = function (tab, title, svgStr) {
23230
+ WidgetLeftPanel.prototype._addPanelTab = function (tab, title, svgStr, afterElement) {
23228
23231
  var _this = this;
23229
23232
  var tabButton = document.createElement("div");
23230
23233
  tabButton.setAttribute("widget-left-panel-tab", tab);
@@ -23249,7 +23252,17 @@
23249
23252
  _this._updatePanelContent();
23250
23253
  _this._updatePanelStyles();
23251
23254
  };
23252
- this._element.appendChild(tabButton);
23255
+ if (afterElement && afterElement.parentElement) {
23256
+ if (afterElement.nextSibling) {
23257
+ afterElement.parentElement.insertBefore(tabButton, afterElement.nextSibling);
23258
+ }
23259
+ else {
23260
+ afterElement.parentElement.appendChild(tabButton);
23261
+ }
23262
+ }
23263
+ else {
23264
+ this._element.appendChild(tabButton);
23265
+ }
23253
23266
  };
23254
23267
  WidgetLeftPanel.prototype._addPlaceholderTab = function (title, svgStr) {
23255
23268
  var tabButton = document.createElement("div");
@@ -23386,10 +23399,11 @@
23386
23399
  console.error("Tab ".concat(this._enabledPanelTab, " not found."));
23387
23400
  return;
23388
23401
  }
23389
- tabContent = new (this.customTabs.get(this._enabledPanelTab)({
23402
+ var clazz = this.customTabs.get(this._enabledPanelTab);
23403
+ tabContent = new clazz({
23390
23404
  widget: this,
23391
23405
  container: container
23392
- }));
23406
+ });
23393
23407
  break;
23394
23408
  }
23395
23409
  this._enabledTabContent = tabContent;
@@ -26350,7 +26364,7 @@
26350
26364
  ViewerUtils.AssertIonToken = AssertIonToken;
26351
26365
  })(exports.ViewerUtils || (exports.ViewerUtils = {}));
26352
26366
 
26353
- var VERSION = "4.3.0";
26367
+ var VERSION = "4.3.1";
26354
26368
 
26355
26369
  exports.VERSION = VERSION;
26356
26370
  exports.CesiumParabola = CesiumParabola;