@kq_npm/client3d_webgl_vue 4.5.2 → 4.5.4-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.
Files changed (63) hide show
  1. package/adddata/index.js +355 -538
  2. package/adddata/style/adddata.css +1 -1
  3. package/aspectanalysis/index.js +172 -239
  4. package/baseterraingallery/index.js +124 -145
  5. package/boxclip/index.js +300 -481
  6. package/clientPrint/index.js +335 -898
  7. package/clientPrint/style/clientPrint.css +1 -1
  8. package/comparemap/index.js +226 -246
  9. package/compass/index.js +96 -84
  10. package/excavatefillanalysis/index.js +193 -263
  11. package/fixedzoomin/index.js +91 -76
  12. package/fixedzoomout/index.js +91 -76
  13. package/flight/index.js +311 -415
  14. package/flight/style/flight.css +1 -1
  15. package/floodanalysis/index.js +255 -393
  16. package/geologicalbodyanalysis/index.js +215 -298
  17. package/gpuspatialquery/index.js +260 -402
  18. package/hawkeye/index.js +141 -103
  19. package/headertemp/index.js +25 -34
  20. package/heatmap3d/index.js +451 -763
  21. package/heatmap3d/style/heatmap3d.css +1 -1
  22. package/index.js +20826 -17774
  23. package/isolineanalysis/index.js +566 -1243
  24. package/light/index.js +353 -488
  25. package/limitheightanalysis/index.js +251 -312
  26. package/measure/index.js +350 -504
  27. package/modelFlat/index.js +214 -234
  28. package/modelexcavate/index.js +206 -262
  29. package/modelfilter/index.js +229 -308
  30. package/modelprofileanalysis/index.js +356 -465
  31. package/modelselect/index.js +192 -184
  32. package/package.json +1 -1
  33. package/particleeffect/index.js +259 -430
  34. package/planeclip/index.js +249 -339
  35. package/resetview/index.js +89 -69
  36. package/roller/index.js +307 -363
  37. package/scaneffect/index.js +285 -582
  38. package/sceneadvancedtoimage/index.js +1055 -0
  39. package/sceneadvancedtoimage/style/index.js +3 -0
  40. package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -0
  41. package/sceneapp/index.js +11149 -0
  42. package/sceneset/index.js +393 -885
  43. package/scenetohdimage/index.js +214 -346
  44. package/scenetohdimage/style/scenetohdimage.css +1 -1
  45. package/sceneview/index.js +22780 -19540
  46. package/sceneview/style/sceneview.css +1 -1
  47. package/screenshot/index.js +275 -312
  48. package/shadowanalysis/index.js +269 -448
  49. package/sightlineanalysis/index.js +231 -312
  50. package/sightlineanalysis/style/divpoint.css +1 -1
  51. package/skylineanalysis/index.js +213 -351
  52. package/slopeanalysis/index.js +282 -444
  53. package/slopeaspectanalysis/index.js +315 -534
  54. package/statusbar/index.js +194 -164
  55. package/style.css +1 -1
  56. package/terrainoperation/index.js +230 -280
  57. package/terrainprofileanalysis/index.js +174 -182
  58. package/underground/index.js +98 -82
  59. package/videofusion/index.js +319 -532
  60. package/videoproject/index.js +325 -534
  61. package/viewshedanalysis/index.js +178 -275
  62. package/weathereffect/index.js +199 -343
  63. package/wireframesketch/index.js +146 -150
@@ -7,101 +7,141 @@
7
7
  var a = typeof exports === 'object' ? factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/_utils/util")) : factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/init.js"], root["@kq_npm/client_common_vue/_utils/util"]);
8
8
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
9
  }
10
- })(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__7997__, __WEBPACK_EXTERNAL_MODULE__3458__) {
10
+ })(this, function(__WEBPACK_EXTERNAL_MODULE__154__, __WEBPACK_EXTERNAL_MODULE__64__, __WEBPACK_EXTERNAL_MODULE__455__, __WEBPACK_EXTERNAL_MODULE__2975__) {
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
- /***/ 3694:
15
+ /***/ 3275:
16
16
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
17
 
18
+ /* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6363);
19
+ /* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__);
20
+ /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(455);
21
+ /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
22
+ /*
23
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
24
+ * All rights reserved.
25
+ */
18
26
 
19
- // EXPORTS
20
- __webpack_require__.d(__webpack_exports__, {
21
- "Z": function() { return /* binding */ message; }
22
- });
23
27
 
24
- ;// CONCATENATED MODULE: external "element-plus/dist/index.full.js"
25
- var index_full_js_namespaceObject = require("element-plus/dist/index.full.js");
26
- // EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
27
- var init_js_ = __webpack_require__(7997);
28
- var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
29
- ;// CONCATENATED MODULE: ./src/common/_ui/message/index.js
28
+ element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
29
+ _init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
30
+ Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
31
+ };
32
+ /* harmony default export */ __webpack_exports__.A = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
33
+
34
+ /***/ }),
30
35
 
36
+ /***/ 5698:
37
+ /***/ (function(module) {
31
38
 
39
+ module.exports = require("@kq_npm/client_icons_vue");
32
40
 
33
- index_full_js_namespaceObject.ElMessage.install = (Vue, opts) => {
34
- init_js_default()(Vue, opts);
35
- Vue.component("KqMessage", index_full_js_namespaceObject.ElMessage);
36
- };
41
+ /***/ }),
37
42
 
38
- /* harmony default export */ var message = (index_full_js_namespaceObject.ElMessage);
43
+ /***/ 2652:
44
+ /***/ (function(module) {
45
+
46
+ module.exports = require("core-js/modules/es.array.push.js");
39
47
 
40
48
  /***/ }),
41
49
 
42
- /***/ 348:
50
+ /***/ 6363:
43
51
  /***/ (function(module) {
44
52
 
45
- module.exports = require("@kq_npm/client_icons_vue");
53
+ module.exports = require("element-plus/dist/index.full.js");
46
54
 
47
55
  /***/ }),
48
56
 
49
- /***/ 7080:
57
+ /***/ 3579:
50
58
  /***/ (function(module) {
51
59
 
52
60
  module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
53
61
 
54
62
  /***/ }),
55
63
 
56
- /***/ 7135:
64
+ /***/ 64:
57
65
  /***/ (function(module) {
58
66
 
59
- module.exports = __WEBPACK_EXTERNAL_MODULE__7135__;
67
+ module.exports = __WEBPACK_EXTERNAL_MODULE__64__;
60
68
 
61
69
  /***/ }),
62
70
 
63
- /***/ 3458:
71
+ /***/ 2975:
64
72
  /***/ (function(module) {
65
73
 
66
- module.exports = __WEBPACK_EXTERNAL_MODULE__3458__;
74
+ module.exports = __WEBPACK_EXTERNAL_MODULE__2975__;
67
75
 
68
76
  /***/ }),
69
77
 
70
- /***/ 7997:
78
+ /***/ 455:
71
79
  /***/ (function(module) {
72
80
 
73
- module.exports = __WEBPACK_EXTERNAL_MODULE__7997__;
81
+ module.exports = __WEBPACK_EXTERNAL_MODULE__455__;
74
82
 
75
83
  /***/ }),
76
84
 
77
- /***/ 1895:
85
+ /***/ 154:
78
86
  /***/ (function(module) {
79
87
 
80
- module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
88
+ module.exports = __WEBPACK_EXTERNAL_MODULE__154__;
81
89
 
82
90
  /***/ }),
83
91
 
84
- /***/ 8270:
92
+ /***/ 6913:
85
93
  /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
86
94
 
87
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
88
- /* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
89
- /* harmony export */ });
90
- function _defineProperty(obj, key, value) {
91
- if (key in obj) {
92
- Object.defineProperty(obj, key, {
93
- value: value,
94
- enumerable: true,
95
- configurable: true,
96
- writable: true
97
- });
98
- } else {
99
- obj[key] = value;
95
+
96
+ // EXPORTS
97
+ __webpack_require__.d(__webpack_exports__, {
98
+ A: function() { return /* binding */ _defineProperty; }
99
+ });
100
+
101
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
102
+ function _typeof(o) {
103
+ "@babel/helpers - typeof";
104
+
105
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
106
+ return typeof o;
107
+ } : function (o) {
108
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
109
+ }, _typeof(o);
110
+ }
111
+
112
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
113
+
114
+ function toPrimitive(t, r) {
115
+ if ("object" != _typeof(t) || !t) return t;
116
+ var e = t[Symbol.toPrimitive];
117
+ if (void 0 !== e) {
118
+ var i = e.call(t, r || "default");
119
+ if ("object" != _typeof(i)) return i;
120
+ throw new TypeError("@@toPrimitive must return a primitive value.");
100
121
  }
122
+ return ("string" === r ? String : Number)(t);
123
+ }
101
124
 
102
- return obj;
125
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
126
+
127
+
128
+ function toPropertyKey(t) {
129
+ var i = toPrimitive(t, "string");
130
+ return "symbol" == _typeof(i) ? i : i + "";
103
131
  }
104
132
 
133
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
134
+
135
+ function _defineProperty(e, r, t) {
136
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
137
+ value: t,
138
+ enumerable: !0,
139
+ configurable: !0,
140
+ writable: !0
141
+ }) : e[r] = t, e;
142
+ }
143
+
144
+
105
145
  /***/ })
106
146
 
107
147
  /******/ });
@@ -173,66 +213,61 @@ function _defineProperty(obj, key, value) {
173
213
  /******/
174
214
  /************************************************************************/
175
215
  var __webpack_exports__ = {};
176
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
177
- !function() {
178
216
  // ESM COMPAT FLAG
179
217
  __webpack_require__.r(__webpack_exports__);
180
218
 
181
219
  // EXPORTS
182
220
  __webpack_require__.d(__webpack_exports__, {
183
- "TerrainProfileAnalysisViewModel": function() { return /* reexport */ TerrainProfileAnalysisViewModel; },
221
+ TerrainProfileAnalysisViewModel: function() { return /* reexport */ TerrainProfileAnalysisViewModel; },
184
222
  "default": function() { return /* reexport */ TerrainProfileAnalysis; }
185
223
  });
186
224
 
187
225
  // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
188
- var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
226
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(154);
189
227
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
190
- var gis_utils_ = __webpack_require__(7135);
191
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
192
- var defineProperty = __webpack_require__(8270);
193
- // EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
194
- var message = __webpack_require__(3694);
228
+ var gis_utils_ = __webpack_require__(64);
229
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
230
+ var defineProperty = __webpack_require__(6913);
231
+ // EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
232
+ var es_array_push_js_ = __webpack_require__(2652);
233
+ // EXTERNAL MODULE: ./src/common/_ui/message/index.js
234
+ var message = __webpack_require__(3275);
195
235
  ;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/TerrainProfileAnalysisViewModel.js
196
236
 
197
237
 
238
+ /*
239
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
240
+ * All rights reserved.
241
+ */
242
+
198
243
  class TerrainProfileAnalysisViewModel {
199
- // 三维viewer对象
200
- //绘制管理对象
201
- //绘制完成监听事件
202
- //分析结束事件
203
244
  constructor(scenceView, option) {
204
- (0,defineProperty/* default */.Z)(this, "_viewer", null);
205
-
206
- (0,defineProperty/* default */.Z)(this, "_terrainSlopeAnalyse", null);
207
-
208
- (0,defineProperty/* default */.Z)(this, "_analyseHeight", 1000);
209
-
210
- (0,defineProperty/* default */.Z)(this, "_drawManager", null);
211
-
212
- (0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
213
-
214
- (0,defineProperty/* default */.Z)(this, "minHeight", null);
215
-
216
- (0,defineProperty/* default */.Z)(this, "maxHeight", null);
217
-
218
- (0,defineProperty/* default */.Z)(this, "distance", null);
219
-
220
- (0,defineProperty/* default */.Z)(this, "divPointArr", []);
221
-
222
- (0,defineProperty/* default */.Z)(this, "languageDta", {});
223
-
224
- (0,defineProperty/* default */.Z)(this, "coordDivpoint", null);
225
-
245
+ (0,defineProperty/* default */.A)(this, "_viewer", null);
246
+ // 三维viewer对象
247
+ (0,defineProperty/* default */.A)(this, "_terrainSlopeAnalyse", null);
248
+ (0,defineProperty/* default */.A)(this, "_analyseHeight", 1000);
249
+ (0,defineProperty/* default */.A)(this, "_drawManager", null);
250
+ //绘制管理对象
251
+ (0,defineProperty/* default */.A)(this, "_removeEventListener", null);
252
+ //绘制完成监听事件
253
+ //分析结束事件
254
+ (0,defineProperty/* default */.A)(this, "minHeight", null);
255
+ (0,defineProperty/* default */.A)(this, "maxHeight", null);
256
+ (0,defineProperty/* default */.A)(this, "distance", null);
257
+ (0,defineProperty/* default */.A)(this, "divPointArr", []);
258
+ (0,defineProperty/* default */.A)(this, "languageDta", {});
259
+ (0,defineProperty/* default */.A)(this, "coordDivpoint", null);
226
260
  this._viewer = scenceView._viewer;
227
261
  this._drawManager = scenceView._drawManager;
228
- this._analyseHeight = option.analyseHeight; // 开启对数缓冲区 减少视锥体中多视锥体 减少重绘次数提高性能
262
+ this._analyseHeight = option.analyseHeight;
229
263
 
264
+ // 开启对数缓冲区 减少视锥体中多视锥体 减少重绘次数提高性能
230
265
  this._viewer.scene.logarithmicDepthBuffer = false;
231
- this._viewer.scene.pickTranslucentDepth = true; // 默认
232
-
266
+ this._viewer.scene.pickTranslucentDepth = true;
267
+ // 默认
233
268
  this._viewer.resolutionScale = 1.2;
234
- this._viewer.postProcessStages.fxaa.enabled = true; // 开启深度检测
235
-
269
+ this._viewer.postProcessStages.fxaa.enabled = true;
270
+ // 开启深度检测
236
271
  this._viewer.scene.globe.depthTestAgainstTerrain = true;
237
272
  this._viewer.scene.pickTranslucentDepth = true;
238
273
  this._terrainSlopeAnalyse = new window.Cesium.Kq3dSlope2({
@@ -243,11 +278,10 @@ class TerrainProfileAnalysisViewModel {
243
278
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
244
279
  if (shape) {
245
280
  that._terrainSlopeAnalyse.startAnalyse(shape._controlPoints);
246
-
247
281
  that._drawManager.clear();
248
282
  }
249
- }); //分析结束事件
250
-
283
+ });
284
+ //分析结束事件
251
285
  this._terrainSlopeAnalyse.analyseEndEvent.addEventListener(function (res) {
252
286
  that.minHeight = res.minHeight;
253
287
  that.maxHeight = res.maxHeight;
@@ -259,13 +293,10 @@ class TerrainProfileAnalysisViewModel {
259
293
  that.createInfoDivPoint(that.languageDta.minHeight, that.minHeight.toFixed(3), window.Cesium.Cartographic.toCartesian(minPos));
260
294
  that.createInfoDivPoint(that.languageDta.maxHeight, that.maxHeight.toFixed(3), window.Cesium.Cartographic.toCartesian(maxPos));
261
295
  });
262
-
263
296
  var handler = new window.Cesium.ScreenSpaceEventHandler(this._viewer.canvas);
264
297
  handler.setInputAction(function (movement) {
265
298
  var position = that._viewer.scene.pickPosition(movement.endPosition);
266
-
267
299
  var pickedObject = that._viewer.scene.pick(movement.endPosition);
268
-
269
300
  if (pickedObject && pickedObject.id instanceof window.Cesium.Entity && pickedObject.id.wall) {
270
301
  //获取当前点的地形高度,在坡度分析墙的上方显示详细信息面板
271
302
  var carto = window.Cesium.Cartographic.fromCartesian(position);
@@ -284,13 +315,11 @@ class TerrainProfileAnalysisViewModel {
284
315
  }
285
316
  }, window.Cesium.ScreenSpaceEventType.MOUSE_MOVE);
286
317
  }
287
-
288
318
  changeLanguage(val) {
289
319
  this.languageDta = val;
290
320
  this.clear();
291
- } //创建当前点坐标信息面板"longitude": "经度","latitude": "纬度",
292
-
293
-
321
+ }
322
+ //创建当前点坐标信息面板"longitude": "经度","latitude": "纬度",
294
323
  createInfoDivPoint2(lon, lat, height, maxHeight, distance, position) {
295
324
  let html = `<div class="coord">
296
325
  <div class="text">
@@ -302,13 +331,12 @@ class TerrainProfileAnalysisViewModel {
302
331
  </div>
303
332
  <div class="pole"></div>
304
333
  <div class="ball"></div>
305
- </div>`; //初始化DivPoint
306
-
334
+ </div>`;
335
+ //初始化DivPoint
307
336
  if (this.coordDivpoint) {
308
337
  this.coordDivpoint.destroy();
309
338
  this.coordDivpoint = null;
310
339
  }
311
-
312
340
  this.coordDivpoint = new window.Cesium.Kq3dHtmlTag(this._viewer, {
313
341
  html: html,
314
342
  position: position,
@@ -316,16 +344,15 @@ class TerrainProfileAnalysisViewModel {
316
344
  noEvent: true
317
345
  });
318
346
  this.divPointArr.push(this.coordDivpoint);
319
- } //创建最高最低点信息面板
320
-
321
-
347
+ }
348
+ //创建最高最低点信息面板
322
349
  createInfoDivPoint(name, value, position) {
323
350
  let html = `<div class="height">
324
351
  <div class="text">${name}:${value}m</div>
325
352
  <div class="pole"> </div>
326
353
  <div class="ball"></div>
327
- </div>`; //初始化DivPoint
328
-
354
+ </div>`;
355
+ //初始化DivPoint
329
356
  let divPoint = new window.Cesium.Kq3dHtmlTag(this._viewer, {
330
357
  html: html,
331
358
  position: position,
@@ -335,61 +362,54 @@ class TerrainProfileAnalysisViewModel {
335
362
  this.divPointArr.push(divPoint);
336
363
  return divPoint;
337
364
  }
338
-
339
365
  start() {
340
366
  // 判断是否添加了地形
341
367
  if (this._viewer.terrainProvider.availability) {
342
368
  if (this._viewer.terrainProvider instanceof window.Cesium.CesiumTerrainProvider) {
343
369
  this.clear();
344
-
345
370
  this._drawManager.startDraw("polyline", {
346
371
  clampToGround: true
347
372
  });
348
373
  } else {
349
- (0,message/* default */.Z)({
374
+ (0,message/* default */.A)({
350
375
  message: "只支持STK类型的地形分析!",
351
376
  type: "warning"
352
377
  });
353
378
  }
354
379
  } else {
355
- (0,message/* default */.Z)({
380
+ (0,message/* default */.A)({
356
381
  message: "请加载地形后分析!",
357
382
  type: "warning"
358
383
  });
359
384
  }
360
- } //清除
361
-
362
-
385
+ }
386
+ //清除
363
387
  clear() {
364
388
  this._drawManager && this._drawManager.stopDraw();
365
389
  this._terrainSlopeAnalyse && this._terrainSlopeAnalyse.clear();
366
-
367
390
  for (let index = 0; index < this.divPointArr.length; index++) {
368
391
  var divPoint = this.divPointArr[index];
369
-
370
392
  if (divPoint) {
371
393
  divPoint.destroy();
372
394
  }
373
395
  }
374
-
375
396
  this.divPointArr = [];
376
- } //销毁
377
-
397
+ }
378
398
 
399
+ //销毁
379
400
  destroy() {
380
- this.clear(); //移除监听事件
381
-
401
+ this.clear();
402
+ //移除监听事件
382
403
  this._removeEventListener && this._removeEventListener();
383
404
  this._removeEventListener = null;
384
405
  }
385
-
386
406
  }
387
407
  // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
388
- var client_icons_vue_ = __webpack_require__(348);
408
+ var client_icons_vue_ = __webpack_require__(5698);
389
409
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
390
- var util_ = __webpack_require__(3458);
410
+ var util_ = __webpack_require__(2975);
391
411
  // EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
392
- var vue_i18n_cjs_js_ = __webpack_require__(7080);
412
+ var vue_i18n_cjs_js_ = __webpack_require__(3579);
393
413
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/terrainprofileanalysis/TerrainProfileAnalysis.vue?vue&type=script&setup=true&lang=js
394
414
 
395
415
  const _hoisted_1 = {
@@ -400,12 +420,13 @@ const _hoisted_1 = {
400
420
 
401
421
 
402
422
 
403
- //语言
423
+
424
+ //语言
404
425
 
405
426
  const __default__ = {
406
427
  name: "Kq3dTerrainProfileAnalysis"
407
428
  };
408
- /* harmony default export */ var TerrainProfileAnalysisvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
429
+ /* harmony default export */ var TerrainProfileAnalysisvue_type_script_setup_true_lang_js = (/*@__PURE__*/Object.assign(__default__, {
409
430
  props: {
410
431
  //指定组件绑定的viewer对象的div的id
411
432
  mapTarget: String,
@@ -418,7 +439,6 @@ const __default__ = {
418
439
  type: Boolean,
419
440
  default: true
420
441
  },
421
-
422
442
  /**
423
443
  * 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
424
444
  */
@@ -448,29 +468,29 @@ const __default__ = {
448
468
  default: true
449
469
  }
450
470
  },
451
-
452
471
  setup(__props, {
453
- expose
472
+ expose: __expose
454
473
  }) {
455
- const props = __props;
456
474
  let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
457
475
  let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
458
476
  let viewModel = null;
459
477
  let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
460
478
  const {
461
479
  proxy
462
- } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)(); // 获取组件传参
480
+ } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
481
+ // 获取组件传参
482
+ const props = __props;
463
483
  // 组件容器Ref
484
+ let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
464
485
 
465
- let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
466
-
486
+ // 生成组件默认header
467
487
  let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
468
488
  let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
469
489
  let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
470
490
  analyseHeight: props.settingParams && props.settingParams.analyseHeight || 1000 // 分析默认高度
491
+ });
471
492
 
472
- }); // 国际化
473
-
493
+ // 国际化
474
494
  let {
475
495
  locale,
476
496
  messages
@@ -492,7 +512,6 @@ const __default__ = {
492
512
  });
493
513
  currentLang.value = proxy.$i18n.locale; // 获取当前语言
494
514
  //父组件ScenceView初始化完成后执行
495
-
496
515
  gis_utils_.utils.getWebMap(null, scenceView => {
497
516
  if (scenceView) {
498
517
  viewModel = new TerrainProfileAnalysisViewModel(scenceView, {
@@ -502,47 +521,42 @@ const __default__ = {
502
521
  }
503
522
  });
504
523
  });
524
+
505
525
  /**
506
526
  * @description 监听header生成
507
527
  */
508
-
509
528
  const watchCreateHeaderTemp = () => {
510
529
  if (props.showHeaderTemp) {
511
530
  // 生成headerTemp
512
531
  headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
513
532
  }
514
- }; // 开始分析
515
-
516
-
533
+ };
534
+ // 开始分析
517
535
  function startAnalysis() {
518
536
  clearResult();
519
537
  viewModel && viewModel.start();
520
- } //清除结果
521
-
522
-
538
+ }
539
+ //清除结果
523
540
  function clearResult() {
524
541
  viewModel && viewModel.clear();
525
- } // 清除
526
-
527
-
542
+ }
543
+ // 清除
528
544
  function clear() {
529
545
  viewModel && viewModel.clear();
530
- } // 销毁
531
-
546
+ }
532
547
 
548
+ // 销毁
533
549
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
534
550
  viewModel && viewModel.destroy();
535
551
  });
536
- expose({
552
+ __expose({
537
553
  startAnalysis,
538
554
  clearResult,
539
555
  clear
540
556
  });
541
557
  return (_ctx, _cache) => {
542
558
  const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
543
-
544
559
  const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
545
-
546
560
  return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
547
561
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-terrain-profile-analysis", {
548
562
  'kq-box-shadow': __props.showShadow
@@ -553,54 +567,31 @@ const __default__ = {
553
567
  key: 0,
554
568
  ref_key: "headerTempRef",
555
569
  ref: headerTempRef
556
- }, null, 512
557
- /* NEED_PATCH */
558
- )) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
570
+ }, null, 512 /* NEED_PATCH */)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
559
571
  class: "kq3d-terrain-profile-analysis-box",
560
572
  ref_key: "ref_box",
561
573
  ref: ref_box
562
574
  }, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
563
575
  class: "kq3d-terrain-profile-analysis-tip"
564
576
  }, {
565
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).profileTips), 1
566
- /* TEXT */
567
- )]),
568
- _: 1
569
- /* STABLE */
570
-
577
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).profileTips), 1 /* TEXT */)]),
578
+ _: 1 /* STABLE */
571
579
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
572
580
  onClick: _cache[0] || (_cache[0] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
573
581
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis,
574
582
  type: "primary"
575
583
  }, {
576
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis), 1
577
- /* TEXT */
578
- )]),
579
- _: 1
580
- /* STABLE */
581
-
582
- }, 8
583
- /* PROPS */
584
- , ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
584
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis), 1 /* TEXT */)]),
585
+ _: 1 /* STABLE */
586
+ }, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
585
587
  onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
586
588
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
587
589
  }, {
588
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult), 1
589
- /* TEXT */
590
- )]),
591
- _: 1
592
- /* STABLE */
593
-
594
- }, 8
595
- /* PROPS */
596
- , ["title"])])], 512
597
- /* NEED_PATCH */
598
- )], 2
599
- /* CLASS */
600
- );
590
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult), 1 /* TEXT */)]),
591
+ _: 1 /* STABLE */
592
+ }, 8 /* PROPS */, ["title"])])], 512 /* NEED_PATCH */)], 2 /* CLASS */);
601
593
  };
602
594
  }
603
-
604
595
  }));
605
596
  ;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/TerrainProfileAnalysis.vue?vue&type=script&setup=true&lang=js
606
597
 
@@ -612,10 +603,13 @@ const __exports__ = TerrainProfileAnalysisvue_type_script_setup_true_lang_js;
612
603
 
613
604
  /* harmony default export */ var TerrainProfileAnalysis = (__exports__);
614
605
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
615
- var init_js_ = __webpack_require__(7997);
606
+ var init_js_ = __webpack_require__(455);
616
607
  var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
617
608
  ;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/index.js
618
-
609
+ /*
610
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
611
+ * All rights reserved.
612
+ */
619
613
 
620
614
 
621
615
 
@@ -624,8 +618,6 @@ TerrainProfileAnalysis.install = (Vue, opts) => {
624
618
  Vue.component(TerrainProfileAnalysis.name, TerrainProfileAnalysis);
625
619
  };
626
620
 
627
-
628
- }();
629
621
  /******/ return __webpack_exports__;
630
622
  /******/ })()
631
623
  ;