@kq_npm/client3d_webgl_vue 3.2.6-beta → 3.2.7-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
- /***/ 3084:
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 */ SkylineAnalysisViewModel; }
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
+ "SkylineAnalysisViewModel": function() { return /* reexport */ SkylineAnalysisViewModel; },
167
+ "default": function() { return /* reexport */ SkylineAnalysis; }
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/skylineanalysis/SkylineAnalysisViewModel.js
12
179
 
13
180
  //天际线分析逻辑类
181
+
14
182
  class SkylineAnalysisViewModel {
15
183
  /**
16
184
  * 天际线分析逻辑类
@@ -27,15 +195,15 @@ class SkylineAnalysisViewModel {
27
195
  * @param {*} option 天际线分析参数对象
28
196
  */
29
197
  constructor(viewer, option) {
30
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_skylineAnalysis", null);
198
+ (0,defineProperty/* default */.Z)(this, "_skylineAnalysis", null);
31
199
 
32
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_skylineAnalysisChart", null);
200
+ (0,defineProperty/* default */.Z)(this, "_skylineAnalysisChart", null);
33
201
 
34
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_skylineAnalysisChartTitle", "");
202
+ (0,defineProperty/* default */.Z)(this, "_skylineAnalysisChartTitle", "");
35
203
 
36
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_options", null);
204
+ (0,defineProperty/* default */.Z)(this, "_options", null);
37
205
 
38
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_showLimitHeightBody", null);
206
+ (0,defineProperty/* default */.Z)(this, "_showLimitHeightBody", null);
39
207
 
40
208
  viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
41
209
 
@@ -89,7 +257,10 @@ class SkylineAnalysisViewModel {
89
257
 
90
258
  this.setSkyline2D();
91
259
  } else {
92
- throw "请添加模型后提取!";
260
+ (0,message/* default */.Z)({
261
+ message: "请添加模型后提取!",
262
+ type: "warning"
263
+ });
93
264
  }
94
265
  }
95
266
  /**
@@ -121,7 +292,10 @@ class SkylineAnalysisViewModel {
121
292
 
122
293
  this._skylineAnalysis.viewer.camera.moveBackward(1);
123
294
  } else {
124
- throw "请添加模型后绘制!";
295
+ (0,message/* default */.Z)({
296
+ message: "请添加模型后提取!",
297
+ type: "warning"
298
+ });
125
299
  }
126
300
  }
127
301
  /**
@@ -277,153 +451,6 @@ class SkylineAnalysisViewModel {
277
451
  }
278
452
 
279
453
  }
280
-
281
- /***/ }),
282
-
283
- /***/ 348:
284
- /***/ (function(module) {
285
-
286
- module.exports = require("@kq_npm/client_icons_vue");
287
-
288
- /***/ }),
289
-
290
- /***/ 826:
291
- /***/ (function(module) {
292
-
293
- module.exports = require("@kq_npm/client_common_vue/_utils/gis-utils");
294
-
295
- /***/ }),
296
-
297
- /***/ 9519:
298
- /***/ (function(module) {
299
-
300
- module.exports = require("@kq_npm/client_common_vue/_utils/util");
301
-
302
- /***/ }),
303
-
304
- /***/ 5406:
305
- /***/ (function(module) {
306
-
307
- module.exports = require("@kq_npm/client_common_vue/init.js");
308
-
309
- /***/ }),
310
-
311
- /***/ 637:
312
- /***/ (function(module) {
313
-
314
- module.exports = require("vue");
315
-
316
- /***/ }),
317
-
318
- /***/ 8270:
319
- /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
320
-
321
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
322
- /* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
323
- /* harmony export */ });
324
- function _defineProperty(obj, key, value) {
325
- if (key in obj) {
326
- Object.defineProperty(obj, key, {
327
- value: value,
328
- enumerable: true,
329
- configurable: true,
330
- writable: true
331
- });
332
- } else {
333
- obj[key] = value;
334
- }
335
-
336
- return obj;
337
- }
338
-
339
- /***/ })
340
-
341
- /******/ });
342
- /************************************************************************/
343
- /******/ // The module cache
344
- /******/ var __webpack_module_cache__ = {};
345
- /******/
346
- /******/ // The require function
347
- /******/ function __webpack_require__(moduleId) {
348
- /******/ // Check if module is in cache
349
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
350
- /******/ if (cachedModule !== undefined) {
351
- /******/ return cachedModule.exports;
352
- /******/ }
353
- /******/ // Create a new module (and put it into the cache)
354
- /******/ var module = __webpack_module_cache__[moduleId] = {
355
- /******/ // no module.id needed
356
- /******/ // no module.loaded needed
357
- /******/ exports: {}
358
- /******/ };
359
- /******/
360
- /******/ // Execute the module function
361
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
362
- /******/
363
- /******/ // Return the exports of the module
364
- /******/ return module.exports;
365
- /******/ }
366
- /******/
367
- /************************************************************************/
368
- /******/ /* webpack/runtime/compat get default export */
369
- /******/ !function() {
370
- /******/ // getDefaultExport function for compatibility with non-harmony modules
371
- /******/ __webpack_require__.n = function(module) {
372
- /******/ var getter = module && module.__esModule ?
373
- /******/ function() { return module['default']; } :
374
- /******/ function() { return module; };
375
- /******/ __webpack_require__.d(getter, { a: getter });
376
- /******/ return getter;
377
- /******/ };
378
- /******/ }();
379
- /******/
380
- /******/ /* webpack/runtime/define property getters */
381
- /******/ !function() {
382
- /******/ // define getter functions for harmony exports
383
- /******/ __webpack_require__.d = function(exports, definition) {
384
- /******/ for(var key in definition) {
385
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
386
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
387
- /******/ }
388
- /******/ }
389
- /******/ };
390
- /******/ }();
391
- /******/
392
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
393
- /******/ !function() {
394
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
395
- /******/ }();
396
- /******/
397
- /******/ /* webpack/runtime/make namespace object */
398
- /******/ !function() {
399
- /******/ // define __esModule on exports
400
- /******/ __webpack_require__.r = function(exports) {
401
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
402
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
403
- /******/ }
404
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
405
- /******/ };
406
- /******/ }();
407
- /******/
408
- /************************************************************************/
409
- var __webpack_exports__ = {};
410
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
411
- !function() {
412
- // ESM COMPAT FLAG
413
- __webpack_require__.r(__webpack_exports__);
414
-
415
- // EXPORTS
416
- __webpack_require__.d(__webpack_exports__, {
417
- "SkylineAnalysisViewModel": function() { return /* reexport */ SkylineAnalysisViewModel/* default */.Z; },
418
- "default": function() { return /* reexport */ SkylineAnalysis; }
419
- });
420
-
421
- // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
422
- var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
423
- // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
424
- var gis_utils_ = __webpack_require__(826);
425
- // EXTERNAL MODULE: ./src/webgl/skylineanalysis/SkylineAnalysisViewModel.js
426
- var SkylineAnalysisViewModel = __webpack_require__(3084);
427
454
  // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
428
455
  var client_icons_vue_ = __webpack_require__(348);
429
456
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
@@ -547,7 +574,7 @@ const __default__ = {
547
574
  gis_utils_.utils.getWebMap(null, scenceView => {
548
575
  if (scenceView) {
549
576
  language.value = scenceView._language;
550
- viewModel = new SkylineAnalysisViewModel/* default */.Z(scenceView._viewer, {
577
+ viewModel = new SkylineAnalysisViewModel(scenceView._viewer, {
551
578
  skylineColor: formItem.skylineColor || "#E6A23C",
552
579
  skylineRadius: formItem.skylineRadius || 1000,
553
580
  limitHeightBodyColor: formItem.limitHeightBodyColor || "#67C23A",
@@ -2,6 +2,33 @@
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
+ /***/ 909:
6
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
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
+
5
32
  /***/ 348:
6
33
  /***/ (function(module) {
7
34
 
@@ -155,10 +182,13 @@ var gis_utils_ = __webpack_require__(826);
155
182
  var defineProperty = __webpack_require__(8270);
156
183
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
157
184
  var const_image_ = __webpack_require__(9702);
185
+ // EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
186
+ var message = __webpack_require__(909);
158
187
  ;// CONCATENATED MODULE: ./src/webgl/slopeanalysis/SlopeAnalysisViewModel.js
159
188
 
160
189
  // 分析逻辑类
161
190
 
191
+
162
192
  class SlopeAnalysisViewModel {
163
193
  // 坡度坡向三维对象
164
194
  constructor(scenceView, viewModel) {
@@ -280,26 +310,36 @@ class SlopeAnalysisViewModel {
280
310
  start() {
281
311
  // 判断是否添加了地形
282
312
  if (this._globaOptions.viewModel.viewer.terrainProvider.availability) {
283
- if (this._globaOptions.viewModel.fillStyle === "slopeFilter") {
284
- // 坡度过滤不需要进行绘制
285
- this._slopeAnalysis = new Cesium.Kq3dSlope({
286
- viewer: this._globaOptions.viewer,
287
- positions: this._defaultPositions,
288
- isFilter: true,
289
- minSlope: this._globaOptions.viewModel.minSlope,
290
- maxSlope: this._globaOptions.viewModel.maxSlope,
291
- color: Cesium.Color.fromCssColorString(this._globaOptions.viewModel.slopeColorText).withAlpha(Number(this._globaOptions.viewModel.slopeColorAlpha))
292
- });
293
- } else {
294
- // this.clear();
295
- if (this._globaOptions._drawManager) {
296
- this._globaOptions._drawManager.startDraw("polygon", {
297
- clampToGround: true
313
+ if (this._globaOptions.viewModel.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
314
+ if (this._globaOptions.viewModel.fillStyle === "slopeFilter") {
315
+ // 坡度过滤不需要进行绘制
316
+ this._slopeAnalysis = new Cesium.Kq3dSlope({
317
+ viewer: this._globaOptions.viewer,
318
+ positions: this._defaultPositions,
319
+ isFilter: true,
320
+ minSlope: this._globaOptions.viewModel.minSlope,
321
+ maxSlope: this._globaOptions.viewModel.maxSlope,
322
+ color: Cesium.Color.fromCssColorString(this._globaOptions.viewModel.slopeColorText).withAlpha(Number(this._globaOptions.viewModel.slopeColorAlpha))
298
323
  });
324
+ } else {
325
+ // this.clear();
326
+ if (this._globaOptions._drawManager) {
327
+ this._globaOptions._drawManager.startDraw("polygon", {
328
+ clampToGround: true
329
+ });
330
+ }
299
331
  }
332
+ } else {
333
+ (0,message/* default */.Z)({
334
+ message: "只支持STK类型的地形分析!",
335
+ type: "warning"
336
+ });
300
337
  }
301
338
  } else {
302
- throw "请加载地形后分析!";
339
+ (0,message/* default */.Z)({
340
+ message: "请加载地形后分析!",
341
+ type: "warning"
342
+ });
303
343
  }
304
344
  } //修改填充样式
305
345