bruce-cesium 2.6.9 → 2.7.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.
@@ -12024,24 +12024,18 @@
12024
12024
  enabled: false
12025
12025
  };
12026
12026
  }
12027
- if (shadows.enabled) {
12028
- viewer.shadows = true;
12029
- viewer.shadowMap.enabled = true;
12030
- size = EnsureNumber(shadows.pixelSize);
12031
- if (size < MIN_SHADOW_SIZE) {
12032
- size = MIN_SHADOW_SIZE;
12033
- }
12034
- else if (size > MAX_SHADOW_SIZE) {
12035
- size = MAX_SHADOW_SIZE;
12036
- }
12037
- viewer.shadowMap.size = size;
12038
- viewer.shadowMap.softShadows = Boolean(shadows.soften);
12039
- viewer.shadowMap.darkness = EnsureNumber(shadows.darkness, 0.5);
12040
- }
12041
- else {
12042
- viewer.shadows = false;
12043
- viewer.shadowMap.enabled = false;
12044
- }
12027
+ viewer.shadows = Boolean(shadows.enabled);
12028
+ viewer.shadowMap.enabled = Boolean(shadows.enabled);
12029
+ size = EnsureNumber(shadows.pixelSize);
12030
+ if (size < MIN_SHADOW_SIZE) {
12031
+ size = MIN_SHADOW_SIZE;
12032
+ }
12033
+ else if (size > MAX_SHADOW_SIZE) {
12034
+ size = MAX_SHADOW_SIZE;
12035
+ }
12036
+ viewer.shadowMap.size = size;
12037
+ viewer.shadowMap.softShadows = Boolean(shadows.soften);
12038
+ viewer.shadowMap.darkness = EnsureNumber(shadows.darkness, 0.5);
12045
12039
  ambientOcclusion = bSettings === null || bSettings === void 0 ? void 0 : bSettings.ambientOcclusion;
12046
12040
  if (ambientOcclusion == null) {
12047
12041
  ambientOcclusion = (_v = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _v === void 0 ? void 0 : _v.ambientOcclusion;
@@ -15162,7 +15156,7 @@
15162
15156
  ViewerUtils.CreateWidgets = CreateWidgets;
15163
15157
  })(exports.ViewerUtils || (exports.ViewerUtils = {}));
15164
15158
 
15165
- var VERSION$1 = "2.6.9";
15159
+ var VERSION$1 = "2.7.0";
15166
15160
 
15167
15161
  exports.VERSION = VERSION$1;
15168
15162
  exports.CesiumViewMonitor = CesiumViewMonitor;