@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
@@ -1 +1 @@
1
- .kq3d-add-data{z-index:999;width:568px;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-add-data .kq3d-add-data-box{min-width:570px}.kq3d-add-data .kq-form-item{width:100%}.kq3d-add-data .kq-tabs__item{height:28px;line-height:20px;font-weight:400;font-size:var(--kq-font-size-medium);padding:0 16px}.kq3d-add-data .kq3d-add-data-desc{margin-bottom:16px}.kq3d-add-data .kq3d-add-data-title{color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base);padding-bottom:8px}.kq3d-add-data .kq3d-add-data-tip{color:var(--kq-text-color-secondary);font-size:13px;white-space:pre-wrap}.kq3d-add-data .kq3d-add-data-upload_text{color:#606266}.kq3d-add-data .kq-select{width:100%}.kq3d-add-data .kq-upload-dragger{background:var(--kq-bg-color);border:1px dashed var(--kq-border-color);border-radius:4px}.kq3d-add-data .kq3d-add-data-filelist{width:calc(100% - 2px);min-height:100px;height:auto;background:#f2f6fc;border:1px dashed #409eff;border-radius:4px}.kq3d-add-data .kq3d-add-data-filelist .kq-row{margin:10px 0;display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:0!important;margin-right:0!important}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file{background:#d9ecff;border-radius:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 8px;height:40px;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file .kq3d-add-data-doc{font-size:28px;color:#409eff;padding:4px}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file p{overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file .kq3d-add-data-close{font-size:18px;color:#f56c6c;padding:4px;cursor:pointer}.kq3d-add-data .kq3d-add-data-footer{width:100%;padding-top:16px}.kq3d-add-data .kq3d-add-data-footer .btns_box{float:right;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.kq3d-add-data .kq3d-add-data-footer .kq3d-add-data-footer-upload{padding:0 12px}
1
+ .kq3d-add-data{z-index:999;width:568px;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-add-data .kq3d-add-data-box{min-width:570px}.kq3d-add-data .kq-form-item{width:100%}.kq3d-add-data .kq-tabs__item{height:28px;line-height:20px;font-weight:400;font-size:var(--kq-font-size-medium);padding:0 16px}.kq3d-add-data .kq3d-add-data-desc{margin-bottom:16px}.kq3d-add-data .kq3d-add-data-title{color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base);padding-bottom:8px}.kq3d-add-data .kq3d-add-data-tip{color:var(--kq-text-color-secondary);font-size:13px;white-space:pre-wrap}.kq3d-add-data .kq3d-add-data-upload_text{color:#606266}.kq3d-add-data .kq-select{width:100%}.kq3d-add-data .kq-upload-dragger{background:var(--kq-bg-color);border:1px dashed var(--kq-border-color);border-radius:4px}.kq3d-add-data .kq3d-add-data-filelist{width:calc(100% - 2px);min-height:100px;height:auto;background:#f2f6fc;border:1px dashed #409eff;border-radius:4px}.kq3d-add-data .kq3d-add-data-filelist .kq-row{margin:10px 0;display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:0!important;margin-right:0!important}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file{background:#d9ecff;border-radius:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 8px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file .kq3d-add-data-doc{font-size:28px;color:#409eff;padding:4px}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file .kq3d-add-data-close{font-size:18px;color:#f56c6c;padding:4px;cursor:pointer}.kq3d-add-data .kq3d-add-data-footer{width:100%;padding-top:16px}.kq3d-add-data .kq3d-add-data-footer .btns_box{float:right;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.kq3d-add-data .kq3d-add-data-footer .kq3d-add-data-footer-upload{padding:0 12px}
@@ -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); }
@@ -201,26 +235,23 @@ class AspectAnalysisViewModel {
201
235
  this._globaOptions.viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
202
236
  // this._globaOptions.viewer.scene.globe.enableLighting = true;
203
237
  this._globaOptions._drawManager = scenceView._drawManager;
204
-
205
- var that = this;
206
238
  this._aspectAnalysis = new Cesium.Kq3dAspect(options);
207
- this._globaOptions._drawFinishedEventListener = this._globaOptions._drawManager.drawFinishedEvent.addEventListener(
208
- shape => {
209
- if (shape) {
210
- that._aspectAnalysis.positions = shape._controlPoints;
211
- that._globaOptions._drawManager.clear();
212
- }
213
- }
214
- );
215
239
  }
216
240
  // 开始分析
217
241
  start() {
242
+ var that = this;
218
243
  // 判断是否添加了地形
219
244
  if (this._globaOptions.viewer.terrainProvider.availability) {
220
245
  if (this._globaOptions.viewer.terrainProvider && !this._globaOptions.viewer.terrainProvider._heightmapStructure) {
221
246
  if (this._globaOptions._drawManager) {
222
247
  this.clear();
223
- this._globaOptions._drawManager.startDraw("polygon", { clampToGround: true });
248
+ this._globaOptions._drawManager.startDraw("polygon", { clampToGround: true }, (feature, { shape }) => {
249
+ if (!shape.groupName || shape.groupName !== "AspectAnalysisDraw") return;
250
+ if (shape) {
251
+ that._aspectAnalysis.positions = shape._controlPoints;
252
+ }
253
+ that._globaOptions._drawManager.clearDrawGroup("AspectAnalysisDraw");
254
+ }, "AspectAnalysisDraw");
224
255
  }
225
256
  } else {
226
257
  (0,message/* default */.Z)({
package/boxclip/index.js CHANGED
@@ -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); }
@@ -204,7 +238,6 @@ class BoxClipViewModel {
204
238
  };
205
239
  _boxclipAnalysis = null; //Box裁剪三维对象
206
240
  _drawManager = null; //绘制管理对象
207
- _removeEventListener = null; //绘制完成监听事件
208
241
  _language = {};
209
242
  callbackParams = null;
210
243
  constructor(scenceView, options, callbackParams) {
@@ -216,17 +249,9 @@ class BoxClipViewModel {
216
249
  this._options.viewer = this._viewer;
217
250
  this._drawManager = scenceView._drawManager;
218
251
  let that = this;
219
- this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
220
- if (shape) {
221
- that._options.position = shape.position;
222
- // 实例化分析对象
223
- that._boxclipAnalysis = new Cesium.Kq3dBoxClip(that._options);
224
- that._drawManager.clear();
225
- }
226
- });
227
- // 事件绑定this
252
+ // 事件绑定this
228
253
  this._resetListData = this._resetListData.bind(this);
229
- // 添加图层数据源变化监听
254
+ // 添加图层数据源变化监听
230
255
  gis_utils_.mapViewUtils.bindViewEvents("resetLayerDatas", this._resetListData, scenceView._viewerId);
231
256
  }
232
257
  _resetListData(e) {
@@ -242,7 +267,7 @@ class BoxClipViewModel {
242
267
  const primitives = this._options.viewer.scene.primitives._primitives;
243
268
  for (let m = 0; m < primitives.length; m++) {
244
269
  if (primitives[m] instanceof Cesium.Cesium3DTileset) {
245
- if(!primitives[m].show) continue;
270
+ if (!primitives[m].show) continue;
246
271
  tilesets.push({
247
272
  guid: primitives[m].guid,
248
273
  name: primitives[m].name ? primitives[m].name : primitives[m].guid
@@ -263,6 +288,7 @@ class BoxClipViewModel {
263
288
 
264
289
  // 开始分析
265
290
  start() {
291
+ var that = this;
266
292
  // 判断是否添加了模型
267
293
  var flag = false;
268
294
  var models = this._options.viewer.scene.primitives._primitives;
@@ -273,7 +299,17 @@ class BoxClipViewModel {
273
299
  }
274
300
  if (flag) {
275
301
  this.clear();
276
- if (this._drawManager) this._drawManager.startDraw("marker", { image: null });
302
+ if (this._drawManager) {
303
+ this._drawManager.startDraw("marker", { image: null }, (feature, { shape }) => {
304
+ if (!shape.groupName || shape.groupName !== "BoxClipDraw") return;
305
+ if (shape) {
306
+ that._options.position = shape.position;
307
+ // 实例化分析对象
308
+ that._boxclipAnalysis = new Cesium.Kq3dBoxClip(that._options);
309
+ }
310
+ that._drawManager.clearDrawGroup("BoxClipDraw");
311
+ }, "BoxClipDraw")
312
+ };
277
313
  } else {
278
314
  (0,message/* default */.Z)({
279
315
  message: this._language["addModelClipTips"],
@@ -295,9 +331,6 @@ class BoxClipViewModel {
295
331
  //销毁分析对象
296
332
  this._boxclipAnalysis && this._boxclipAnalysis.destroy();
297
333
  this._boxclipAnalysis = null;
298
- //移除监听事件
299
- this._removeEventListener && this._removeEventListener();
300
- this._removeEventListener = null;
301
334
  gis_utils_.mapViewUtils.offViewEvents("resetLayerDatas", this._resetListData, this._viewer._container.id);
302
335
  }
303
336