gd.base.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. (function webpackUniversalModuleDefinition(root, factory) {
  2. if(typeof exports === 'object' && typeof module === 'object')
  3. module.exports = factory();
  4. else if(typeof define === 'function' && define.amd)
  5. define("GD", [], factory);
  6. else if(typeof exports === 'object')
  7. exports["GD"] = factory();
  8. else
  9. root["GD"] = factory();
  10. })(window, function() {
  11. return /******/ (function(modules) { // webpackBootstrap
  12. /******/ // The module cache
  13. /******/ var installedModules = {};
  14. /******/
  15. /******/ // The require function
  16. /******/ function __webpack_require__(moduleId) {
  17. /******/
  18. /******/ // Check if module is in cache
  19. /******/ if(installedModules[moduleId]) {
  20. /******/ return installedModules[moduleId].exports;
  21. /******/ }
  22. /******/ // Create a new module (and put it into the cache)
  23. /******/ var module = installedModules[moduleId] = {
  24. /******/ i: moduleId,
  25. /******/ l: false,
  26. /******/ exports: {}
  27. /******/ };
  28. /******/
  29. /******/ // Execute the module function
  30. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  31. /******/
  32. /******/ // Flag the module as loaded
  33. /******/ module.l = true;
  34. /******/
  35. /******/ // Return the exports of the module
  36. /******/ return module.exports;
  37. /******/ }
  38. /******/
  39. /******/
  40. /******/ // expose the modules object (__webpack_modules__)
  41. /******/ __webpack_require__.m = modules;
  42. /******/
  43. /******/ // expose the module cache
  44. /******/ __webpack_require__.c = installedModules;
  45. /******/
  46. /******/ // define getter function for harmony exports
  47. /******/ __webpack_require__.d = function(exports, name, getter) {
  48. /******/ if(!__webpack_require__.o(exports, name)) {
  49. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  50. /******/ }
  51. /******/ };
  52. /******/
  53. /******/ // define __esModule on exports
  54. /******/ __webpack_require__.r = function(exports) {
  55. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  56. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  57. /******/ }
  58. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  59. /******/ };
  60. /******/
  61. /******/ // create a fake namespace object
  62. /******/ // mode & 1: value is a module id, require it
  63. /******/ // mode & 2: merge all properties of value into the ns
  64. /******/ // mode & 4: return value when already ns object
  65. /******/ // mode & 8|1: behave like require
  66. /******/ __webpack_require__.t = function(value, mode) {
  67. /******/ if(mode & 1) value = __webpack_require__(value);
  68. /******/ if(mode & 8) return value;
  69. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  70. /******/ var ns = Object.create(null);
  71. /******/ __webpack_require__.r(ns);
  72. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  73. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  74. /******/ return ns;
  75. /******/ };
  76. /******/
  77. /******/ // getDefaultExport function for compatibility with non-harmony modules
  78. /******/ __webpack_require__.n = function(module) {
  79. /******/ var getter = module && module.__esModule ?
  80. /******/ function getDefault() { return module['default']; } :
  81. /******/ function getModuleExports() { return module; };
  82. /******/ __webpack_require__.d(getter, 'a', getter);
  83. /******/ return getter;
  84. /******/ };
  85. /******/
  86. /******/ // Object.prototype.hasOwnProperty.call
  87. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  88. /******/
  89. /******/ // __webpack_public_path__
  90. /******/ __webpack_require__.p = "/";
  91. /******/
  92. /******/
  93. /******/ // Load entry module and return exports
  94. /******/ return __webpack_require__(__webpack_require__.s = 0);
  95. /******/ })
  96. /************************************************************************/
  97. /******/ ({
  98. /***/ "./modules/global-api/index.js":
  99. /*!*************************************!*\
  100. !*** ./modules/global-api/index.js ***!
  101. \*************************************/
  102. /*! exports provided: initMixin, initUse, registerLib, getLib */
  103. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  104. "use strict";
  105. eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _mixin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mixin */ \"./modules/global-api/mixin.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"initMixin\", function() { return _mixin__WEBPACK_IMPORTED_MODULE_0__[\"initMixin\"]; });\n\n/* harmony import */ var _use__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./use */ \"./modules/global-api/use.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"initUse\", function() { return _use__WEBPACK_IMPORTED_MODULE_1__[\"initUse\"]; });\n\n/* harmony import */ var _lib_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib-util */ \"./modules/global-api/lib-util.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"registerLib\", function() { return _lib_util__WEBPACK_IMPORTED_MODULE_2__[\"registerLib\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getLib\", function() { return _lib_util__WEBPACK_IMPORTED_MODULE_2__[\"getLib\"]; });\n\n/**\n * @Author: Liuce\n * @Date: 2022-04-11 17:58:32\n */\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2dsb2JhbC1hcGkvaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HRC8uL21vZHVsZXMvZ2xvYmFsLWFwaS9pbmRleC5qcz8xOGZmIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogTGl1Y2VcbiAqIEBEYXRlOiAyMDIyLTA0LTExIDE3OjU4OjMyXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9taXhpbidcbmV4cG9ydCAqIGZyb20gJy4vdXNlJ1xuZXhwb3J0ICogZnJvbSAnLi9saWItdXRpbCdcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/global-api/index.js\n");
  106. /***/ }),
  107. /***/ "./modules/global-api/lib-util.js":
  108. /*!****************************************!*\
  109. !*** ./modules/global-api/lib-util.js ***!
  110. \****************************************/
  111. /*! exports provided: registerLib, getLib */
  112. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  113. "use strict";
  114. eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"registerLib\", function() { return registerLib; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getLib\", function() { return getLib; });\n/**\n * @Author: Caven\n * @Date: 2022-08-11 18:52:22\n */\nvar cache = {};\n/**\n * register lib\n * @param name\n * @param lib\n */\n\nfunction registerLib(name, lib) {\n cache[name] = lib;\n}\n/**\n * get lib\n * @param name\n * @return {*}\n */\n\nfunction getLib(name) {\n return cache[name];\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2dsb2JhbC1hcGkvbGliLXV0aWwuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HRC8uL21vZHVsZXMvZ2xvYmFsLWFwaS9saWItdXRpbC5qcz9lYmQ4Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIyLTA4LTExIDE4OjUyOjIyXG4gKi9cblxuY29uc3QgY2FjaGUgPSB7fVxuXG4vKipcbiAqIHJlZ2lzdGVyIGxpYlxuICogQHBhcmFtIG5hbWVcbiAqIEBwYXJhbSBsaWJcbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIHJlZ2lzdGVyTGliKG5hbWUsIGxpYikge1xuICBjYWNoZVtuYW1lXSA9IGxpYlxufVxuXG4vKipcbiAqIGdldCBsaWJcbiAqIEBwYXJhbSBuYW1lXG4gKiBAcmV0dXJuIHsqfVxuICovXG5leHBvcnQgZnVuY3Rpb24gZ2V0TGliKG5hbWUpIHtcbiAgcmV0dXJuIGNhY2hlW25hbWVdXG59XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/global-api/lib-util.js\n");
  115. /***/ }),
  116. /***/ "./modules/global-api/mixin.js":
  117. /*!*************************************!*\
  118. !*** ./modules/global-api/mixin.js ***!
  119. \*************************************/
  120. /*! exports provided: initMixin */
  121. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  122. "use strict";
  123. eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initMixin\", function() { return initMixin; });\n/**\n * @Author: Liuce\n * @Date: 2022-04-11 18:11:34\n */\nvar ignores = ['version', 'accessToken', 'baseUrl', 'author', 'init', 'ready', 'use', 'mixin', 'Namespace', 'Initialized'];\n/**\n * Mix other plug-in attributes to GD\n * @param GD\n * @returns this\n */\n\nfunction initMixin(GD) {\n GD.mixin = function (mixin) {\n for (var key in mixin) {\n ignores.indexOf(key) < 0 && (GD[key] = mixin[key]);\n }\n\n return this;\n };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2dsb2JhbC1hcGkvbWl4aW4uanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HRC8uL21vZHVsZXMvZ2xvYmFsLWFwaS9taXhpbi5qcz9kN2Q1Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogTGl1Y2VcbiAqIEBEYXRlOiAyMDIyLTA0LTExIDE4OjExOjM0XG4gKi9cblxuY29uc3QgaWdub3JlcyA9IFtcbiAgJ3ZlcnNpb24nLFxuICAnYWNjZXNzVG9rZW4nLFxuICAnYmFzZVVybCcsXG4gICdhdXRob3InLFxuICAnaW5pdCcsXG4gICdyZWFkeScsXG4gICd1c2UnLFxuICAnbWl4aW4nLFxuICAnTmFtZXNwYWNlJyxcbiAgJ0luaXRpYWxpemVkJ1xuXVxuXG4vKipcbiAqIE1peCBvdGhlciBwbHVnLWluIGF0dHJpYnV0ZXMgdG8gR0RcbiAqIEBwYXJhbSBHRFxuICogQHJldHVybnMgdGhpc1xuICovXG5leHBvcnQgZnVuY3Rpb24gaW5pdE1peGluKEdEKSB7XG4gIEdELm1peGluID0gZnVuY3Rpb24obWl4aW4pIHtcbiAgICBmb3IgKGxldCBrZXkgaW4gbWl4aW4pIHtcbiAgICAgIGlnbm9yZXMuaW5kZXhPZihrZXkpIDwgMCAmJiAoR0Rba2V5XSA9IG1peGluW2tleV0pXG4gICAgfVxuICAgIHJldHVybiB0aGlzXG4gIH1cbn1cbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFhQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/global-api/mixin.js\n");
  124. /***/ }),
  125. /***/ "./modules/global-api/use.js":
  126. /*!***********************************!*\
  127. !*** ./modules/global-api/use.js ***!
  128. \***********************************/
  129. /*! exports provided: initUse */
  130. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  131. "use strict";
  132. eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initUse\", function() { return initUse; });\n/**\n * @Author: Liuce\n * @Date: 2022-04-11 18:01:21\n */\n\n/**\n * Using other custom plug-ins in GD\n * @param GD\n * @returns this\n */\nfunction initUse(GD) {\n GD.use = function (plugin) {\n var installedPlugins = this._installedPlugins || (this._installedPlugins = []);\n\n if (installedPlugins.indexOf(plugin) > -1) {\n return this;\n } // additional parameters\n\n\n var args = [];\n args.unshift(this);\n\n if (typeof plugin.install === 'function') {\n plugin.install.apply(plugin, args);\n } else if (typeof plugin === 'function') {\n plugin.apply(null, args);\n }\n\n installedPlugins.push(plugin);\n return this;\n };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2dsb2JhbC1hcGkvdXNlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR0QvLi9tb2R1bGVzL2dsb2JhbC1hcGkvdXNlLmpzPzgwOWIiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBMaXVjZVxuICogQERhdGU6IDIwMjItMDQtMTEgMTg6MDE6MjFcbiAqL1xuXG4vKipcbiAqIFVzaW5nIG90aGVyIGN1c3RvbSBwbHVnLWlucyBpbiBHRFxuICogQHBhcmFtIEdEXG4gKiBAcmV0dXJucyB0aGlzXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBpbml0VXNlKEdEKSB7XG4gIEdELnVzZSA9IGZ1bmN0aW9uKHBsdWdpbikge1xuICAgIGNvbnN0IGluc3RhbGxlZFBsdWdpbnMgPVxuICAgICAgdGhpcy5faW5zdGFsbGVkUGx1Z2lucyB8fCAodGhpcy5faW5zdGFsbGVkUGx1Z2lucyA9IFtdKVxuICAgIGlmIChpbnN0YWxsZWRQbHVnaW5zLmluZGV4T2YocGx1Z2luKSA+IC0xKSB7XG4gICAgICByZXR1cm4gdGhpc1xuICAgIH1cbiAgICAvLyBhZGRpdGlvbmFsIHBhcmFtZXRlcnNcbiAgICBjb25zdCBhcmdzID0gW11cbiAgICBhcmdzLnVuc2hpZnQodGhpcylcbiAgICBpZiAodHlwZW9mIHBsdWdpbi5pbnN0YWxsID09PSAnZnVuY3Rpb24nKSB7XG4gICAgICBwbHVnaW4uaW5zdGFsbC5hcHBseShwbHVnaW4sIGFyZ3MpXG4gICAgfSBlbHNlIGlmICh0eXBlb2YgcGx1Z2luID09PSAnZnVuY3Rpb24nKSB7XG4gICAgICBwbHVnaW4uYXBwbHkobnVsbCwgYXJncylcbiAgICB9XG4gICAgaW5zdGFsbGVkUGx1Z2lucy5wdXNoKHBsdWdpbilcbiAgICByZXR1cm4gdGhpc1xuICB9XG59XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/global-api/use.js\n");
  133. /***/ }),
  134. /***/ "./packages/base/index.js":
  135. /*!********************************!*\
  136. !*** ./packages/base/index.js ***!
  137. \********************************/
  138. /*! exports provided: default */
  139. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  140. "use strict";
  141. eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _gd_modules_global_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @gd-modules/global-api */ \"./modules/global-api/index.js\");\n/**\n * @Author: Liuce\n * @Date: 2022-04-11 15:27:40\n */\n // import * as Cesium from 'cesium'\n\nvar GD = {\n version: \"1.0.0\",\n accessToken: '',\n baseUrl: './gd-sdk/resources/',\n author: \"liuce\",\n Namespace: {},\n // Namespace: { Cesium },\n Initialized: false\n}; // init global api\n\nObject(_gd_modules_global_api__WEBPACK_IMPORTED_MODULE_0__[\"initMixin\"])(GD);\nObject(_gd_modules_global_api__WEBPACK_IMPORTED_MODULE_0__[\"initUse\"])(GD); // load Cesium\n\nGD.init = function (callback) {\n callback && callback();\n};\n\nGD.cesiumLoad = function (cesium) {\n GD.Namespace['Cesium'] = cesium;\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (GD);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9wYWNrYWdlcy9iYXNlL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR0QvLi9wYWNrYWdlcy9iYXNlL2luZGV4LmpzPzNlZGYiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBMaXVjZVxuICogQERhdGU6IDIwMjItMDQtMTEgMTU6Mjc6NDBcbiAqL1xuXG5pbXBvcnQgeyBpbml0TWl4aW4sIGluaXRVc2UgfSBmcm9tICdAZ2QtbW9kdWxlcy9nbG9iYWwtYXBpJ1xuLy8gaW1wb3J0ICogYXMgQ2VzaXVtIGZyb20gJ2Nlc2l1bSdcblxubGV0IEdEID0ge1xuICB2ZXJzaW9uOiBfX1ZFUlNJT05fXyxcbiAgYWNjZXNzVG9rZW46ICcnLFxuICBiYXNlVXJsOiAnLi9nZC1zZGsvcmVzb3VyY2VzLycsXG4gIGF1dGhvcjogX19BVVRIT1JfXyxcbiAgTmFtZXNwYWNlOiB7fSxcbiAgLy8gTmFtZXNwYWNlOiB7IENlc2l1bSB9LFxuICBJbml0aWFsaXplZDogZmFsc2Vcbn1cblxuLy8gaW5pdCBnbG9iYWwgYXBpXG5pbml0TWl4aW4oR0QpXG5pbml0VXNlKEdEKVxuXG4vLyBsb2FkIENlc2l1bVxuR0QuaW5pdCA9IGNhbGxiYWNrID0+IHtcbiAgY2FsbGJhY2sgJiYgY2FsbGJhY2soKVxufVxuR0QuY2VzaXVtTG9hZCA9IGNlc2l1bSA9PiB7XG4gIEdELk5hbWVzcGFjZVsnQ2VzaXVtJ10gPSBjZXNpdW1cbn1cbmV4cG9ydCBkZWZhdWx0IEdEXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBUEE7QUFDQTtBQVVBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./packages/base/index.js\n");
  142. /***/ }),
  143. /***/ 0:
  144. /*!**************************************!*\
  145. !*** multi ./packages/base/index.js ***!
  146. \**************************************/
  147. /*! no static exports found */
  148. /***/ (function(module, exports, __webpack_require__) {
  149. module.exports = __webpack_require__(/*! E:\liuce\projectFile\gd-sdk\packages\base\index.js */"./packages/base/index.js");
  150. /***/ })
  151. /******/ })["default"];
  152. });