cesium-alpha-earth 1.0.7 → 1.0.8

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -260990,9 +260990,15 @@ function createViewer(container, option) {
260990
260990
  skyBox: (_c = option == null ? void 0 : option.scene) == null ? void 0 : _c.skyBox
260991
260991
  });
260992
260992
  if (option) {
260993
- viewer.scene.moon.show = !!((_d = option.scene) == null ? void 0 : _d.moonShow);
260994
- viewer.scene.sun.show = !!((_e = option.scene) == null ? void 0 : _e.sunShow);
260995
- viewer.scene.backgroundColor = Color.fromCssColorString(((_f = option.scene) == null ? void 0 : _f.backgroundColor) || "rgb(0,0,255)");
260993
+ if (viewer.scene.moon) {
260994
+ viewer.scene.moon.show = !!((_d = option.scene) == null ? void 0 : _d.moonShow);
260995
+ }
260996
+ if (viewer.scene.sun) {
260997
+ viewer.scene.sun.show = !!((_e = option.scene) == null ? void 0 : _e.sunShow);
260998
+ }
260999
+ viewer.scene.backgroundColor = Color.fromCssColorString(
261000
+ ((_f = option.scene) == null ? void 0 : _f.backgroundColor) || "rgb(0,0,255)"
261001
+ );
260996
261002
  }
260997
261003
  if ((_g = option == null ? void 0 : option.scene) == null ? void 0 : _g.center) {
260998
261004
  let centerPosition = Cartesian3.fromDegrees(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cesium-alpha-earth",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/*"
@@ -22,10 +22,10 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@turf/turf": "^7.2.0",
25
- "cesium-alpha-earth": "^1.0.4",
26
25
  "@types/geojson": "^7946.0.16",
27
26
  "@types/jsdom": "^21.1.7",
28
27
  "@vitejs/plugin-vue": "^5.2.4",
28
+ "cesium-alpha-earth": "^1.0.7",
29
29
  "postcss-pxtorem": "^6.1.0",
30
30
  "rollup-plugin-copy": "^3.5.0",
31
31
  "sass-embedded": "^1.89.2",