cesium_dev_kit 1.0.43 → 1.0.45

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 +1 -4
  2. package/package.json +6 -1
package/dist/index.js CHANGED
@@ -6,9 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.initCesium = initCesium;
7
7
  var _initConf = require("./initConf");
8
8
  var _libs = require("./libs");
9
- var alternateCesium = _interopRequireWildcard(require("cesium"));
10
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
9
  const prototypeExtends = function (viewer, cesiumGlobal) {
13
10
  function _inner(parents, children) {
14
11
  var curr = null;
@@ -76,7 +73,7 @@ const prototypeExtends = function (viewer, cesiumGlobal) {
76
73
  * @returns
77
74
  */
78
75
  function initCesium({
79
- cesiumGlobal = alternateCesium,
76
+ cesiumGlobal,
80
77
  containerId,
81
78
  viewerConfig = {},
82
79
  extreaConfig = {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cesium_dev_kit",
3
- "version": "1.0.43",
3
+ "version": "1.0.45",
4
4
  "description": "本项目是一个封装 Cesium 基本操作的工具包,提供简单的方法调用来实现复杂的 API 操作;节省阅读 Cesium 原文档时间,从而降低入门难度增加学习信心,同时也希望能提高工作效率",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,5 +28,10 @@
28
28
  "@turf/turf": "^6.5.0",
29
29
  "concaveman": "^1.1.1",
30
30
  "cesium-navigation-es6": "^3.0.8"
31
+ },
32
+ "devDependencies": {
33
+ "@babel/cli": "^7.21.0",
34
+ "@babel/core": "^7.21.4",
35
+ "@babel/preset-env": "^7.21.4"
31
36
  }
32
37
  }