@kq_npm/client3d_webgl_vue 3.1.7-beta → 3.1.9-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/floodanalysis/index.js +9 -2
- package/index.js +62 -12
- package/measure/index.js +73 -0
- package/package.json +1 -1
- package/scenceview/index.js +64 -12
- package/terrainoperation/index.js +4 -9
package/floodanalysis/index.js
CHANGED
|
@@ -191,8 +191,15 @@ class FloodAnalysisViewModel {
|
|
|
191
191
|
options.viewer = scenceView._viewer;
|
|
192
192
|
options.viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
193
193
|
this._mode = options.mode;
|
|
194
|
-
options.colorImage = this.getImagePath(options.colorImage);
|
|
195
|
-
|
|
194
|
+
options.colorImage = this.getImagePath(options.colorImage); //this._floodModelAnalysis = new Cesium.Kq3dFloodModelAnalysis(options);
|
|
195
|
+
|
|
196
|
+
this._floodModelAnalysis = scenceView._floodModelAnalysis;
|
|
197
|
+
this._floodModelAnalysis.moveMode = options.moveMode;
|
|
198
|
+
this._floodModelAnalysis.speed = options.speed;
|
|
199
|
+
this._floodModelAnalysis.alpha = options.alpha;
|
|
200
|
+
this._floodModelAnalysis.minHeight = options.minHeight;
|
|
201
|
+
this._floodModelAnalysis.maxHeight = options.maxHeight;
|
|
202
|
+
this._floodModelAnalysis.colorImage = options.colorImage;
|
|
196
203
|
var that = this;
|
|
197
204
|
this._measureHandler = new Cesium.Kq3dMeasureHandler(scenceView._viewer, {
|
|
198
205
|
dblClickEnd: true
|
package/index.js
CHANGED
|
@@ -2601,7 +2601,11 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
2601
2601
|
} // this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
2602
2602
|
|
|
2603
2603
|
|
|
2604
|
-
this.initManagerClass();
|
|
2604
|
+
this.initManagerClass(); // 添加模型淹没分析对象, 淹没分析组件使用
|
|
2605
|
+
|
|
2606
|
+
this._floodModelAnalysis = new Cesium.Kq3dFloodModelAnalysis({
|
|
2607
|
+
viewer: this._viewer
|
|
2608
|
+
});
|
|
2605
2609
|
global_event_default().setWebMap(this._viewerId, "cesium", this);
|
|
2606
2610
|
global_event_default().fire("load-viewer", {
|
|
2607
2611
|
eventMapTarget: this._viewerId
|
|
@@ -4166,6 +4170,8 @@ class MeasureViewModel {
|
|
|
4166
4170
|
//测量事件
|
|
4167
4171
|
//活动事件
|
|
4168
4172
|
constructor(viewer) {
|
|
4173
|
+
_defineProperty(this, "_viewer", null);
|
|
4174
|
+
|
|
4169
4175
|
_defineProperty(this, "_measureHandler", null);
|
|
4170
4176
|
|
|
4171
4177
|
_defineProperty(this, "measureEvent", null);
|
|
@@ -4175,6 +4181,7 @@ class MeasureViewModel {
|
|
|
4175
4181
|
//开启深度检测
|
|
4176
4182
|
viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
4177
4183
|
this._measureHandler = new Cesium.Kq3dMeasureHandler(viewer);
|
|
4184
|
+
this._viewer = viewer;
|
|
4178
4185
|
this.measureEvent = this._measureHandler.measureEvent;
|
|
4179
4186
|
this.activeEvent = this._measureHandler.activeEvent;
|
|
4180
4187
|
} //距离测量
|
|
@@ -4266,6 +4273,26 @@ class MeasureViewModel {
|
|
|
4266
4273
|
}
|
|
4267
4274
|
|
|
4268
4275
|
return newValue;
|
|
4276
|
+
} // 判断是否加载地形
|
|
4277
|
+
|
|
4278
|
+
|
|
4279
|
+
checkTerrainAdded() {
|
|
4280
|
+
return this._viewer.terrainProvider.availability;
|
|
4281
|
+
} // 判断是否加载模型
|
|
4282
|
+
|
|
4283
|
+
|
|
4284
|
+
checkModelAdded() {
|
|
4285
|
+
let isAdd = false;
|
|
4286
|
+
let models = this._viewer.scene.primitives._primitives;
|
|
4287
|
+
|
|
4288
|
+
for (let i = 0; i < models.length; i++) {
|
|
4289
|
+
if (models[i] instanceof Cesium.Cesium3DTileset) {
|
|
4290
|
+
isAdd = true;
|
|
4291
|
+
break;
|
|
4292
|
+
}
|
|
4293
|
+
}
|
|
4294
|
+
|
|
4295
|
+
return isAdd;
|
|
4269
4296
|
} //清除全部测量结果
|
|
4270
4297
|
|
|
4271
4298
|
|
|
@@ -4396,6 +4423,7 @@ const _hoisted_33 = {
|
|
|
4396
4423
|
|
|
4397
4424
|
|
|
4398
4425
|
|
|
4426
|
+
|
|
4399
4427
|
const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
4400
4428
|
name: "Kq3dMeasure"
|
|
4401
4429
|
};
|
|
@@ -4629,6 +4657,26 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
4629
4657
|
}); //开始测量
|
|
4630
4658
|
|
|
4631
4659
|
function startMeasure(type) {
|
|
4660
|
+
if (mode.value === "ground") {
|
|
4661
|
+
if (!viewModel.checkTerrainAdded()) {
|
|
4662
|
+
message({
|
|
4663
|
+
message: "请先加载地形!",
|
|
4664
|
+
type: "warning"
|
|
4665
|
+
});
|
|
4666
|
+
return;
|
|
4667
|
+
}
|
|
4668
|
+
}
|
|
4669
|
+
|
|
4670
|
+
if (mode.value === "model") {
|
|
4671
|
+
if (!viewModel.checkModelAdded()) {
|
|
4672
|
+
message({
|
|
4673
|
+
message: "请先加载模型!",
|
|
4674
|
+
type: "warning"
|
|
4675
|
+
});
|
|
4676
|
+
return;
|
|
4677
|
+
}
|
|
4678
|
+
}
|
|
4679
|
+
|
|
4632
4680
|
viewModel.clear();
|
|
4633
4681
|
isResult.value = false;
|
|
4634
4682
|
measureType.value = type;
|
|
@@ -11502,9 +11550,6 @@ const TerrainOperationvue_type_script_setup_true_lang_js_hoisted_2 = {
|
|
|
11502
11550
|
class: "kq3d-terrain-operation-analysis-span"
|
|
11503
11551
|
};
|
|
11504
11552
|
const TerrainOperationvue_type_script_setup_true_lang_js_hoisted_3 = {
|
|
11505
|
-
key: 0
|
|
11506
|
-
};
|
|
11507
|
-
const TerrainOperationvue_type_script_setup_true_lang_js_hoisted_4 = {
|
|
11508
11553
|
class: "kq3d-terrain-operation-analysis-footer"
|
|
11509
11554
|
};
|
|
11510
11555
|
|
|
@@ -11573,8 +11618,8 @@ const TerrainOperationvue_type_script_setup_true_lang_js_default_ = {
|
|
|
11573
11618
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({}); // 获取组件传参
|
|
11574
11619
|
|
|
11575
11620
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.reactive)({
|
|
11576
|
-
terrainStyle: props.settingParams && props.settingParams.terrainStyle ||
|
|
11577
|
-
// 地形操作类型。
|
|
11621
|
+
terrainStyle: props.settingParams && props.settingParams.terrainStyle || 1,
|
|
11622
|
+
// 地形操作类型。1:地形开挖;2:地形修改
|
|
11578
11623
|
excavationDepth: props.settingParams && props.settingParams.excavationDepth || 500,
|
|
11579
11624
|
// 地形开挖深度
|
|
11580
11625
|
minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 0,
|
|
@@ -11777,13 +11822,11 @@ const TerrainOperationvue_type_script_setup_true_lang_js_default_ = {
|
|
|
11777
11822
|
}, {
|
|
11778
11823
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).skylineTips), 1
|
|
11779
11824
|
/* TEXT */
|
|
11780
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.
|
|
11781
|
-
/* TEXT */
|
|
11782
|
-
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true)]),
|
|
11825
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)(" <p v-if=\"formItem.terrainStyle === 2\">{{ \"(\" + language.reverseDrawPolygon + \")\" }}</p> ")]),
|
|
11783
11826
|
_: 1
|
|
11784
11827
|
/* STABLE */
|
|
11785
11828
|
|
|
11786
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div",
|
|
11829
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", TerrainOperationvue_type_script_setup_true_lang_js_hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_button, {
|
|
11787
11830
|
onClick: _cache[7] || (_cache[7] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withModifiers)($event => startOperation(), ["stop"])),
|
|
11788
11831
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).startOperation,
|
|
11789
11832
|
type: "primary"
|
|
@@ -12475,8 +12518,15 @@ class FloodAnalysisViewModel {
|
|
|
12475
12518
|
options.viewer = scenceView._viewer;
|
|
12476
12519
|
options.viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
12477
12520
|
this._mode = options.mode;
|
|
12478
|
-
options.colorImage = this.getImagePath(options.colorImage);
|
|
12479
|
-
|
|
12521
|
+
options.colorImage = this.getImagePath(options.colorImage); //this._floodModelAnalysis = new Cesium.Kq3dFloodModelAnalysis(options);
|
|
12522
|
+
|
|
12523
|
+
this._floodModelAnalysis = scenceView._floodModelAnalysis;
|
|
12524
|
+
this._floodModelAnalysis.moveMode = options.moveMode;
|
|
12525
|
+
this._floodModelAnalysis.speed = options.speed;
|
|
12526
|
+
this._floodModelAnalysis.alpha = options.alpha;
|
|
12527
|
+
this._floodModelAnalysis.minHeight = options.minHeight;
|
|
12528
|
+
this._floodModelAnalysis.maxHeight = options.maxHeight;
|
|
12529
|
+
this._floodModelAnalysis.colorImage = options.colorImage;
|
|
12480
12530
|
var that = this;
|
|
12481
12531
|
this._measureHandler = new Cesium.Kq3dMeasureHandler(scenceView._viewer, {
|
|
12482
12532
|
dblClickEnd: true
|
package/measure/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
|
/***/ 193:
|
|
6
33
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
34
|
|
|
@@ -16,6 +43,8 @@ class MeasureViewModel {
|
|
|
16
43
|
//测量事件
|
|
17
44
|
//活动事件
|
|
18
45
|
constructor(viewer) {
|
|
46
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
|
|
47
|
+
|
|
19
48
|
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_measureHandler", null);
|
|
20
49
|
|
|
21
50
|
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "measureEvent", null);
|
|
@@ -25,6 +54,7 @@ class MeasureViewModel {
|
|
|
25
54
|
//开启深度检测
|
|
26
55
|
viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
27
56
|
this._measureHandler = new Cesium.Kq3dMeasureHandler(viewer);
|
|
57
|
+
this._viewer = viewer;
|
|
28
58
|
this.measureEvent = this._measureHandler.measureEvent;
|
|
29
59
|
this.activeEvent = this._measureHandler.activeEvent;
|
|
30
60
|
} //距离测量
|
|
@@ -116,6 +146,26 @@ class MeasureViewModel {
|
|
|
116
146
|
}
|
|
117
147
|
|
|
118
148
|
return newValue;
|
|
149
|
+
} // 判断是否加载地形
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
checkTerrainAdded() {
|
|
153
|
+
return this._viewer.terrainProvider.availability;
|
|
154
|
+
} // 判断是否加载模型
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
checkModelAdded() {
|
|
158
|
+
let isAdd = false;
|
|
159
|
+
let models = this._viewer.scene.primitives._primitives;
|
|
160
|
+
|
|
161
|
+
for (let i = 0; i < models.length; i++) {
|
|
162
|
+
if (models[i] instanceof Cesium.Cesium3DTileset) {
|
|
163
|
+
isAdd = true;
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return isAdd;
|
|
119
169
|
} //清除全部测量结果
|
|
120
170
|
|
|
121
171
|
|
|
@@ -290,6 +340,8 @@ var gis_utils_ = __webpack_require__(826);
|
|
|
290
340
|
var MeasureViewModel = __webpack_require__(193);
|
|
291
341
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
292
342
|
var util_ = __webpack_require__(9519);
|
|
343
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
|
|
344
|
+
var message = __webpack_require__(909);
|
|
293
345
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/measure/Measure.vue?vue&type=script&setup=true&lang=js
|
|
294
346
|
|
|
295
347
|
const _hoisted_1 = {
|
|
@@ -406,6 +458,7 @@ const _hoisted_33 = {
|
|
|
406
458
|
|
|
407
459
|
|
|
408
460
|
|
|
461
|
+
|
|
409
462
|
const __default__ = {
|
|
410
463
|
name: "Kq3dMeasure"
|
|
411
464
|
};
|
|
@@ -639,6 +692,26 @@ const __default__ = {
|
|
|
639
692
|
}); //开始测量
|
|
640
693
|
|
|
641
694
|
function startMeasure(type) {
|
|
695
|
+
if (mode.value === "ground") {
|
|
696
|
+
if (!viewModel.checkTerrainAdded()) {
|
|
697
|
+
(0,message/* default */.Z)({
|
|
698
|
+
message: "请先加载地形!",
|
|
699
|
+
type: "warning"
|
|
700
|
+
});
|
|
701
|
+
return;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
if (mode.value === "model") {
|
|
706
|
+
if (!viewModel.checkModelAdded()) {
|
|
707
|
+
(0,message/* default */.Z)({
|
|
708
|
+
message: "请先加载模型!",
|
|
709
|
+
type: "warning"
|
|
710
|
+
});
|
|
711
|
+
return;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
642
715
|
viewModel.clear();
|
|
643
716
|
isResult.value = false;
|
|
644
717
|
measureType.value = type;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"3.1.
|
|
1
|
+
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"3.1.9-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"^1.1.1","echarts":"^5.3.3","js-cookie":"^3.0.1","omit.js":"^2.0.2","save":"^2.5.0","tinycolor2":"^1.4.2","vue-i18n":"9.2.0-beta.36","xlsx":"^0.18.5","css-vars-ponyfill":"^2.4.8","html2canvas":"^1.4.1","xe-utils":"^3.5.4"}}
|
package/scenceview/index.js
CHANGED
|
@@ -6653,8 +6653,15 @@ class FloodAnalysisViewModel {
|
|
|
6653
6653
|
options.viewer = scenceView._viewer;
|
|
6654
6654
|
options.viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
6655
6655
|
this._mode = options.mode;
|
|
6656
|
-
options.colorImage = this.getImagePath(options.colorImage);
|
|
6657
|
-
|
|
6656
|
+
options.colorImage = this.getImagePath(options.colorImage); //this._floodModelAnalysis = new Cesium.Kq3dFloodModelAnalysis(options);
|
|
6657
|
+
|
|
6658
|
+
this._floodModelAnalysis = scenceView._floodModelAnalysis;
|
|
6659
|
+
this._floodModelAnalysis.moveMode = options.moveMode;
|
|
6660
|
+
this._floodModelAnalysis.speed = options.speed;
|
|
6661
|
+
this._floodModelAnalysis.alpha = options.alpha;
|
|
6662
|
+
this._floodModelAnalysis.minHeight = options.minHeight;
|
|
6663
|
+
this._floodModelAnalysis.maxHeight = options.maxHeight;
|
|
6664
|
+
this._floodModelAnalysis.colorImage = options.colorImage;
|
|
6658
6665
|
var that = this;
|
|
6659
6666
|
this._measureHandler = new Cesium.Kq3dMeasureHandler(scenceView._viewer, {
|
|
6660
6667
|
dblClickEnd: true
|
|
@@ -11367,6 +11374,8 @@ class MeasureViewModel {
|
|
|
11367
11374
|
//测量事件
|
|
11368
11375
|
//活动事件
|
|
11369
11376
|
constructor(viewer) {
|
|
11377
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
|
|
11378
|
+
|
|
11370
11379
|
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_measureHandler", null);
|
|
11371
11380
|
|
|
11372
11381
|
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "measureEvent", null);
|
|
@@ -11376,6 +11385,7 @@ class MeasureViewModel {
|
|
|
11376
11385
|
//开启深度检测
|
|
11377
11386
|
viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
11378
11387
|
this._measureHandler = new Cesium.Kq3dMeasureHandler(viewer);
|
|
11388
|
+
this._viewer = viewer;
|
|
11379
11389
|
this.measureEvent = this._measureHandler.measureEvent;
|
|
11380
11390
|
this.activeEvent = this._measureHandler.activeEvent;
|
|
11381
11391
|
} //距离测量
|
|
@@ -11467,6 +11477,26 @@ class MeasureViewModel {
|
|
|
11467
11477
|
}
|
|
11468
11478
|
|
|
11469
11479
|
return newValue;
|
|
11480
|
+
} // 判断是否加载地形
|
|
11481
|
+
|
|
11482
|
+
|
|
11483
|
+
checkTerrainAdded() {
|
|
11484
|
+
return this._viewer.terrainProvider.availability;
|
|
11485
|
+
} // 判断是否加载模型
|
|
11486
|
+
|
|
11487
|
+
|
|
11488
|
+
checkModelAdded() {
|
|
11489
|
+
let isAdd = false;
|
|
11490
|
+
let models = this._viewer.scene.primitives._primitives;
|
|
11491
|
+
|
|
11492
|
+
for (let i = 0; i < models.length; i++) {
|
|
11493
|
+
if (models[i] instanceof Cesium.Cesium3DTileset) {
|
|
11494
|
+
isAdd = true;
|
|
11495
|
+
break;
|
|
11496
|
+
}
|
|
11497
|
+
}
|
|
11498
|
+
|
|
11499
|
+
return isAdd;
|
|
11470
11500
|
} //清除全部测量结果
|
|
11471
11501
|
|
|
11472
11502
|
|
|
@@ -11507,6 +11537,8 @@ var gis_utils_ = __webpack_require__(826);
|
|
|
11507
11537
|
var MeasureViewModel = __webpack_require__(193);
|
|
11508
11538
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
11509
11539
|
var util_ = __webpack_require__(9519);
|
|
11540
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
|
|
11541
|
+
var message = __webpack_require__(909);
|
|
11510
11542
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/measure/Measure.vue?vue&type=script&setup=true&lang=js
|
|
11511
11543
|
|
|
11512
11544
|
const _hoisted_1 = {
|
|
@@ -11623,6 +11655,7 @@ const _hoisted_33 = {
|
|
|
11623
11655
|
|
|
11624
11656
|
|
|
11625
11657
|
|
|
11658
|
+
|
|
11626
11659
|
const __default__ = {
|
|
11627
11660
|
name: "Kq3dMeasure"
|
|
11628
11661
|
};
|
|
@@ -11856,6 +11889,26 @@ const __default__ = {
|
|
|
11856
11889
|
}); //开始测量
|
|
11857
11890
|
|
|
11858
11891
|
function startMeasure(type) {
|
|
11892
|
+
if (mode.value === "ground") {
|
|
11893
|
+
if (!viewModel.checkTerrainAdded()) {
|
|
11894
|
+
(0,message/* default */.Z)({
|
|
11895
|
+
message: "请先加载地形!",
|
|
11896
|
+
type: "warning"
|
|
11897
|
+
});
|
|
11898
|
+
return;
|
|
11899
|
+
}
|
|
11900
|
+
}
|
|
11901
|
+
|
|
11902
|
+
if (mode.value === "model") {
|
|
11903
|
+
if (!viewModel.checkModelAdded()) {
|
|
11904
|
+
(0,message/* default */.Z)({
|
|
11905
|
+
message: "请先加载模型!",
|
|
11906
|
+
type: "warning"
|
|
11907
|
+
});
|
|
11908
|
+
return;
|
|
11909
|
+
}
|
|
11910
|
+
}
|
|
11911
|
+
|
|
11859
11912
|
viewModel.clear();
|
|
11860
11913
|
isResult.value = false;
|
|
11861
11914
|
measureType.value = type;
|
|
@@ -20831,9 +20884,6 @@ const _hoisted_2 = {
|
|
|
20831
20884
|
class: "kq3d-terrain-operation-analysis-span"
|
|
20832
20885
|
};
|
|
20833
20886
|
const _hoisted_3 = {
|
|
20834
|
-
key: 0
|
|
20835
|
-
};
|
|
20836
|
-
const _hoisted_4 = {
|
|
20837
20887
|
class: "kq3d-terrain-operation-analysis-footer"
|
|
20838
20888
|
};
|
|
20839
20889
|
|
|
@@ -20902,8 +20952,8 @@ const __default__ = {
|
|
|
20902
20952
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({}); // 获取组件传参
|
|
20903
20953
|
|
|
20904
20954
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
20905
|
-
terrainStyle: props.settingParams && props.settingParams.terrainStyle ||
|
|
20906
|
-
// 地形操作类型。
|
|
20955
|
+
terrainStyle: props.settingParams && props.settingParams.terrainStyle || 1,
|
|
20956
|
+
// 地形操作类型。1:地形开挖;2:地形修改
|
|
20907
20957
|
excavationDepth: props.settingParams && props.settingParams.excavationDepth || 500,
|
|
20908
20958
|
// 地形开挖深度
|
|
20909
20959
|
minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 0,
|
|
@@ -21106,13 +21156,11 @@ const __default__ = {
|
|
|
21106
21156
|
}, {
|
|
21107
21157
|
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).skylineTips), 1
|
|
21108
21158
|
/* TEXT */
|
|
21109
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.
|
|
21110
|
-
/* TEXT */
|
|
21111
|
-
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]),
|
|
21159
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <p v-if=\"formItem.terrainStyle === 2\">{{ \"(\" + language.reverseDrawPolygon + \")\" }}</p> ")]),
|
|
21112
21160
|
_: 1
|
|
21113
21161
|
/* STABLE */
|
|
21114
21162
|
|
|
21115
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div",
|
|
21163
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
21116
21164
|
onClick: _cache[7] || (_cache[7] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
|
|
21117
21165
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
|
|
21118
21166
|
type: "primary"
|
|
@@ -25615,7 +25663,11 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
25615
25663
|
} // this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
25616
25664
|
|
|
25617
25665
|
|
|
25618
|
-
this.initManagerClass();
|
|
25666
|
+
this.initManagerClass(); // 添加模型淹没分析对象, 淹没分析组件使用
|
|
25667
|
+
|
|
25668
|
+
this._floodModelAnalysis = new Cesium.Kq3dFloodModelAnalysis({
|
|
25669
|
+
viewer: this._viewer
|
|
25670
|
+
});
|
|
25619
25671
|
global_event_default().setWebMap(this._viewerId, "cesium", this);
|
|
25620
25672
|
global_event_default().fire("load-viewer", {
|
|
25621
25673
|
eventMapTarget: this._viewerId
|
|
@@ -374,9 +374,6 @@ const _hoisted_2 = {
|
|
|
374
374
|
class: "kq3d-terrain-operation-analysis-span"
|
|
375
375
|
};
|
|
376
376
|
const _hoisted_3 = {
|
|
377
|
-
key: 0
|
|
378
|
-
};
|
|
379
|
-
const _hoisted_4 = {
|
|
380
377
|
class: "kq3d-terrain-operation-analysis-footer"
|
|
381
378
|
};
|
|
382
379
|
|
|
@@ -445,8 +442,8 @@ const __default__ = {
|
|
|
445
442
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({}); // 获取组件传参
|
|
446
443
|
|
|
447
444
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
448
|
-
terrainStyle: props.settingParams && props.settingParams.terrainStyle ||
|
|
449
|
-
// 地形操作类型。
|
|
445
|
+
terrainStyle: props.settingParams && props.settingParams.terrainStyle || 1,
|
|
446
|
+
// 地形操作类型。1:地形开挖;2:地形修改
|
|
450
447
|
excavationDepth: props.settingParams && props.settingParams.excavationDepth || 500,
|
|
451
448
|
// 地形开挖深度
|
|
452
449
|
minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 0,
|
|
@@ -649,13 +646,11 @@ const __default__ = {
|
|
|
649
646
|
}, {
|
|
650
647
|
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).skylineTips), 1
|
|
651
648
|
/* TEXT */
|
|
652
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.
|
|
653
|
-
/* TEXT */
|
|
654
|
-
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]),
|
|
649
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <p v-if=\"formItem.terrainStyle === 2\">{{ \"(\" + language.reverseDrawPolygon + \")\" }}</p> ")]),
|
|
655
650
|
_: 1
|
|
656
651
|
/* STABLE */
|
|
657
652
|
|
|
658
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div",
|
|
653
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
659
654
|
onClick: _cache[7] || (_cache[7] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
|
|
660
655
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
|
|
661
656
|
type: "primary"
|