@kq_npm/client3d_webgl_vue 3.2.6-beta → 3.2.8-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.
@@ -2,15 +2,183 @@
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
- /***/ 5925:
5
+ /***/ 909:
6
6
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7
7
 
8
+
9
+ // EXPORTS
10
+ __webpack_require__.d(__webpack_exports__, {
11
+ "Z": function() { return /* binding */ message; }
12
+ });
13
+
14
+ ;// CONCATENATED MODULE: external "element-plus/es"
15
+ var es_namespaceObject = require("element-plus/es");
16
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
17
+ var init_js_ = __webpack_require__(5406);
18
+ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
19
+ ;// CONCATENATED MODULE: ./src/common/_ui/message/index.js
20
+
21
+
22
+
23
+ es_namespaceObject.ElMessage.install = (Vue, opts) => {
24
+ init_js_default()(Vue, opts);
25
+ Vue.component("KqMessage", es_namespaceObject.ElMessage);
26
+ };
27
+
28
+ /* harmony default export */ var message = (es_namespaceObject.ElMessage);
29
+
30
+ /***/ }),
31
+
32
+ /***/ 348:
33
+ /***/ (function(module) {
34
+
35
+ module.exports = require("@kq_npm/client_icons_vue");
36
+
37
+ /***/ }),
38
+
39
+ /***/ 826:
40
+ /***/ (function(module) {
41
+
42
+ module.exports = require("@kq_npm/client_common_vue/_utils/gis-utils");
43
+
44
+ /***/ }),
45
+
46
+ /***/ 9519:
47
+ /***/ (function(module) {
48
+
49
+ module.exports = require("@kq_npm/client_common_vue/_utils/util");
50
+
51
+ /***/ }),
52
+
53
+ /***/ 5406:
54
+ /***/ (function(module) {
55
+
56
+ module.exports = require("@kq_npm/client_common_vue/init.js");
57
+
58
+ /***/ }),
59
+
60
+ /***/ 637:
61
+ /***/ (function(module) {
62
+
63
+ module.exports = require("vue");
64
+
65
+ /***/ }),
66
+
67
+ /***/ 8270:
68
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
69
+
8
70
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9
- /* harmony export */ "Z": function() { return /* binding */ TerrainOperationViewModel; }
71
+ /* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
10
72
  /* 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);
73
+ function _defineProperty(obj, key, value) {
74
+ if (key in obj) {
75
+ Object.defineProperty(obj, key, {
76
+ value: value,
77
+ enumerable: true,
78
+ configurable: true,
79
+ writable: true
80
+ });
81
+ } else {
82
+ obj[key] = value;
83
+ }
84
+
85
+ return obj;
86
+ }
87
+
88
+ /***/ })
89
+
90
+ /******/ });
91
+ /************************************************************************/
92
+ /******/ // The module cache
93
+ /******/ var __webpack_module_cache__ = {};
94
+ /******/
95
+ /******/ // The require function
96
+ /******/ function __webpack_require__(moduleId) {
97
+ /******/ // Check if module is in cache
98
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
99
+ /******/ if (cachedModule !== undefined) {
100
+ /******/ return cachedModule.exports;
101
+ /******/ }
102
+ /******/ // Create a new module (and put it into the cache)
103
+ /******/ var module = __webpack_module_cache__[moduleId] = {
104
+ /******/ // no module.id needed
105
+ /******/ // no module.loaded needed
106
+ /******/ exports: {}
107
+ /******/ };
108
+ /******/
109
+ /******/ // Execute the module function
110
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
111
+ /******/
112
+ /******/ // Return the exports of the module
113
+ /******/ return module.exports;
114
+ /******/ }
115
+ /******/
116
+ /************************************************************************/
117
+ /******/ /* webpack/runtime/compat get default export */
118
+ /******/ !function() {
119
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
120
+ /******/ __webpack_require__.n = function(module) {
121
+ /******/ var getter = module && module.__esModule ?
122
+ /******/ function() { return module['default']; } :
123
+ /******/ function() { return module; };
124
+ /******/ __webpack_require__.d(getter, { a: getter });
125
+ /******/ return getter;
126
+ /******/ };
127
+ /******/ }();
128
+ /******/
129
+ /******/ /* webpack/runtime/define property getters */
130
+ /******/ !function() {
131
+ /******/ // define getter functions for harmony exports
132
+ /******/ __webpack_require__.d = function(exports, definition) {
133
+ /******/ for(var key in definition) {
134
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
135
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
136
+ /******/ }
137
+ /******/ }
138
+ /******/ };
139
+ /******/ }();
140
+ /******/
141
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
142
+ /******/ !function() {
143
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
144
+ /******/ }();
145
+ /******/
146
+ /******/ /* webpack/runtime/make namespace object */
147
+ /******/ !function() {
148
+ /******/ // define __esModule on exports
149
+ /******/ __webpack_require__.r = function(exports) {
150
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
151
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
152
+ /******/ }
153
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
154
+ /******/ };
155
+ /******/ }();
156
+ /******/
157
+ /************************************************************************/
158
+ var __webpack_exports__ = {};
159
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
160
+ !function() {
161
+ // ESM COMPAT FLAG
162
+ __webpack_require__.r(__webpack_exports__);
163
+
164
+ // EXPORTS
165
+ __webpack_require__.d(__webpack_exports__, {
166
+ "TerrainOperationViewModel": function() { return /* reexport */ TerrainOperationViewModel; },
167
+ "default": function() { return /* reexport */ TerrainOperation; }
168
+ });
169
+
170
+ // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
171
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
172
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
173
+ var gis_utils_ = __webpack_require__(826);
174
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
175
+ var defineProperty = __webpack_require__(8270);
176
+ // EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
177
+ var message = __webpack_require__(909);
178
+ ;// CONCATENATED MODULE: ./src/webgl/terrainoperation/TerrainOperationViewModel.js
12
179
 
13
180
  //地形淹没分析逻辑类
181
+
14
182
  class TerrainOperationViewModel {
15
183
  //地形开挖三维对象
16
184
  //地形修改三维对象
@@ -21,21 +189,21 @@ class TerrainOperationViewModel {
21
189
  //开挖深度
22
190
  //绘制完成监听事件
23
191
  constructor(scenceView, viewModel) {
24
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_terrainexcavationext", null);
192
+ (0,defineProperty/* default */.Z)(this, "_terrainexcavationext", null);
25
193
 
26
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_terrainmodification", null);
194
+ (0,defineProperty/* default */.Z)(this, "_terrainmodification", null);
27
195
 
28
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_drawManager", null);
196
+ (0,defineProperty/* default */.Z)(this, "_drawManager", null);
29
197
 
30
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_globaOptions", {});
198
+ (0,defineProperty/* default */.Z)(this, "_globaOptions", {});
31
199
 
32
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_positions", []);
200
+ (0,defineProperty/* default */.Z)(this, "_positions", []);
33
201
 
34
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_terrainStyle", null);
202
+ (0,defineProperty/* default */.Z)(this, "_terrainStyle", null);
35
203
 
36
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_height", 0);
204
+ (0,defineProperty/* default */.Z)(this, "_height", 0);
37
205
 
38
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_removeEventListener", null);
206
+ (0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
39
207
 
40
208
  this._globaOptions.viewer = scenceView._viewer;
41
209
  this._globaOptions.viewer.scene.logarithmicDepthBuffer = false;
@@ -148,13 +316,23 @@ class TerrainOperationViewModel {
148
316
  start() {
149
317
  // 判断是否添加了地形
150
318
  if (this._globaOptions.viewer.terrainProvider.availability) {
151
- this.clear();
319
+ if (this._globaOptions.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
320
+ this.clear();
152
321
 
153
- this._drawManager.startDraw("polygon", {
154
- clampToGround: true
155
- });
322
+ this._drawManager.startDraw("polygon", {
323
+ clampToGround: true
324
+ });
325
+ } else {
326
+ (0,message/* default */.Z)({
327
+ message: "只支持STK类型的地形分析!",
328
+ type: "warning"
329
+ });
330
+ }
156
331
  } else {
157
- throw "请加载地形后分析!";
332
+ (0,message/* default */.Z)({
333
+ message: "请加载地形后分析!",
334
+ type: "warning"
335
+ });
158
336
  }
159
337
  } //改变分析类型
160
338
 
@@ -214,153 +392,6 @@ class TerrainOperationViewModel {
214
392
  }
215
393
 
216
394
  }
217
-
218
- /***/ }),
219
-
220
- /***/ 348:
221
- /***/ (function(module) {
222
-
223
- module.exports = require("@kq_npm/client_icons_vue");
224
-
225
- /***/ }),
226
-
227
- /***/ 826:
228
- /***/ (function(module) {
229
-
230
- module.exports = require("@kq_npm/client_common_vue/_utils/gis-utils");
231
-
232
- /***/ }),
233
-
234
- /***/ 9519:
235
- /***/ (function(module) {
236
-
237
- module.exports = require("@kq_npm/client_common_vue/_utils/util");
238
-
239
- /***/ }),
240
-
241
- /***/ 5406:
242
- /***/ (function(module) {
243
-
244
- module.exports = require("@kq_npm/client_common_vue/init.js");
245
-
246
- /***/ }),
247
-
248
- /***/ 637:
249
- /***/ (function(module) {
250
-
251
- module.exports = require("vue");
252
-
253
- /***/ }),
254
-
255
- /***/ 8270:
256
- /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
257
-
258
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
259
- /* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
260
- /* harmony export */ });
261
- function _defineProperty(obj, key, value) {
262
- if (key in obj) {
263
- Object.defineProperty(obj, key, {
264
- value: value,
265
- enumerable: true,
266
- configurable: true,
267
- writable: true
268
- });
269
- } else {
270
- obj[key] = value;
271
- }
272
-
273
- return obj;
274
- }
275
-
276
- /***/ })
277
-
278
- /******/ });
279
- /************************************************************************/
280
- /******/ // The module cache
281
- /******/ var __webpack_module_cache__ = {};
282
- /******/
283
- /******/ // The require function
284
- /******/ function __webpack_require__(moduleId) {
285
- /******/ // Check if module is in cache
286
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
287
- /******/ if (cachedModule !== undefined) {
288
- /******/ return cachedModule.exports;
289
- /******/ }
290
- /******/ // Create a new module (and put it into the cache)
291
- /******/ var module = __webpack_module_cache__[moduleId] = {
292
- /******/ // no module.id needed
293
- /******/ // no module.loaded needed
294
- /******/ exports: {}
295
- /******/ };
296
- /******/
297
- /******/ // Execute the module function
298
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
299
- /******/
300
- /******/ // Return the exports of the module
301
- /******/ return module.exports;
302
- /******/ }
303
- /******/
304
- /************************************************************************/
305
- /******/ /* webpack/runtime/compat get default export */
306
- /******/ !function() {
307
- /******/ // getDefaultExport function for compatibility with non-harmony modules
308
- /******/ __webpack_require__.n = function(module) {
309
- /******/ var getter = module && module.__esModule ?
310
- /******/ function() { return module['default']; } :
311
- /******/ function() { return module; };
312
- /******/ __webpack_require__.d(getter, { a: getter });
313
- /******/ return getter;
314
- /******/ };
315
- /******/ }();
316
- /******/
317
- /******/ /* webpack/runtime/define property getters */
318
- /******/ !function() {
319
- /******/ // define getter functions for harmony exports
320
- /******/ __webpack_require__.d = function(exports, definition) {
321
- /******/ for(var key in definition) {
322
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
323
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
324
- /******/ }
325
- /******/ }
326
- /******/ };
327
- /******/ }();
328
- /******/
329
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
330
- /******/ !function() {
331
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
332
- /******/ }();
333
- /******/
334
- /******/ /* webpack/runtime/make namespace object */
335
- /******/ !function() {
336
- /******/ // define __esModule on exports
337
- /******/ __webpack_require__.r = function(exports) {
338
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
339
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
340
- /******/ }
341
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
342
- /******/ };
343
- /******/ }();
344
- /******/
345
- /************************************************************************/
346
- var __webpack_exports__ = {};
347
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
348
- !function() {
349
- // ESM COMPAT FLAG
350
- __webpack_require__.r(__webpack_exports__);
351
-
352
- // EXPORTS
353
- __webpack_require__.d(__webpack_exports__, {
354
- "TerrainOperationViewModel": function() { return /* reexport */ TerrainOperationViewModel/* default */.Z; },
355
- "default": function() { return /* reexport */ TerrainOperation; }
356
- });
357
-
358
- // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
359
- var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
360
- // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
361
- var gis_utils_ = __webpack_require__(826);
362
- // EXTERNAL MODULE: ./src/webgl/terrainoperation/TerrainOperationViewModel.js
363
- var TerrainOperationViewModel = __webpack_require__(5925);
364
395
  // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
365
396
  var client_icons_vue_ = __webpack_require__(348);
366
397
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
@@ -475,7 +506,7 @@ const __default__ = {
475
506
  }
476
507
 
477
508
  language.value = scenceView._language;
478
- viewModel = new TerrainOperationViewModel/* default */.Z(scenceView, {
509
+ viewModel = new TerrainOperationViewModel(scenceView, {
479
510
  terrainStyle: formItem.terrainStyle,
480
511
  excavationDepth: formItem.excavationDepth
481
512
  });