bruce-cesium 3.3.2 → 3.3.3

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.
@@ -9219,7 +9219,7 @@
9219
9219
  function correctStyle(style) {
9220
9220
  if (style && !style.Settings && !style.ID) {
9221
9221
  return {
9222
- ID: 0,
9222
+ ID: -1,
9223
9223
  Name: "Unknown",
9224
9224
  Settings: __assign({}, style),
9225
9225
  Type: bruceModels.Style.EType.Entity
@@ -9667,7 +9667,8 @@
9667
9667
  if ((_a = this.styleMapping) === null || _a === void 0 ? void 0 : _a.length) {
9668
9668
  for (var i = 0; i < this.styleMapping.length; i++) {
9669
9669
  var mapItem = this.styleMapping[i];
9670
- this.styleMapping[i].style = correctStyle(mapItem === null || mapItem === void 0 ? void 0 : mapItem.style);
9670
+ var mapStyle = mapItem.style ? mapItem.style : mapItem.Style;
9671
+ this.styleMapping[i].style = correctStyle(mapStyle);
9671
9672
  }
9672
9673
  }
9673
9674
  this.register = register;
@@ -9833,7 +9834,7 @@
9833
9834
  return [3 /*break*/, 15];
9834
9835
  }
9835
9836
  styleMap = styleMapping[i];
9836
- if (!!styleMap.style) return [3 /*break*/, 13];
9837
+ if (!(!styleMap.style && styleMap.StyleID > 0)) return [3 /*break*/, 13];
9837
9838
  styleId = styleMap.StyleID;
9838
9839
  if (!!styleId) return [3 /*break*/, 9];
9839
9840
  _c.label = 6;
@@ -17329,7 +17330,7 @@
17329
17330
  menuItems = [];
17330
17331
  version = view.DataVersion;
17331
17332
  if (view.Settings && bookmark.Settings) {
17332
- if (version === 2) {
17333
+ if (version >= 2) {
17333
17334
  vSettings = view.Settings;
17334
17335
  bSettings = bookmark.Settings;
17335
17336
  menuItems = vSettings.menuItems;
@@ -19977,7 +19978,7 @@
19977
19978
  CesiumViewMonitor.Monitor = Monitor;
19978
19979
  })(exports.CesiumViewMonitor || (exports.CesiumViewMonitor = {}));
19979
19980
 
19980
- var VERSION$1 = "3.3.2";
19981
+ var VERSION$1 = "3.3.3";
19981
19982
 
19982
19983
  exports.VERSION = VERSION$1;
19983
19984
  exports.CesiumParabola = CesiumParabola;