@kq_npm/client3d_webgl_vue 2.6.9-beta → 2.7.1-beta

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.
package/hawkeye/index.js CHANGED
@@ -1,7 +1,131 @@
1
1
  /******/ (function() { // webpackBootstrap
2
2
  /******/ "use strict";
3
- /******/ // The require scope
4
- /******/ var __webpack_require__ = {};
3
+ /******/ var __webpack_modules__ = ({
4
+
5
+ /***/ 1162:
6
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7
+
8
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9
+ /* harmony export */ "Z": function() { return /* binding */ HawkeyeViewModel; }
10
+ /* harmony export */ });
11
+ /* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
12
+
13
+ //鹰眼逻辑类
14
+ class HawkeyeViewModel {
15
+ //鹰眼三维对象
16
+ constructor(scenceView, options) {
17
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_overviewMap", null);
18
+
19
+ options.viewer = scenceView._viewer;
20
+ options.centerRectColor = Cesium.Color.fromCssColorString(options.centerColor || "#0000ff").withAlpha(options.centerColorAlpha || 0.5);
21
+ this.init(options);
22
+ }
23
+
24
+ init(options) {
25
+ if (!options.layers) {
26
+ // let layers = [];
27
+ // options.viewer.imageryLayers._layers.forEach(function (layer) {
28
+ // layers.push(layer._imageryProvider);
29
+ // });
30
+ // options.layers = layers;
31
+ options.layers = new Cesium.Kq3dArcGISMapServerImageryProvider({
32
+ url: 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer'
33
+ });
34
+ }
35
+
36
+ this._overviewMap = new Cesium.Kq3dOverviewMap(options);
37
+ } //显示
38
+
39
+
40
+ show() {
41
+ this._overviewMap.show = true;
42
+ } //隐藏
43
+
44
+
45
+ hide() {
46
+ this._overviewMap.show = false;
47
+ } //销毁
48
+
49
+
50
+ destroy() {
51
+ this._overviewMap.destroy();
52
+
53
+ this._overviewMap = null;
54
+ }
55
+
56
+ }
57
+
58
+ /***/ }),
59
+
60
+ /***/ 826:
61
+ /***/ (function(module) {
62
+
63
+ module.exports = require("@kq_npm/client_common_vue/_utils/gis-utils");
64
+
65
+ /***/ }),
66
+
67
+ /***/ 5406:
68
+ /***/ (function(module) {
69
+
70
+ module.exports = require("@kq_npm/client_common_vue/init.js");
71
+
72
+ /***/ }),
73
+
74
+ /***/ 637:
75
+ /***/ (function(module) {
76
+
77
+ module.exports = require("vue");
78
+
79
+ /***/ }),
80
+
81
+ /***/ 8270:
82
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
83
+
84
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
85
+ /* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
86
+ /* harmony export */ });
87
+ function _defineProperty(obj, key, value) {
88
+ if (key in obj) {
89
+ Object.defineProperty(obj, key, {
90
+ value: value,
91
+ enumerable: true,
92
+ configurable: true,
93
+ writable: true
94
+ });
95
+ } else {
96
+ obj[key] = value;
97
+ }
98
+
99
+ return obj;
100
+ }
101
+
102
+ /***/ })
103
+
104
+ /******/ });
105
+ /************************************************************************/
106
+ /******/ // The module cache
107
+ /******/ var __webpack_module_cache__ = {};
108
+ /******/
109
+ /******/ // The require function
110
+ /******/ function __webpack_require__(moduleId) {
111
+ /******/ // Check if module is in cache
112
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
113
+ /******/ if (cachedModule !== undefined) {
114
+ /******/ return cachedModule.exports;
115
+ /******/ }
116
+ /******/ // Create a new module (and put it into the cache)
117
+ /******/ var module = __webpack_module_cache__[moduleId] = {
118
+ /******/ // no module.id needed
119
+ /******/ // no module.loaded needed
120
+ /******/ exports: {}
121
+ /******/ };
122
+ /******/
123
+ /******/ // Execute the module function
124
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
125
+ /******/
126
+ /******/ // Return the exports of the module
127
+ /******/ return module.exports;
128
+ /******/ }
5
129
  /******/
6
130
  /************************************************************************/
7
131
  /******/ /* webpack/runtime/compat get default export */
@@ -46,80 +170,23 @@
46
170
  /******/
47
171
  /************************************************************************/
48
172
  var __webpack_exports__ = {};
173
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
174
+ !function() {
49
175
  // ESM COMPAT FLAG
50
176
  __webpack_require__.r(__webpack_exports__);
51
177
 
52
178
  // EXPORTS
53
179
  __webpack_require__.d(__webpack_exports__, {
54
- "HawkeyeViewModel": function() { return /* reexport */ HawkeyeViewModel; },
180
+ "HawkeyeViewModel": function() { return /* reexport */ HawkeyeViewModel/* default */.Z; },
55
181
  "default": function() { return /* reexport */ Hawkeye; }
56
182
  });
57
183
 
58
- ;// CONCATENATED MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
59
- var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject = require("vue");
60
- ;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
61
- var gis_utils_namespaceObject = require("@kq_npm/client_common_vue/_utils/gis-utils");
62
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
63
- function _defineProperty(obj, key, value) {
64
- if (key in obj) {
65
- Object.defineProperty(obj, key, {
66
- value: value,
67
- enumerable: true,
68
- configurable: true,
69
- writable: true
70
- });
71
- } else {
72
- obj[key] = value;
73
- }
74
-
75
- return obj;
76
- }
77
- ;// CONCATENATED MODULE: ./src/webgl/hawkeye/HawkeyeViewModel.js
78
-
79
- //鹰眼逻辑类
80
- class HawkeyeViewModel {
81
- //鹰眼三维对象
82
- constructor(scenceView, options) {
83
- _defineProperty(this, "_overviewMap", null);
84
-
85
- options.viewer = scenceView._viewer;
86
- options.centerRectColor = Cesium.Color.fromCssColorString(options.centerColor || "#0000ff").withAlpha(options.centerColorAlpha || 0.5);
87
- this.init(options);
88
- }
89
-
90
- init(options) {
91
- if (!options.layers) {
92
- // let layers = [];
93
- // options.viewer.imageryLayers._layers.forEach(function (layer) {
94
- // layers.push(layer._imageryProvider);
95
- // });
96
- // options.layers = layers;
97
- options.layers = new Cesium.Kq3dArcGISMapServerImageryProvider({
98
- url: 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer'
99
- });
100
- }
101
-
102
- this._overviewMap = new Cesium.Kq3dOverviewMap(options);
103
- } //显示
104
-
105
-
106
- show() {
107
- this._overviewMap.show = true;
108
- } //隐藏
109
-
110
-
111
- hide() {
112
- this._overviewMap.show = false;
113
- } //销毁
114
-
115
-
116
- destroy() {
117
- this._overviewMap.destroy();
118
-
119
- this._overviewMap = null;
120
- }
121
-
122
- }
184
+ // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
185
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
186
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
187
+ var gis_utils_ = __webpack_require__(826);
188
+ // EXTERNAL MODULE: ./src/webgl/hawkeye/HawkeyeViewModel.js
189
+ var HawkeyeViewModel = __webpack_require__(1162);
123
190
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/hawkeye/Hawkeye.vue?vue&type=script&setup=true&lang=js
124
191
 
125
192
 
@@ -170,9 +237,9 @@ const __default__ = {
170
237
  const props = __props;
171
238
  let viewModel = null; // 获取组件传参
172
239
 
173
- (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
240
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
174
241
  //父组件ScenceView初始化完成后执行
175
- gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
242
+ gis_utils_.utils.getWebMap(null, scenceView => {
176
243
  if (scenceView) {
177
244
  let options = {
178
245
  show: props.show,
@@ -185,7 +252,7 @@ const __default__ = {
185
252
  centerColorAlpha: props.centerColorAlpha,
186
253
  layers: props.layers
187
254
  };
188
- viewModel = new HawkeyeViewModel(scenceView, options);
255
+ viewModel = new HawkeyeViewModel/* default */.Z(scenceView, options);
189
256
  }
190
257
  });
191
258
  });
@@ -199,7 +266,7 @@ const __default__ = {
199
266
  } // 销毁
200
267
 
201
268
 
202
- (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onBeforeUnmount)(() => {
269
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
203
270
  viewModel && viewModel.destroy();
204
271
  });
205
272
  expose({
@@ -221,9 +288,9 @@ const __default__ = {
221
288
  const __exports__ = Hawkeyevue_type_script_setup_true_lang_js;
222
289
 
223
290
  /* harmony default export */ var Hawkeye = (__exports__);
224
- ;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/init.js"
225
- var init_js_namespaceObject = require("@kq_npm/client_common_vue/init.js");
226
- var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_namespaceObject);
291
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
292
+ var init_js_ = __webpack_require__(5406);
293
+ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
227
294
  ;// CONCATENATED MODULE: ./src/webgl/hawkeye/index.js
228
295
 
229
296
 
@@ -235,6 +302,7 @@ Hawkeye.install = (Vue, opts) => {
235
302
  };
236
303
 
237
304
 
305
+ }();
238
306
  module.exports = __webpack_exports__;
239
307
  /******/ })()
240
308
  ;
package/index.js CHANGED
@@ -532,8 +532,6 @@ __webpack_require__.d(__webpack_exports__, {
532
532
 
533
533
  ;// CONCATENATED MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
534
534
  var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject = require("vue");
535
- ;// CONCATENATED MODULE: external "@kq_npm/client3d_webgl_vue"
536
- var client3d_webgl_vue_namespaceObject = require("@kq_npm/client3d_webgl_vue");
537
535
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
538
536
  function _defineProperty(obj, key, value) {
539
537
  if (key in obj) {
@@ -3066,24 +3064,24 @@ const __default__ = {
3066
3064
  key: 0,
3067
3065
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(toolButtonsCss)),
3068
3066
  style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(toolButtonsStyle))
3069
- }, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", null, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(client3d_webgl_vue_namespaceObject.Kq3dFixedZoomout), {
3067
+ }, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", null, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(FixedZoomout), {
3070
3068
  mapTarget: __props.target,
3071
3069
  showShadow: true,
3072
3070
  class: "zoomButton"
3073
3071
  }, null, 8
3074
3072
  /* PROPS */
3075
- , ["mapTarget"])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", null, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(client3d_webgl_vue_namespaceObject.Kq3dFixedZoomin), {
3073
+ , ["mapTarget"])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", null, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(FixedZoomin), {
3076
3074
  mapTarget: __props.target,
3077
3075
  showShadow: true,
3078
3076
  class: "zoomButton"
3079
3077
  }, null, 8
3080
3078
  /* PROPS */
3081
- , ["mapTarget"])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(client3d_webgl_vue_namespaceObject.Kq3dResetView), {
3079
+ , ["mapTarget"])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(ResetView), {
3082
3080
  mapTarget: __props.target,
3083
3081
  showShadow: true
3084
3082
  }, null, 8
3085
3083
  /* PROPS */
3086
- , ["mapTarget"])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_4, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(client3d_webgl_vue_namespaceObject.Kq3dCompass), {
3084
+ , ["mapTarget"])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_4, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(Compass), {
3087
3085
  mapTarget: __props.target,
3088
3086
  showShadow: true
3089
3087
  }, null, 8