@kq_npm/client3d_webgl_vue 4.5.29-beta → 4.5.31

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 (68) hide show
  1. package/adddata/index.js +519 -263
  2. package/adddata/style/adddata.css +1 -1
  3. package/aspectanalysis/index.js +201 -123
  4. package/baseterraingallery/index.js +123 -94
  5. package/baseterraingallery/style/baseterraingallery.css +1 -1
  6. package/boxclip/index.js +442 -249
  7. package/clientPrint/index.js +20228 -7467
  8. package/clientPrint/style/clientPrint.css +1 -1
  9. package/comparemap/index.js +243 -213
  10. package/compass/index.js +68 -74
  11. package/excavatefillanalysis/index.js +225 -143
  12. package/fixedzoomin/index.js +82 -72
  13. package/fixedzoomout/index.js +80 -71
  14. package/flight/index.js +371 -257
  15. package/flight/style/flight.css +1 -1
  16. package/floodanalysis/index.js +347 -199
  17. package/geologicalbodyanalysis/index.js +260 -166
  18. package/gpuspatialquery/index.js +359 -198
  19. package/hawkeye/index.js +100 -131
  20. package/headertemp/index.js +25 -14
  21. package/heatmap3d/index.js +678 -366
  22. package/heatmap3d/style/heatmap3d.css +1 -1
  23. package/index.js +19746 -6806
  24. package/isolineanalysis/index.js +1202 -504
  25. package/light/index.js +494 -349
  26. package/limitheightanalysis/index.js +223 -159
  27. package/measure/index.js +353 -198
  28. package/modelFlat/index.js +204 -167
  29. package/modelexcavate/index.js +191 -130
  30. package/modelfilter/index.js +271 -179
  31. package/modelprofileanalysis/index.js +316 -206
  32. package/modelselect/index.js +147 -142
  33. package/package.json +1 -1
  34. package/particleeffect/index.js +403 -225
  35. package/planeclip/index.js +300 -198
  36. package/resetview/index.js +52 -66
  37. package/roller/index.js +372 -304
  38. package/scaneffect/index.js +537 -230
  39. package/sceneadvancedtoimage/index.js +358 -205
  40. package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -1
  41. package/sceneapp/index.js +20228 -7467
  42. package/sceneset/index.js +864 -350
  43. package/scenetohdimage/index.js +297 -159
  44. package/scenetohdimage/style/scenetohdimage.css +1 -1
  45. package/sceneview/index.js +20228 -7467
  46. package/sceneview/style/sceneview.css +1 -1
  47. package/screenshot/index.js +301 -257
  48. package/shadowanalysis/index.js +405 -217
  49. package/sightlineanalysis/index.js +271 -183
  50. package/sightlineanalysis/style/divpoint.css +1 -1
  51. package/skylineanalysis/index.js +308 -160
  52. package/slopeanalysis/index.js +397 -227
  53. package/slopeaspectanalysis/index.js +485 -259
  54. package/statusbar/index.js +65 -88
  55. package/style.css +1 -1
  56. package/terrainoperation/index.js +237 -176
  57. package/terrainprofileanalysis/index.js +138 -120
  58. package/typhoontrac/index.js +1004 -234
  59. package/typhoontrac/style/typhoontrac.css +1 -1
  60. package/underground/index.js +61 -70
  61. package/videofusion/index.js +488 -265
  62. package/videoproject/index.js +490 -271
  63. package/viewshedanalysis/index.js +255 -151
  64. package/weathereffect/index.js +317 -166
  65. package/windyslicing/index.js +2198 -0
  66. package/windyslicing/style/index.js +3 -0
  67. package/windyslicing/style/windyslicing.css +1 -0
  68. package/wireframesketch/index.js +142 -110
@@ -2,11 +2,11 @@
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
3
  module.exports = 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"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define(["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/_utils/util"], factory);
6
- else {
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
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
- }
5
+ define("@kq_npm/client3d_webgl_vue", ["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/_utils/util"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["@kq_npm/client3d_webgl_vue"] = 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"));
8
+ else
9
+ root["@kq_npm/client3d_webgl_vue"] = 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"]);
10
10
  })(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__7997__, __WEBPACK_EXTERNAL_MODULE__3458__) {
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ "use strict";
@@ -25,10 +25,12 @@ return /******/ (function() { // webpackBootstrap
25
25
  */
26
26
 
27
27
 
28
+
28
29
  element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
29
30
  _init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
30
31
  Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
31
32
  };
33
+
32
34
  /* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
33
35
 
34
36
  /***/ }),
@@ -40,13 +42,6 @@ module.exports = require("@kq_npm/client_icons_vue");
40
42
 
41
43
  /***/ }),
42
44
 
43
- /***/ 2118:
44
- /***/ (function(module) {
45
-
46
- module.exports = require("core-js/modules/es.array.push.js");
47
-
48
- /***/ }),
49
-
50
45
  /***/ 9389:
51
46
  /***/ (function(module) {
52
47
 
@@ -89,59 +84,27 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
89
84
 
90
85
  /***/ }),
91
86
 
92
- /***/ 5301:
87
+ /***/ 8270:
93
88
  /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
94
89
 
95
-
96
- // EXPORTS
97
- __webpack_require__.d(__webpack_exports__, {
98
- "Z": 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.");
90
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
91
+ /* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
92
+ /* harmony export */ });
93
+ function _defineProperty(obj, key, value) {
94
+ if (key in obj) {
95
+ Object.defineProperty(obj, key, {
96
+ value: value,
97
+ enumerable: true,
98
+ configurable: true,
99
+ writable: true
100
+ });
101
+ } else {
102
+ obj[key] = value;
121
103
  }
122
- return ("string" === r ? String : Number)(t);
123
- }
124
-
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 + "";
131
- }
132
-
133
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
134
104
 
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;
105
+ return obj;
142
106
  }
143
107
 
144
-
145
108
  /***/ })
146
109
 
147
110
  /******/ });
@@ -228,10 +191,8 @@ __webpack_require__.d(__webpack_exports__, {
228
191
  var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
229
192
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
230
193
  var gis_utils_ = __webpack_require__(7135);
231
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
232
- var defineProperty = __webpack_require__(5301);
233
- // EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
234
- var es_array_push_js_ = __webpack_require__(2118);
194
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
195
+ var defineProperty = __webpack_require__(8270);
235
196
  // EXTERNAL MODULE: ./src/common/_ui/message/index.js
236
197
  var message = __webpack_require__(1349);
237
198
  ;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavateViewModel.js
@@ -244,44 +205,67 @@ var message = __webpack_require__(1349);
244
205
  //模型开挖逻辑类
245
206
 
246
207
  class ModelExcavateViewModel {
208
+ //三维viewer对象
209
+ //Box裁剪存储参数对象
210
+ //绘制完成监听事件
211
+ //测量三维对象
212
+ //测量结果
213
+ //Kq3dWallPrimitive
247
214
  constructor(scenceView, options) {
248
215
  (0,defineProperty/* default */.Z)(this, "_viewer", null);
249
- //三维viewer对象
216
+
250
217
  (0,defineProperty/* default */.Z)(this, "_options", {});
251
- //Box裁剪存储参数对象
218
+
252
219
  (0,defineProperty/* default */.Z)(this, "_Kq3dTerrainExcavation", null);
220
+
253
221
  (0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
254
- //绘制完成监听事件
222
+
255
223
  (0,defineProperty/* default */.Z)(this, "_measureHandler", null);
256
- //测量三维对象
224
+
257
225
  (0,defineProperty/* default */.Z)(this, "_measureResult", null);
258
- //测量结果
226
+
259
227
  (0,defineProperty/* default */.Z)(this, "_wallPrimitive", void 0);
260
- //Kq3dWallPrimitive
228
+
261
229
  (0,defineProperty/* default */.Z)(this, "entity0", null);
230
+
262
231
  (0,defineProperty/* default */.Z)(this, "_language", {});
232
+
263
233
  (0,defineProperty/* default */.Z)(this, "wall", null);
234
+
264
235
  (0,defineProperty/* default */.Z)(this, "ratio", 0.01);
236
+
265
237
  (0,defineProperty/* default */.Z)(this, "ii", 1);
238
+
266
239
  (0,defineProperty/* default */.Z)(this, "scratchCartesian2", new window.Cesium.Cartesian3());
240
+
267
241
  (0,defineProperty/* default */.Z)(this, "scratchCartesian3", new window.Cesium.Cartesian3());
242
+
268
243
  (0,defineProperty/* default */.Z)(this, "scratchCartesian4", new window.Cesium.Cartesian3());
244
+
269
245
  (0,defineProperty/* default */.Z)(this, "scratchCartesian5", new window.Cesium.Cartesian3());
246
+
270
247
  (0,defineProperty/* default */.Z)(this, "scratchCartesian6", new window.Cesium.Cartesian3());
248
+
271
249
  (0,defineProperty/* default */.Z)(this, "scratchCartesian7", new window.Cesium.Cartesian3());
250
+
272
251
  (0,defineProperty/* default */.Z)(this, "intervalId", null);
252
+
273
253
  (0,defineProperty/* default */.Z)(this, "g_flattenedPolygonTexture", null);
254
+
274
255
  this._language = scenceView._language;
275
256
  this._viewer = scenceView._viewer;
276
257
  this._options = options;
277
258
  this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
259
+
278
260
  var that = this;
261
+
279
262
  if (scenceView.g_flattenedPolygonTexture) {
280
263
  this.g_flattenedPolygonTexture = scenceView.g_flattenedPolygonTexture;
281
264
  } else {
282
265
  let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
283
266
  this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
284
267
  var models = this._viewer.scene.primitives._primitives;
268
+
285
269
  for (let i = 0; i < models.length; i++) {
286
270
  if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
287
271
  models[i].enableFlattenning = true;
@@ -292,23 +276,27 @@ class ModelExcavateViewModel {
292
276
  }
293
277
  }
294
278
  }
279
+
295
280
  this._measureHandler = new Cesium.Kq3dMeasureHandler(this._viewer);
281
+
296
282
  this._measureHandler.measureEvent.addEventListener(function (result) {
297
283
  that._measureResult = result;
298
284
  result.measureResult.label.show = false;
299
285
  });
286
+
300
287
  this._measureHandler.activeEvent.addEventListener(function (ret) {
301
288
  if (ret == false) {
302
289
  if (that._measureResult) {
303
290
  that._options.positions = that._measureResult.positions;
304
291
  that.createDynamicExcavationEffect();
292
+
305
293
  that._measureResult.measureResult.destroy();
306
294
  }
307
295
  }
308
296
  });
309
- }
297
+ } // 创建开挖模型
298
+
310
299
 
311
- // 创建开挖模型
312
300
  createDynamicExcavationEffect() {
313
301
  this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
314
302
  this._Kq3dTerrainExcavation = new window.Cesium.Kq3dTerrainExcavation({
@@ -317,30 +305,35 @@ class ModelExcavateViewModel {
317
305
  positions: this._options.positions,
318
306
  hasWall: false
319
307
  });
308
+
320
309
  if (this._wallPrimitive) {
321
310
  this._viewer.scene.primitives.remove(this._wallPrimitive);
311
+
322
312
  this._wallPrimitive = undefined;
323
313
  }
314
+
324
315
  this._wallPrimitive = new window.Cesium.Kq3dWallPrimitive({
325
316
  viewer: this._viewer,
326
317
  height: this._options.height,
327
318
  positions: this._options.positions,
328
319
  elevationOnTerrain: false
329
320
  });
321
+
330
322
  this._viewer.scene.primitives.add(this._wallPrimitive);
323
+
331
324
  let that = this;
325
+
332
326
  this._wallPrimitive._readyEvent.addEventListener(function (eventType) {
333
327
  if (eventType != "Ready") {
334
328
  return;
335
329
  }
330
+
336
331
  that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
337
332
  var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
338
333
  positions: that._options.positions,
339
334
  height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
340
335
  });
341
- that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);
342
-
343
- // that.intervalId = setInterval(function () {
336
+ that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon); // that.intervalId = setInterval(function () {
344
337
  // if (that.ii > 100) {
345
338
  // if (that.entity0) {
346
339
  // that._viewer.scene.primitives.remove(that.entity0);
@@ -354,20 +347,15 @@ class ModelExcavateViewModel {
354
347
  // that.ii = 0;
355
348
  // return;
356
349
  // }
357
-
358
350
  // var carto2 = window.Cesium.Cartesian3.lerp(that._options.positions[0], that._options.positions[3], that.ratio * that.ii, that.scratchCartesian2);
359
351
  // var carto3 = window.Cesium.Cartesian3.lerp(that._options.positions[1], that._options.positions[2], that.ratio * that.ii, that.scratchCartesian3);
360
-
361
352
  // if (that.entity0) {
362
353
  // that._viewer.scene.primitives.remove(that.entity0);
363
354
  // that.entity0 = undefined;
364
355
  // }
365
-
366
356
  // that.entity0 = that.createPolyline([carto2, carto3]);
367
-
368
357
  // that.ii++;
369
358
  // that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
370
-
371
359
  // var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
372
360
  // positions: [that._options.positions[0], that._options.positions[1], carto3, carto2],
373
361
  // height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
@@ -376,12 +364,16 @@ class ModelExcavateViewModel {
376
364
  // }, 100);
377
365
  });
378
366
  }
367
+
379
368
  createPolyline(positions) {
380
369
  var material = window.Cesium.Material.fromType("Kq3dLightningMaterial", {});
370
+
381
371
  if (this.wall) {
382
372
  this._viewer.scene.primitives.remove(this.wall);
373
+
383
374
  this.wall = undefined;
384
375
  }
376
+
385
377
  var geometryInstances = [];
386
378
  geometryInstances.push(new window.Cesium.GeometryInstance({
387
379
  geometry: new window.Cesium.WallGeometry({
@@ -397,7 +389,9 @@ class ModelExcavateViewModel {
397
389
  material: material
398
390
  })
399
391
  });
392
+
400
393
  this._viewer.scene.primitives.add(this.wall);
394
+
401
395
  var geo = new window.Cesium.GroundPolylineGeometry({
402
396
  positions: positions,
403
397
  width: 40.0,
@@ -415,23 +409,27 @@ class ModelExcavateViewModel {
415
409
  });
416
410
  return this._viewer.scene.primitives.add(primitive);
417
411
  }
412
+
418
413
  start() {
419
414
  // 判断是否添加了模型
420
415
  var flag = false;
421
416
  var that = this;
422
417
  var models = this._viewer.scene.primitives._primitives;
418
+
423
419
  for (let i = 0; i < models.length; i++) {
424
420
  if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
425
421
  models[i].enableFlattenning = true;
426
- models[i].flattenDiscard = true;
427
- // models[i].readyPromise.then(function (tileset) {
422
+ models[i].flattenDiscard = true; // models[i].readyPromise.then(function (tileset) {
428
423
  // that.g_flattenedPolygonTexture.attachTileset(tileset);
429
424
  // });
425
+
430
426
  flag = true;
431
427
  }
432
428
  }
429
+
433
430
  if (flag) {
434
431
  this.remove();
432
+
435
433
  this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
436
434
  } else {
437
435
  (0,message/* default */.Z)({
@@ -439,46 +437,60 @@ class ModelExcavateViewModel {
439
437
  type: "warning"
440
438
  });
441
439
  }
442
- }
443
- // 切换高度重新计算
440
+ } // 切换高度重新计算
441
+
442
+
444
443
  setHeight(val) {
445
444
  this._options.height = Number(val);
446
445
  }
446
+
447
447
  remove() {
448
448
  // 销毁地形开挖
449
449
  if (this.intervalId) {
450
450
  clearInterval(this.intervalId);
451
451
  this.ii = 0;
452
+
452
453
  if (this.entity0) {
453
454
  this._viewer.scene.primitives.remove(this.entity0);
455
+
454
456
  this.entity0 = undefined;
455
457
  }
458
+
456
459
  if (this.wall) {
457
460
  this._viewer.scene.primitives.remove(this.wall);
461
+
458
462
  this.wall = undefined;
459
463
  }
460
464
  }
465
+
461
466
  if (this._wallPrimitive) {
462
467
  this._viewer.scene.primitives.remove(this._wallPrimitive);
468
+
463
469
  this._wallPrimitive = undefined;
464
470
  }
471
+
465
472
  this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
466
473
  this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
467
- }
468
- // 清除
474
+ } // 清除
475
+
476
+
469
477
  clear() {
470
478
  this._measureResult = null;
479
+
471
480
  this._measureHandler.clear();
481
+
472
482
  this.remove();
473
- }
474
- //销毁
483
+ } //销毁
484
+
485
+
475
486
  destroy() {
476
- this.clear();
477
- // this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.detachAllTileset();
487
+ this.clear(); // this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.detachAllTileset();
478
488
  // this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.destroy();
489
+
479
490
  this._measureHandler && this._measureHandler.destroy();
480
491
  this._measureHandler = null;
481
492
  }
493
+
482
494
  }
483
495
  // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
484
496
  var client_icons_vue_ = __webpack_require__(348);
@@ -486,7 +498,7 @@ var client_icons_vue_ = __webpack_require__(348);
486
498
  var util_ = __webpack_require__(3458);
487
499
  // EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
488
500
  var vue_i18n_cjs_js_ = __webpack_require__(7080);
489
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
501
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
490
502
 
491
503
  const _hoisted_1 = {
492
504
  class: "kq3d-model-excavate-box",
@@ -503,8 +515,7 @@ const _hoisted_3 = {
503
515
 
504
516
 
505
517
 
506
-
507
- //语言
518
+ //语言
508
519
 
509
520
  const __default__ = {
510
521
  name: "Kq3dModelExcavate"
@@ -522,6 +533,7 @@ const __default__ = {
522
533
  type: Boolean,
523
534
  default: true
524
535
  },
536
+
525
537
  /**
526
538
  * 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
527
539
  */
@@ -551,6 +563,7 @@ const __default__ = {
551
563
  default: true
552
564
  }
553
565
  },
566
+
554
567
  setup(__props, {
555
568
  expose: __expose
556
569
  }) {
@@ -560,9 +573,7 @@ const __default__ = {
560
573
  } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
561
574
  let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
562
575
  let viewModel = null;
563
- let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.locale);
564
-
565
- // 获取组件传参
576
+ let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.locale); // 获取组件传参
566
577
 
567
578
  let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
568
579
  excavationDepth: props.settingParams && props.settingParams.excavationDepth || 20,
@@ -570,16 +581,14 @@ const __default__ = {
570
581
  minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 0,
571
582
  // 地形开挖深度范围最小值
572
583
  maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 100 // 地形开挖深度范围最大值
573
- });
574
584
 
575
- // 组件容器Ref
576
- let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
585
+ }); // 组件容器Ref
586
+
587
+ let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
577
588
 
578
- // 生成组件默认header
579
589
  let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
580
- let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
590
+ let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
581
591
 
582
- // 国际化
583
592
  let {
584
593
  locale,
585
594
  messages
@@ -600,9 +609,8 @@ const __default__ = {
600
609
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
601
610
  watchCreateHeaderTemp();
602
611
  });
603
- });
612
+ }); //父组件ScenceView初始化完成后执行
604
613
 
605
- //父组件ScenceView初始化完成后执行
606
614
  gis_utils_.utils.getWebMap(null, scenceView => {
607
615
  if (scenceView) {
608
616
  viewModel = new ModelExcavateViewModel(scenceView, {
@@ -612,42 +620,52 @@ const __default__ = {
612
620
  }
613
621
  });
614
622
  });
615
-
616
623
  /**
617
624
  * @description 监听header生成
618
625
  */
626
+
619
627
  const watchCreateHeaderTemp = () => {
620
628
  if (props.showHeaderTemp) {
621
629
  // 生成headerTemp
622
630
  headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
623
631
  }
624
- };
625
- // 调整开挖深度
632
+ }; // 调整开挖深度
633
+
634
+
626
635
  function changeHeight() {
627
636
  viewModel && viewModel.setHeight(formItem.excavationDepth);
628
- }
629
- // 开始分析
637
+ } // 开始分析
638
+
639
+
630
640
  function startOperation() {
631
641
  viewModel && viewModel.start();
632
- }
633
- // 清除
642
+ } // 清除
643
+
644
+
634
645
  function clear() {
635
646
  viewModel && viewModel.clear();
636
- }
647
+ } // 销毁
648
+
637
649
 
638
- // 销毁
639
650
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
640
651
  viewModel && viewModel.destroy();
641
652
  });
653
+
642
654
  __expose({
643
655
  clear
644
656
  });
657
+
645
658
  return (_ctx, _cache) => {
646
659
  const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
660
+
647
661
  const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
662
+
648
663
  const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
664
+
649
665
  const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
666
+
650
667
  const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
668
+
651
669
  return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
652
670
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-excavate", {
653
671
  'kq-box-shadow': __props.showShadow
@@ -658,15 +676,23 @@ const __default__ = {
658
676
  key: 0,
659
677
  ref_key: "headerTempRef",
660
678
  ref: headerTempRef
661
- }, 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, {
679
+ }, null, 512
680
+ /* NEED_PATCH */
681
+ )) : (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, {
662
682
  gutter: 10
663
683
  }, {
664
684
  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, {
665
685
  span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
666
686
  }, {
667
- 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).excavationDepth), 1 /* TEXT */)]),
668
- _: 1 /* STABLE */
669
- }, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
687
+ 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).excavationDepth), 1
688
+ /* TEXT */
689
+ )]),
690
+ _: 1
691
+ /* STABLE */
692
+
693
+ }, 8
694
+ /* PROPS */
695
+ , ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
670
696
  span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 11 : 8
671
697
  }, {
672
698
  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_slider, {
@@ -677,9 +703,15 @@ const __default__ = {
677
703
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxExcavationDepth,
678
704
  onChange: _cache[1] || (_cache[1] = $event => changeHeight()),
679
705
  onClick: _cache[2] || (_cache[2] = $event => changeHeight())
680
- }, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
681
- _: 1 /* STABLE */
682
- }, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
706
+ }, null, 8
707
+ /* PROPS */
708
+ , ["modelValue", "min", "max"])]),
709
+ _: 1
710
+ /* STABLE */
711
+
712
+ }, 8
713
+ /* PROPS */
714
+ , ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
683
715
  span: 6,
684
716
  style: {
685
717
  "text-align": "end"
@@ -693,31 +725,58 @@ const __default__ = {
693
725
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxExcavationDepth,
694
726
  "controls-position": "right",
695
727
  onInput: _cache[4] || (_cache[4] = $event => changeHeight())
696
- }, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
697
- _: 1 /* STABLE */
728
+ }, null, 8
729
+ /* PROPS */
730
+ , ["modelValue", "min", "max"])]),
731
+ _: 1
732
+ /* STABLE */
733
+
698
734
  })]),
699
- _: 1 /* STABLE */
735
+ _: 1
736
+ /* STABLE */
737
+
700
738
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
701
739
  class: "kq3d-model-excavate-tip"
702
740
  }, {
703
- 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 */)]),
704
- _: 1 /* STABLE */
741
+ 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
742
+ /* TEXT */
743
+ )]),
744
+ _: 1
745
+ /* STABLE */
746
+
705
747
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
706
748
  onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
707
749
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
708
750
  type: "primary"
709
751
  }, {
710
- 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 */)]),
711
- _: 1 /* STABLE */
712
- }, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
752
+ 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
753
+ /* TEXT */
754
+ )]),
755
+ _: 1
756
+ /* STABLE */
757
+
758
+ }, 8
759
+ /* PROPS */
760
+ , ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
713
761
  onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
714
762
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
715
763
  }, {
716
- 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 */)]),
717
- _: 1 /* STABLE */
718
- }, 8 /* PROPS */, ["title"])])], 512 /* NEED_PATCH */)], 2 /* CLASS */);
764
+ 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
765
+ /* TEXT */
766
+ )]),
767
+ _: 1
768
+ /* STABLE */
769
+
770
+ }, 8
771
+ /* PROPS */
772
+ , ["title"])])], 512
773
+ /* NEED_PATCH */
774
+ )], 2
775
+ /* CLASS */
776
+ );
719
777
  };
720
778
  }
779
+
721
780
  }));
722
781
  ;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
723
782
 
@@ -739,11 +798,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
739
798
 
740
799
 
741
800
 
801
+
742
802
  ModelExcavate.install = (Vue, opts) => {
743
803
  init_js_default()(Vue, opts);
744
804
  Vue.component(ModelExcavate.name, ModelExcavate);
745
805
  };
746
806
 
807
+
747
808
  }();
748
809
  /******/ return __webpack_exports__;
749
810
  /******/ })()