@kq_npm/client3d_webgl_vue 4.5.3-beta → 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.
- package/adddata/index.js +337 -524
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +159 -227
- package/baseterraingallery/index.js +122 -145
- package/boxclip/index.js +288 -470
- package/clientPrint/index.js +333 -897
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +224 -246
- package/compass/index.js +96 -84
- package/excavatefillanalysis/index.js +181 -252
- package/fixedzoomin/index.js +91 -76
- package/fixedzoomout/index.js +91 -76
- package/flight/index.js +297 -401
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +243 -382
- package/geologicalbodyanalysis/index.js +203 -287
- package/gpuspatialquery/index.js +240 -390
- package/hawkeye/index.js +139 -103
- package/headertemp/index.js +23 -33
- package/heatmap3d/index.js +426 -733
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +7913 -16839
- package/isolineanalysis/index.js +554 -1231
- package/light/index.js +351 -488
- package/limitheightanalysis/index.js +249 -312
- package/measure/index.js +339 -493
- package/modelFlat/index.js +202 -223
- package/modelexcavate/index.js +194 -251
- package/modelfilter/index.js +216 -299
- package/modelprofileanalysis/index.js +354 -465
- package/modelselect/index.js +180 -173
- package/package.json +1 -1
- package/particleeffect/index.js +257 -430
- package/planeclip/index.js +237 -328
- package/resetview/index.js +89 -69
- package/roller/index.js +305 -363
- package/scaneffect/index.js +273 -571
- package/sceneadvancedtoimage/index.js +1055 -0
- package/sceneadvancedtoimage/style/index.js +3 -0
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -0
- package/sceneapp/index.js +818 -2179
- package/sceneset/index.js +391 -885
- package/scenetohdimage/index.js +212 -346
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +9018 -17813
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +273 -312
- package/shadowanalysis/index.js +256 -436
- package/sightlineanalysis/index.js +229 -312
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +200 -339
- package/slopeanalysis/index.js +270 -433
- package/slopeaspectanalysis/index.js +303 -523
- package/statusbar/index.js +113 -84
- package/style.css +1 -1
- package/terrainoperation/index.js +218 -269
- package/terrainprofileanalysis/index.js +162 -171
- package/underground/index.js +96 -82
- package/videofusion/index.js +305 -519
- package/videoproject/index.js +311 -521
- package/viewshedanalysis/index.js +176 -275
- package/weathereffect/index.js +197 -343
- package/wireframesketch/index.js +133 -141
|
@@ -7,100 +7,141 @@
|
|
|
7
7
|
var a = typeof exports === 'object' ? factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/_utils/util")) : factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/init.js"], root["@kq_npm/client_common_vue/_utils/util"]);
|
|
8
8
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
9
|
}
|
|
10
|
-
})(this, function(
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE__154__, __WEBPACK_EXTERNAL_MODULE__64__, __WEBPACK_EXTERNAL_MODULE__455__, __WEBPACK_EXTERNAL_MODULE__2975__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
15
|
+
/***/ 3275:
|
|
16
16
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
17
|
|
|
18
|
-
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
18
|
+
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6363);
|
|
19
19
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
20
|
-
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
20
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(455);
|
|
21
21
|
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
|
|
22
|
-
|
|
22
|
+
/*
|
|
23
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
24
|
+
* All rights reserved.
|
|
25
|
+
*/
|
|
23
26
|
|
|
24
27
|
|
|
25
28
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
26
29
|
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
27
30
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
28
31
|
};
|
|
29
|
-
|
|
30
|
-
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
32
|
+
/* harmony default export */ __webpack_exports__.A = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
31
33
|
|
|
32
34
|
/***/ }),
|
|
33
35
|
|
|
34
|
-
/***/
|
|
36
|
+
/***/ 5698:
|
|
35
37
|
/***/ (function(module) {
|
|
36
38
|
|
|
37
39
|
module.exports = require("@kq_npm/client_icons_vue");
|
|
38
40
|
|
|
39
41
|
/***/ }),
|
|
40
42
|
|
|
41
|
-
/***/
|
|
43
|
+
/***/ 2652:
|
|
44
|
+
/***/ (function(module) {
|
|
45
|
+
|
|
46
|
+
module.exports = require("core-js/modules/es.array.push.js");
|
|
47
|
+
|
|
48
|
+
/***/ }),
|
|
49
|
+
|
|
50
|
+
/***/ 6363:
|
|
42
51
|
/***/ (function(module) {
|
|
43
52
|
|
|
44
53
|
module.exports = require("element-plus/dist/index.full.js");
|
|
45
54
|
|
|
46
55
|
/***/ }),
|
|
47
56
|
|
|
48
|
-
/***/
|
|
57
|
+
/***/ 3579:
|
|
49
58
|
/***/ (function(module) {
|
|
50
59
|
|
|
51
60
|
module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
52
61
|
|
|
53
62
|
/***/ }),
|
|
54
63
|
|
|
55
|
-
/***/
|
|
64
|
+
/***/ 64:
|
|
56
65
|
/***/ (function(module) {
|
|
57
66
|
|
|
58
|
-
module.exports =
|
|
67
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__64__;
|
|
59
68
|
|
|
60
69
|
/***/ }),
|
|
61
70
|
|
|
62
|
-
/***/
|
|
71
|
+
/***/ 2975:
|
|
63
72
|
/***/ (function(module) {
|
|
64
73
|
|
|
65
|
-
module.exports =
|
|
74
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__2975__;
|
|
66
75
|
|
|
67
76
|
/***/ }),
|
|
68
77
|
|
|
69
|
-
/***/
|
|
78
|
+
/***/ 455:
|
|
70
79
|
/***/ (function(module) {
|
|
71
80
|
|
|
72
|
-
module.exports =
|
|
81
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__455__;
|
|
73
82
|
|
|
74
83
|
/***/ }),
|
|
75
84
|
|
|
76
|
-
/***/
|
|
85
|
+
/***/ 154:
|
|
77
86
|
/***/ (function(module) {
|
|
78
87
|
|
|
79
|
-
module.exports =
|
|
88
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__154__;
|
|
80
89
|
|
|
81
90
|
/***/ }),
|
|
82
91
|
|
|
83
|
-
/***/
|
|
92
|
+
/***/ 6913:
|
|
84
93
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
85
94
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
function
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
|
|
96
|
+
// EXPORTS
|
|
97
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
98
|
+
A: 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.");
|
|
99
121
|
}
|
|
122
|
+
return ("string" === r ? String : Number)(t);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
100
126
|
|
|
101
|
-
|
|
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
|
+
|
|
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;
|
|
102
142
|
}
|
|
103
143
|
|
|
144
|
+
|
|
104
145
|
/***/ })
|
|
105
146
|
|
|
106
147
|
/******/ });
|
|
@@ -172,66 +213,61 @@ function _defineProperty(obj, key, value) {
|
|
|
172
213
|
/******/
|
|
173
214
|
/************************************************************************/
|
|
174
215
|
var __webpack_exports__ = {};
|
|
175
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
176
|
-
!function() {
|
|
177
216
|
// ESM COMPAT FLAG
|
|
178
217
|
__webpack_require__.r(__webpack_exports__);
|
|
179
218
|
|
|
180
219
|
// EXPORTS
|
|
181
220
|
__webpack_require__.d(__webpack_exports__, {
|
|
182
|
-
|
|
221
|
+
TerrainProfileAnalysisViewModel: function() { return /* reexport */ TerrainProfileAnalysisViewModel; },
|
|
183
222
|
"default": function() { return /* reexport */ TerrainProfileAnalysis; }
|
|
184
223
|
});
|
|
185
224
|
|
|
186
225
|
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
187
|
-
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
226
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(154);
|
|
188
227
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
189
|
-
var gis_utils_ = __webpack_require__(
|
|
190
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
191
|
-
var defineProperty = __webpack_require__(
|
|
228
|
+
var gis_utils_ = __webpack_require__(64);
|
|
229
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
|
|
230
|
+
var defineProperty = __webpack_require__(6913);
|
|
231
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
232
|
+
var es_array_push_js_ = __webpack_require__(2652);
|
|
192
233
|
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
193
|
-
var message = __webpack_require__(
|
|
234
|
+
var message = __webpack_require__(3275);
|
|
194
235
|
;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/TerrainProfileAnalysisViewModel.js
|
|
195
236
|
|
|
196
237
|
|
|
238
|
+
/*
|
|
239
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
240
|
+
* All rights reserved.
|
|
241
|
+
*/
|
|
242
|
+
|
|
197
243
|
class TerrainProfileAnalysisViewModel {
|
|
198
|
-
// 三维viewer对象
|
|
199
|
-
//绘制管理对象
|
|
200
|
-
//绘制完成监听事件
|
|
201
|
-
//分析结束事件
|
|
202
244
|
constructor(scenceView, option) {
|
|
203
|
-
(0,defineProperty/* default */.
|
|
204
|
-
|
|
205
|
-
(0,defineProperty/* default */.
|
|
206
|
-
|
|
207
|
-
(0,defineProperty/* default */.
|
|
208
|
-
|
|
209
|
-
(0,defineProperty/* default */.
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
(0,defineProperty/* default */.
|
|
214
|
-
|
|
215
|
-
(0,defineProperty/* default */.
|
|
216
|
-
|
|
217
|
-
(0,defineProperty/* default */.
|
|
218
|
-
|
|
219
|
-
(0,defineProperty/* default */.Z)(this, "divPointArr", []);
|
|
220
|
-
|
|
221
|
-
(0,defineProperty/* default */.Z)(this, "languageDta", {});
|
|
222
|
-
|
|
223
|
-
(0,defineProperty/* default */.Z)(this, "coordDivpoint", null);
|
|
224
|
-
|
|
245
|
+
(0,defineProperty/* default */.A)(this, "_viewer", null);
|
|
246
|
+
// 三维viewer对象
|
|
247
|
+
(0,defineProperty/* default */.A)(this, "_terrainSlopeAnalyse", null);
|
|
248
|
+
(0,defineProperty/* default */.A)(this, "_analyseHeight", 1000);
|
|
249
|
+
(0,defineProperty/* default */.A)(this, "_drawManager", null);
|
|
250
|
+
//绘制管理对象
|
|
251
|
+
(0,defineProperty/* default */.A)(this, "_removeEventListener", null);
|
|
252
|
+
//绘制完成监听事件
|
|
253
|
+
//分析结束事件
|
|
254
|
+
(0,defineProperty/* default */.A)(this, "minHeight", null);
|
|
255
|
+
(0,defineProperty/* default */.A)(this, "maxHeight", null);
|
|
256
|
+
(0,defineProperty/* default */.A)(this, "distance", null);
|
|
257
|
+
(0,defineProperty/* default */.A)(this, "divPointArr", []);
|
|
258
|
+
(0,defineProperty/* default */.A)(this, "languageDta", {});
|
|
259
|
+
(0,defineProperty/* default */.A)(this, "coordDivpoint", null);
|
|
225
260
|
this._viewer = scenceView._viewer;
|
|
226
261
|
this._drawManager = scenceView._drawManager;
|
|
227
|
-
this._analyseHeight = option.analyseHeight;
|
|
262
|
+
this._analyseHeight = option.analyseHeight;
|
|
228
263
|
|
|
264
|
+
// 开启对数缓冲区 减少视锥体中多视锥体 减少重绘次数提高性能
|
|
229
265
|
this._viewer.scene.logarithmicDepthBuffer = false;
|
|
230
|
-
this._viewer.scene.pickTranslucentDepth = true;
|
|
231
|
-
|
|
266
|
+
this._viewer.scene.pickTranslucentDepth = true;
|
|
267
|
+
// 默认
|
|
232
268
|
this._viewer.resolutionScale = 1.2;
|
|
233
|
-
this._viewer.postProcessStages.fxaa.enabled = true;
|
|
234
|
-
|
|
269
|
+
this._viewer.postProcessStages.fxaa.enabled = true;
|
|
270
|
+
// 开启深度检测
|
|
235
271
|
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
236
272
|
this._viewer.scene.pickTranslucentDepth = true;
|
|
237
273
|
this._terrainSlopeAnalyse = new window.Cesium.Kq3dSlope2({
|
|
@@ -242,11 +278,10 @@ class TerrainProfileAnalysisViewModel {
|
|
|
242
278
|
this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
243
279
|
if (shape) {
|
|
244
280
|
that._terrainSlopeAnalyse.startAnalyse(shape._controlPoints);
|
|
245
|
-
|
|
246
281
|
that._drawManager.clear();
|
|
247
282
|
}
|
|
248
|
-
});
|
|
249
|
-
|
|
283
|
+
});
|
|
284
|
+
//分析结束事件
|
|
250
285
|
this._terrainSlopeAnalyse.analyseEndEvent.addEventListener(function (res) {
|
|
251
286
|
that.minHeight = res.minHeight;
|
|
252
287
|
that.maxHeight = res.maxHeight;
|
|
@@ -258,13 +293,10 @@ class TerrainProfileAnalysisViewModel {
|
|
|
258
293
|
that.createInfoDivPoint(that.languageDta.minHeight, that.minHeight.toFixed(3), window.Cesium.Cartographic.toCartesian(minPos));
|
|
259
294
|
that.createInfoDivPoint(that.languageDta.maxHeight, that.maxHeight.toFixed(3), window.Cesium.Cartographic.toCartesian(maxPos));
|
|
260
295
|
});
|
|
261
|
-
|
|
262
296
|
var handler = new window.Cesium.ScreenSpaceEventHandler(this._viewer.canvas);
|
|
263
297
|
handler.setInputAction(function (movement) {
|
|
264
298
|
var position = that._viewer.scene.pickPosition(movement.endPosition);
|
|
265
|
-
|
|
266
299
|
var pickedObject = that._viewer.scene.pick(movement.endPosition);
|
|
267
|
-
|
|
268
300
|
if (pickedObject && pickedObject.id instanceof window.Cesium.Entity && pickedObject.id.wall) {
|
|
269
301
|
//获取当前点的地形高度,在坡度分析墙的上方显示详细信息面板
|
|
270
302
|
var carto = window.Cesium.Cartographic.fromCartesian(position);
|
|
@@ -283,13 +315,11 @@ class TerrainProfileAnalysisViewModel {
|
|
|
283
315
|
}
|
|
284
316
|
}, window.Cesium.ScreenSpaceEventType.MOUSE_MOVE);
|
|
285
317
|
}
|
|
286
|
-
|
|
287
318
|
changeLanguage(val) {
|
|
288
319
|
this.languageDta = val;
|
|
289
320
|
this.clear();
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
321
|
+
}
|
|
322
|
+
//创建当前点坐标信息面板"longitude": "经度","latitude": "纬度",
|
|
293
323
|
createInfoDivPoint2(lon, lat, height, maxHeight, distance, position) {
|
|
294
324
|
let html = `<div class="coord">
|
|
295
325
|
<div class="text">
|
|
@@ -301,13 +331,12 @@ class TerrainProfileAnalysisViewModel {
|
|
|
301
331
|
</div>
|
|
302
332
|
<div class="pole"></div>
|
|
303
333
|
<div class="ball"></div>
|
|
304
|
-
</div>`;
|
|
305
|
-
|
|
334
|
+
</div>`;
|
|
335
|
+
//初始化DivPoint
|
|
306
336
|
if (this.coordDivpoint) {
|
|
307
337
|
this.coordDivpoint.destroy();
|
|
308
338
|
this.coordDivpoint = null;
|
|
309
339
|
}
|
|
310
|
-
|
|
311
340
|
this.coordDivpoint = new window.Cesium.Kq3dHtmlTag(this._viewer, {
|
|
312
341
|
html: html,
|
|
313
342
|
position: position,
|
|
@@ -315,16 +344,15 @@ class TerrainProfileAnalysisViewModel {
|
|
|
315
344
|
noEvent: true
|
|
316
345
|
});
|
|
317
346
|
this.divPointArr.push(this.coordDivpoint);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
|
|
347
|
+
}
|
|
348
|
+
//创建最高最低点信息面板
|
|
321
349
|
createInfoDivPoint(name, value, position) {
|
|
322
350
|
let html = `<div class="height">
|
|
323
351
|
<div class="text">${name}:${value}m</div>
|
|
324
352
|
<div class="pole"> </div>
|
|
325
353
|
<div class="ball"></div>
|
|
326
|
-
</div>`;
|
|
327
|
-
|
|
354
|
+
</div>`;
|
|
355
|
+
//初始化DivPoint
|
|
328
356
|
let divPoint = new window.Cesium.Kq3dHtmlTag(this._viewer, {
|
|
329
357
|
html: html,
|
|
330
358
|
position: position,
|
|
@@ -334,61 +362,54 @@ class TerrainProfileAnalysisViewModel {
|
|
|
334
362
|
this.divPointArr.push(divPoint);
|
|
335
363
|
return divPoint;
|
|
336
364
|
}
|
|
337
|
-
|
|
338
365
|
start() {
|
|
339
366
|
// 判断是否添加了地形
|
|
340
367
|
if (this._viewer.terrainProvider.availability) {
|
|
341
368
|
if (this._viewer.terrainProvider instanceof window.Cesium.CesiumTerrainProvider) {
|
|
342
369
|
this.clear();
|
|
343
|
-
|
|
344
370
|
this._drawManager.startDraw("polyline", {
|
|
345
371
|
clampToGround: true
|
|
346
372
|
});
|
|
347
373
|
} else {
|
|
348
|
-
(0,message/* default */.
|
|
374
|
+
(0,message/* default */.A)({
|
|
349
375
|
message: "只支持STK类型的地形分析!",
|
|
350
376
|
type: "warning"
|
|
351
377
|
});
|
|
352
378
|
}
|
|
353
379
|
} else {
|
|
354
|
-
(0,message/* default */.
|
|
380
|
+
(0,message/* default */.A)({
|
|
355
381
|
message: "请加载地形后分析!",
|
|
356
382
|
type: "warning"
|
|
357
383
|
});
|
|
358
384
|
}
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
|
|
385
|
+
}
|
|
386
|
+
//清除
|
|
362
387
|
clear() {
|
|
363
388
|
this._drawManager && this._drawManager.stopDraw();
|
|
364
389
|
this._terrainSlopeAnalyse && this._terrainSlopeAnalyse.clear();
|
|
365
|
-
|
|
366
390
|
for (let index = 0; index < this.divPointArr.length; index++) {
|
|
367
391
|
var divPoint = this.divPointArr[index];
|
|
368
|
-
|
|
369
392
|
if (divPoint) {
|
|
370
393
|
divPoint.destroy();
|
|
371
394
|
}
|
|
372
395
|
}
|
|
373
|
-
|
|
374
396
|
this.divPointArr = [];
|
|
375
|
-
}
|
|
376
|
-
|
|
397
|
+
}
|
|
377
398
|
|
|
399
|
+
//销毁
|
|
378
400
|
destroy() {
|
|
379
|
-
this.clear();
|
|
380
|
-
|
|
401
|
+
this.clear();
|
|
402
|
+
//移除监听事件
|
|
381
403
|
this._removeEventListener && this._removeEventListener();
|
|
382
404
|
this._removeEventListener = null;
|
|
383
405
|
}
|
|
384
|
-
|
|
385
406
|
}
|
|
386
407
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
387
|
-
var client_icons_vue_ = __webpack_require__(
|
|
408
|
+
var client_icons_vue_ = __webpack_require__(5698);
|
|
388
409
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
389
|
-
var util_ = __webpack_require__(
|
|
410
|
+
var util_ = __webpack_require__(2975);
|
|
390
411
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
391
|
-
var vue_i18n_cjs_js_ = __webpack_require__(
|
|
412
|
+
var vue_i18n_cjs_js_ = __webpack_require__(3579);
|
|
392
413
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/terrainprofileanalysis/TerrainProfileAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
393
414
|
|
|
394
415
|
const _hoisted_1 = {
|
|
@@ -399,12 +420,13 @@ const _hoisted_1 = {
|
|
|
399
420
|
|
|
400
421
|
|
|
401
422
|
|
|
402
|
-
|
|
423
|
+
|
|
424
|
+
//语言
|
|
403
425
|
|
|
404
426
|
const __default__ = {
|
|
405
427
|
name: "Kq3dTerrainProfileAnalysis"
|
|
406
428
|
};
|
|
407
|
-
/* harmony default export */ var TerrainProfileAnalysisvue_type_script_setup_true_lang_js = (
|
|
429
|
+
/* harmony default export */ var TerrainProfileAnalysisvue_type_script_setup_true_lang_js = (/*@__PURE__*/Object.assign(__default__, {
|
|
408
430
|
props: {
|
|
409
431
|
//指定组件绑定的viewer对象的div的id
|
|
410
432
|
mapTarget: String,
|
|
@@ -417,7 +439,6 @@ const __default__ = {
|
|
|
417
439
|
type: Boolean,
|
|
418
440
|
default: true
|
|
419
441
|
},
|
|
420
|
-
|
|
421
442
|
/**
|
|
422
443
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
423
444
|
*/
|
|
@@ -447,29 +468,29 @@ const __default__ = {
|
|
|
447
468
|
default: true
|
|
448
469
|
}
|
|
449
470
|
},
|
|
450
|
-
|
|
451
471
|
setup(__props, {
|
|
452
472
|
expose: __expose
|
|
453
473
|
}) {
|
|
454
|
-
const props = __props;
|
|
455
474
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
456
475
|
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
457
476
|
let viewModel = null;
|
|
458
477
|
let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
459
478
|
const {
|
|
460
479
|
proxy
|
|
461
|
-
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
480
|
+
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
481
|
+
// 获取组件传参
|
|
482
|
+
const props = __props;
|
|
462
483
|
// 组件容器Ref
|
|
484
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
463
485
|
|
|
464
|
-
|
|
465
|
-
|
|
486
|
+
// 生成组件默认header
|
|
466
487
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
467
488
|
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
468
489
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
469
490
|
analyseHeight: props.settingParams && props.settingParams.analyseHeight || 1000 // 分析默认高度
|
|
491
|
+
});
|
|
470
492
|
|
|
471
|
-
|
|
472
|
-
|
|
493
|
+
// 国际化
|
|
473
494
|
let {
|
|
474
495
|
locale,
|
|
475
496
|
messages
|
|
@@ -491,7 +512,6 @@ const __default__ = {
|
|
|
491
512
|
});
|
|
492
513
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
493
514
|
//父组件ScenceView初始化完成后执行
|
|
494
|
-
|
|
495
515
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
496
516
|
if (scenceView) {
|
|
497
517
|
viewModel = new TerrainProfileAnalysisViewModel(scenceView, {
|
|
@@ -501,49 +521,42 @@ const __default__ = {
|
|
|
501
521
|
}
|
|
502
522
|
});
|
|
503
523
|
});
|
|
524
|
+
|
|
504
525
|
/**
|
|
505
526
|
* @description 监听header生成
|
|
506
527
|
*/
|
|
507
|
-
|
|
508
528
|
const watchCreateHeaderTemp = () => {
|
|
509
529
|
if (props.showHeaderTemp) {
|
|
510
530
|
// 生成headerTemp
|
|
511
531
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
512
532
|
}
|
|
513
|
-
};
|
|
514
|
-
|
|
515
|
-
|
|
533
|
+
};
|
|
534
|
+
// 开始分析
|
|
516
535
|
function startAnalysis() {
|
|
517
536
|
clearResult();
|
|
518
537
|
viewModel && viewModel.start();
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
|
|
538
|
+
}
|
|
539
|
+
//清除结果
|
|
522
540
|
function clearResult() {
|
|
523
541
|
viewModel && viewModel.clear();
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
|
|
542
|
+
}
|
|
543
|
+
// 清除
|
|
527
544
|
function clear() {
|
|
528
545
|
viewModel && viewModel.clear();
|
|
529
|
-
}
|
|
530
|
-
|
|
546
|
+
}
|
|
531
547
|
|
|
548
|
+
// 销毁
|
|
532
549
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
533
550
|
viewModel && viewModel.destroy();
|
|
534
551
|
});
|
|
535
|
-
|
|
536
552
|
__expose({
|
|
537
553
|
startAnalysis,
|
|
538
554
|
clearResult,
|
|
539
555
|
clear
|
|
540
556
|
});
|
|
541
|
-
|
|
542
557
|
return (_ctx, _cache) => {
|
|
543
558
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
544
|
-
|
|
545
559
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
546
|
-
|
|
547
560
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
548
561
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-terrain-profile-analysis", {
|
|
549
562
|
'kq-box-shadow': __props.showShadow
|
|
@@ -554,54 +567,31 @@ const __default__ = {
|
|
|
554
567
|
key: 0,
|
|
555
568
|
ref_key: "headerTempRef",
|
|
556
569
|
ref: headerTempRef
|
|
557
|
-
}, null, 512
|
|
558
|
-
/* NEED_PATCH */
|
|
559
|
-
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
570
|
+
}, 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", {
|
|
560
571
|
class: "kq3d-terrain-profile-analysis-box",
|
|
561
572
|
ref_key: "ref_box",
|
|
562
573
|
ref: ref_box
|
|
563
574
|
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
564
575
|
class: "kq3d-terrain-profile-analysis-tip"
|
|
565
576
|
}, {
|
|
566
|
-
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).profileTips), 1
|
|
567
|
-
/*
|
|
568
|
-
)]),
|
|
569
|
-
_: 1
|
|
570
|
-
/* STABLE */
|
|
571
|
-
|
|
577
|
+
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).profileTips), 1 /* TEXT */)]),
|
|
578
|
+
_: 1 /* STABLE */
|
|
572
579
|
}), (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_button, {
|
|
573
580
|
onClick: _cache[0] || (_cache[0] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
|
|
574
581
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis,
|
|
575
582
|
type: "primary"
|
|
576
583
|
}, {
|
|
577
|
-
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
|
|
578
|
-
/*
|
|
579
|
-
|
|
580
|
-
_: 1
|
|
581
|
-
/* STABLE */
|
|
582
|
-
|
|
583
|
-
}, 8
|
|
584
|
-
/* PROPS */
|
|
585
|
-
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
584
|
+
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 */)]),
|
|
585
|
+
_: 1 /* STABLE */
|
|
586
|
+
}, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
586
587
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
|
|
587
588
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
|
|
588
589
|
}, {
|
|
589
|
-
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
|
|
590
|
-
/*
|
|
591
|
-
|
|
592
|
-
_: 1
|
|
593
|
-
/* STABLE */
|
|
594
|
-
|
|
595
|
-
}, 8
|
|
596
|
-
/* PROPS */
|
|
597
|
-
, ["title"])])], 512
|
|
598
|
-
/* NEED_PATCH */
|
|
599
|
-
)], 2
|
|
600
|
-
/* CLASS */
|
|
601
|
-
);
|
|
590
|
+
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 */)]),
|
|
591
|
+
_: 1 /* STABLE */
|
|
592
|
+
}, 8 /* PROPS */, ["title"])])], 512 /* NEED_PATCH */)], 2 /* CLASS */);
|
|
602
593
|
};
|
|
603
594
|
}
|
|
604
|
-
|
|
605
595
|
}));
|
|
606
596
|
;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/TerrainProfileAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
607
597
|
|
|
@@ -613,10 +603,13 @@ const __exports__ = TerrainProfileAnalysisvue_type_script_setup_true_lang_js;
|
|
|
613
603
|
|
|
614
604
|
/* harmony default export */ var TerrainProfileAnalysis = (__exports__);
|
|
615
605
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
616
|
-
var init_js_ = __webpack_require__(
|
|
606
|
+
var init_js_ = __webpack_require__(455);
|
|
617
607
|
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
618
608
|
;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/index.js
|
|
619
|
-
|
|
609
|
+
/*
|
|
610
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
611
|
+
* All rights reserved.
|
|
612
|
+
*/
|
|
620
613
|
|
|
621
614
|
|
|
622
615
|
|
|
@@ -625,8 +618,6 @@ TerrainProfileAnalysis.install = (Vue, opts) => {
|
|
|
625
618
|
Vue.component(TerrainProfileAnalysis.name, TerrainProfileAnalysis);
|
|
626
619
|
};
|
|
627
620
|
|
|
628
|
-
|
|
629
|
-
}();
|
|
630
621
|
/******/ return __webpack_exports__;
|
|
631
622
|
/******/ })()
|
|
632
623
|
;
|