@kq_npm/client3d_webgl_vue 3.2.6-beta → 3.2.7-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/aspectanalysis/index.js +122 -91
- package/boxclip/index.js +182 -158
- package/clientPrint/index.js +46 -3
- package/excavatefillanalysis/index.js +149 -118
- package/floodanalysis/index.js +48 -5
- package/gpuspatialquery/index.js +188 -164
- package/index.js +153 -45
- package/isolineanalysis/index.js +34 -1
- package/modelselect/index.js +143 -119
- package/modelselect/style/modelselect.css +1 -1
- package/package.json +1 -1
- package/planeclip/index.js +182 -158
- package/scenceview/index.js +399 -347
- package/shadowanalysis/index.js +185 -161
- package/skylineanalysis/index.js +185 -158
- package/slopeanalysis/index.js +56 -16
- package/style.css +1 -1
- package/terrainoperation/index.js +195 -164
package/clientPrint/index.js
CHANGED
|
@@ -8,12 +8,27 @@
|
|
|
8
8
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9
9
|
/* harmony export */ "Z": function() { return /* binding */ ClientPrintViewModel; }
|
|
10
10
|
/* harmony export */ });
|
|
11
|
+
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
|
|
12
|
+
|
|
13
|
+
|
|
11
14
|
/**
|
|
12
15
|
* @class ClientPrintViewModel
|
|
13
16
|
* @classdesc 客户端打印
|
|
14
17
|
*/
|
|
15
18
|
class ClientPrintViewModel {
|
|
16
|
-
constructor() {
|
|
19
|
+
constructor(scenceView) {
|
|
20
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
|
|
21
|
+
|
|
22
|
+
this._viewer = scenceView._viewer;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 改变状态栏方法
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
changStatusBar(val) {
|
|
30
|
+
this._viewer.statusBar.show = val;
|
|
31
|
+
}
|
|
17
32
|
/**
|
|
18
33
|
* 销毁执行方法。
|
|
19
34
|
*/
|
|
@@ -65,6 +80,29 @@ module.exports = require("@kq_npm/client_common_vue/init.js");
|
|
|
65
80
|
|
|
66
81
|
module.exports = require("vue");
|
|
67
82
|
|
|
83
|
+
/***/ }),
|
|
84
|
+
|
|
85
|
+
/***/ 8270:
|
|
86
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
87
|
+
|
|
88
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
89
|
+
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
90
|
+
/* harmony export */ });
|
|
91
|
+
function _defineProperty(obj, key, value) {
|
|
92
|
+
if (key in obj) {
|
|
93
|
+
Object.defineProperty(obj, key, {
|
|
94
|
+
value: value,
|
|
95
|
+
enumerable: true,
|
|
96
|
+
configurable: true,
|
|
97
|
+
writable: true
|
|
98
|
+
});
|
|
99
|
+
} else {
|
|
100
|
+
obj[key] = value;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return obj;
|
|
104
|
+
}
|
|
105
|
+
|
|
68
106
|
/***/ })
|
|
69
107
|
|
|
70
108
|
/******/ });
|
|
@@ -582,7 +620,6 @@ const __default__ = {
|
|
|
582
620
|
|
|
583
621
|
global_event_default().setDefaultMapInfo("scencePrint", "cesium", null);
|
|
584
622
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
585
|
-
viewModel = new ClientPrintViewModel/* default */.Z();
|
|
586
623
|
setTitleDataform.value.data.title = props.printTitle;
|
|
587
624
|
companyName.value = props.companyName;
|
|
588
625
|
sizelist.value = [];
|
|
@@ -598,6 +635,7 @@ const __default__ = {
|
|
|
598
635
|
initControl();
|
|
599
636
|
global_event_default().getWebMapByMapTarget("scencePrint", scenceView => {
|
|
600
637
|
if (scenceView && scenceView._viewer) {
|
|
638
|
+
viewModel = new ClientPrintViewModel/* default */.Z(scenceView);
|
|
601
639
|
cameraToImage = new Cesium.Kq3dCanvasToImage(scenceView._viewer._container, {
|
|
602
640
|
viewer: scenceView._viewer,
|
|
603
641
|
canvas: scenceView._viewer.scene.canvas
|
|
@@ -662,6 +700,10 @@ const __default__ = {
|
|
|
662
700
|
|
|
663
701
|
return yearCNStr + nonthCNStr + dayCNStr;
|
|
664
702
|
}
|
|
703
|
+
|
|
704
|
+
function changStatusBar() {
|
|
705
|
+
viewModel && viewModel.changStatusBar(scalesShow.value);
|
|
706
|
+
}
|
|
665
707
|
/**
|
|
666
708
|
* 显示切换
|
|
667
709
|
* @param {string} type
|
|
@@ -1376,7 +1418,8 @@ const __default__ = {
|
|
|
1376
1418
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_checkbox, {
|
|
1377
1419
|
class: "btnStyle",
|
|
1378
1420
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(scalesShow),
|
|
1379
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(scalesShow) ? scalesShow.value = $event : scalesShow = $event)
|
|
1421
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(scalesShow) ? scalesShow.value = $event : scalesShow = $event),
|
|
1422
|
+
onChange: changStatusBar
|
|
1380
1423
|
}, {
|
|
1381
1424
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [_hoisted_9]),
|
|
1382
1425
|
_: 1
|
|
@@ -2,128 +2,30 @@
|
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 909:
|
|
6
6
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
7
|
|
|
8
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9
|
-
/* harmony export */ "Z": function() { return /* binding */ ExcavateFillAnalysisViewModel; }
|
|
10
|
-
/* harmony export */ });
|
|
11
|
-
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
|
|
12
|
-
|
|
13
|
-
//填挖方分析逻辑类
|
|
14
|
-
class ExcavateFillAnalysisViewModel {
|
|
15
|
-
//填挖方分析三维对象
|
|
16
|
-
//绘制管理对象
|
|
17
|
-
//填挖方分析存储参数对象
|
|
18
|
-
//绘制完成监听事件
|
|
19
|
-
constructor(scenceView, options, callback) {
|
|
20
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_excavateFillAnalysis", null);
|
|
21
|
-
|
|
22
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_drawManager", null);
|
|
23
|
-
|
|
24
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_options", null);
|
|
25
|
-
|
|
26
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_removeEventListener", null);
|
|
27
|
-
|
|
28
|
-
options.viewer = scenceView._viewer;
|
|
29
|
-
options.viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
30
|
-
|
|
31
|
-
if (options.cutColor) {
|
|
32
|
-
options.cutColor = Cesium.Color.fromCssColorString(options.cutColor).withAlpha(0.7);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (options.fillColor) {
|
|
36
|
-
options.fillColor = Cesium.Color.fromCssColorString(options.fillColor).withAlpha(0.7);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
this._options = options;
|
|
40
|
-
this._drawManager = scenceView._drawManager;
|
|
41
|
-
var that = this;
|
|
42
|
-
this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
43
|
-
if (shape) {
|
|
44
|
-
options.positions = that.coordinateTransform(shape._controlPoints);
|
|
45
|
-
that._excavateFillAnalysis = new Cesium.Kq3dCutFill(options);
|
|
46
|
-
|
|
47
|
-
that._drawManager.clear();
|
|
48
|
-
|
|
49
|
-
callback && callback(); // callback && setTimeout(callback, 1500);
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
} // 处理绘制坐标,转成二维坐标
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
coordinateTransform(points) {
|
|
56
|
-
let cutPoints = points.map(function (point) {
|
|
57
|
-
let cartesPh = Cesium.Cartographic.fromCartesian(point);
|
|
58
|
-
cartesPh.longitude = cartesPh.longitude / Math.PI * 180;
|
|
59
|
-
cartesPh.latitude = cartesPh.latitude / Math.PI * 180;
|
|
60
|
-
let map = {
|
|
61
|
-
longitude: cartesPh.longitude,
|
|
62
|
-
latitude: cartesPh.latitude,
|
|
63
|
-
height: cartesPh.height
|
|
64
|
-
};
|
|
65
|
-
return map;
|
|
66
|
-
});
|
|
67
|
-
return cutPoints;
|
|
68
|
-
} //开始分析
|
|
69
|
-
|
|
70
8
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
clampToGround: true
|
|
76
|
-
});
|
|
77
|
-
} else {
|
|
78
|
-
throw "请加载地形后分析!";
|
|
79
|
-
}
|
|
80
|
-
} //清除全部结果
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
clear() {
|
|
84
|
-
this._drawManager.stopDraw();
|
|
85
|
-
|
|
86
|
-
this._excavateFillAnalysis && this._excavateFillAnalysis.removeAll();
|
|
87
|
-
} //销毁
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
destroy() {
|
|
91
|
-
this.clear(); // this._excavateFillAnalysis && this._excavateFillAnalysis.destroy();
|
|
92
|
-
|
|
93
|
-
this._excavateFillAnalysis = null; //移除监听事件
|
|
94
|
-
|
|
95
|
-
this._removeEventListener && this._removeEventListener();
|
|
96
|
-
this._removeEventListener = null;
|
|
97
|
-
} //设置基准高度
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
setReferenceHeight(height) {
|
|
101
|
-
this._options.referenceHeight = Number(height);
|
|
102
|
-
|
|
103
|
-
if (this._excavateFillAnalysis) {
|
|
104
|
-
this._excavateFillAnalysis.referenceHeight = Number(height);
|
|
105
|
-
}
|
|
106
|
-
} //设置挖方颜色
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
setCutColor(cutColor) {
|
|
110
|
-
this._options.cutColor = Cesium.Color.fromCssColorString(cutColor).withAlpha(0.7);
|
|
9
|
+
// EXPORTS
|
|
10
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
11
|
+
"Z": function() { return /* binding */ message; }
|
|
12
|
+
});
|
|
111
13
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
14
|
+
;// CONCATENATED MODULE: external "element-plus/es"
|
|
15
|
+
var es_namespaceObject = require("element-plus/es");
|
|
16
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
17
|
+
var init_js_ = __webpack_require__(5406);
|
|
18
|
+
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
19
|
+
;// CONCATENATED MODULE: ./src/common/_ui/message/index.js
|
|
116
20
|
|
|
117
21
|
|
|
118
|
-
setFillColor(fillColor) {
|
|
119
|
-
this._options.fillColor = Cesium.Color.fromCssColorString(fillColor).withAlpha(0.7);
|
|
120
22
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
23
|
+
es_namespaceObject.ElMessage.install = (Vue, opts) => {
|
|
24
|
+
init_js_default()(Vue, opts);
|
|
25
|
+
Vue.component("KqMessage", es_namespaceObject.ElMessage);
|
|
26
|
+
};
|
|
125
27
|
|
|
126
|
-
|
|
28
|
+
/* harmony default export */ var message = (es_namespaceObject.ElMessage);
|
|
127
29
|
|
|
128
30
|
/***/ }),
|
|
129
31
|
|
|
@@ -261,7 +163,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
261
163
|
|
|
262
164
|
// EXPORTS
|
|
263
165
|
__webpack_require__.d(__webpack_exports__, {
|
|
264
|
-
"ExcavateFillAnalysisViewModel": function() { return /* reexport */ ExcavateFillAnalysisViewModel
|
|
166
|
+
"ExcavateFillAnalysisViewModel": function() { return /* reexport */ ExcavateFillAnalysisViewModel; },
|
|
265
167
|
"default": function() { return /* reexport */ ExcavateFillAnalysis; }
|
|
266
168
|
});
|
|
267
169
|
|
|
@@ -269,8 +171,137 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
269
171
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
|
|
270
172
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
271
173
|
var gis_utils_ = __webpack_require__(826);
|
|
272
|
-
// EXTERNAL MODULE: ./
|
|
273
|
-
var
|
|
174
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
175
|
+
var defineProperty = __webpack_require__(8270);
|
|
176
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
|
|
177
|
+
var message = __webpack_require__(909);
|
|
178
|
+
;// CONCATENATED MODULE: ./src/webgl/excavatefillanalysis/ExcavateFillAnalysisViewModel.js
|
|
179
|
+
|
|
180
|
+
//填挖方分析逻辑类
|
|
181
|
+
|
|
182
|
+
class ExcavateFillAnalysisViewModel {
|
|
183
|
+
//填挖方分析三维对象
|
|
184
|
+
//绘制管理对象
|
|
185
|
+
//填挖方分析存储参数对象
|
|
186
|
+
//绘制完成监听事件
|
|
187
|
+
constructor(scenceView, options, callback) {
|
|
188
|
+
(0,defineProperty/* default */.Z)(this, "_excavateFillAnalysis", null);
|
|
189
|
+
|
|
190
|
+
(0,defineProperty/* default */.Z)(this, "_drawManager", null);
|
|
191
|
+
|
|
192
|
+
(0,defineProperty/* default */.Z)(this, "_options", null);
|
|
193
|
+
|
|
194
|
+
(0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
|
|
195
|
+
|
|
196
|
+
options.viewer = scenceView._viewer;
|
|
197
|
+
options.viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
198
|
+
|
|
199
|
+
if (options.cutColor) {
|
|
200
|
+
options.cutColor = Cesium.Color.fromCssColorString(options.cutColor).withAlpha(0.7);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if (options.fillColor) {
|
|
204
|
+
options.fillColor = Cesium.Color.fromCssColorString(options.fillColor).withAlpha(0.7);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
this._options = options;
|
|
208
|
+
this._drawManager = scenceView._drawManager;
|
|
209
|
+
var that = this;
|
|
210
|
+
this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
211
|
+
if (shape) {
|
|
212
|
+
options.positions = that.coordinateTransform(shape._controlPoints);
|
|
213
|
+
that._excavateFillAnalysis = new Cesium.Kq3dCutFill(options);
|
|
214
|
+
|
|
215
|
+
that._drawManager.clear();
|
|
216
|
+
|
|
217
|
+
callback && callback(); // callback && setTimeout(callback, 1500);
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
} // 处理绘制坐标,转成二维坐标
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
coordinateTransform(points) {
|
|
224
|
+
let cutPoints = points.map(function (point) {
|
|
225
|
+
let cartesPh = Cesium.Cartographic.fromCartesian(point);
|
|
226
|
+
cartesPh.longitude = cartesPh.longitude / Math.PI * 180;
|
|
227
|
+
cartesPh.latitude = cartesPh.latitude / Math.PI * 180;
|
|
228
|
+
let map = {
|
|
229
|
+
longitude: cartesPh.longitude,
|
|
230
|
+
latitude: cartesPh.latitude,
|
|
231
|
+
height: cartesPh.height
|
|
232
|
+
};
|
|
233
|
+
return map;
|
|
234
|
+
});
|
|
235
|
+
return cutPoints;
|
|
236
|
+
} //开始分析
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
start() {
|
|
240
|
+
// 判断是否添加了地形
|
|
241
|
+
if (this._options.viewer.terrainProvider.availability) {
|
|
242
|
+
if (this._options.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
|
|
243
|
+
this._drawManager.startDraw("polygon", {
|
|
244
|
+
clampToGround: true
|
|
245
|
+
});
|
|
246
|
+
} else {
|
|
247
|
+
(0,message/* default */.Z)({
|
|
248
|
+
message: "只支持STK类型的地形分析!",
|
|
249
|
+
type: "warning"
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
} else {
|
|
253
|
+
(0,message/* default */.Z)({
|
|
254
|
+
message: "请加载地形后分析!",
|
|
255
|
+
type: "warning"
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
} //清除全部结果
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
clear() {
|
|
262
|
+
this._drawManager.stopDraw();
|
|
263
|
+
|
|
264
|
+
this._excavateFillAnalysis && this._excavateFillAnalysis.removeAll();
|
|
265
|
+
} //销毁
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
destroy() {
|
|
269
|
+
this.clear(); // this._excavateFillAnalysis && this._excavateFillAnalysis.destroy();
|
|
270
|
+
|
|
271
|
+
this._excavateFillAnalysis = null; //移除监听事件
|
|
272
|
+
|
|
273
|
+
this._removeEventListener && this._removeEventListener();
|
|
274
|
+
this._removeEventListener = null;
|
|
275
|
+
} //设置基准高度
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
setReferenceHeight(height) {
|
|
279
|
+
this._options.referenceHeight = Number(height);
|
|
280
|
+
|
|
281
|
+
if (this._excavateFillAnalysis) {
|
|
282
|
+
this._excavateFillAnalysis.referenceHeight = Number(height);
|
|
283
|
+
}
|
|
284
|
+
} //设置挖方颜色
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
setCutColor(cutColor) {
|
|
288
|
+
this._options.cutColor = Cesium.Color.fromCssColorString(cutColor).withAlpha(0.7);
|
|
289
|
+
|
|
290
|
+
if (this._excavateFillAnalysis) {
|
|
291
|
+
this._excavateFillAnalysis.cutColor = this._options.cutColor;
|
|
292
|
+
}
|
|
293
|
+
} //设置填方颜色
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
setFillColor(fillColor) {
|
|
297
|
+
this._options.fillColor = Cesium.Color.fromCssColorString(fillColor).withAlpha(0.7);
|
|
298
|
+
|
|
299
|
+
if (this._excavateFillAnalysis) {
|
|
300
|
+
this._excavateFillAnalysis.fillColor = this._options.fillColor;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
}
|
|
274
305
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
275
306
|
var client_icons_vue_ = __webpack_require__(348);
|
|
276
307
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
@@ -399,7 +430,7 @@ const __default__ = {
|
|
|
399
430
|
cutColor: formItem.excavateColor,
|
|
400
431
|
fillColor: formItem.fillColor
|
|
401
432
|
};
|
|
402
|
-
viewModel = new ExcavateFillAnalysisViewModel
|
|
433
|
+
viewModel = new ExcavateFillAnalysisViewModel(scenceView, options, function () {
|
|
403
434
|
setTimeout(() => {
|
|
404
435
|
showResult.value = true;
|
|
405
436
|
const cutVolumn = viewModel._excavateFillAnalysis.cutVolumn;
|
package/floodanalysis/index.js
CHANGED
|
@@ -2,6 +2,33 @@
|
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
+
/***/ 909:
|
|
6
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
// EXPORTS
|
|
10
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
11
|
+
"Z": function() { return /* binding */ message; }
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
;// CONCATENATED MODULE: external "element-plus/es"
|
|
15
|
+
var es_namespaceObject = require("element-plus/es");
|
|
16
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
17
|
+
var init_js_ = __webpack_require__(5406);
|
|
18
|
+
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
19
|
+
;// CONCATENATED MODULE: ./src/common/_ui/message/index.js
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
es_namespaceObject.ElMessage.install = (Vue, opts) => {
|
|
24
|
+
init_js_default()(Vue, opts);
|
|
25
|
+
Vue.component("KqMessage", es_namespaceObject.ElMessage);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/* harmony default export */ var message = (es_namespaceObject.ElMessage);
|
|
29
|
+
|
|
30
|
+
/***/ }),
|
|
31
|
+
|
|
5
32
|
/***/ 348:
|
|
6
33
|
/***/ (function(module) {
|
|
7
34
|
|
|
@@ -155,10 +182,13 @@ var gis_utils_ = __webpack_require__(826);
|
|
|
155
182
|
var defineProperty = __webpack_require__(8270);
|
|
156
183
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
|
|
157
184
|
var const_image_ = __webpack_require__(9702);
|
|
185
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
|
|
186
|
+
var message = __webpack_require__(909);
|
|
158
187
|
;// CONCATENATED MODULE: ./src/webgl/floodanalysis/FloodAnalysisViewModel.js
|
|
159
188
|
|
|
160
189
|
//地形淹没分析逻辑类
|
|
161
190
|
|
|
191
|
+
|
|
162
192
|
class FloodAnalysisViewModel {
|
|
163
193
|
//地形淹没三维对象
|
|
164
194
|
//模型淹没三维对象
|
|
@@ -261,11 +291,21 @@ class FloodAnalysisViewModel {
|
|
|
261
291
|
// 判断是否添加了地形
|
|
262
292
|
if (this._mode === 0) {
|
|
263
293
|
if (this._floodModelAnalysis.viewer.terrainProvider.availability) {
|
|
264
|
-
this.
|
|
265
|
-
|
|
266
|
-
|
|
294
|
+
if (this._floodModelAnalysis.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
|
|
295
|
+
this.clear();
|
|
296
|
+
|
|
297
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
|
|
298
|
+
} else {
|
|
299
|
+
(0,message/* default */.Z)({
|
|
300
|
+
message: "只支持STK类型的地形分析!",
|
|
301
|
+
type: "warning"
|
|
302
|
+
});
|
|
303
|
+
}
|
|
267
304
|
} else {
|
|
268
|
-
|
|
305
|
+
(0,message/* default */.Z)({
|
|
306
|
+
message: "请加载地形后分析!",
|
|
307
|
+
type: "warning"
|
|
308
|
+
});
|
|
269
309
|
}
|
|
270
310
|
} else if (this._mode === 1) {
|
|
271
311
|
var modelFlag = false;
|
|
@@ -283,7 +323,10 @@ class FloodAnalysisViewModel {
|
|
|
283
323
|
|
|
284
324
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
|
|
285
325
|
} else {
|
|
286
|
-
|
|
326
|
+
(0,message/* default */.Z)({
|
|
327
|
+
message: "请添加模型后分析!",
|
|
328
|
+
type: "warning"
|
|
329
|
+
});
|
|
287
330
|
}
|
|
288
331
|
}
|
|
289
332
|
} //清除全部结果
|