@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,155 @@
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);
30
33
 
34
+ /***/ }),
31
35
 
36
+ /***/ 5698:
37
+ /***/ (function(module) {
32
38
 
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
- };
39
+ module.exports = require("@kq_npm/client_icons_vue");
40
+
41
+ /***/ }),
42
+
43
+ /***/ 2652:
44
+ /***/ (function(module) {
37
45
 
38
- /* harmony default export */ var message = (index_full_js_namespaceObject.ElMessage);
46
+ module.exports = require("core-js/modules/es.array.push.js");
39
47
 
40
48
  /***/ }),
41
49
 
42
- /***/ 348:
50
+ /***/ 3658:
43
51
  /***/ (function(module) {
44
52
 
45
- module.exports = require("@kq_npm/client_icons_vue");
53
+ module.exports = require("core-js/modules/esnext.iterator.constructor.js");
46
54
 
47
55
  /***/ }),
48
56
 
49
- /***/ 7080:
57
+ /***/ 4669:
58
+ /***/ (function(module) {
59
+
60
+ module.exports = require("core-js/modules/esnext.iterator.for-each.js");
61
+
62
+ /***/ }),
63
+
64
+ /***/ 6363:
65
+ /***/ (function(module) {
66
+
67
+ module.exports = require("element-plus/dist/index.full.js");
68
+
69
+ /***/ }),
70
+
71
+ /***/ 3579:
50
72
  /***/ (function(module) {
51
73
 
52
74
  module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
53
75
 
54
76
  /***/ }),
55
77
 
56
- /***/ 7135:
78
+ /***/ 64:
57
79
  /***/ (function(module) {
58
80
 
59
- module.exports = __WEBPACK_EXTERNAL_MODULE__7135__;
81
+ module.exports = __WEBPACK_EXTERNAL_MODULE__64__;
60
82
 
61
83
  /***/ }),
62
84
 
63
- /***/ 3458:
85
+ /***/ 2975:
64
86
  /***/ (function(module) {
65
87
 
66
- module.exports = __WEBPACK_EXTERNAL_MODULE__3458__;
88
+ module.exports = __WEBPACK_EXTERNAL_MODULE__2975__;
67
89
 
68
90
  /***/ }),
69
91
 
70
- /***/ 7997:
92
+ /***/ 455:
71
93
  /***/ (function(module) {
72
94
 
73
- module.exports = __WEBPACK_EXTERNAL_MODULE__7997__;
95
+ module.exports = __WEBPACK_EXTERNAL_MODULE__455__;
74
96
 
75
97
  /***/ }),
76
98
 
77
- /***/ 1895:
99
+ /***/ 154:
78
100
  /***/ (function(module) {
79
101
 
80
- module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
102
+ module.exports = __WEBPACK_EXTERNAL_MODULE__154__;
81
103
 
82
104
  /***/ }),
83
105
 
84
- /***/ 8270:
106
+ /***/ 6913:
85
107
  /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
86
108
 
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;
109
+
110
+ // EXPORTS
111
+ __webpack_require__.d(__webpack_exports__, {
112
+ A: function() { return /* binding */ _defineProperty; }
113
+ });
114
+
115
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
116
+ function _typeof(o) {
117
+ "@babel/helpers - typeof";
118
+
119
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
120
+ return typeof o;
121
+ } : function (o) {
122
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
123
+ }, _typeof(o);
124
+ }
125
+
126
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
127
+
128
+ function toPrimitive(t, r) {
129
+ if ("object" != _typeof(t) || !t) return t;
130
+ var e = t[Symbol.toPrimitive];
131
+ if (void 0 !== e) {
132
+ var i = e.call(t, r || "default");
133
+ if ("object" != _typeof(i)) return i;
134
+ throw new TypeError("@@toPrimitive must return a primitive value.");
100
135
  }
136
+ return ("string" === r ? String : Number)(t);
137
+ }
101
138
 
102
- return obj;
139
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
140
+
141
+
142
+ function toPropertyKey(t) {
143
+ var i = toPrimitive(t, "string");
144
+ return "symbol" == _typeof(i) ? i : i + "";
145
+ }
146
+
147
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
148
+
149
+ function _defineProperty(e, r, t) {
150
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
151
+ value: t,
152
+ enumerable: !0,
153
+ configurable: !0,
154
+ writable: !0
155
+ }) : e[r] = t, e;
103
156
  }
104
157
 
158
+
105
159
  /***/ })
106
160
 
107
161
  /******/ });
@@ -173,80 +227,80 @@ function _defineProperty(obj, key, value) {
173
227
  /******/
174
228
  /************************************************************************/
175
229
  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
230
  // ESM COMPAT FLAG
179
231
  __webpack_require__.r(__webpack_exports__);
180
232
 
181
233
  // EXPORTS
182
234
  __webpack_require__.d(__webpack_exports__, {
183
- "ModelFlatViewModel": function() { return /* reexport */ ModelFlatViewModel; },
235
+ ModelFlatViewModel: function() { return /* reexport */ ModelFlatViewModel; },
184
236
  "default": function() { return /* reexport */ ModelFlat; }
185
237
  });
186
238
 
187
239
  // 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);
240
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(154);
189
241
  // 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);
242
+ var gis_utils_ = __webpack_require__(64);
243
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
244
+ var defineProperty = __webpack_require__(6913);
245
+ // EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
246
+ var es_array_push_js_ = __webpack_require__(2652);
247
+ // EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
248
+ var esnext_iterator_constructor_js_ = __webpack_require__(3658);
249
+ // EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
250
+ var esnext_iterator_for_each_js_ = __webpack_require__(4669);
251
+ // EXTERNAL MODULE: ./src/common/_ui/message/index.js
252
+ var message = __webpack_require__(3275);
195
253
  ;// CONCATENATED MODULE: ./src/webgl/modelFlat/ModelFlatViewModel.js
196
254
 
197
- //模型拾取逻辑类
198
-
199
- class ModelFlatViewModel {
200
- //三维viewer对象
201
- //绘制管理对象
202
- //全局参数
203
- //绘制完成监听事件
204
- // 平整对象
205
- //平整辅助面数组
206
- constructor(scenceView, viewModel) {
207
- (0,defineProperty/* default */.Z)(this, "_viewer", null);
208
-
209
- (0,defineProperty/* default */.Z)(this, "_drawManager", null);
210
-
211
- (0,defineProperty/* default */.Z)(this, "_options", {});
212
255
 
213
- (0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
214
256
 
215
- (0,defineProperty/* default */.Z)(this, "_flatteningPolygonTex", null);
216
257
 
217
- (0,defineProperty/* default */.Z)(this, "_assistPolygons", []);
218
-
219
- (0,defineProperty/* default */.Z)(this, "currentFlatPolygonIndex", -1);
258
+ /*
259
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
260
+ * All rights reserved.
261
+ */
262
+ //模型拾取逻辑类
220
263
 
264
+ class ModelFlatViewModel {
265
+ constructor(scenceView, viewModel) {
266
+ (0,defineProperty/* default */.A)(this, "_viewer", null);
267
+ //三维viewer对象
268
+ (0,defineProperty/* default */.A)(this, "_drawManager", null);
269
+ //绘制管理对象
270
+ (0,defineProperty/* default */.A)(this, "_options", {});
271
+ //全局参数
272
+ (0,defineProperty/* default */.A)(this, "_removeEventListener", null);
273
+ //绘制完成监听事件
274
+ (0,defineProperty/* default */.A)(this, "_flatteningPolygonTex", null);
275
+ // 平整对象
276
+ (0,defineProperty/* default */.A)(this, "_assistPolygons", []);
277
+ //平整辅助面数组
278
+ (0,defineProperty/* default */.A)(this, "currentFlatPolygonIndex", -1);
221
279
  this._viewer = scenceView._viewer;
222
280
  this._options = viewModel;
223
281
  this._viewer.scene.globe.depthTestAgainstTerrain = true;
224
- this._drawManager = scenceView._drawManager; //Create flattenning controller
225
-
226
- let kq3dFlattening = new window.Cesium.Kq3dFlattenning(this._viewer, {}); //Create flattenedPolygonTexture
227
-
282
+ this._drawManager = scenceView._drawManager;
283
+ //Create flattenning controller
284
+ let kq3dFlattening = new window.Cesium.Kq3dFlattenning(this._viewer, {});
285
+ //Create flattenedPolygonTexture
228
286
  this._flatteningPolygonTex = kq3dFlattening.createFlattenedPolygonTexture();
229
287
  var models = this._viewer.scene.primitives._primitives;
230
-
231
288
  for (let i = 0; i < models.length; i++) {
232
289
  if (models[i]._url) {
233
290
  //Attach 3dTiles
234
291
  this._flatteningPolygonTex.attachTileset(models[i]);
235
292
  }
236
293
  }
237
-
238
294
  let that = this;
239
295
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
240
296
  if (shape) {
241
297
  that._options.positions = shape._controlPoints;
242
298
  that.createFlat();
243
-
244
299
  that._drawManager.clear();
245
300
  }
246
301
  });
247
- } // 创建平整
248
-
249
-
302
+ }
303
+ // 创建平整
250
304
  createFlat() {
251
305
  // 创建压平面
252
306
  let curAssitPolygon = this._viewer.entities.add({
@@ -256,63 +310,51 @@ class ModelFlatViewModel {
256
310
  },
257
311
  show: this._options.flatteningShow ? true : false
258
312
  });
259
-
260
313
  this._assistPolygons.push(curAssitPolygon);
261
-
262
314
  let myPolygon = window.Cesium.PolygonGeometry.fromPositions({
263
315
  positions: this._options.positions,
264
316
  height: this._options.flatHeight
265
317
  });
266
-
267
318
  this._flatteningPolygonTex.addFlattenedPolygon(myPolygon);
268
- } // 获取平整数量
269
-
270
-
319
+ }
320
+ // 获取平整数量
271
321
  getFlatCount() {
272
322
  return this._flatteningPolygonTex.getFlattenedPolygons().length;
273
- } // 开始分析
274
-
275
-
323
+ }
324
+ // 开始分析
276
325
  start() {
277
326
  // 判断是否添加了模型
278
327
  var flag = false;
279
328
  var models = this._viewer.scene.primitives._primitives;
280
-
281
329
  for (let i = 0; i < models.length; i++) {
282
330
  if (models[i]._url) {
283
331
  flag = true;
284
332
  }
285
333
  }
286
-
287
334
  if (flag) {
288
335
  this.remove();
289
-
290
336
  this._drawManager.startDraw("polygon", {
291
337
  clampToGround: true
292
338
  });
293
339
  } else {
294
- (0,message/* default */.Z)({
340
+ (0,message/* default */.A)({
295
341
  message: "请添加模型后绘制!",
296
342
  type: "warning"
297
343
  });
298
344
  }
299
- } // 切换高度重新计算
300
-
301
-
345
+ }
346
+ // 切换高度重新计算
302
347
  setHeight(val) {
303
348
  this._options.flatHeight = Number(val);
304
-
305
349
  if (this.currentFlatPolygonIndex === -1) {
306
350
  this._flatteningPolygonTex.setFlattenedPolygonHeight(-1, Number(val));
307
351
  } else {
308
352
  this._flatteningPolygonTex.setFlattenedPolygonHeight(this.currentFlatPolygonIndex, Number(val));
309
353
  }
310
- } // 切换辅助面显示
311
-
312
-
354
+ }
355
+ // 切换辅助面显示
313
356
  setFlatteningShow(val) {
314
357
  this._options.flatteningShow = val;
315
-
316
358
  if (val) {
317
359
  this._assistPolygons.forEach(item => {
318
360
  item.show = true;
@@ -322,43 +364,35 @@ class ModelFlatViewModel {
322
364
  item.show = false;
323
365
  });
324
366
  }
325
- } // 设置平整实例
326
-
327
-
367
+ }
368
+ // 设置平整实例
328
369
  setCurrentFlatPolygonIndex(val) {
329
370
  this.currentFlatPolygonIndex = val;
330
- } // 清除绘制
331
-
332
-
371
+ }
372
+ // 清除绘制
333
373
  remove() {
334
374
  this._drawManager.stopDraw();
335
- } // 清除
336
-
337
-
375
+ }
376
+ // 清除
338
377
  clear() {
339
378
  this.remove();
340
-
341
379
  this._flatteningPolygonTex.removeAllFlattenedPolygon();
342
-
343
380
  for (var i = 0; i < this._assistPolygons.length; i++) {
344
381
  this._viewer.entities.remove(this._assistPolygons[i]);
345
382
  }
346
-
347
383
  this._assistPolygons = [];
348
- } //销毁
349
-
350
-
384
+ }
385
+ //销毁
351
386
  destroy() {
352
387
  this.clear();
353
388
  }
354
-
355
389
  }
356
390
  // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
357
- var client_icons_vue_ = __webpack_require__(348);
391
+ var client_icons_vue_ = __webpack_require__(5698);
358
392
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
359
- var util_ = __webpack_require__(3458);
393
+ var util_ = __webpack_require__(2975);
360
394
  // EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
361
- var vue_i18n_cjs_js_ = __webpack_require__(7080);
395
+ var vue_i18n_cjs_js_ = __webpack_require__(3579);
362
396
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelFlat/ModelFlat.vue?vue&type=script&setup=true&lang=js
363
397
 
364
398
  const _hoisted_1 = {
@@ -379,12 +413,14 @@ const _hoisted_4 = {
379
413
 
380
414
 
381
415
 
382
- //语言
416
+
417
+
418
+ //语言
383
419
 
384
420
  const __default__ = {
385
421
  name: "Kq3dModelFlat"
386
422
  };
387
- /* harmony default export */ var ModelFlatvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
423
+ /* harmony default export */ var ModelFlatvue_type_script_setup_true_lang_js = (/*@__PURE__*/Object.assign(__default__, {
388
424
  props: {
389
425
  // 设置参数
390
426
  settingParams: {
@@ -395,7 +431,6 @@ const __default__ = {
395
431
  type: Boolean,
396
432
  default: true
397
433
  },
398
-
399
434
  /**
400
435
  * 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
401
436
  */
@@ -425,14 +460,14 @@ const __default__ = {
425
460
  default: true
426
461
  }
427
462
  },
428
-
429
463
  setup(__props, {
430
- expose
464
+ expose: __expose
431
465
  }) {
432
- const props = __props;
433
466
  let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
434
- let viewModel = null; // 获取组件传参
467
+ let viewModel = null;
435
468
 
469
+ // 获取组件传参
470
+ const props = __props;
436
471
  let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
437
472
  flatHeight: props.settingParams && props.settingParams.excavationDepth || 10,
438
473
  // 模型平整深度
@@ -441,14 +476,16 @@ const __default__ = {
441
476
  maxFlatDepth: props.settingParams && props.settingParams.maxExcavationDepth || 100,
442
477
  // 模型平整深度范围最大值
443
478
  flatteningShow: props.settingParams && props.settingParams.maxExcavationDepth || true // 压平面是否显示
479
+ });
444
480
 
445
- }); // 组件容器Ref
446
-
447
- let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
481
+ // 组件容器Ref
482
+ let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
448
483
 
484
+ // 生成组件默认header
449
485
  let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
450
- let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
486
+ let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
451
487
 
488
+ // 国际化
452
489
  let {
453
490
  locale,
454
491
  messages
@@ -466,8 +503,9 @@ const __default__ = {
466
503
  watchCreateHeaderTemp();
467
504
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
468
505
  watchCreateHeaderTemp();
469
- }); //父组件ScenceView初始化完成后执行
506
+ });
470
507
 
508
+ //父组件ScenceView初始化完成后执行
471
509
  gis_utils_.utils.getWebMap(null, scenceView => {
472
510
  if (scenceView) {
473
511
  viewModel = new ModelFlatViewModel(scenceView, {
@@ -481,69 +519,57 @@ const __default__ = {
481
519
  }
482
520
  });
483
521
  });
522
+
484
523
  /**
485
524
  * @description 监听header生成
486
525
  */
487
-
488
526
  const watchCreateHeaderTemp = () => {
489
527
  if (props.showHeaderTemp) {
490
528
  // 生成headerTemp
491
529
  headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
492
530
  }
493
- }; // 调整平整深度
494
-
495
-
531
+ };
532
+ // 调整平整深度
496
533
  function changeHeight() {
497
534
  viewModel && viewModel.setHeight(formItem.flatHeight);
498
- } // 调整压平面是否显示
499
-
500
-
535
+ }
536
+ // 调整压平面是否显示
501
537
  function onChangeFlatteningShow() {
502
538
  viewModel && viewModel.setFlatteningShow(formItem.flatteningShow);
503
- } // 获取平整分析个数
504
-
505
-
539
+ }
540
+ // 获取平整分析个数
506
541
  function getFlatCount() {
507
542
  return viewModel && viewModel.getFlatCount();
508
- } // 设置操作平整实例
509
-
510
-
543
+ }
544
+ // 设置操作平整实例
511
545
  function setCurrentFlatPolygonIndex(val) {
512
546
  viewModel && viewModel.setCurrentFlatPolygonIndex(val);
513
- } // 开始分析
514
-
515
-
547
+ }
548
+ // 开始分析
516
549
  function startOperation() {
517
550
  viewModel && viewModel.start();
518
- } // 清除
519
-
520
-
551
+ }
552
+ // 清除
521
553
  function clear() {
522
554
  viewModel && viewModel.clear();
523
- } // 销毁
524
-
555
+ }
525
556
 
557
+ // 销毁
526
558
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
527
559
  viewModel && viewModel.destroy();
528
560
  });
529
- expose({
561
+ __expose({
530
562
  getFlatCount,
531
563
  setCurrentFlatPolygonIndex,
532
564
  clear
533
565
  });
534
566
  return (_ctx, _cache) => {
535
567
  const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
536
-
537
568
  const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
538
-
539
569
  const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
540
-
541
570
  const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
542
-
543
571
  const _component_kq_switch = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-switch");
544
-
545
572
  const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
546
-
547
573
  return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
548
574
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-flat", {
549
575
  'kq-box-shadow': __props.showShadow
@@ -554,20 +580,14 @@ const __default__ = {
554
580
  key: 0,
555
581
  ref_key: "headerTempRef",
556
582
  ref: headerTempRef
557
- }, null, 512
558
- /* NEED_PATCH */
559
- )) : (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", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
583
+ }, 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", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
560
584
  gutter: 10
561
585
  }, {
562
586
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
563
587
  span: 7
564
588
  }, {
565
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).flatHeight), 1
566
- /* TEXT */
567
- )]),
568
- _: 1
569
- /* STABLE */
570
-
589
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).flatHeight), 1 /* TEXT */)]),
590
+ _: 1 /* STABLE */
571
591
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
572
592
  span: 11
573
593
  }, {
@@ -579,12 +599,8 @@ const __default__ = {
579
599
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxFlatDepth,
580
600
  onChange: _cache[1] || (_cache[1] = $event => changeHeight()),
581
601
  onClick: _cache[2] || (_cache[2] = $event => changeHeight())
582
- }, null, 8
583
- /* PROPS */
584
- , ["modelValue", "min", "max"])]),
585
- _: 1
586
- /* STABLE */
587
-
602
+ }, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
603
+ _: 1 /* STABLE */
588
604
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
589
605
  span: 6,
590
606
  style: {
@@ -599,28 +615,18 @@ const __default__ = {
599
615
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxFlatDepth,
600
616
  "controls-position": "right",
601
617
  onInput: _cache[4] || (_cache[4] = $event => changeHeight())
602
- }, null, 8
603
- /* PROPS */
604
- , ["modelValue", "min", "max"])]),
605
- _: 1
606
- /* STABLE */
607
-
618
+ }, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
619
+ _: 1 /* STABLE */
608
620
  })]),
609
- _: 1
610
- /* STABLE */
611
-
621
+ _: 1 /* STABLE */
612
622
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
613
623
  gutter: 10
614
624
  }, {
615
625
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
616
626
  span: 7
617
627
  }, {
618
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).flatteningShow), 1
619
- /* TEXT */
620
- )]),
621
- _: 1
622
- /* STABLE */
623
-
628
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).flatteningShow), 1 /* TEXT */)]),
629
+ _: 1 /* STABLE */
624
630
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
625
631
  span: 11
626
632
  }, {
@@ -628,58 +634,31 @@ const __default__ = {
628
634
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).flatteningShow,
629
635
  "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).flatteningShow = $event),
630
636
  onChange: onChangeFlatteningShow
631
- }, null, 8
632
- /* PROPS */
633
- , ["modelValue"])]),
634
- _: 1
635
- /* STABLE */
636
-
637
+ }, null, 8 /* PROPS */, ["modelValue"])]),
638
+ _: 1 /* STABLE */
637
639
  })]),
638
- _: 1
639
- /* STABLE */
640
-
640
+ _: 1 /* STABLE */
641
641
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
642
642
  class: "kq3d-model-flat-tip"
643
643
  }, {
644
- 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).skylineTips), 1
645
- /* TEXT */
646
- )]),
647
- _: 1
648
- /* STABLE */
649
-
644
+ 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).skylineTips), 1 /* TEXT */)]),
645
+ _: 1 /* STABLE */
650
646
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_4, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
651
647
  onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
652
648
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
653
649
  type: "primary"
654
650
  }, {
655
- 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).startOperation), 1
656
- /* TEXT */
657
- )]),
658
- _: 1
659
- /* STABLE */
660
-
661
- }, 8
662
- /* PROPS */
663
- , ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
651
+ 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).startOperation), 1 /* TEXT */)]),
652
+ _: 1 /* STABLE */
653
+ }, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
664
654
  onClick: _cache[7] || (_cache[7] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
665
655
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
666
656
  }, {
667
- 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).clear), 1
668
- /* TEXT */
669
- )]),
670
- _: 1
671
- /* STABLE */
672
-
673
- }, 8
674
- /* PROPS */
675
- , ["title"])])], 512
676
- /* NEED_PATCH */
677
- )], 2
678
- /* CLASS */
679
- );
657
+ 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).clear), 1 /* TEXT */)]),
658
+ _: 1 /* STABLE */
659
+ }, 8 /* PROPS */, ["title"])])], 512 /* NEED_PATCH */)], 2 /* CLASS */);
680
660
  };
681
661
  }
682
-
683
662
  }));
684
663
  ;// CONCATENATED MODULE: ./src/webgl/modelFlat/ModelFlat.vue?vue&type=script&setup=true&lang=js
685
664
 
@@ -691,10 +670,13 @@ const __exports__ = ModelFlatvue_type_script_setup_true_lang_js;
691
670
 
692
671
  /* harmony default export */ var ModelFlat = (__exports__);
693
672
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
694
- var init_js_ = __webpack_require__(7997);
673
+ var init_js_ = __webpack_require__(455);
695
674
  var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
696
675
  ;// CONCATENATED MODULE: ./src/webgl/modelFlat/index.js
697
-
676
+ /*
677
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
678
+ * All rights reserved.
679
+ */
698
680
 
699
681
 
700
682
 
@@ -703,8 +685,6 @@ ModelFlat.install = (Vue, opts) => {
703
685
  Vue.component(ModelFlat.name, ModelFlat);
704
686
  };
705
687
 
706
-
707
- }();
708
688
  /******/ return __webpack_exports__;
709
689
  /******/ })()
710
690
  ;