bruce-cesium 2.6.9 → 2.7.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.
@@ -11951,7 +11951,9 @@
11951
11951
  pitch: Cesium.Math.toRadians(+camera.pitch),
11952
11952
  roll: Cesium.Math.toRadians(+camera.roll)
11953
11953
  },
11954
- duration: transition != 0 ? transition / 1000 : 0
11954
+ duration: transition != 0 ? transition / 1000 : 0,
11955
+ // Make it ease in and out.
11956
+ easingFunction: Cesium.EasingFunction.CUBIC_IN_OUT
11955
11957
  });
11956
11958
  }
11957
11959
  }
@@ -12024,24 +12026,18 @@
12024
12026
  enabled: false
12025
12027
  };
12026
12028
  }
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);
12029
+ viewer.shadows = Boolean(shadows.enabled);
12030
+ viewer.shadowMap.enabled = Boolean(shadows.enabled);
12031
+ size = EnsureNumber(shadows.pixelSize);
12032
+ if (size < MIN_SHADOW_SIZE) {
12033
+ size = MIN_SHADOW_SIZE;
12040
12034
  }
12041
- else {
12042
- viewer.shadows = false;
12043
- viewer.shadowMap.enabled = false;
12035
+ else if (size > MAX_SHADOW_SIZE) {
12036
+ size = MAX_SHADOW_SIZE;
12044
12037
  }
12038
+ viewer.shadowMap.size = size;
12039
+ viewer.shadowMap.softShadows = Boolean(shadows.soften);
12040
+ viewer.shadowMap.darkness = EnsureNumber(shadows.darkness, 0.5);
12045
12041
  ambientOcclusion = bSettings === null || bSettings === void 0 ? void 0 : bSettings.ambientOcclusion;
12046
12042
  if (ambientOcclusion == null) {
12047
12043
  ambientOcclusion = (_v = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _v === void 0 ? void 0 : _v.ambientOcclusion;
@@ -15162,7 +15158,7 @@
15162
15158
  ViewerUtils.CreateWidgets = CreateWidgets;
15163
15159
  })(exports.ViewerUtils || (exports.ViewerUtils = {}));
15164
15160
 
15165
- var VERSION$1 = "2.6.9";
15161
+ var VERSION$1 = "2.7.1";
15166
15162
 
15167
15163
  exports.VERSION = VERSION$1;
15168
15164
  exports.CesiumViewMonitor = CesiumViewMonitor;