@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,197 +7,127 @@
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/_utils/util"), require("@kq_npm/client_common_vue/init.js")) : factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/_utils/util"], root["@kq_npm/client_common_vue/init.js"]);
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__3458__, __WEBPACK_EXTERNAL_MODULE__7997__) {
10
+ })(this, function(__WEBPACK_EXTERNAL_MODULE__154__, __WEBPACK_EXTERNAL_MODULE__64__, __WEBPACK_EXTERNAL_MODULE__2975__, __WEBPACK_EXTERNAL_MODULE__455__) {
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
- /***/ 1769:
16
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
-
18
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
- /* harmony export */ "Z": function() { return /* binding */ LimitHeightAnalysisViewModel; }
20
- /* harmony export */ });
21
- /* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
22
-
23
- //限高分析逻辑类
24
- class LimitHeightAnalysisViewModel {
25
- //三维viewer对象
26
- //限高分析存储参数对象
27
- constructor(scenceView, options) {
28
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
29
-
30
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_options", {});
31
-
32
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_drawManager", null);
33
-
34
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_drawFinishedEventListener", null);
35
-
36
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_limitHeightAnalysis", null);
37
-
38
- this._viewer = scenceView._viewer;
39
- this._options = options;
40
- this._drawManager = scenceView._drawManager;
41
- this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
42
-
43
- this._viewer.scene.postProcessStages._fxaa.enabled = true;
44
- var that = this;
45
- this._drawFinishedEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
46
- if (shape) {
47
- that._options.positions = shape._controlPoints;
48
- that.drawPolygon();
49
-
50
- that._drawManager.clear();
51
- }
52
- });
53
- } // 绘制限高分析,显示分析体
54
-
55
-
56
- drawPolygon() {
57
- if (!this._options.positions) return;
58
- var newPositions = [];
59
-
60
- this._options.positions.forEach(item => {
61
- var newPos = window.Cesium.Cartographic.fromCartesian(item);
62
- newPositions.push(newPos.longitude);
63
- newPositions.push(newPos.latitude);
64
- newPositions.push(newPos.height);
65
- });
66
-
67
- var options = {
68
- viewer: this._viewer,
69
- baseHeight: Number(this._options.baseHeight),
70
- limitHeight: Number(this._options.limitHeight),
71
- limitColor: window.Cesium.Color.fromCssColorString(this._options.limitHeightColor).withAlpha(this._options.limitColorAlpha),
72
- overColor: window.Cesium.Color.fromCssColorString(this._options.overHeightColor).withAlpha(this._options.overHeightColorAlpha),
73
- positions: newPositions,
74
- perPositionHeight: false,
75
- classificationType: window.Cesium.ClassificationType.CESIUM_3D_TILE
76
- };
77
- this._limitHeightAnalysis = new window.Cesium.Kq3dLimitHeightAnalysis(options);
78
-
79
- this._limitHeightAnalysis.add();
80
- } // 开始分析
81
-
82
-
83
- start() {
84
- this.clear();
85
-
86
- if (this._drawManager) {
87
- this._drawManager.startDraw("polygon", {
88
- clampToGround: true
89
- });
90
- }
91
- } // 修改基底高度
92
-
93
-
94
- changeBaseHeight(val) {
95
- this._options.baseHeight = val;
96
- this.clear();
97
- this.drawPolygon();
98
- } // 修改限制高度
99
-
100
-
101
- changeLimitHeight(val) {
102
- this._options.limitHeight = val;
103
- this.clear();
104
- this.drawPolygon();
105
- } // 修改限制高度颜色
106
-
107
-
108
- changeLimitHeightColor(val) {
109
- this._options.limitHeightColor = val;
110
- this.clear();
111
- this.drawPolygon();
112
- } // 修改超出高度颜色
15
+ /***/ 5698:
16
+ /***/ (function(module) {
113
17
 
18
+ module.exports = require("@kq_npm/client_icons_vue");
114
19
 
115
- changeOverHeightColor(val) {
116
- this._options.overHeightColor = val;
117
- this.clear();
118
- this.drawPolygon();
119
- } // 清除全部
20
+ /***/ }),
120
21
 
22
+ /***/ 2652:
23
+ /***/ (function(module) {
121
24
 
122
- clear() {
123
- this._limitHeightAnalysis && this._limitHeightAnalysis.remove();
124
- this._drawManager && this._drawManager.stopDraw();
125
- } // 销毁
25
+ module.exports = require("core-js/modules/es.array.push.js");
126
26
 
27
+ /***/ }),
127
28
 
128
- destroy() {
129
- this.clear();
130
- this._drawFinishedEventListener && this._drawFinishedEventListener();
131
- this._drawFinishedEventListener = null;
132
- }
29
+ /***/ 3658:
30
+ /***/ (function(module) {
133
31
 
134
- }
32
+ module.exports = require("core-js/modules/esnext.iterator.constructor.js");
135
33
 
136
34
  /***/ }),
137
35
 
138
- /***/ 348:
36
+ /***/ 4669:
139
37
  /***/ (function(module) {
140
38
 
141
- module.exports = require("@kq_npm/client_icons_vue");
39
+ module.exports = require("core-js/modules/esnext.iterator.for-each.js");
142
40
 
143
41
  /***/ }),
144
42
 
145
- /***/ 7080:
43
+ /***/ 3579:
146
44
  /***/ (function(module) {
147
45
 
148
46
  module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
149
47
 
150
48
  /***/ }),
151
49
 
152
- /***/ 7135:
50
+ /***/ 64:
153
51
  /***/ (function(module) {
154
52
 
155
- module.exports = __WEBPACK_EXTERNAL_MODULE__7135__;
53
+ module.exports = __WEBPACK_EXTERNAL_MODULE__64__;
156
54
 
157
55
  /***/ }),
158
56
 
159
- /***/ 3458:
57
+ /***/ 2975:
160
58
  /***/ (function(module) {
161
59
 
162
- module.exports = __WEBPACK_EXTERNAL_MODULE__3458__;
60
+ module.exports = __WEBPACK_EXTERNAL_MODULE__2975__;
163
61
 
164
62
  /***/ }),
165
63
 
166
- /***/ 7997:
64
+ /***/ 455:
167
65
  /***/ (function(module) {
168
66
 
169
- module.exports = __WEBPACK_EXTERNAL_MODULE__7997__;
67
+ module.exports = __WEBPACK_EXTERNAL_MODULE__455__;
170
68
 
171
69
  /***/ }),
172
70
 
173
- /***/ 1895:
71
+ /***/ 154:
174
72
  /***/ (function(module) {
175
73
 
176
- module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
74
+ module.exports = __WEBPACK_EXTERNAL_MODULE__154__;
177
75
 
178
76
  /***/ }),
179
77
 
180
- /***/ 8270:
78
+ /***/ 6913:
181
79
  /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
182
80
 
183
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
184
- /* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
185
- /* harmony export */ });
186
- function _defineProperty(obj, key, value) {
187
- if (key in obj) {
188
- Object.defineProperty(obj, key, {
189
- value: value,
190
- enumerable: true,
191
- configurable: true,
192
- writable: true
193
- });
194
- } else {
195
- obj[key] = value;
81
+
82
+ // EXPORTS
83
+ __webpack_require__.d(__webpack_exports__, {
84
+ A: function() { return /* binding */ _defineProperty; }
85
+ });
86
+
87
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
88
+ function _typeof(o) {
89
+ "@babel/helpers - typeof";
90
+
91
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
92
+ return typeof o;
93
+ } : function (o) {
94
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
95
+ }, _typeof(o);
96
+ }
97
+
98
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
99
+
100
+ function toPrimitive(t, r) {
101
+ if ("object" != _typeof(t) || !t) return t;
102
+ var e = t[Symbol.toPrimitive];
103
+ if (void 0 !== e) {
104
+ var i = e.call(t, r || "default");
105
+ if ("object" != _typeof(i)) return i;
106
+ throw new TypeError("@@toPrimitive must return a primitive value.");
196
107
  }
108
+ return ("string" === r ? String : Number)(t);
109
+ }
110
+
111
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
112
+
197
113
 
198
- return obj;
114
+ function toPropertyKey(t) {
115
+ var i = toPrimitive(t, "string");
116
+ return "symbol" == _typeof(i) ? i : i + "";
199
117
  }
200
118
 
119
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
120
+
121
+ function _defineProperty(e, r, t) {
122
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
123
+ value: t,
124
+ enumerable: !0,
125
+ configurable: !0,
126
+ writable: !0
127
+ }) : e[r] = t, e;
128
+ }
129
+
130
+
201
131
  /***/ })
202
132
 
203
133
  /******/ });
@@ -269,29 +199,134 @@ function _defineProperty(obj, key, value) {
269
199
  /******/
270
200
  /************************************************************************/
271
201
  var __webpack_exports__ = {};
272
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
273
- !function() {
274
202
  // ESM COMPAT FLAG
275
203
  __webpack_require__.r(__webpack_exports__);
276
204
 
277
205
  // EXPORTS
278
206
  __webpack_require__.d(__webpack_exports__, {
279
- "LimitHeightAnalysisViewModel": function() { return /* reexport */ LimitHeightAnalysisViewModel/* default */.Z; },
207
+ LimitHeightAnalysisViewModel: function() { return /* reexport */ LimitHeightAnalysisViewModel; },
280
208
  "default": function() { return /* reexport */ LimitHeightAnalysis; }
281
209
  });
282
210
 
283
211
  // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
284
- var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
212
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(154);
285
213
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
286
- var gis_utils_ = __webpack_require__(7135);
214
+ var gis_utils_ = __webpack_require__(64);
287
215
  // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
288
- var client_icons_vue_ = __webpack_require__(348);
289
- // EXTERNAL MODULE: ./src/webgl/limitheightanalysis/LimitHeightAnalysisViewModel.js
290
- var LimitHeightAnalysisViewModel = __webpack_require__(1769);
216
+ var client_icons_vue_ = __webpack_require__(5698);
217
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
218
+ var defineProperty = __webpack_require__(6913);
219
+ // EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
220
+ var es_array_push_js_ = __webpack_require__(2652);
221
+ // EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
222
+ var esnext_iterator_constructor_js_ = __webpack_require__(3658);
223
+ // EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
224
+ var esnext_iterator_for_each_js_ = __webpack_require__(4669);
225
+ ;// CONCATENATED MODULE: ./src/webgl/limitheightanalysis/LimitHeightAnalysisViewModel.js
226
+
227
+
228
+
229
+
230
+ /*
231
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
232
+ * All rights reserved.
233
+ */
234
+ //限高分析逻辑类
235
+ class LimitHeightAnalysisViewModel {
236
+ constructor(scenceView, options) {
237
+ (0,defineProperty/* default */.A)(this, "_viewer", null);
238
+ //三维viewer对象
239
+ (0,defineProperty/* default */.A)(this, "_options", {});
240
+ //限高分析存储参数对象
241
+ (0,defineProperty/* default */.A)(this, "_drawManager", null);
242
+ (0,defineProperty/* default */.A)(this, "_drawFinishedEventListener", null);
243
+ (0,defineProperty/* default */.A)(this, "_limitHeightAnalysis", null);
244
+ this._viewer = scenceView._viewer;
245
+ this._options = options;
246
+ this._drawManager = scenceView._drawManager;
247
+ this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
248
+ this._viewer.scene.postProcessStages._fxaa.enabled = true;
249
+ var that = this;
250
+ this._drawFinishedEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
251
+ if (shape) {
252
+ that._options.positions = shape._controlPoints;
253
+ that.drawPolygon();
254
+ that._drawManager.clear();
255
+ }
256
+ });
257
+ }
258
+ // 绘制限高分析,显示分析体
259
+ drawPolygon() {
260
+ if (!this._options.positions) return;
261
+ var newPositions = [];
262
+ this._options.positions.forEach(item => {
263
+ var newPos = window.Cesium.Cartographic.fromCartesian(item);
264
+ newPositions.push(newPos.longitude);
265
+ newPositions.push(newPos.latitude);
266
+ newPositions.push(newPos.height);
267
+ });
268
+ var options = {
269
+ viewer: this._viewer,
270
+ baseHeight: Number(this._options.baseHeight),
271
+ limitHeight: Number(this._options.limitHeight),
272
+ limitColor: window.Cesium.Color.fromCssColorString(this._options.limitHeightColor).withAlpha(this._options.limitColorAlpha),
273
+ overColor: window.Cesium.Color.fromCssColorString(this._options.overHeightColor).withAlpha(this._options.overHeightColorAlpha),
274
+ positions: newPositions,
275
+ perPositionHeight: false,
276
+ classificationType: window.Cesium.ClassificationType.CESIUM_3D_TILE
277
+ };
278
+ this._limitHeightAnalysis = new window.Cesium.Kq3dLimitHeightAnalysis(options);
279
+ this._limitHeightAnalysis.add();
280
+ }
281
+ // 开始分析
282
+ start() {
283
+ this.clear();
284
+ if (this._drawManager) {
285
+ this._drawManager.startDraw("polygon", {
286
+ clampToGround: true
287
+ });
288
+ }
289
+ }
290
+ // 修改基底高度
291
+ changeBaseHeight(val) {
292
+ this._options.baseHeight = val;
293
+ this.clear();
294
+ this.drawPolygon();
295
+ }
296
+ // 修改限制高度
297
+ changeLimitHeight(val) {
298
+ this._options.limitHeight = val;
299
+ this.clear();
300
+ this.drawPolygon();
301
+ }
302
+ // 修改限制高度颜色
303
+ changeLimitHeightColor(val) {
304
+ this._options.limitHeightColor = val;
305
+ this.clear();
306
+ this.drawPolygon();
307
+ }
308
+ // 修改超出高度颜色
309
+ changeOverHeightColor(val) {
310
+ this._options.overHeightColor = val;
311
+ this.clear();
312
+ this.drawPolygon();
313
+ }
314
+ // 清除全部
315
+ clear() {
316
+ this._limitHeightAnalysis && this._limitHeightAnalysis.remove();
317
+ this._drawManager && this._drawManager.stopDraw();
318
+ }
319
+ // 销毁
320
+ destroy() {
321
+ this.clear();
322
+ this._drawFinishedEventListener && this._drawFinishedEventListener();
323
+ this._drawFinishedEventListener = null;
324
+ }
325
+ }
291
326
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
292
- var util_ = __webpack_require__(3458);
327
+ var util_ = __webpack_require__(2975);
293
328
  // EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
294
- var vue_i18n_cjs_js_ = __webpack_require__(7080);
329
+ var vue_i18n_cjs_js_ = __webpack_require__(3579);
295
330
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/limitheightanalysis/LimitHeightAnalysis.vue?vue&type=script&setup=true&lang=js
296
331
 
297
332
  const _hoisted_1 = {
@@ -309,7 +344,7 @@ const _hoisted_2 = {
309
344
  const __default__ = {
310
345
  name: "Kq3dLimitHeightAnalysis"
311
346
  };
312
- /* harmony default export */ var LimitHeightAnalysisvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
347
+ /* harmony default export */ var LimitHeightAnalysisvue_type_script_setup_true_lang_js = (/*@__PURE__*/Object.assign(__default__, {
313
348
  props: {
314
349
  // 设置参数
315
350
  settingParams: {
@@ -320,7 +355,6 @@ const __default__ = {
320
355
  type: Boolean,
321
356
  default: true
322
357
  },
323
-
324
358
  /**
325
359
  * 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
326
360
  */
@@ -350,18 +384,18 @@ const __default__ = {
350
384
  default: true
351
385
  }
352
386
  },
353
-
354
387
  setup(__props, {
355
- expose
388
+ expose: __expose
356
389
  }) {
357
- const props = __props;
358
390
  const {
359
391
  proxy
360
392
  } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
361
393
  let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
362
394
  let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
363
- let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(""); // 获取组件传参
395
+ let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
364
396
 
397
+ // 获取组件传参
398
+ const props = __props;
365
399
  let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
366
400
  baseHeight: props.settingParams && props.settingParams.baseHeight || 100,
367
401
  // 基底高度
@@ -382,15 +416,17 @@ const __default__ = {
382
416
  overHeightColor: props.settingParams && props.settingParams.overHeightColor || "#FF0000",
383
417
  // 超出高度颜色
384
418
  overHeightColorAlpha: props.settingParams && props.settingParams.overHeightColorAlpha || 0.6 // 超出高度颜色透明度
385
-
386
419
  });
387
- let viewModel = null; // 组件容器Ref
420
+ let viewModel = null;
388
421
 
389
- let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
422
+ // 组件容器Ref
423
+ let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
390
424
 
425
+ // 生成组件默认header
391
426
  let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
392
- let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
427
+ let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
393
428
 
429
+ // 国际化
394
430
  let {
395
431
  locale,
396
432
  messages
@@ -410,10 +446,9 @@ const __default__ = {
410
446
  watchCreateHeaderTemp();
411
447
  });
412
448
  currentLang.value = proxy.$i18n.locale; // 获取当前语言类型
413
-
414
449
  gis_utils_.utils.getWebMap(null, scenceView => {
415
450
  if (scenceView) {
416
- viewModel = new LimitHeightAnalysisViewModel/* default */.Z(scenceView, {
451
+ viewModel = new LimitHeightAnalysisViewModel(scenceView, {
417
452
  baseHeight: formItem.baseHeight,
418
453
  limitHeight: formItem.limitHeight,
419
454
  limitHeightColor: formItem.limitHeightColor,
@@ -424,82 +459,66 @@ const __default__ = {
424
459
  }
425
460
  });
426
461
  });
462
+
427
463
  /**
428
464
  * @description 监听header生成
429
465
  */
430
-
431
466
  const watchCreateHeaderTemp = () => {
432
467
  if (props.showHeaderTemp) {
433
468
  // 生成headerTemp
434
469
  headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
435
470
  }
436
- }; // 参数切换
437
-
438
-
471
+ };
472
+ // 参数切换
439
473
  function paramsChanged(key) {
440
474
  switch (key) {
441
475
  case "baseHeight":
442
476
  viewModel && viewModel.changeBaseHeight(formItem.baseHeight);
443
477
  break;
444
-
445
478
  case "limitHeight":
446
479
  viewModel && viewModel.changeLimitHeight(formItem.limitHeight);
447
480
  break;
448
-
449
481
  case "limitHeightColor":
450
482
  viewModel && viewModel.changeLimitHeightColor(formItem.limitHeightColor);
451
483
  break;
452
-
453
484
  case "overHeightColor":
454
485
  viewModel && viewModel.changeOverHeightColor(formItem.overHeightColor);
455
486
  break;
456
-
457
487
  default:
458
488
  break;
459
489
  }
460
- } //开始分析
461
-
462
-
490
+ }
491
+ //开始分析
463
492
  function startAnalysis() {
464
493
  viewModel && viewModel.start();
465
- } //清除结果
466
-
494
+ }
467
495
 
496
+ //清除结果
468
497
  function clearResult() {
469
498
  if (viewModel) viewModel._options.positions = null;
470
499
  viewModel && viewModel.clear();
471
- } // 销毁
472
-
500
+ }
473
501
 
502
+ // 销毁
474
503
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
475
504
  viewModel && viewModel.destroy();
476
505
  });
477
- expose({
506
+ __expose({
478
507
  paramsChanged,
479
508
  startAnalysis,
480
509
  clearResult
481
510
  });
482
511
  return (_ctx, _cache) => {
483
512
  const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
484
-
485
513
  const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
486
-
487
514
  const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
488
-
489
515
  const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
490
-
491
516
  const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
492
-
493
517
  const _component_kq_color_picker = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-color-picker");
494
-
495
518
  const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
496
-
497
519
  const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
498
-
499
520
  const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
500
-
501
521
  const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
502
-
503
522
  return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
504
523
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-limitheight-analysis", {
505
524
  'kq-box-shadow': __props.showShadow
@@ -510,17 +529,11 @@ const __default__ = {
510
529
  key: 0,
511
530
  ref_key: "headerTempRef",
512
531
  ref: headerTempRef
513
- }, null, 512
514
- /* NEED_PATCH */
515
- )) : (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, {
532
+ }, 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, {
516
533
  class: "kq3d-limitheight-analysis-tip"
517
534
  }, {
518
- 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
519
- /* TEXT */
520
- )]),
521
- _: 1
522
- /* STABLE */
523
-
535
+ 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 */)]),
536
+ _: 1 /* STABLE */
524
537
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
525
538
  "model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(collapseValue)
526
539
  }, {
@@ -551,12 +564,8 @@ const __default__ = {
551
564
  min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minBaseHeight,
552
565
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxBaseHeight,
553
566
  onInput: _cache[1] || (_cache[1] = $event => paramsChanged('baseHeight'))
554
- }, null, 8
555
- /* PROPS */
556
- , ["modelValue", "min", "max"])]),
557
- _: 1
558
- /* STABLE */
559
-
567
+ }, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
568
+ _: 1 /* STABLE */
560
569
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
561
570
  span: 8
562
571
  }, {
@@ -568,26 +577,14 @@ const __default__ = {
568
577
  step: 1,
569
578
  "controls-position": "right",
570
579
  onInput: _cache[3] || (_cache[3] = $event => paramsChanged('baseHeight'))
571
- }, null, 8
572
- /* PROPS */
573
- , ["modelValue", "min", "max"])]),
574
- _: 1
575
- /* STABLE */
576
-
580
+ }, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
581
+ _: 1 /* STABLE */
577
582
  })]),
578
- _: 1
579
- /* STABLE */
580
-
583
+ _: 1 /* STABLE */
581
584
  })]),
582
- _: 1
583
- /* STABLE */
584
-
585
- }, 8
586
- /* PROPS */
587
- , ["label"])]),
588
- _: 1
589
- /* STABLE */
590
-
585
+ _: 1 /* STABLE */
586
+ }, 8 /* PROPS */, ["label"])]),
587
+ _: 1 /* STABLE */
591
588
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
592
589
  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_form_item, {
593
590
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).limitHeight
@@ -607,12 +604,8 @@ const __default__ = {
607
604
  min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minLimitHeight,
608
605
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxLimitHeight,
609
606
  onInput: _cache[5] || (_cache[5] = $event => paramsChanged('limitHeight'))
610
- }, null, 8
611
- /* PROPS */
612
- , ["modelValue", "min", "max"])]),
613
- _: 1
614
- /* STABLE */
615
-
607
+ }, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
608
+ _: 1 /* STABLE */
616
609
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
617
610
  span: 8
618
611
  }, {
@@ -624,26 +617,14 @@ const __default__ = {
624
617
  step: 1,
625
618
  "controls-position": "right",
626
619
  onInput: _cache[7] || (_cache[7] = $event => paramsChanged('limitHeight'))
627
- }, null, 8
628
- /* PROPS */
629
- , ["modelValue", "min", "max"])]),
630
- _: 1
631
- /* STABLE */
632
-
620
+ }, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
621
+ _: 1 /* STABLE */
633
622
  })]),
634
- _: 1
635
- /* STABLE */
636
-
623
+ _: 1 /* STABLE */
637
624
  })]),
638
- _: 1
639
- /* STABLE */
640
-
641
- }, 8
642
- /* PROPS */
643
- , ["label"])]),
644
- _: 1
645
- /* STABLE */
646
-
625
+ _: 1 /* STABLE */
626
+ }, 8 /* PROPS */, ["label"])]),
627
+ _: 1 /* STABLE */
647
628
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
648
629
  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_form_item, {
649
630
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).limitHeightColor
@@ -652,18 +633,10 @@ const __default__ = {
652
633
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).limitHeightColor,
653
634
  "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).limitHeightColor = $event),
654
635
  onChange: _cache[9] || (_cache[9] = $event => paramsChanged('limitHeightColor'))
655
- }, null, 8
656
- /* PROPS */
657
- , ["modelValue"])]),
658
- _: 1
659
- /* STABLE */
660
-
661
- }, 8
662
- /* PROPS */
663
- , ["label"])]),
664
- _: 1
665
- /* STABLE */
666
-
636
+ }, null, 8 /* PROPS */, ["modelValue"])]),
637
+ _: 1 /* STABLE */
638
+ }, 8 /* PROPS */, ["label"])]),
639
+ _: 1 /* STABLE */
667
640
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
668
641
  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_form_item, {
669
642
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).overHeightColor
@@ -672,67 +645,32 @@ const __default__ = {
672
645
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).overHeightColor,
673
646
  "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).overHeightColor = $event),
674
647
  onChange: _cache[11] || (_cache[11] = $event => paramsChanged('overHeightColor'))
675
- }, null, 8
676
- /* PROPS */
677
- , ["modelValue"])]),
678
- _: 1
679
- /* STABLE */
680
-
681
- }, 8
682
- /* PROPS */
683
- , ["label"])]),
684
- _: 1
685
- /* STABLE */
686
-
648
+ }, null, 8 /* PROPS */, ["modelValue"])]),
649
+ _: 1 /* STABLE */
650
+ }, 8 /* PROPS */, ["label"])]),
651
+ _: 1 /* STABLE */
687
652
  })]),
688
- _: 1
689
- /* STABLE */
690
-
691
- }, 8
692
- /* PROPS */
693
- , ["label-width"])]),
694
- _: 1
695
- /* STABLE */
696
-
697
- }, 8
698
- /* PROPS */
699
- , ["title"])]),
700
- _: 1
701
- /* STABLE */
702
-
703
- }, 8
704
- /* PROPS */
705
- , ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
653
+ _: 1 /* STABLE */
654
+ }, 8 /* PROPS */, ["label-width"])]),
655
+ _: 1 /* STABLE */
656
+ }, 8 /* PROPS */, ["title"])]),
657
+ _: 1 /* STABLE */
658
+ }, 8 /* PROPS */, ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
706
659
  onClick: _cache[12] || (_cache[12] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
707
660
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis,
708
661
  type: "primary"
709
662
  }, {
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).startAnalysis), 1
711
- /* TEXT */
712
- )]),
713
- _: 1
714
- /* STABLE */
715
-
716
- }, 8
717
- /* PROPS */
718
- , ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
663
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis), 1 /* TEXT */)]),
664
+ _: 1 /* STABLE */
665
+ }, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
719
666
  onClick: _cache[13] || (_cache[13] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
720
667
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
721
668
  }, {
722
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult), 1
723
- /* TEXT */
724
- )]),
725
- _: 1
726
- /* STABLE */
727
-
728
- }, 8
729
- /* PROPS */
730
- , ["title"])])])], 2
731
- /* CLASS */
732
- );
669
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult), 1 /* TEXT */)]),
670
+ _: 1 /* STABLE */
671
+ }, 8 /* PROPS */, ["title"])])])], 2 /* CLASS */);
733
672
  };
734
673
  }
735
-
736
674
  }));
737
675
  ;// CONCATENATED MODULE: ./src/webgl/limitheightanalysis/LimitHeightAnalysis.vue?vue&type=script&setup=true&lang=js
738
676
 
@@ -744,10 +682,13 @@ const __exports__ = LimitHeightAnalysisvue_type_script_setup_true_lang_js;
744
682
 
745
683
  /* harmony default export */ var LimitHeightAnalysis = (__exports__);
746
684
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
747
- var init_js_ = __webpack_require__(7997);
685
+ var init_js_ = __webpack_require__(455);
748
686
  var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
749
687
  ;// CONCATENATED MODULE: ./src/webgl/limitheightanalysis/index.js
750
-
688
+ /*
689
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
690
+ * All rights reserved.
691
+ */
751
692
 
752
693
 
753
694
 
@@ -756,8 +697,6 @@ LimitHeightAnalysis.install = (Vue, opts) => {
756
697
  Vue.component(LimitHeightAnalysis.name, LimitHeightAnalysis);
757
698
  };
758
699
 
759
-
760
- }();
761
700
  /******/ return __webpack_exports__;
762
701
  /******/ })()
763
702
  ;