@kq_npm/client3d_webgl_vue 4.5.29-beta → 4.5.30
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 +518 -262
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +201 -123
- package/baseterraingallery/index.js +123 -94
- package/baseterraingallery/style/baseterraingallery.css +1 -1
- package/boxclip/index.js +442 -249
- package/clientPrint/index.js +27088 -14116
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +243 -213
- package/compass/index.js +68 -74
- package/excavatefillanalysis/index.js +225 -143
- package/fixedzoomin/index.js +82 -72
- package/fixedzoomout/index.js +80 -71
- package/flight/index.js +371 -257
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +347 -199
- package/geologicalbodyanalysis/index.js +260 -166
- package/gpuspatialquery/index.js +359 -198
- package/hawkeye/index.js +100 -131
- package/headertemp/index.js +25 -14
- package/heatmap3d/index.js +678 -366
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +20310 -7159
- package/isolineanalysis/index.js +1202 -504
- package/light/index.js +494 -349
- package/limitheightanalysis/index.js +223 -159
- package/measure/index.js +353 -198
- package/modelFlat/index.js +204 -167
- package/modelexcavate/index.js +191 -130
- package/modelfilter/index.js +271 -179
- package/modelprofileanalysis/index.js +316 -206
- package/modelselect/index.js +147 -142
- package/package.json +1 -1
- package/particleeffect/index.js +403 -225
- package/planeclip/index.js +300 -198
- package/resetview/index.js +52 -66
- package/roller/index.js +372 -304
- package/scaneffect/index.js +537 -230
- package/sceneadvancedtoimage/index.js +358 -205
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -1
- package/sceneapp/index.js +27088 -14116
- package/sceneset/index.js +864 -350
- package/scenetohdimage/index.js +297 -159
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +27088 -14116
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +301 -257
- package/shadowanalysis/index.js +405 -217
- package/sightlineanalysis/index.js +271 -183
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +308 -160
- package/slopeanalysis/index.js +397 -227
- package/slopeaspectanalysis/index.js +485 -259
- package/statusbar/index.js +65 -88
- package/style.css +1 -1
- package/terrainoperation/index.js +237 -176
- package/terrainprofileanalysis/index.js +138 -120
- package/typhoontrac/index.js +970 -234
- package/typhoontrac/style/typhoontrac.css +1 -1
- package/underground/index.js +61 -70
- package/videofusion/index.js +488 -265
- package/videoproject/index.js +490 -271
- package/viewshedanalysis/index.js +255 -151
- package/weathereffect/index.js +317 -166
- package/windyslicing/index.js +1947 -0
- package/windyslicing/style/index.js +3 -0
- package/windyslicing/style/windyslicing.css +1 -0
- package/wireframesketch/index.js +142 -110
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
3
|
module.exports = 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"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/_utils/util"], factory);
|
|
6
|
-
else
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
define("@kq_npm/client3d_webgl_vue", ["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/_utils/util"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["@kq_npm/client3d_webgl_vue"] = 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"));
|
|
8
|
+
else
|
|
9
|
+
root["@kq_npm/client3d_webgl_vue"] = 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"]);
|
|
10
10
|
})(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__7997__, __WEBPACK_EXTERNAL_MODULE__3458__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
@@ -25,10 +25,12 @@ return /******/ (function() { // webpackBootstrap
|
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
|
|
28
|
+
|
|
28
29
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
29
30
|
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
30
31
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
31
32
|
};
|
|
33
|
+
|
|
32
34
|
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
33
35
|
|
|
34
36
|
/***/ }),
|
|
@@ -40,13 +42,6 @@ module.exports = require("@kq_npm/client_icons_vue");
|
|
|
40
42
|
|
|
41
43
|
/***/ }),
|
|
42
44
|
|
|
43
|
-
/***/ 2118:
|
|
44
|
-
/***/ (function(module) {
|
|
45
|
-
|
|
46
|
-
module.exports = require("core-js/modules/es.array.push.js");
|
|
47
|
-
|
|
48
|
-
/***/ }),
|
|
49
|
-
|
|
50
45
|
/***/ 9389:
|
|
51
46
|
/***/ (function(module) {
|
|
52
47
|
|
|
@@ -89,59 +84,27 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
89
84
|
|
|
90
85
|
/***/ }),
|
|
91
86
|
|
|
92
|
-
/***/
|
|
87
|
+
/***/ 8270:
|
|
93
88
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
94
89
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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.");
|
|
90
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
91
|
+
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
92
|
+
/* harmony export */ });
|
|
93
|
+
function _defineProperty(obj, key, value) {
|
|
94
|
+
if (key in obj) {
|
|
95
|
+
Object.defineProperty(obj, key, {
|
|
96
|
+
value: value,
|
|
97
|
+
enumerable: true,
|
|
98
|
+
configurable: true,
|
|
99
|
+
writable: true
|
|
100
|
+
});
|
|
101
|
+
} else {
|
|
102
|
+
obj[key] = value;
|
|
121
103
|
}
|
|
122
|
-
return ("string" === r ? String : Number)(t);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
126
104
|
|
|
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;
|
|
105
|
+
return obj;
|
|
142
106
|
}
|
|
143
107
|
|
|
144
|
-
|
|
145
108
|
/***/ })
|
|
146
109
|
|
|
147
110
|
/******/ });
|
|
@@ -228,10 +191,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
228
191
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
229
192
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
230
193
|
var gis_utils_ = __webpack_require__(7135);
|
|
231
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
232
|
-
var defineProperty = __webpack_require__(
|
|
233
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
234
|
-
var es_array_push_js_ = __webpack_require__(2118);
|
|
194
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
195
|
+
var defineProperty = __webpack_require__(8270);
|
|
235
196
|
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
236
197
|
var message = __webpack_require__(1349);
|
|
237
198
|
;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/TerrainProfileAnalysisViewModel.js
|
|
@@ -243,37 +204,47 @@ var message = __webpack_require__(1349);
|
|
|
243
204
|
*/
|
|
244
205
|
|
|
245
206
|
class TerrainProfileAnalysisViewModel {
|
|
207
|
+
// 三维viewer对象
|
|
208
|
+
//绘制管理对象
|
|
209
|
+
//绘制完成监听事件
|
|
210
|
+
//分析结束事件
|
|
246
211
|
constructor(scenceView, option) {
|
|
247
212
|
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
248
|
-
|
|
213
|
+
|
|
249
214
|
(0,defineProperty/* default */.Z)(this, "_terrainSlopeAnalyse", null);
|
|
215
|
+
|
|
250
216
|
(0,defineProperty/* default */.Z)(this, "_analyseHeight", 1000);
|
|
217
|
+
|
|
251
218
|
(0,defineProperty/* default */.Z)(this, "_drawManager", null);
|
|
252
|
-
|
|
219
|
+
|
|
253
220
|
(0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
|
|
254
|
-
|
|
255
|
-
//分析结束事件
|
|
221
|
+
|
|
256
222
|
(0,defineProperty/* default */.Z)(this, "minHeight", null);
|
|
223
|
+
|
|
257
224
|
(0,defineProperty/* default */.Z)(this, "maxHeight", null);
|
|
225
|
+
|
|
258
226
|
(0,defineProperty/* default */.Z)(this, "distance", null);
|
|
227
|
+
|
|
259
228
|
(0,defineProperty/* default */.Z)(this, "divPointArr", []);
|
|
229
|
+
|
|
260
230
|
(0,defineProperty/* default */.Z)(this, "languageDta", {});
|
|
231
|
+
|
|
261
232
|
(0,defineProperty/* default */.Z)(this, "_language", {});
|
|
233
|
+
|
|
262
234
|
(0,defineProperty/* default */.Z)(this, "coordDivpoint", null);
|
|
235
|
+
|
|
263
236
|
this._language = scenceView._language;
|
|
264
237
|
this._viewer = scenceView._viewer;
|
|
265
238
|
this._drawManager = scenceView._drawManager;
|
|
266
|
-
this._analyseHeight = option.analyseHeight;
|
|
239
|
+
this._analyseHeight = option.analyseHeight; // 开启对数缓冲区 减少视锥体中多视锥体 减少重绘次数提高性能
|
|
267
240
|
|
|
268
|
-
// 开启对数缓冲区 减少视锥体中多视锥体 减少重绘次数提高性能
|
|
269
241
|
this._viewer.scene.logarithmicDepthBuffer = false;
|
|
270
|
-
this._viewer.scene.pickTranslucentDepth = true;
|
|
271
|
-
|
|
242
|
+
this._viewer.scene.pickTranslucentDepth = true; // 默认
|
|
243
|
+
|
|
272
244
|
this._viewer.resolutionScale = 1.2;
|
|
273
|
-
this._viewer.postProcessStages.fxaa.enabled = true;
|
|
274
|
-
|
|
245
|
+
this._viewer.postProcessStages.fxaa.enabled = true; // 开启深度检测
|
|
246
|
+
|
|
275
247
|
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
276
|
-
this._viewer.scene.pickTranslucentDepth = true;
|
|
277
248
|
this._terrainSlopeAnalyse = new window.Cesium.Kq3dSlope2({
|
|
278
249
|
viewer: this._viewer,
|
|
279
250
|
height: this._analyseHeight
|
|
@@ -281,11 +252,12 @@ class TerrainProfileAnalysisViewModel {
|
|
|
281
252
|
var that = this;
|
|
282
253
|
this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
283
254
|
if (shape) {
|
|
284
|
-
that._terrainSlopeAnalyse.
|
|
255
|
+
that._terrainSlopeAnalyse.positions = shape._controlPoints;
|
|
256
|
+
|
|
285
257
|
that._drawManager.clear();
|
|
286
258
|
}
|
|
287
|
-
});
|
|
288
|
-
|
|
259
|
+
}); //分析结束事件
|
|
260
|
+
|
|
289
261
|
this._terrainSlopeAnalyse.analyseEndEvent.addEventListener(function (res) {
|
|
290
262
|
that.minHeight = res.minHeight;
|
|
291
263
|
that.maxHeight = res.maxHeight;
|
|
@@ -297,10 +269,13 @@ class TerrainProfileAnalysisViewModel {
|
|
|
297
269
|
that.createInfoDivPoint(that.languageDta.minHeight, that.minHeight.toFixed(3), window.Cesium.Cartographic.toCartesian(minPos));
|
|
298
270
|
that.createInfoDivPoint(that.languageDta.maxHeight, that.maxHeight.toFixed(3), window.Cesium.Cartographic.toCartesian(maxPos));
|
|
299
271
|
});
|
|
272
|
+
|
|
300
273
|
var handler = new window.Cesium.ScreenSpaceEventHandler(this._viewer.canvas);
|
|
301
274
|
handler.setInputAction(function (movement) {
|
|
302
275
|
var position = that._viewer.scene.pickPosition(movement.endPosition);
|
|
276
|
+
|
|
303
277
|
var pickedObject = that._viewer.scene.pick(movement.endPosition);
|
|
278
|
+
|
|
304
279
|
if (pickedObject && pickedObject.id instanceof window.Cesium.Entity && pickedObject.id.wall) {
|
|
305
280
|
//获取当前点的地形高度,在坡度分析墙的上方显示详细信息面板
|
|
306
281
|
var carto = window.Cesium.Cartographic.fromCartesian(position);
|
|
@@ -319,11 +294,13 @@ class TerrainProfileAnalysisViewModel {
|
|
|
319
294
|
}
|
|
320
295
|
}, window.Cesium.ScreenSpaceEventType.MOUSE_MOVE);
|
|
321
296
|
}
|
|
297
|
+
|
|
322
298
|
changeLanguage(val) {
|
|
323
299
|
this.languageDta = val;
|
|
324
300
|
this.clear();
|
|
325
|
-
}
|
|
326
|
-
|
|
301
|
+
} //创建当前点坐标信息面板"longitude": "经度","latitude": "纬度",
|
|
302
|
+
|
|
303
|
+
|
|
327
304
|
createInfoDivPoint2(lon, lat, height, maxHeight, distance, position) {
|
|
328
305
|
let html = `<div class="coord">
|
|
329
306
|
<div class="text">
|
|
@@ -335,12 +312,13 @@ class TerrainProfileAnalysisViewModel {
|
|
|
335
312
|
</div>
|
|
336
313
|
<div class="pole"></div>
|
|
337
314
|
<div class="ball"></div>
|
|
338
|
-
</div>`;
|
|
339
|
-
|
|
315
|
+
</div>`; //初始化DivPoint
|
|
316
|
+
|
|
340
317
|
if (this.coordDivpoint) {
|
|
341
318
|
this.coordDivpoint.destroy();
|
|
342
319
|
this.coordDivpoint = null;
|
|
343
320
|
}
|
|
321
|
+
|
|
344
322
|
this.coordDivpoint = new window.Cesium.Kq3dHtmlTag(this._viewer, {
|
|
345
323
|
html: html,
|
|
346
324
|
position: position,
|
|
@@ -348,15 +326,16 @@ class TerrainProfileAnalysisViewModel {
|
|
|
348
326
|
noEvent: true
|
|
349
327
|
});
|
|
350
328
|
this.divPointArr.push(this.coordDivpoint);
|
|
351
|
-
}
|
|
352
|
-
|
|
329
|
+
} //创建最高最低点信息面板
|
|
330
|
+
|
|
331
|
+
|
|
353
332
|
createInfoDivPoint(name, value, position) {
|
|
354
333
|
let html = `<div class="height">
|
|
355
334
|
<div class="text">${name}:${value}m</div>
|
|
356
335
|
<div class="pole"> </div>
|
|
357
336
|
<div class="ball"></div>
|
|
358
|
-
</div>`;
|
|
359
|
-
|
|
337
|
+
</div>`; //初始化DivPoint
|
|
338
|
+
|
|
360
339
|
let divPoint = new window.Cesium.Kq3dHtmlTag(this._viewer, {
|
|
361
340
|
html: html,
|
|
362
341
|
position: position,
|
|
@@ -366,11 +345,13 @@ class TerrainProfileAnalysisViewModel {
|
|
|
366
345
|
this.divPointArr.push(divPoint);
|
|
367
346
|
return divPoint;
|
|
368
347
|
}
|
|
348
|
+
|
|
369
349
|
start() {
|
|
370
350
|
// 判断是否添加了地形
|
|
371
351
|
if (this._viewer.terrainProvider.availability) {
|
|
372
352
|
if (this._viewer.terrainProvider && !this._viewer.terrainProvider._heightmapStructure) {
|
|
373
353
|
this.clear();
|
|
354
|
+
|
|
374
355
|
this._drawManager.startDraw("polyline", {
|
|
375
356
|
clampToGround: true
|
|
376
357
|
});
|
|
@@ -386,27 +367,32 @@ class TerrainProfileAnalysisViewModel {
|
|
|
386
367
|
type: "warning"
|
|
387
368
|
});
|
|
388
369
|
}
|
|
389
|
-
}
|
|
390
|
-
|
|
370
|
+
} //清除
|
|
371
|
+
|
|
372
|
+
|
|
391
373
|
clear() {
|
|
392
374
|
this._drawManager && this._drawManager.stopDraw();
|
|
393
375
|
this._terrainSlopeAnalyse && this._terrainSlopeAnalyse.clear();
|
|
376
|
+
|
|
394
377
|
for (let index = 0; index < this.divPointArr.length; index++) {
|
|
395
378
|
var divPoint = this.divPointArr[index];
|
|
379
|
+
|
|
396
380
|
if (divPoint) {
|
|
397
381
|
divPoint.destroy();
|
|
398
382
|
}
|
|
399
383
|
}
|
|
384
|
+
|
|
400
385
|
this.divPointArr = [];
|
|
401
|
-
}
|
|
386
|
+
} //销毁
|
|
387
|
+
|
|
402
388
|
|
|
403
|
-
//销毁
|
|
404
389
|
destroy() {
|
|
405
|
-
this.clear();
|
|
406
|
-
|
|
390
|
+
this.clear(); //移除监听事件
|
|
391
|
+
|
|
407
392
|
this._removeEventListener && this._removeEventListener();
|
|
408
393
|
this._removeEventListener = null;
|
|
409
394
|
}
|
|
395
|
+
|
|
410
396
|
}
|
|
411
397
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
412
398
|
var client_icons_vue_ = __webpack_require__(348);
|
|
@@ -414,7 +400,7 @@ var client_icons_vue_ = __webpack_require__(348);
|
|
|
414
400
|
var util_ = __webpack_require__(3458);
|
|
415
401
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
416
402
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
417
|
-
;// 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
|
|
403
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/terrainprofileanalysis/TerrainProfileAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
418
404
|
|
|
419
405
|
const _hoisted_1 = {
|
|
420
406
|
class: "kq3d-terrain-profile-analysis-footer"
|
|
@@ -441,6 +427,7 @@ const __default__ = {
|
|
|
441
427
|
type: Boolean,
|
|
442
428
|
default: true
|
|
443
429
|
},
|
|
430
|
+
|
|
444
431
|
/**
|
|
445
432
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
446
433
|
*/
|
|
@@ -470,32 +457,30 @@ const __default__ = {
|
|
|
470
457
|
default: true
|
|
471
458
|
}
|
|
472
459
|
},
|
|
460
|
+
|
|
473
461
|
setup(__props, {
|
|
474
462
|
expose: __expose
|
|
475
463
|
}) {
|
|
476
464
|
const props = __props;
|
|
477
465
|
const {
|
|
478
466
|
proxy
|
|
479
|
-
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
480
|
-
|
|
467
|
+
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)(); //语言
|
|
468
|
+
|
|
481
469
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
482
470
|
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
483
471
|
let viewModel = null;
|
|
484
|
-
let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
485
|
-
|
|
486
|
-
// 获取组件传参
|
|
487
|
-
|
|
472
|
+
let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 获取组件传参
|
|
488
473
|
// 组件容器Ref
|
|
489
|
-
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
490
474
|
|
|
491
|
-
// 生成组件默认header
|
|
475
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
476
|
+
|
|
492
477
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
493
478
|
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
494
479
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
495
480
|
analyseHeight: props.settingParams && props.settingParams.analyseHeight || 1000 // 分析默认高度
|
|
496
|
-
});
|
|
497
481
|
|
|
498
|
-
// 国际化
|
|
482
|
+
}); // 国际化
|
|
483
|
+
|
|
499
484
|
let {
|
|
500
485
|
locale,
|
|
501
486
|
messages
|
|
@@ -520,6 +505,7 @@ const __default__ = {
|
|
|
520
505
|
});
|
|
521
506
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
522
507
|
//父组件ScenceView初始化完成后执行
|
|
508
|
+
|
|
523
509
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
524
510
|
if (scenceView) {
|
|
525
511
|
viewModel = new TerrainProfileAnalysisViewModel(scenceView, {
|
|
@@ -529,42 +515,49 @@ const __default__ = {
|
|
|
529
515
|
}
|
|
530
516
|
});
|
|
531
517
|
});
|
|
532
|
-
|
|
533
518
|
/**
|
|
534
519
|
* @description 监听header生成
|
|
535
520
|
*/
|
|
521
|
+
|
|
536
522
|
const watchCreateHeaderTemp = () => {
|
|
537
523
|
if (props.showHeaderTemp) {
|
|
538
524
|
// 生成headerTemp
|
|
539
525
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
540
526
|
}
|
|
541
|
-
};
|
|
542
|
-
|
|
527
|
+
}; // 开始分析
|
|
528
|
+
|
|
529
|
+
|
|
543
530
|
function startAnalysis() {
|
|
544
531
|
clearResult();
|
|
545
532
|
viewModel && viewModel.start();
|
|
546
|
-
}
|
|
547
|
-
|
|
533
|
+
} //清除结果
|
|
534
|
+
|
|
535
|
+
|
|
548
536
|
function clearResult() {
|
|
549
537
|
viewModel && viewModel.clear();
|
|
550
|
-
}
|
|
551
|
-
|
|
538
|
+
} // 清除
|
|
539
|
+
|
|
540
|
+
|
|
552
541
|
function clear() {
|
|
553
542
|
viewModel && viewModel.clear();
|
|
554
|
-
}
|
|
543
|
+
} // 销毁
|
|
544
|
+
|
|
555
545
|
|
|
556
|
-
// 销毁
|
|
557
546
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
558
547
|
viewModel && viewModel.destroy();
|
|
559
548
|
});
|
|
549
|
+
|
|
560
550
|
__expose({
|
|
561
551
|
startAnalysis,
|
|
562
552
|
clearResult,
|
|
563
553
|
clear
|
|
564
554
|
});
|
|
555
|
+
|
|
565
556
|
return (_ctx, _cache) => {
|
|
566
557
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
558
|
+
|
|
567
559
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
560
|
+
|
|
568
561
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
569
562
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-terrain-profile-analysis", {
|
|
570
563
|
'kq-box-shadow': __props.showShadow
|
|
@@ -575,31 +568,54 @@ const __default__ = {
|
|
|
575
568
|
key: 0,
|
|
576
569
|
ref_key: "headerTempRef",
|
|
577
570
|
ref: headerTempRef
|
|
578
|
-
}, null, 512
|
|
571
|
+
}, null, 512
|
|
572
|
+
/* NEED_PATCH */
|
|
573
|
+
)) : (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", {
|
|
579
574
|
class: "kq3d-terrain-profile-analysis-box",
|
|
580
575
|
ref_key: "ref_box",
|
|
581
576
|
ref: ref_box
|
|
582
577
|
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
583
578
|
class: "kq3d-terrain-profile-analysis-tip"
|
|
584
579
|
}, {
|
|
585
|
-
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
|
|
586
|
-
|
|
580
|
+
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
|
|
581
|
+
/* TEXT */
|
|
582
|
+
)]),
|
|
583
|
+
_: 1
|
|
584
|
+
/* STABLE */
|
|
585
|
+
|
|
587
586
|
}), (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, {
|
|
588
587
|
onClick: _cache[0] || (_cache[0] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
|
|
589
588
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis,
|
|
590
589
|
type: "primary"
|
|
591
590
|
}, {
|
|
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).startAnalysis), 1
|
|
593
|
-
|
|
594
|
-
|
|
591
|
+
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
|
|
592
|
+
/* TEXT */
|
|
593
|
+
)]),
|
|
594
|
+
_: 1
|
|
595
|
+
/* STABLE */
|
|
596
|
+
|
|
597
|
+
}, 8
|
|
598
|
+
/* PROPS */
|
|
599
|
+
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
595
600
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
|
|
596
601
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
|
|
597
602
|
}, {
|
|
598
|
-
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
|
|
599
|
-
|
|
600
|
-
|
|
603
|
+
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
|
|
604
|
+
/* TEXT */
|
|
605
|
+
)]),
|
|
606
|
+
_: 1
|
|
607
|
+
/* STABLE */
|
|
608
|
+
|
|
609
|
+
}, 8
|
|
610
|
+
/* PROPS */
|
|
611
|
+
, ["title"])])], 512
|
|
612
|
+
/* NEED_PATCH */
|
|
613
|
+
)], 2
|
|
614
|
+
/* CLASS */
|
|
615
|
+
);
|
|
601
616
|
};
|
|
602
617
|
}
|
|
618
|
+
|
|
603
619
|
}));
|
|
604
620
|
;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/TerrainProfileAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
605
621
|
|
|
@@ -621,11 +637,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
621
637
|
|
|
622
638
|
|
|
623
639
|
|
|
640
|
+
|
|
624
641
|
TerrainProfileAnalysis.install = (Vue, opts) => {
|
|
625
642
|
init_js_default()(Vue, opts);
|
|
626
643
|
Vue.component(TerrainProfileAnalysis.name, TerrainProfileAnalysis);
|
|
627
644
|
};
|
|
628
645
|
|
|
646
|
+
|
|
629
647
|
}();
|
|
630
648
|
/******/ return __webpack_exports__;
|
|
631
649
|
/******/ })()
|