123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- (function webpackUniversalModuleDefinition(root, factory) {
- if(typeof exports === 'object' && typeof module === 'object')
- module.exports = factory();
- else if(typeof define === 'function' && define.amd)
- define("GD", [], factory);
- else if(typeof exports === 'object')
- exports["GD"] = factory();
- else
- root["GD"] = factory();
- })(window, function() {
- return /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 0);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ "./modules/global-api/index.js":
- /*!*************************************!*\
- !*** ./modules/global-api/index.js ***!
- \*************************************/
- /*! exports provided: initMixin, initUse, registerLib, getLib */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- 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");
- /***/ }),
- /***/ "./modules/global-api/lib-util.js":
- /*!****************************************!*\
- !*** ./modules/global-api/lib-util.js ***!
- \****************************************/
- /*! exports provided: registerLib, getLib */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- 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");
- /***/ }),
- /***/ "./modules/global-api/mixin.js":
- /*!*************************************!*\
- !*** ./modules/global-api/mixin.js ***!
- \*************************************/
- /*! exports provided: initMixin */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- 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");
- /***/ }),
- /***/ "./modules/global-api/use.js":
- /*!***********************************!*\
- !*** ./modules/global-api/use.js ***!
- \***********************************/
- /*! exports provided: initUse */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- 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");
- /***/ }),
- /***/ "./packages/base/index.js":
- /*!********************************!*\
- !*** ./packages/base/index.js ***!
- \********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- 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");
- /***/ }),
- /***/ 0:
- /*!**************************************!*\
- !*** multi ./packages/base/index.js ***!
- \**************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__(/*! E:\liuce\projectFile\gd-sdk\packages\base\index.js */"./packages/base/index.js");
- /***/ })
- /******/ })["default"];
- });
|