@kq_npm/client3d_webgl_vue 4.5.38 → 4.5.40

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 (56) hide show
  1. package/adddata/index.js +285 -193
  2. package/adddata/style/adddata.css +1 -1
  3. package/aspectanalysis/index.js +45 -14
  4. package/boxclip/index.js +52 -19
  5. package/clientPrint/index.js +3539 -1291
  6. package/clientPrint/style/clientPrint.css +1 -1
  7. package/comparemap/index.js +699 -14
  8. package/excavatefillanalysis/index.js +48 -18
  9. package/flight/index.js +45 -4
  10. package/flight/style/flight.css +1 -1
  11. package/floodanalysis/index.js +39 -5
  12. package/geologicalbodyanalysis/index.js +37 -3
  13. package/gpuspatialquery/index.js +50 -24
  14. package/heatmap3d/index.js +37 -3
  15. package/heatmap3d/style/heatmap3d.css +1 -1
  16. package/index.js +3357 -1160
  17. package/isolineanalysis/index.js +56 -28
  18. package/light/index.js +19 -22
  19. package/limitheightanalysis/index.js +46 -16
  20. package/measure/index.js +56 -14
  21. package/modelFlat/index.js +37 -3
  22. package/modelexcavate/index.js +37 -3
  23. package/modelfilter/index.js +37 -3
  24. package/modelprofileanalysis/index.js +37 -3
  25. package/modelselect/index.js +37 -3
  26. package/package.json +1 -1
  27. package/particleeffect/index.js +26 -33
  28. package/planeclip/index.js +47 -18
  29. package/radarscananalysis/index.js +863 -0
  30. package/radarscananalysis/style/index.js +3 -0
  31. package/radarscananalysis/style/radarscananalysis.css +1 -0
  32. package/scaneffect/index.js +48 -20
  33. package/scaneffect/style/scaneffect.css +1 -1
  34. package/sceneadvancedtoimage/index.js +46 -16
  35. package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -1
  36. package/sceneapp/index.js +3538 -1290
  37. package/scenetohdimage/style/scenetohdimage.css +1 -1
  38. package/sceneview/index.js +3533 -1285
  39. package/sceneview/style/sceneview.css +1 -1
  40. package/shadowanalysis/index.js +49 -19
  41. package/sightlineanalysis/index.js +41 -31
  42. package/sightlineanalysis/style/divpoint.css +1 -1
  43. package/skylineanalysis/index.js +37 -3
  44. package/slopeanalysis/index.js +85 -54
  45. package/slopeaspectanalysis/index.js +520 -135
  46. package/style.css +1 -1
  47. package/terrainoperation/index.js +61 -31
  48. package/terrainprofileanalysis/index.js +45 -14
  49. package/typhoontrac/index.js +71 -11
  50. package/typhoontrac/style/typhoontrac.css +1 -1
  51. package/videofusion/index.js +37 -3
  52. package/videoproject/index.js +37 -3
  53. package/weathereffect/index.js +30 -34
  54. package/windyslicing/index.js +670 -306
  55. package/windyslicing/style/windyslicing.css +1 -1
  56. package/wireframesketch/index.js +37 -3
@@ -12,13 +12,32 @@ return /******/ (function() { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
+ /***/ 3789:
16
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
+
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ "P": function() { return /* binding */ kq_npm_client_common_vue; }
20
+ /* harmony export */ });
21
+ /* unused harmony export kq_npm_client_leaflet_vue */
22
+ let kq_npm_client_common_vue = (window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {});
23
+
24
+ __webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
25
+
26
+ let kq_npm_client_leaflet_vue = (window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {});
27
+
28
+ __webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
29
+
30
+
31
+ /***/ }),
32
+
15
33
  /***/ 1705:
16
34
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
35
 
18
36
  /* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
19
37
  /* 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__(7997);
21
- /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
38
+ /* harmony import */ var _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3789);
39
+ /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7997);
40
+ /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_2__);
22
41
  /*
23
42
  * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
24
43
  * All rights reserved.
@@ -27,12 +46,15 @@ return /******/ (function() { // webpackBootstrap
27
46
 
28
47
 
29
48
 
49
+
30
50
  element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
31
- _init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
51
+ _init__WEBPACK_IMPORTED_MODULE_2___default()(Vue, opts);
32
52
  Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
33
53
  };
34
54
 
35
55
  /* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
56
+
57
+ _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__/* .kq_npm_client_common_vue.KqMessage */ .P.KqMessage = element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage;
36
58
 
37
59
 
38
60
  /***/ }),
@@ -144,6 +166,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
144
166
  /******/ };
145
167
  /******/ }();
146
168
  /******/
169
+ /******/ /* webpack/runtime/global */
170
+ /******/ !function() {
171
+ /******/ __webpack_require__.g = (function() {
172
+ /******/ if (typeof globalThis === 'object') return globalThis;
173
+ /******/ try {
174
+ /******/ return this || new Function('return this')();
175
+ /******/ } catch (e) {
176
+ /******/ if (typeof window === 'object') return window;
177
+ /******/ }
178
+ /******/ })();
179
+ /******/ }();
180
+ /******/
147
181
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
148
182
  /******/ !function() {
149
183
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
@@ -195,7 +229,6 @@ class IsolineAnalysisViewModel {
195
229
  _surfaceColorTable = ["#2a2828", "#2747E0", "#D33B7D", "#D33038", "#FF9742"]; //等高面区间颜色数组
196
230
  _surfaceColorImage = null; //等高面渐变纹理图片
197
231
  _drawManager = null; //绘制管理对象
198
- _removeEventListener = null; //绘制完成监听事件
199
232
  _colorImages = [ //渐变纹理编号和图片地址对象
200
233
  {
201
234
  value: "0",
@@ -238,27 +271,7 @@ class IsolineAnalysisViewModel {
238
271
  this._elevation = new Cesium.Kq3dContourAnalysis(options);
239
272
  this._elevation.destroy();
240
273
  this._elevation = null;
241
-
242
274
  this._drawManager = scenceView._drawManager;
243
- var that = this;
244
- that._removeEventListener = that._drawManager.drawFinishedEvent.addEventListener(shape => {
245
- if (shape) {
246
- that._options.positions = shape._controlPoints;
247
- that._drawManager.clear();
248
- switch (that._options.filltype) {
249
- case 0:
250
- that._options.type = Cesium.Kq3dContourAnalysisType.LINE;
251
- break;
252
- case 1:
253
- that._options.type = Cesium.Kq3dContourAnalysisType.SURFACE;
254
- break;
255
- case 2:
256
- that._options.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
257
- break;
258
- }
259
- that._elevation = new Cesium.Kq3dContourAnalysis(that._options);
260
- }
261
- });
262
275
  }
263
276
  // 设置等高面区间
264
277
  setColorTableHeight(heights) {
@@ -361,7 +374,25 @@ class IsolineAnalysisViewModel {
361
374
  var that = this;
362
375
  // 判断是否添加了地形
363
376
  if (that._options.viewer.terrainProvider.availability) {
364
- that._drawManager.startDraw("polygon", { clampToGround: true });
377
+ that._drawManager?.startDraw("polygon", { clampToGround: true }, (feature, { shape }) => {
378
+ if (!shape.groupName || shape.groupName !== "IsolineAnalysisDraw") return;
379
+ if (shape) {
380
+ that._options.positions = shape._controlPoints;
381
+ switch (that._options.filltype) {
382
+ case 0:
383
+ that._options.type = Cesium.Kq3dContourAnalysisType.LINE;
384
+ break;
385
+ case 1:
386
+ that._options.type = Cesium.Kq3dContourAnalysisType.SURFACE;
387
+ break;
388
+ case 2:
389
+ that._options.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
390
+ break;
391
+ }
392
+ that._elevation = new Cesium.Kq3dContourAnalysis(that._options);
393
+ }
394
+ that._drawManager.clearDrawGroup("IsolineAnalysisDraw");
395
+ }, "IsolineAnalysisDraw");
365
396
  } else {
366
397
  (0,message/* default */.Z)({
367
398
  message: this._language["terrainAnalysisTips"],
@@ -381,9 +412,6 @@ class IsolineAnalysisViewModel {
381
412
  this._drawManager && this._drawManager.stopDraw();
382
413
  this._elevation && this._elevation.destroy();
383
414
  this._elevation = null;
384
- //移除监听事件
385
- this._removeEventListener && this._removeEventListener();
386
- this._removeEventListener = null;
387
415
  }
388
416
  //设置首曲线显隐
389
417
  setElevationMarking(show) {
package/light/index.js CHANGED
@@ -29,7 +29,6 @@ class LightViewModel {
29
29
  _lightModel = null; // 灯光模型对象
30
30
  _lightModelDs = null; // 灯光模型集合
31
31
  _drawManager = null; //绘制管理对象
32
- _removeEventListener = null; //绘制完成监听事件
33
32
  _options = null; //灯光存储参数对象
34
33
  _lightList = []; //灯光对象集合
35
34
 
@@ -42,19 +41,6 @@ class LightViewModel {
42
41
 
43
42
  this._viewer.dataSources.add(this._lightModelDs);
44
43
  var that = this;
45
- that._removeEventListener = that._drawManager.drawFinishedEvent.addEventListener(shape => {
46
- if (shape && shape.type === "marker") {
47
- that._drawManager.clear();
48
- let position = shape.position;
49
- if (position) {
50
- if (that._options.mode == "point") {
51
- that.addPointLight(position);
52
- } else if (that._options.mode == "spot") {
53
- that.addSpotLight(position);
54
- }
55
- }
56
- }
57
- });
58
44
  that._handler = new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);
59
45
  that._handler.setInputAction(function () {
60
46
  if (that._drawHandler._shapeObject && that._drawHandler._shapeObject.type === "polyline") {
@@ -70,11 +56,25 @@ class LightViewModel {
70
56
  }
71
57
  //添加灯光
72
58
  addLight() {
59
+ var that = this;
73
60
  if (this._options) {
74
61
  if (this._options.mode == "point" || this._options.mode == "spot") {
75
- this._drawManager.startDraw("marker", { image: null });
62
+ this._drawManager.startDraw("marker", { image: null }, (feature, { shape }) => {
63
+ if (!shape.groupName || shape.groupName !== "LightDraw") return;
64
+ if (shape && shape.type === "marker") {
65
+ let position = shape.position;
66
+ if (position) {
67
+ if (that._options.mode == "point") {
68
+ that.addPointLight(position);
69
+ } else if (that._options.mode == "spot") {
70
+ that.addSpotLight(position);
71
+ }
72
+ }
73
+ }
74
+ that._drawManager && that._drawManager.clearDrawGroup("LightDraw");
75
+ }, "LightDraw");
76
76
  } else if (this._options.mode == "parallel") {
77
- this._drawManager.startDraw("polyline", { clampToGround: false });
77
+ this._drawManager.startDraw("polyline", { clampToGround: false }, null, "LightDraw");
78
78
  }
79
79
  }
80
80
  }
@@ -179,7 +179,7 @@ class LightViewModel {
179
179
  //清除
180
180
  clear() {
181
181
  this._drawManager.stopDraw();
182
- this._drawManager.clear();
182
+ this._drawManager && this._drawManager.clearDrawGroup("LightDraw");
183
183
  this._lightModelDs.entities.removeAll();
184
184
  this.clearLights();
185
185
  this._light = null;
@@ -203,9 +203,6 @@ class LightViewModel {
203
203
  //销毁
204
204
  destroy() {
205
205
  this.clear();
206
- //移除监听事件
207
- this._removeEventListener && this._removeEventListener();
208
- this._removeEventListener = null;
209
206
  this._handler && this._handler.destroy();
210
207
  }
211
208
  //设置光源颜色
@@ -223,9 +220,9 @@ class LightViewModel {
223
220
  setDistance(distance) {
224
221
  if (this._light) {
225
222
  if (Cesium.SplitDirection) {
226
- if(this._options.mode === 'spot'){
223
+ if (this._options.mode === 'spot') {
227
224
  this._light.cutoffDistance = Number(distance);
228
- }else{
225
+ } else {
229
226
  this._light.distance = Number(distance);
230
227
  }
231
228
  } else if (Cesium.ImagerySplitDirection) {
@@ -12,13 +12,32 @@ return /******/ (function() { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
+ /***/ 3789:
16
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
+
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ "P": function() { return /* binding */ kq_npm_client_common_vue; }
20
+ /* harmony export */ });
21
+ /* unused harmony export kq_npm_client_leaflet_vue */
22
+ let kq_npm_client_common_vue = (window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {});
23
+
24
+ __webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
25
+
26
+ let kq_npm_client_leaflet_vue = (window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {});
27
+
28
+ __webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
29
+
30
+
31
+ /***/ }),
32
+
15
33
  /***/ 1705:
16
34
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
35
 
18
36
  /* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
19
37
  /* 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__(7997);
21
- /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
38
+ /* harmony import */ var _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3789);
39
+ /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7997);
40
+ /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_2__);
22
41
  /*
23
42
  * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
24
43
  * All rights reserved.
@@ -27,12 +46,15 @@ return /******/ (function() { // webpackBootstrap
27
46
 
28
47
 
29
48
 
49
+
30
50
  element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
31
- _init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
51
+ _init__WEBPACK_IMPORTED_MODULE_2___default()(Vue, opts);
32
52
  Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
33
53
  };
34
54
 
35
55
  /* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
56
+
57
+ _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__/* .kq_npm_client_common_vue.KqMessage */ .P.KqMessage = element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage;
36
58
 
37
59
 
38
60
  /***/ }),
@@ -137,6 +159,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
137
159
  /******/ };
138
160
  /******/ }();
139
161
  /******/
162
+ /******/ /* webpack/runtime/global */
163
+ /******/ !function() {
164
+ /******/ __webpack_require__.g = (function() {
165
+ /******/ if (typeof globalThis === 'object') return globalThis;
166
+ /******/ try {
167
+ /******/ return this || new Function('return this')();
168
+ /******/ } catch (e) {
169
+ /******/ if (typeof window === 'object') return window;
170
+ /******/ }
171
+ /******/ })();
172
+ /******/ }();
173
+ /******/
140
174
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
141
175
  /******/ !function() {
142
176
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
@@ -185,7 +219,6 @@ class LimitHeightAnalysisViewModel {
185
219
  _viewer = null; //三维viewer对象
186
220
  _options = {}; //限高分析存储参数对象
187
221
  _drawManager = null;
188
- _drawFinishedEventListener = null;
189
222
  _limitHeightAnalysis = null;
190
223
  _language = {};
191
224
  constructor(scenceView, options) {
@@ -195,15 +228,6 @@ class LimitHeightAnalysisViewModel {
195
228
  this._language = scenceView._language;
196
229
  this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
197
230
  this._viewer.scene.postProcessStages._fxaa.enabled = true;
198
-
199
- var that = this;
200
- this._drawFinishedEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
201
- if (shape) {
202
- that._options.positions = shape._controlPoints;
203
- that.drawPolygon();
204
- that._drawManager.clear();
205
- }
206
- });
207
231
  }
208
232
  // 绘制限高分析,显示分析体
209
233
  drawPolygon() {
@@ -230,6 +254,7 @@ class LimitHeightAnalysisViewModel {
230
254
  }
231
255
  // 开始分析
232
256
  start() {
257
+ var that = this;
233
258
  // 判断是否添加了模型
234
259
  var flag = false;
235
260
  var models = this._viewer.scene.primitives._primitives;
@@ -241,7 +266,14 @@ class LimitHeightAnalysisViewModel {
241
266
  if (flag) {
242
267
  this.clear();
243
268
  if (this._drawManager) {
244
- this._drawManager.startDraw("polygon", { clampToGround: true });
269
+ this._drawManager.startDraw("polygon", { clampToGround: true }, (feature, { shape }) => {
270
+ if (!shape.groupName || shape.groupName !== "LimitHeightAnalysisDraw") return;
271
+ if (shape) {
272
+ that._options.positions = shape._controlPoints;
273
+ that.drawPolygon();
274
+ }
275
+ that._drawManager && that._drawManager.clearDrawGroup("LimitHeightAnalysisDraw");
276
+ }, "LimitHeightAnalysisDraw");
245
277
  }
246
278
  } else {
247
279
  (0,message/* default */.Z)({
@@ -282,8 +314,6 @@ class LimitHeightAnalysisViewModel {
282
314
  // 销毁
283
315
  destroy() {
284
316
  this.clear();
285
- this._drawFinishedEventListener && this._drawFinishedEventListener();
286
- this._drawFinishedEventListener = null;
287
317
  }
288
318
  }
289
319
 
package/measure/index.js CHANGED
@@ -201,15 +201,15 @@ let distanceUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref
201
201
  let setDistanceUnits = () => {
202
202
  return [
203
203
  {
204
- label: language.value.kilometre,
204
+ label: "km("+ language.value.kilometre + ")",
205
205
  value: "km"
206
206
  },
207
207
  {
208
- label: language.value.metre,
208
+ label: "m(" + language.value.metre + ")",
209
209
  value: "m"
210
210
  },
211
211
  {
212
- label: language.value.nauticalMile,
212
+ label: nauticalMileUnit + "(" + language.value.nauticalMile + ")",
213
213
  value: nauticalMileUnit
214
214
  }
215
215
  ];
@@ -220,19 +220,19 @@ let areaUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]
220
220
  let setAreaUnits = () => {
221
221
  return [
222
222
  {
223
- label: language.value.squareKilometers,
223
+ label: "km²(" + language.value.squareKilometers + ")",
224
224
  value: "km²"
225
225
  },
226
226
  {
227
- label: language.value.squareMeter,
227
+ label: "m²(" + language.value.squareMeter + ")",
228
228
  value: "m²"
229
229
  },
230
230
  {
231
- label: language.value.mu,
231
+ label: "mu(" + language.value.mu + ")",
232
232
  value: "mu"
233
233
  },
234
234
  {
235
- label: language.value.hectare,
235
+ label: "ha(" + language.value.hectare + ")",
236
236
  value: "ha"
237
237
  }
238
238
  ];
@@ -298,12 +298,16 @@ let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref
298
298
  } else {
299
299
  result.value = formatArea(res.area);
300
300
  }
301
+ if(mode.value !== "space" && result.value != 0) {
302
+ isTips.value = false;
303
+ isResult.value = true;
304
+ }
301
305
  }
302
306
  } else if (measureType.value === "azimuth" && res) {
303
307
  if (res.positions && res.positions.length > 0) {
304
308
  result.value = {
305
309
  azimuth: res.azimuth.toFixed(4),
306
- distance: res.distance.toFixed(2)
310
+ distance: formatDistance(res.distance)
307
311
  }
308
312
  } else result.value = 0;
309
313
  } else if (measureType.value === "slope" && res) {
@@ -341,7 +345,7 @@ let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref
341
345
 
342
346
  viewModel.activeEvent.addEventListener(function (active) {
343
347
  if (!active) {
344
- // isActive.value = null;
348
+ if(measureType.value === "area" && mode.value !== "space") return;
345
349
  isTips.value = false;
346
350
  if (result.value === 0) return;
347
351
  if (measureType.value === "height" && result.value.angle === 0) return;
@@ -409,7 +413,11 @@ function convertXY(val) {
409
413
  const watchCreateHeaderTemp = () => {
410
414
  if (props.showHeaderTemp) {
411
415
  // 生成headerTemp
412
- headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, measureTitle);
416
+ headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, measureTitle, isTrue => {
417
+ if (!isTrue) {
418
+ clearMeasure();
419
+ }
420
+ });
413
421
  }
414
422
  };
415
423
 
@@ -852,7 +860,7 @@ return (_ctx, _cache) => {
852
860
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_32, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).azimuth), 1 /* TEXT */),
853
861
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_33, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).azimuth) + " °", 1 /* TEXT */),
854
862
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_34, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).distance), 1 /* TEXT */),
855
- (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_35, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).distance) + " m", 1 /* TEXT */)
863
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_35, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).distance), 1 /* TEXT */)
856
864
  ]))
857
865
  : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_36, [
858
866
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_37, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language)[(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType)]), 1 /* TEXT */),
@@ -878,6 +886,24 @@ const __exports__ = Measurevue_type_script_setup_true_lang_js;
878
886
 
879
887
  /* harmony default export */ var Measure = (__exports__);
880
888
 
889
+ /***/ }),
890
+
891
+ /***/ 3789:
892
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
893
+
894
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
895
+ /* harmony export */ "P": function() { return /* binding */ kq_npm_client_common_vue; }
896
+ /* harmony export */ });
897
+ /* unused harmony export kq_npm_client_leaflet_vue */
898
+ let kq_npm_client_common_vue = (window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {});
899
+
900
+ __webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
901
+
902
+ let kq_npm_client_leaflet_vue = (window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {});
903
+
904
+ __webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
905
+
906
+
881
907
  /***/ }),
882
908
 
883
909
  /***/ 1705:
@@ -885,8 +911,9 @@ const __exports__ = Measurevue_type_script_setup_true_lang_js;
885
911
 
886
912
  /* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
887
913
  /* 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__);
888
- /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7997);
889
- /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
914
+ /* harmony import */ var _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3789);
915
+ /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7997);
916
+ /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_2__);
890
917
  /*
891
918
  * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
892
919
  * All rights reserved.
@@ -895,12 +922,15 @@ const __exports__ = Measurevue_type_script_setup_true_lang_js;
895
922
 
896
923
 
897
924
 
925
+
898
926
  element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
899
- _init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
927
+ _init__WEBPACK_IMPORTED_MODULE_2___default()(Vue, opts);
900
928
  Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
901
929
  };
902
930
 
903
931
  /* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
932
+
933
+ _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__/* .kq_npm_client_common_vue.KqMessage */ .P.KqMessage = element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage;
904
934
 
905
935
 
906
936
  /***/ }),
@@ -1181,6 +1211,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
1181
1211
  /******/ };
1182
1212
  /******/ }();
1183
1213
  /******/
1214
+ /******/ /* webpack/runtime/global */
1215
+ /******/ !function() {
1216
+ /******/ __webpack_require__.g = (function() {
1217
+ /******/ if (typeof globalThis === 'object') return globalThis;
1218
+ /******/ try {
1219
+ /******/ return this || new Function('return this')();
1220
+ /******/ } catch (e) {
1221
+ /******/ if (typeof window === 'object') return window;
1222
+ /******/ }
1223
+ /******/ })();
1224
+ /******/ }();
1225
+ /******/
1184
1226
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
1185
1227
  /******/ !function() {
1186
1228
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
@@ -12,13 +12,32 @@ return /******/ (function() { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
+ /***/ 3789:
16
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
+
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ "P": function() { return /* binding */ kq_npm_client_common_vue; }
20
+ /* harmony export */ });
21
+ /* unused harmony export kq_npm_client_leaflet_vue */
22
+ let kq_npm_client_common_vue = (window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {});
23
+
24
+ __webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
25
+
26
+ let kq_npm_client_leaflet_vue = (window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {});
27
+
28
+ __webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
29
+
30
+
31
+ /***/ }),
32
+
15
33
  /***/ 1705:
16
34
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
35
 
18
36
  /* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
19
37
  /* 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__(7997);
21
- /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
38
+ /* harmony import */ var _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3789);
39
+ /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7997);
40
+ /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_2__);
22
41
  /*
23
42
  * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
24
43
  * All rights reserved.
@@ -27,12 +46,15 @@ return /******/ (function() { // webpackBootstrap
27
46
 
28
47
 
29
48
 
49
+
30
50
  element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
31
- _init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
51
+ _init__WEBPACK_IMPORTED_MODULE_2___default()(Vue, opts);
32
52
  Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
33
53
  };
34
54
 
35
55
  /* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
56
+
57
+ _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__/* .kq_npm_client_common_vue.KqMessage */ .P.KqMessage = element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage;
36
58
 
37
59
 
38
60
  /***/ }),
@@ -137,6 +159,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
137
159
  /******/ };
138
160
  /******/ }();
139
161
  /******/
162
+ /******/ /* webpack/runtime/global */
163
+ /******/ !function() {
164
+ /******/ __webpack_require__.g = (function() {
165
+ /******/ if (typeof globalThis === 'object') return globalThis;
166
+ /******/ try {
167
+ /******/ return this || new Function('return this')();
168
+ /******/ } catch (e) {
169
+ /******/ if (typeof window === 'object') return window;
170
+ /******/ }
171
+ /******/ })();
172
+ /******/ }();
173
+ /******/
140
174
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
141
175
  /******/ !function() {
142
176
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
@@ -12,13 +12,32 @@ return /******/ (function() { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
+ /***/ 3789:
16
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
+
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ "P": function() { return /* binding */ kq_npm_client_common_vue; }
20
+ /* harmony export */ });
21
+ /* unused harmony export kq_npm_client_leaflet_vue */
22
+ let kq_npm_client_common_vue = (window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {});
23
+
24
+ __webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
25
+
26
+ let kq_npm_client_leaflet_vue = (window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {});
27
+
28
+ __webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
29
+
30
+
31
+ /***/ }),
32
+
15
33
  /***/ 1705:
16
34
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
35
 
18
36
  /* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
19
37
  /* 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__(7997);
21
- /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
38
+ /* harmony import */ var _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3789);
39
+ /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7997);
40
+ /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_2__);
22
41
  /*
23
42
  * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
24
43
  * All rights reserved.
@@ -27,12 +46,15 @@ return /******/ (function() { // webpackBootstrap
27
46
 
28
47
 
29
48
 
49
+
30
50
  element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
31
- _init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
51
+ _init__WEBPACK_IMPORTED_MODULE_2___default()(Vue, opts);
32
52
  Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
33
53
  };
34
54
 
35
55
  /* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
56
+
57
+ _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__/* .kq_npm_client_common_vue.KqMessage */ .P.KqMessage = element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage;
36
58
 
37
59
 
38
60
  /***/ }),
@@ -137,6 +159,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
137
159
  /******/ };
138
160
  /******/ }();
139
161
  /******/
162
+ /******/ /* webpack/runtime/global */
163
+ /******/ !function() {
164
+ /******/ __webpack_require__.g = (function() {
165
+ /******/ if (typeof globalThis === 'object') return globalThis;
166
+ /******/ try {
167
+ /******/ return this || new Function('return this')();
168
+ /******/ } catch (e) {
169
+ /******/ if (typeof window === 'object') return window;
170
+ /******/ }
171
+ /******/ })();
172
+ /******/ }();
173
+ /******/
140
174
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
141
175
  /******/ !function() {
142
176
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }