@kq_npm/client3d_webgl_vue 4.5.3-beta → 4.5.5-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 +163 -229
- package/baseterraingallery/index.js +122 -145
- package/boxclip/index.js +291 -472
- package/clientPrint/index.js +368 -906
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +224 -246
- package/compass/index.js +96 -84
- package/excavatefillanalysis/index.js +185 -255
- package/fixedzoomin/index.js +91 -76
- package/fixedzoomout/index.js +91 -76
- package/flight/index.js +298 -402
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +248 -385
- package/geologicalbodyanalysis/index.js +206 -288
- package/gpuspatialquery/index.js +243 -392
- package/hawkeye/index.js +139 -103
- package/headertemp/index.js +23 -33
- package/heatmap3d/index.js +427 -734
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +8170 -17000
- package/isolineanalysis/index.js +557 -1233
- package/light/index.js +351 -488
- package/limitheightanalysis/index.js +249 -312
- package/measure/index.js +341 -495
- package/modelFlat/index.js +261 -259
- package/modelexcavate/index.js +214 -266
- package/modelfilter/index.js +216 -299
- package/modelprofileanalysis/index.js +354 -465
- package/modelselect/index.js +183 -175
- package/package.json +1 -1
- package/particleeffect/index.js +257 -430
- package/planeclip/index.js +240 -330
- package/resetview/index.js +89 -69
- package/roller/index.js +305 -363
- package/scaneffect/index.js +274 -572
- package/sceneadvancedtoimage/index.js +1057 -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 +9208 -17907
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +273 -312
- package/shadowanalysis/index.js +259 -437
- package/sightlineanalysis/index.js +229 -312
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +204 -341
- package/slopeanalysis/index.js +274 -435
- package/slopeaspectanalysis/index.js +307 -524
- package/statusbar/index.js +113 -84
- package/style.css +1 -1
- package/terrainoperation/index.js +222 -271
- package/terrainprofileanalysis/index.js +166 -173
- 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,63 @@ 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
|
-
|
|
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, "_language", {});
|
|
260
|
+
(0,defineProperty/* default */.A)(this, "coordDivpoint", null);
|
|
261
|
+
this._language = scenceView._language;
|
|
225
262
|
this._viewer = scenceView._viewer;
|
|
226
263
|
this._drawManager = scenceView._drawManager;
|
|
227
|
-
this._analyseHeight = option.analyseHeight;
|
|
264
|
+
this._analyseHeight = option.analyseHeight;
|
|
228
265
|
|
|
266
|
+
// 开启对数缓冲区 减少视锥体中多视锥体 减少重绘次数提高性能
|
|
229
267
|
this._viewer.scene.logarithmicDepthBuffer = false;
|
|
230
|
-
this._viewer.scene.pickTranslucentDepth = true;
|
|
231
|
-
|
|
268
|
+
this._viewer.scene.pickTranslucentDepth = true;
|
|
269
|
+
// 默认
|
|
232
270
|
this._viewer.resolutionScale = 1.2;
|
|
233
|
-
this._viewer.postProcessStages.fxaa.enabled = true;
|
|
234
|
-
|
|
271
|
+
this._viewer.postProcessStages.fxaa.enabled = true;
|
|
272
|
+
// 开启深度检测
|
|
235
273
|
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
236
274
|
this._viewer.scene.pickTranslucentDepth = true;
|
|
237
275
|
this._terrainSlopeAnalyse = new window.Cesium.Kq3dSlope2({
|
|
@@ -242,11 +280,10 @@ class TerrainProfileAnalysisViewModel {
|
|
|
242
280
|
this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
243
281
|
if (shape) {
|
|
244
282
|
that._terrainSlopeAnalyse.startAnalyse(shape._controlPoints);
|
|
245
|
-
|
|
246
283
|
that._drawManager.clear();
|
|
247
284
|
}
|
|
248
|
-
});
|
|
249
|
-
|
|
285
|
+
});
|
|
286
|
+
//分析结束事件
|
|
250
287
|
this._terrainSlopeAnalyse.analyseEndEvent.addEventListener(function (res) {
|
|
251
288
|
that.minHeight = res.minHeight;
|
|
252
289
|
that.maxHeight = res.maxHeight;
|
|
@@ -258,13 +295,10 @@ class TerrainProfileAnalysisViewModel {
|
|
|
258
295
|
that.createInfoDivPoint(that.languageDta.minHeight, that.minHeight.toFixed(3), window.Cesium.Cartographic.toCartesian(minPos));
|
|
259
296
|
that.createInfoDivPoint(that.languageDta.maxHeight, that.maxHeight.toFixed(3), window.Cesium.Cartographic.toCartesian(maxPos));
|
|
260
297
|
});
|
|
261
|
-
|
|
262
298
|
var handler = new window.Cesium.ScreenSpaceEventHandler(this._viewer.canvas);
|
|
263
299
|
handler.setInputAction(function (movement) {
|
|
264
300
|
var position = that._viewer.scene.pickPosition(movement.endPosition);
|
|
265
|
-
|
|
266
301
|
var pickedObject = that._viewer.scene.pick(movement.endPosition);
|
|
267
|
-
|
|
268
302
|
if (pickedObject && pickedObject.id instanceof window.Cesium.Entity && pickedObject.id.wall) {
|
|
269
303
|
//获取当前点的地形高度,在坡度分析墙的上方显示详细信息面板
|
|
270
304
|
var carto = window.Cesium.Cartographic.fromCartesian(position);
|
|
@@ -283,13 +317,11 @@ class TerrainProfileAnalysisViewModel {
|
|
|
283
317
|
}
|
|
284
318
|
}, window.Cesium.ScreenSpaceEventType.MOUSE_MOVE);
|
|
285
319
|
}
|
|
286
|
-
|
|
287
320
|
changeLanguage(val) {
|
|
288
321
|
this.languageDta = val;
|
|
289
322
|
this.clear();
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
323
|
+
}
|
|
324
|
+
//创建当前点坐标信息面板"longitude": "经度","latitude": "纬度",
|
|
293
325
|
createInfoDivPoint2(lon, lat, height, maxHeight, distance, position) {
|
|
294
326
|
let html = `<div class="coord">
|
|
295
327
|
<div class="text">
|
|
@@ -301,13 +333,12 @@ class TerrainProfileAnalysisViewModel {
|
|
|
301
333
|
</div>
|
|
302
334
|
<div class="pole"></div>
|
|
303
335
|
<div class="ball"></div>
|
|
304
|
-
</div>`;
|
|
305
|
-
|
|
336
|
+
</div>`;
|
|
337
|
+
//初始化DivPoint
|
|
306
338
|
if (this.coordDivpoint) {
|
|
307
339
|
this.coordDivpoint.destroy();
|
|
308
340
|
this.coordDivpoint = null;
|
|
309
341
|
}
|
|
310
|
-
|
|
311
342
|
this.coordDivpoint = new window.Cesium.Kq3dHtmlTag(this._viewer, {
|
|
312
343
|
html: html,
|
|
313
344
|
position: position,
|
|
@@ -315,16 +346,15 @@ class TerrainProfileAnalysisViewModel {
|
|
|
315
346
|
noEvent: true
|
|
316
347
|
});
|
|
317
348
|
this.divPointArr.push(this.coordDivpoint);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
|
|
349
|
+
}
|
|
350
|
+
//创建最高最低点信息面板
|
|
321
351
|
createInfoDivPoint(name, value, position) {
|
|
322
352
|
let html = `<div class="height">
|
|
323
353
|
<div class="text">${name}:${value}m</div>
|
|
324
354
|
<div class="pole"> </div>
|
|
325
355
|
<div class="ball"></div>
|
|
326
|
-
</div>`;
|
|
327
|
-
|
|
356
|
+
</div>`;
|
|
357
|
+
//初始化DivPoint
|
|
328
358
|
let divPoint = new window.Cesium.Kq3dHtmlTag(this._viewer, {
|
|
329
359
|
html: html,
|
|
330
360
|
position: position,
|
|
@@ -334,61 +364,54 @@ class TerrainProfileAnalysisViewModel {
|
|
|
334
364
|
this.divPointArr.push(divPoint);
|
|
335
365
|
return divPoint;
|
|
336
366
|
}
|
|
337
|
-
|
|
338
367
|
start() {
|
|
339
368
|
// 判断是否添加了地形
|
|
340
369
|
if (this._viewer.terrainProvider.availability) {
|
|
341
370
|
if (this._viewer.terrainProvider instanceof window.Cesium.CesiumTerrainProvider) {
|
|
342
371
|
this.clear();
|
|
343
|
-
|
|
344
372
|
this._drawManager.startDraw("polyline", {
|
|
345
373
|
clampToGround: true
|
|
346
374
|
});
|
|
347
375
|
} else {
|
|
348
|
-
(0,message/* default */.
|
|
349
|
-
message: "
|
|
376
|
+
(0,message/* default */.A)({
|
|
377
|
+
message: this._language["stkTerrainAnalysisTips"],
|
|
350
378
|
type: "warning"
|
|
351
379
|
});
|
|
352
380
|
}
|
|
353
381
|
} else {
|
|
354
|
-
(0,message/* default */.
|
|
355
|
-
message: "
|
|
382
|
+
(0,message/* default */.A)({
|
|
383
|
+
message: this._language["terrainAnalysisTips"],
|
|
356
384
|
type: "warning"
|
|
357
385
|
});
|
|
358
386
|
}
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
|
|
387
|
+
}
|
|
388
|
+
//清除
|
|
362
389
|
clear() {
|
|
363
390
|
this._drawManager && this._drawManager.stopDraw();
|
|
364
391
|
this._terrainSlopeAnalyse && this._terrainSlopeAnalyse.clear();
|
|
365
|
-
|
|
366
392
|
for (let index = 0; index < this.divPointArr.length; index++) {
|
|
367
393
|
var divPoint = this.divPointArr[index];
|
|
368
|
-
|
|
369
394
|
if (divPoint) {
|
|
370
395
|
divPoint.destroy();
|
|
371
396
|
}
|
|
372
397
|
}
|
|
373
|
-
|
|
374
398
|
this.divPointArr = [];
|
|
375
|
-
}
|
|
376
|
-
|
|
399
|
+
}
|
|
377
400
|
|
|
401
|
+
//销毁
|
|
378
402
|
destroy() {
|
|
379
|
-
this.clear();
|
|
380
|
-
|
|
403
|
+
this.clear();
|
|
404
|
+
//移除监听事件
|
|
381
405
|
this._removeEventListener && this._removeEventListener();
|
|
382
406
|
this._removeEventListener = null;
|
|
383
407
|
}
|
|
384
|
-
|
|
385
408
|
}
|
|
386
409
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
387
|
-
var client_icons_vue_ = __webpack_require__(
|
|
410
|
+
var client_icons_vue_ = __webpack_require__(5698);
|
|
388
411
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
389
|
-
var util_ = __webpack_require__(
|
|
412
|
+
var util_ = __webpack_require__(2975);
|
|
390
413
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
391
|
-
var vue_i18n_cjs_js_ = __webpack_require__(
|
|
414
|
+
var vue_i18n_cjs_js_ = __webpack_require__(3579);
|
|
392
415
|
;// 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
416
|
|
|
394
417
|
const _hoisted_1 = {
|
|
@@ -399,12 +422,13 @@ const _hoisted_1 = {
|
|
|
399
422
|
|
|
400
423
|
|
|
401
424
|
|
|
402
|
-
|
|
425
|
+
|
|
426
|
+
//语言
|
|
403
427
|
|
|
404
428
|
const __default__ = {
|
|
405
429
|
name: "Kq3dTerrainProfileAnalysis"
|
|
406
430
|
};
|
|
407
|
-
/* harmony default export */ var TerrainProfileAnalysisvue_type_script_setup_true_lang_js = (
|
|
431
|
+
/* harmony default export */ var TerrainProfileAnalysisvue_type_script_setup_true_lang_js = (/*@__PURE__*/Object.assign(__default__, {
|
|
408
432
|
props: {
|
|
409
433
|
//指定组件绑定的viewer对象的div的id
|
|
410
434
|
mapTarget: String,
|
|
@@ -417,7 +441,6 @@ const __default__ = {
|
|
|
417
441
|
type: Boolean,
|
|
418
442
|
default: true
|
|
419
443
|
},
|
|
420
|
-
|
|
421
444
|
/**
|
|
422
445
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
423
446
|
*/
|
|
@@ -447,29 +470,29 @@ const __default__ = {
|
|
|
447
470
|
default: true
|
|
448
471
|
}
|
|
449
472
|
},
|
|
450
|
-
|
|
451
473
|
setup(__props, {
|
|
452
474
|
expose: __expose
|
|
453
475
|
}) {
|
|
454
|
-
const props = __props;
|
|
455
476
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
456
477
|
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
457
478
|
let viewModel = null;
|
|
458
479
|
let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
459
480
|
const {
|
|
460
481
|
proxy
|
|
461
|
-
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
482
|
+
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
483
|
+
// 获取组件传参
|
|
484
|
+
const props = __props;
|
|
462
485
|
// 组件容器Ref
|
|
486
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
463
487
|
|
|
464
|
-
|
|
465
|
-
|
|
488
|
+
// 生成组件默认header
|
|
466
489
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
467
490
|
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
468
491
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
469
492
|
analyseHeight: props.settingParams && props.settingParams.analyseHeight || 1000 // 分析默认高度
|
|
493
|
+
});
|
|
470
494
|
|
|
471
|
-
|
|
472
|
-
|
|
495
|
+
// 国际化
|
|
473
496
|
let {
|
|
474
497
|
locale,
|
|
475
498
|
messages
|
|
@@ -491,7 +514,6 @@ const __default__ = {
|
|
|
491
514
|
});
|
|
492
515
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
493
516
|
//父组件ScenceView初始化完成后执行
|
|
494
|
-
|
|
495
517
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
496
518
|
if (scenceView) {
|
|
497
519
|
viewModel = new TerrainProfileAnalysisViewModel(scenceView, {
|
|
@@ -501,49 +523,42 @@ const __default__ = {
|
|
|
501
523
|
}
|
|
502
524
|
});
|
|
503
525
|
});
|
|
526
|
+
|
|
504
527
|
/**
|
|
505
528
|
* @description 监听header生成
|
|
506
529
|
*/
|
|
507
|
-
|
|
508
530
|
const watchCreateHeaderTemp = () => {
|
|
509
531
|
if (props.showHeaderTemp) {
|
|
510
532
|
// 生成headerTemp
|
|
511
533
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
512
534
|
}
|
|
513
|
-
};
|
|
514
|
-
|
|
515
|
-
|
|
535
|
+
};
|
|
536
|
+
// 开始分析
|
|
516
537
|
function startAnalysis() {
|
|
517
538
|
clearResult();
|
|
518
539
|
viewModel && viewModel.start();
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
|
|
540
|
+
}
|
|
541
|
+
//清除结果
|
|
522
542
|
function clearResult() {
|
|
523
543
|
viewModel && viewModel.clear();
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
|
|
544
|
+
}
|
|
545
|
+
// 清除
|
|
527
546
|
function clear() {
|
|
528
547
|
viewModel && viewModel.clear();
|
|
529
|
-
}
|
|
530
|
-
|
|
548
|
+
}
|
|
531
549
|
|
|
550
|
+
// 销毁
|
|
532
551
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
533
552
|
viewModel && viewModel.destroy();
|
|
534
553
|
});
|
|
535
|
-
|
|
536
554
|
__expose({
|
|
537
555
|
startAnalysis,
|
|
538
556
|
clearResult,
|
|
539
557
|
clear
|
|
540
558
|
});
|
|
541
|
-
|
|
542
559
|
return (_ctx, _cache) => {
|
|
543
560
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
544
|
-
|
|
545
561
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
546
|
-
|
|
547
562
|
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
563
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-terrain-profile-analysis", {
|
|
549
564
|
'kq-box-shadow': __props.showShadow
|
|
@@ -554,54 +569,31 @@ const __default__ = {
|
|
|
554
569
|
key: 0,
|
|
555
570
|
ref_key: "headerTempRef",
|
|
556
571
|
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", {
|
|
572
|
+
}, 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
573
|
class: "kq3d-terrain-profile-analysis-box",
|
|
561
574
|
ref_key: "ref_box",
|
|
562
575
|
ref: ref_box
|
|
563
576
|
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
564
577
|
class: "kq3d-terrain-profile-analysis-tip"
|
|
565
578
|
}, {
|
|
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
|
-
|
|
579
|
+
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 */)]),
|
|
580
|
+
_: 1 /* STABLE */
|
|
572
581
|
}), (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
582
|
onClick: _cache[0] || (_cache[0] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
|
|
574
583
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis,
|
|
575
584
|
type: "primary"
|
|
576
585
|
}, {
|
|
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, {
|
|
586
|
+
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 */)]),
|
|
587
|
+
_: 1 /* STABLE */
|
|
588
|
+
}, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
586
589
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
|
|
587
590
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
|
|
588
591
|
}, {
|
|
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
|
-
);
|
|
592
|
+
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 */)]),
|
|
593
|
+
_: 1 /* STABLE */
|
|
594
|
+
}, 8 /* PROPS */, ["title"])])], 512 /* NEED_PATCH */)], 2 /* CLASS */);
|
|
602
595
|
};
|
|
603
596
|
}
|
|
604
|
-
|
|
605
597
|
}));
|
|
606
598
|
;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/TerrainProfileAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
607
599
|
|
|
@@ -613,10 +605,13 @@ const __exports__ = TerrainProfileAnalysisvue_type_script_setup_true_lang_js;
|
|
|
613
605
|
|
|
614
606
|
/* harmony default export */ var TerrainProfileAnalysis = (__exports__);
|
|
615
607
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
616
|
-
var init_js_ = __webpack_require__(
|
|
608
|
+
var init_js_ = __webpack_require__(455);
|
|
617
609
|
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
618
610
|
;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/index.js
|
|
619
|
-
|
|
611
|
+
/*
|
|
612
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
613
|
+
* All rights reserved.
|
|
614
|
+
*/
|
|
620
615
|
|
|
621
616
|
|
|
622
617
|
|
|
@@ -625,8 +620,6 @@ TerrainProfileAnalysis.install = (Vue, opts) => {
|
|
|
625
620
|
Vue.component(TerrainProfileAnalysis.name, TerrainProfileAnalysis);
|
|
626
621
|
};
|
|
627
622
|
|
|
628
|
-
|
|
629
|
-
}();
|
|
630
623
|
/******/ return __webpack_exports__;
|
|
631
624
|
/******/ })()
|
|
632
625
|
;
|