@kq_npm/client3d_webgl_vue 4.0.4-beta → 4.0.6-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 +43 -180
- package/aspectanalysis/index.js +23 -25
- package/baseterraingallery/index.js +7 -8
- package/boxclip/index.js +23 -25
- package/clientPrint/index.js +4 -6
- package/comparemap/index.js +51 -22
- package/compass/index.js +4 -4
- package/excavatefillanalysis/index.js +23 -25
- package/fixedzoomin/index.js +4 -4
- package/fixedzoomout/index.js +4 -4
- package/flight/index.js +25 -27
- package/floodanalysis/index.js +23 -27
- package/geologicalbodyanalysis/index.js +900 -0
- package/geologicalbodyanalysis/style/geologicalbodyanalysis.css +1 -0
- package/geologicalbodyanalysis/style/index.js +3 -0
- package/gpuspatialquery/index.js +25 -25
- package/hawkeye/index.js +7 -8
- package/headertemp/index.js +4 -5
- package/index.js +20970 -14727
- package/isolineanalysis/index.js +22 -24
- package/light/index.js +1067 -0
- package/light/style/index.js +3 -0
- package/light/style/light.css +1 -0
- package/limitheightanalysis/index.js +751 -0
- package/limitheightanalysis/style/index.js +3 -0
- package/limitheightanalysis/style/limitheightanalysis.css +1 -0
- package/measure/index.js +46 -38
- package/modelFlat/index.js +483 -0
- package/modelFlat/style/index.js +3 -0
- package/modelFlat/style/modelFlat.css +1 -0
- package/modelfilter/index.js +297 -337
- package/modelfilter/style/modelfilter.css +1 -1
- package/modelprofileanalysis/index.js +7 -8
- package/modelselect/index.js +20 -157
- package/package.json +1 -1
- package/particleeffect/index.js +6 -142
- package/planeclip/index.js +23 -25
- package/resetview/index.js +4 -4
- package/roller/index.js +7 -8
- package/scaneffect/index.js +1730 -0
- package/scaneffect/style/index.js +3 -0
- package/scaneffect/style/scaneffect.css +1 -0
- package/scenceview/index.js +13751 -7346
- package/sceneset/index.js +2097 -0
- package/sceneset/style/index.js +3 -0
- package/sceneset/style/sceneset.css +1 -0
- package/screenshot/index.js +7 -8
- package/shadowanalysis/index.js +20 -158
- package/sightlineanalysis/index.js +26 -19
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +23 -25
- package/slopeanalysis/index.js +22 -24
- package/statusbar/index.js +4 -4
- package/style.css +1 -1
- package/terrainoperation/index.js +20 -157
- package/terrainprofileanalysis/index.js +620 -0
- package/terrainprofileanalysis/style/index.js +3 -0
- package/terrainprofileanalysis/style/terrainprofileanalysis.css +1 -0
- package/underground/index.js +7 -8
- package/videofusion/index.js +23 -35
- package/videoproject/index.js +23 -35
- package/viewshedanalysis/index.js +4 -5
- package/weathereffect/index.js +6 -142
- package/wireframesketch/index.js +521 -0
- package/wireframesketch/style/index.js +3 -0
- package/wireframesketch/style/wireframesketch.css +1 -0
|
@@ -0,0 +1,620 @@
|
|
|
1
|
+
/******/ (function() { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
4
|
+
|
|
5
|
+
/***/ 1349:
|
|
6
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
|
+
|
|
8
|
+
/* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2442);
|
|
9
|
+
/* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_es__WEBPACK_IMPORTED_MODULE_0__);
|
|
10
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5406);
|
|
11
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
16
|
+
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
17
|
+
Vue.component("KqMessage", element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
21
|
+
|
|
22
|
+
/***/ }),
|
|
23
|
+
|
|
24
|
+
/***/ 348:
|
|
25
|
+
/***/ (function(module) {
|
|
26
|
+
|
|
27
|
+
module.exports = require("@kq_npm/client_icons_vue");
|
|
28
|
+
|
|
29
|
+
/***/ }),
|
|
30
|
+
|
|
31
|
+
/***/ 2442:
|
|
32
|
+
/***/ (function(module) {
|
|
33
|
+
|
|
34
|
+
module.exports = require("element-plus/es");
|
|
35
|
+
|
|
36
|
+
/***/ }),
|
|
37
|
+
|
|
38
|
+
/***/ 7080:
|
|
39
|
+
/***/ (function(module) {
|
|
40
|
+
|
|
41
|
+
module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
42
|
+
|
|
43
|
+
/***/ }),
|
|
44
|
+
|
|
45
|
+
/***/ 826:
|
|
46
|
+
/***/ (function(module) {
|
|
47
|
+
|
|
48
|
+
module.exports = require("@kq_npm/client_common_vue/_utils/gis-utils");
|
|
49
|
+
|
|
50
|
+
/***/ }),
|
|
51
|
+
|
|
52
|
+
/***/ 9519:
|
|
53
|
+
/***/ (function(module) {
|
|
54
|
+
|
|
55
|
+
module.exports = require("@kq_npm/client_common_vue/_utils/util");
|
|
56
|
+
|
|
57
|
+
/***/ }),
|
|
58
|
+
|
|
59
|
+
/***/ 5406:
|
|
60
|
+
/***/ (function(module) {
|
|
61
|
+
|
|
62
|
+
module.exports = require("@kq_npm/client_common_vue/init.js");
|
|
63
|
+
|
|
64
|
+
/***/ }),
|
|
65
|
+
|
|
66
|
+
/***/ 637:
|
|
67
|
+
/***/ (function(module) {
|
|
68
|
+
|
|
69
|
+
module.exports = require("vue");
|
|
70
|
+
|
|
71
|
+
/***/ }),
|
|
72
|
+
|
|
73
|
+
/***/ 8270:
|
|
74
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
75
|
+
|
|
76
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
77
|
+
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
78
|
+
/* harmony export */ });
|
|
79
|
+
function _defineProperty(obj, key, value) {
|
|
80
|
+
if (key in obj) {
|
|
81
|
+
Object.defineProperty(obj, key, {
|
|
82
|
+
value: value,
|
|
83
|
+
enumerable: true,
|
|
84
|
+
configurable: true,
|
|
85
|
+
writable: true
|
|
86
|
+
});
|
|
87
|
+
} else {
|
|
88
|
+
obj[key] = value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return obj;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/***/ })
|
|
95
|
+
|
|
96
|
+
/******/ });
|
|
97
|
+
/************************************************************************/
|
|
98
|
+
/******/ // The module cache
|
|
99
|
+
/******/ var __webpack_module_cache__ = {};
|
|
100
|
+
/******/
|
|
101
|
+
/******/ // The require function
|
|
102
|
+
/******/ function __webpack_require__(moduleId) {
|
|
103
|
+
/******/ // Check if module is in cache
|
|
104
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
105
|
+
/******/ if (cachedModule !== undefined) {
|
|
106
|
+
/******/ return cachedModule.exports;
|
|
107
|
+
/******/ }
|
|
108
|
+
/******/ // Create a new module (and put it into the cache)
|
|
109
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
110
|
+
/******/ // no module.id needed
|
|
111
|
+
/******/ // no module.loaded needed
|
|
112
|
+
/******/ exports: {}
|
|
113
|
+
/******/ };
|
|
114
|
+
/******/
|
|
115
|
+
/******/ // Execute the module function
|
|
116
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
117
|
+
/******/
|
|
118
|
+
/******/ // Return the exports of the module
|
|
119
|
+
/******/ return module.exports;
|
|
120
|
+
/******/ }
|
|
121
|
+
/******/
|
|
122
|
+
/************************************************************************/
|
|
123
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
124
|
+
/******/ !function() {
|
|
125
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
126
|
+
/******/ __webpack_require__.n = function(module) {
|
|
127
|
+
/******/ var getter = module && module.__esModule ?
|
|
128
|
+
/******/ function() { return module['default']; } :
|
|
129
|
+
/******/ function() { return module; };
|
|
130
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
131
|
+
/******/ return getter;
|
|
132
|
+
/******/ };
|
|
133
|
+
/******/ }();
|
|
134
|
+
/******/
|
|
135
|
+
/******/ /* webpack/runtime/define property getters */
|
|
136
|
+
/******/ !function() {
|
|
137
|
+
/******/ // define getter functions for harmony exports
|
|
138
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
139
|
+
/******/ for(var key in definition) {
|
|
140
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
141
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
142
|
+
/******/ }
|
|
143
|
+
/******/ }
|
|
144
|
+
/******/ };
|
|
145
|
+
/******/ }();
|
|
146
|
+
/******/
|
|
147
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
148
|
+
/******/ !function() {
|
|
149
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
150
|
+
/******/ }();
|
|
151
|
+
/******/
|
|
152
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
153
|
+
/******/ !function() {
|
|
154
|
+
/******/ // define __esModule on exports
|
|
155
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
156
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
157
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
158
|
+
/******/ }
|
|
159
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
160
|
+
/******/ };
|
|
161
|
+
/******/ }();
|
|
162
|
+
/******/
|
|
163
|
+
/************************************************************************/
|
|
164
|
+
var __webpack_exports__ = {};
|
|
165
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
166
|
+
!function() {
|
|
167
|
+
// ESM COMPAT FLAG
|
|
168
|
+
__webpack_require__.r(__webpack_exports__);
|
|
169
|
+
|
|
170
|
+
// EXPORTS
|
|
171
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
172
|
+
"TerrainProfileAnalysisViewModel": function() { return /* reexport */ TerrainProfileAnalysisViewModel; },
|
|
173
|
+
"default": function() { return /* reexport */ TerrainProfileAnalysis; }
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
177
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
|
|
178
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
179
|
+
var gis_utils_ = __webpack_require__(826);
|
|
180
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
181
|
+
var defineProperty = __webpack_require__(8270);
|
|
182
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
183
|
+
var message = __webpack_require__(1349);
|
|
184
|
+
;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/TerrainProfileAnalysisViewModel.js
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
class TerrainProfileAnalysisViewModel {
|
|
188
|
+
// 三维viewer对象
|
|
189
|
+
//绘制管理对象
|
|
190
|
+
//绘制完成监听事件
|
|
191
|
+
//分析结束事件
|
|
192
|
+
constructor(scenceView, option) {
|
|
193
|
+
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
194
|
+
|
|
195
|
+
(0,defineProperty/* default */.Z)(this, "_terrainSlopeAnalyse", null);
|
|
196
|
+
|
|
197
|
+
(0,defineProperty/* default */.Z)(this, "_analyseHeight", 1000);
|
|
198
|
+
|
|
199
|
+
(0,defineProperty/* default */.Z)(this, "_drawManager", null);
|
|
200
|
+
|
|
201
|
+
(0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
|
|
202
|
+
|
|
203
|
+
(0,defineProperty/* default */.Z)(this, "minHeight", null);
|
|
204
|
+
|
|
205
|
+
(0,defineProperty/* default */.Z)(this, "maxHeight", null);
|
|
206
|
+
|
|
207
|
+
(0,defineProperty/* default */.Z)(this, "distance", null);
|
|
208
|
+
|
|
209
|
+
(0,defineProperty/* default */.Z)(this, "divPointArr", []);
|
|
210
|
+
|
|
211
|
+
(0,defineProperty/* default */.Z)(this, "languageDta", {});
|
|
212
|
+
|
|
213
|
+
(0,defineProperty/* default */.Z)(this, "coordDivpoint", null);
|
|
214
|
+
|
|
215
|
+
this._viewer = scenceView._viewer;
|
|
216
|
+
this._drawManager = scenceView._drawManager;
|
|
217
|
+
this._analyseHeight = option.analyseHeight; // 开启对数缓冲区 减少视锥体中多视锥体 减少重绘次数提高性能
|
|
218
|
+
|
|
219
|
+
this._viewer.scene.logarithmicDepthBuffer = false;
|
|
220
|
+
this._viewer.scene.pickTranslucentDepth = true; // 默认
|
|
221
|
+
|
|
222
|
+
this._viewer.resolutionScale = 1.2;
|
|
223
|
+
this._viewer.postProcessStages.fxaa.enabled = true; // 开启深度检测
|
|
224
|
+
|
|
225
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
226
|
+
this._viewer.scene.pickTranslucentDepth = true;
|
|
227
|
+
this._terrainSlopeAnalyse = new window.Cesium.Kq3dSlope2({
|
|
228
|
+
viewer: this._viewer,
|
|
229
|
+
height: this._analyseHeight
|
|
230
|
+
});
|
|
231
|
+
var that = this;
|
|
232
|
+
this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
233
|
+
if (shape) {
|
|
234
|
+
that._terrainSlopeAnalyse.startAnalyse(shape._controlPoints);
|
|
235
|
+
|
|
236
|
+
that._drawManager.clear();
|
|
237
|
+
}
|
|
238
|
+
}); //分析结束事件
|
|
239
|
+
|
|
240
|
+
this._terrainSlopeAnalyse.analyseEndEvent.addEventListener(function (res) {
|
|
241
|
+
that.minHeight = res.minHeight;
|
|
242
|
+
that.maxHeight = res.maxHeight;
|
|
243
|
+
that.distance = res.distance;
|
|
244
|
+
var minPos = res.minHeightPoint;
|
|
245
|
+
var maxPos = res.maxHeightPoint;
|
|
246
|
+
minPos.height += that._analyseHeight;
|
|
247
|
+
maxPos.height += that._analyseHeight;
|
|
248
|
+
that.createInfoDivPoint(that.languageDta.minHeight, that.minHeight.toFixed(3), window.Cesium.Cartographic.toCartesian(minPos));
|
|
249
|
+
that.createInfoDivPoint(that.languageDta.maxHeight, that.maxHeight.toFixed(3), window.Cesium.Cartographic.toCartesian(maxPos));
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
var handler = new window.Cesium.ScreenSpaceEventHandler(this._viewer.canvas);
|
|
253
|
+
handler.setInputAction(function (movement) {
|
|
254
|
+
var position = that._viewer.scene.pickPosition(movement.endPosition);
|
|
255
|
+
|
|
256
|
+
var pickedObject = that._viewer.scene.pick(movement.endPosition);
|
|
257
|
+
|
|
258
|
+
if (pickedObject && pickedObject.id instanceof window.Cesium.Entity && pickedObject.id.wall) {
|
|
259
|
+
//获取当前点的地形高度,在坡度分析墙的上方显示详细信息面板
|
|
260
|
+
var carto = window.Cesium.Cartographic.fromCartesian(position);
|
|
261
|
+
var promise = window.Cesium.sampleTerrainMostDetailed(that._viewer.terrainProvider, [carto]);
|
|
262
|
+
window.Cesium.when(promise, function (updatedPositions) {
|
|
263
|
+
var lon = window.Cesium.Math.toDegrees(updatedPositions[0].longitude);
|
|
264
|
+
var lat = window.Cesium.Math.toDegrees(updatedPositions[0].latitude);
|
|
265
|
+
var height = updatedPositions[0].height;
|
|
266
|
+
that.createInfoDivPoint2(lon.toFixed(5), lat.toFixed(5), height.toFixed(3), that.maxHeight.toFixed(3), that.distance.toFixed(3), window.Cesium.Cartesian3.fromDegrees(lon, lat, height + that._analyseHeight));
|
|
267
|
+
});
|
|
268
|
+
} else {
|
|
269
|
+
if (that.coordDivpoint) {
|
|
270
|
+
that.coordDivpoint.destroy();
|
|
271
|
+
that.coordDivpoint = null;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}, window.Cesium.ScreenSpaceEventType.MOUSE_MOVE);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
changeLanguage(val) {
|
|
278
|
+
this.languageDta = val;
|
|
279
|
+
this.clear();
|
|
280
|
+
} //创建当前点坐标信息面板"longitude": "经度","latitude": "纬度",
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
createInfoDivPoint2(lon, lat, height, maxHeight, distance, position) {
|
|
284
|
+
let html = `<div class="coord">
|
|
285
|
+
<div class="text">
|
|
286
|
+
<div>${this.languageDta.longitude}:${lon} °</div>
|
|
287
|
+
<div>${this.languageDta.latitude}:${lat} °</div>
|
|
288
|
+
<div>${this.languageDta.terrainHeight}:${height}m</div>
|
|
289
|
+
<div>${this.languageDta.maxHeight}:${maxHeight}m</div>
|
|
290
|
+
<div>${this.languageDta.totalDistance}:${distance}m</div>
|
|
291
|
+
</div>
|
|
292
|
+
<div class="pole"></div>
|
|
293
|
+
<div class="ball"></div>
|
|
294
|
+
</div>`; //初始化DivPoint
|
|
295
|
+
|
|
296
|
+
if (this.coordDivpoint) {
|
|
297
|
+
this.coordDivpoint.destroy();
|
|
298
|
+
this.coordDivpoint = null;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
this.coordDivpoint = new window.Cesium.Kq3dHtmlTag(this._viewer, {
|
|
302
|
+
html: html,
|
|
303
|
+
position: position,
|
|
304
|
+
anchor: [-90, -180],
|
|
305
|
+
noEvent: true
|
|
306
|
+
});
|
|
307
|
+
this.divPointArr.push(this.coordDivpoint);
|
|
308
|
+
} //创建最高最低点信息面板
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
createInfoDivPoint(name, value, position) {
|
|
312
|
+
let html = `<div class="height">
|
|
313
|
+
<div class="text">${name}:${value}m</div>
|
|
314
|
+
<div class="pole"> </div>
|
|
315
|
+
<div class="ball"></div>
|
|
316
|
+
</div>`; //初始化DivPoint
|
|
317
|
+
|
|
318
|
+
let divPoint = new window.Cesium.Kq3dHtmlTag(this._viewer, {
|
|
319
|
+
html: html,
|
|
320
|
+
position: position,
|
|
321
|
+
anchor: [-97, -118],
|
|
322
|
+
noEvent: true
|
|
323
|
+
});
|
|
324
|
+
this.divPointArr.push(divPoint);
|
|
325
|
+
return divPoint;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
start() {
|
|
329
|
+
// 判断是否添加了地形
|
|
330
|
+
if (this._viewer.terrainProvider.availability) {
|
|
331
|
+
if (this._viewer.terrainProvider instanceof window.Cesium.CesiumTerrainProvider) {
|
|
332
|
+
this.clear();
|
|
333
|
+
|
|
334
|
+
this._drawManager.startDraw("polyline", {
|
|
335
|
+
clampToGround: true
|
|
336
|
+
});
|
|
337
|
+
} else {
|
|
338
|
+
(0,message/* default */.Z)({
|
|
339
|
+
message: "只支持STK类型的地形分析!",
|
|
340
|
+
type: "warning"
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
} else {
|
|
344
|
+
(0,message/* default */.Z)({
|
|
345
|
+
message: "请加载地形后分析!",
|
|
346
|
+
type: "warning"
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
} //清除
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
clear() {
|
|
353
|
+
this._drawManager && this._drawManager.stopDraw();
|
|
354
|
+
this._terrainSlopeAnalyse && this._terrainSlopeAnalyse.clear();
|
|
355
|
+
|
|
356
|
+
for (let index = 0; index < this.divPointArr.length; index++) {
|
|
357
|
+
var divPoint = this.divPointArr[index];
|
|
358
|
+
|
|
359
|
+
if (divPoint) {
|
|
360
|
+
divPoint.destroy();
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
this.divPointArr = [];
|
|
365
|
+
} //销毁
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
destroy() {
|
|
369
|
+
this.clear(); //移除监听事件
|
|
370
|
+
|
|
371
|
+
this._removeEventListener && this._removeEventListener();
|
|
372
|
+
this._removeEventListener = null;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
}
|
|
376
|
+
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
377
|
+
var client_icons_vue_ = __webpack_require__(348);
|
|
378
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
379
|
+
var util_ = __webpack_require__(9519);
|
|
380
|
+
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
381
|
+
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
382
|
+
;// 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
|
|
383
|
+
|
|
384
|
+
const _hoisted_1 = {
|
|
385
|
+
class: "kq3d-terrain-profile-analysis-footer"
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
//语言
|
|
393
|
+
|
|
394
|
+
const __default__ = {
|
|
395
|
+
name: "Kq3dTerrainProfileAnalysis"
|
|
396
|
+
};
|
|
397
|
+
/* harmony default export */ var TerrainProfileAnalysisvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
398
|
+
props: {
|
|
399
|
+
//指定组件绑定的viewer对象的div的id
|
|
400
|
+
mapTarget: String,
|
|
401
|
+
settingParams: {
|
|
402
|
+
control: "object",
|
|
403
|
+
description: "设置参数"
|
|
404
|
+
},
|
|
405
|
+
// 是否显示阴影效果
|
|
406
|
+
showShadow: {
|
|
407
|
+
type: Boolean,
|
|
408
|
+
default: true
|
|
409
|
+
},
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
413
|
+
*/
|
|
414
|
+
position: [String, Object],
|
|
415
|
+
// 是否生成HeaderTemp
|
|
416
|
+
showHeaderTemp: {
|
|
417
|
+
type: Boolean,
|
|
418
|
+
default: false
|
|
419
|
+
},
|
|
420
|
+
// 是否折叠HeaderTemp,showHeaderTemp为true时生效
|
|
421
|
+
isCollapseHeaderTemp: {
|
|
422
|
+
type: Boolean,
|
|
423
|
+
default: false
|
|
424
|
+
},
|
|
425
|
+
// HeaderTemp标题
|
|
426
|
+
headerTempTitle: {
|
|
427
|
+
type: String
|
|
428
|
+
},
|
|
429
|
+
// HeaderTemp图标
|
|
430
|
+
headerTempIcon: {
|
|
431
|
+
type: [Object, String],
|
|
432
|
+
default: client_icons_vue_.IconProfileAnalysis
|
|
433
|
+
},
|
|
434
|
+
// HeaderTemp Title&Icon的位置
|
|
435
|
+
isRight: {
|
|
436
|
+
type: Boolean,
|
|
437
|
+
default: true
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
|
|
441
|
+
setup(__props, {
|
|
442
|
+
expose
|
|
443
|
+
}) {
|
|
444
|
+
const props = __props;
|
|
445
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
446
|
+
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
447
|
+
let viewModel = null;
|
|
448
|
+
let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
449
|
+
const {
|
|
450
|
+
proxy
|
|
451
|
+
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)(); // 获取组件传参
|
|
452
|
+
// 组件容器Ref
|
|
453
|
+
|
|
454
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
455
|
+
|
|
456
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
457
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
458
|
+
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
459
|
+
analyseHeight: props.settingParams && props.settingParams.analyseHeight || 1000 // 地形操作类型。1:地形开挖;2:地形修改
|
|
460
|
+
|
|
461
|
+
}); // 国际化
|
|
462
|
+
|
|
463
|
+
let {
|
|
464
|
+
locale,
|
|
465
|
+
messages
|
|
466
|
+
} = (0,vue_i18n_cjs_js_.useI18n)();
|
|
467
|
+
let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
468
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
469
|
+
language.value = messages.value[newVal]["webgl"];
|
|
470
|
+
headerTempTitle.value = language.value.terrainProfileName;
|
|
471
|
+
viewModel && viewModel.changeLanguage(language.value);
|
|
472
|
+
});
|
|
473
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
474
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
475
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
476
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
477
|
+
});
|
|
478
|
+
watchCreateHeaderTemp();
|
|
479
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
480
|
+
watchCreateHeaderTemp();
|
|
481
|
+
});
|
|
482
|
+
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
483
|
+
//父组件ScenceView初始化完成后执行
|
|
484
|
+
|
|
485
|
+
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
486
|
+
if (scenceView) {
|
|
487
|
+
viewModel = new TerrainProfileAnalysisViewModel(scenceView, {
|
|
488
|
+
analyseHeight: formItem.analyseHeight
|
|
489
|
+
});
|
|
490
|
+
viewModel.languageDta = language.value;
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
});
|
|
494
|
+
/**
|
|
495
|
+
* @description 监听header生成
|
|
496
|
+
*/
|
|
497
|
+
|
|
498
|
+
const watchCreateHeaderTemp = () => {
|
|
499
|
+
if (props.showHeaderTemp) {
|
|
500
|
+
// 生成headerTemp
|
|
501
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
502
|
+
}
|
|
503
|
+
}; // 开始分析
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
function startAnalysis() {
|
|
507
|
+
clearResult();
|
|
508
|
+
viewModel && viewModel.start();
|
|
509
|
+
} //清除结果
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
function clearResult() {
|
|
513
|
+
viewModel && viewModel.clear();
|
|
514
|
+
} // 清除
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
function clear() {
|
|
518
|
+
viewModel && viewModel.clear();
|
|
519
|
+
} // 销毁
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
523
|
+
viewModel && viewModel.destroy();
|
|
524
|
+
});
|
|
525
|
+
expose({
|
|
526
|
+
startAnalysis,
|
|
527
|
+
clearResult,
|
|
528
|
+
clear
|
|
529
|
+
});
|
|
530
|
+
return (_ctx, _cache) => {
|
|
531
|
+
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
532
|
+
|
|
533
|
+
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
534
|
+
|
|
535
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
536
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-terrain-profile-analysis", {
|
|
537
|
+
'kq-box-shadow': __props.showShadow
|
|
538
|
+
}]),
|
|
539
|
+
ref_key: "boxRef",
|
|
540
|
+
ref: boxRef
|
|
541
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
542
|
+
key: 0,
|
|
543
|
+
ref_key: "headerTempRef",
|
|
544
|
+
ref: headerTempRef
|
|
545
|
+
}, null, 512
|
|
546
|
+
/* NEED_PATCH */
|
|
547
|
+
)) : (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", {
|
|
548
|
+
class: "kq3d-terrain-profile-analysis-box",
|
|
549
|
+
ref_key: "ref_box",
|
|
550
|
+
ref: ref_box
|
|
551
|
+
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
552
|
+
class: "kq3d-terrain-profile-analysis-tip"
|
|
553
|
+
}, {
|
|
554
|
+
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
|
|
555
|
+
/* TEXT */
|
|
556
|
+
)]),
|
|
557
|
+
_: 1
|
|
558
|
+
/* STABLE */
|
|
559
|
+
|
|
560
|
+
}), (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, {
|
|
561
|
+
onClick: _cache[0] || (_cache[0] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
|
|
562
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis,
|
|
563
|
+
type: "primary"
|
|
564
|
+
}, {
|
|
565
|
+
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
|
|
566
|
+
/* TEXT */
|
|
567
|
+
)]),
|
|
568
|
+
_: 1
|
|
569
|
+
/* STABLE */
|
|
570
|
+
|
|
571
|
+
}, 8
|
|
572
|
+
/* PROPS */
|
|
573
|
+
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
574
|
+
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
|
|
575
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
|
|
576
|
+
}, {
|
|
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).clearResult), 1
|
|
578
|
+
/* TEXT */
|
|
579
|
+
)]),
|
|
580
|
+
_: 1
|
|
581
|
+
/* STABLE */
|
|
582
|
+
|
|
583
|
+
}, 8
|
|
584
|
+
/* PROPS */
|
|
585
|
+
, ["title"])])], 512
|
|
586
|
+
/* NEED_PATCH */
|
|
587
|
+
)], 2
|
|
588
|
+
/* CLASS */
|
|
589
|
+
);
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
}));
|
|
594
|
+
;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/TerrainProfileAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
595
|
+
|
|
596
|
+
;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/TerrainProfileAnalysis.vue
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
const __exports__ = TerrainProfileAnalysisvue_type_script_setup_true_lang_js;
|
|
601
|
+
|
|
602
|
+
/* harmony default export */ var TerrainProfileAnalysis = (__exports__);
|
|
603
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
604
|
+
var init_js_ = __webpack_require__(5406);
|
|
605
|
+
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
606
|
+
;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/index.js
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
TerrainProfileAnalysis.install = (Vue, opts) => {
|
|
612
|
+
init_js_default()(Vue, opts);
|
|
613
|
+
Vue.component(TerrainProfileAnalysis.name, TerrainProfileAnalysis);
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
}();
|
|
618
|
+
module.exports = __webpack_exports__;
|
|
619
|
+
/******/ })()
|
|
620
|
+
;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.kq3d-terrain-profile-analysis{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;width:300px;background-color:var(--kq-bg-color)}.kq3d-terrain-profile-analysis .kq3d-terrain-profile-analysis-box .kq-form-item{margin-bottom:0}.kq3d-terrain-profile-analysis .kq3d-terrain-profile-analysis-tip{color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base)}.kq3d-terrain-profile-analysis .kq3d-terrain-profile-analysis-tip p{margin-top:0;margin-bottom:16px}.kq3d-terrain-profile-analysis .kq3d-terrain-profile-analysis-footer{text-align:right;padding:0}.height .text{width:180px;height:26px;line-height:26px;padding:4px 6px;border:1px solid var(--kq-border-color);background-color:var(--kq-bg-color);text-align:center;color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base)}.pole{height:70px;border:1px dashed var(--kq-color-warning);width:0;margin-left:97px}.ball{height:10px;width:10px;background:var(--kq-color-danger);border-radius:50%;margin-left:92px}.coord{background:transparent}.coord .text{min-width:160px;height:80px;line-height:26px;padding:8px 10px 8px 8px;border:1px solid var(--kq-color-danger);background:var(--kq-bg-color);color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base)}.coord .text div{height:16px;line-height:16px}.coord .pole{margin-left:90px}.coord .ball{height:10px;width:10px;background:var(--kq-color-danger);border-radius:50%;margin-left:86px}
|
package/underground/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 7656:
|
|
6
6
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
7
|
|
|
8
8
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
@@ -206,12 +206,12 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
|
206
206
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
207
207
|
var gis_utils_ = __webpack_require__(826);
|
|
208
208
|
// EXTERNAL MODULE: ./src/webgl/underground/UndergroundViewModel.js
|
|
209
|
-
var UndergroundViewModel = __webpack_require__(
|
|
209
|
+
var UndergroundViewModel = __webpack_require__(7656);
|
|
210
210
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
211
211
|
var util_ = __webpack_require__(9519);
|
|
212
212
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
213
213
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
214
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js
|
|
214
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/underground/Underground.vue?vue&type=script&setup=true&lang=js
|
|
215
215
|
|
|
216
216
|
const _hoisted_1 = {
|
|
217
217
|
class: "kq3d-underground-switch"
|
|
@@ -233,11 +233,10 @@ const __default__ = {
|
|
|
233
233
|
},
|
|
234
234
|
emits: ["undergroundChange"],
|
|
235
235
|
|
|
236
|
-
setup(__props,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
} = _ref;
|
|
236
|
+
setup(__props, {
|
|
237
|
+
expose,
|
|
238
|
+
emit
|
|
239
|
+
}) {
|
|
241
240
|
const props = __props;
|
|
242
241
|
const {
|
|
243
242
|
proxy
|