@kq_npm/client3d_webgl_vue 4.3.3-beta → 4.3.4
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 +4 -35
- package/adddata/style/adddata.css +1 -110
- package/aspectanalysis/style/aspectanalysis.css +1 -101
- package/baseterraingallery/index.js +2 -2
- package/baseterraingallery/style/baseterraingallery.css +1 -88
- package/boxclip/index.js +0 -10
- package/boxclip/style/boxclip.css +1 -97
- package/clientPrint/index.js +15 -5
- package/clientPrint/style/clientPrint.css +1 -461
- package/comparemap/index.js +145 -136
- package/comparemap/style/comparemap.css +1 -35
- package/compass/index.js +2 -2
- package/excavatefillanalysis/index.js +2 -2
- package/excavatefillanalysis/style/excavatefillanalysis.css +1 -140
- package/fixedzoomin/index.js +2 -2
- package/fixedzoomout/index.js +2 -2
- package/flight/index.js +3 -13
- package/flight/style/flight.css +1 -150
- package/floodanalysis/style/floodanalysis.css +1 -95
- package/geologicalbodyanalysis/index.js +0 -10
- package/geologicalbodyanalysis/style/geologicalbodyanalysis.css +1 -64
- package/gpuspatialquery/index.js +0 -10
- package/gpuspatialquery/style/gpuspatialquery.css +1 -88
- package/hawkeye/index.js +2 -2
- package/index.js +123 -106
- package/isolineanalysis/style/isolineanalysis.css +1 -113
- package/light/index.js +169 -170
- package/light/style/light.css +1 -104
- package/limitheightanalysis/index.js +125 -126
- package/limitheightanalysis/style/limitheightanalysis.css +1 -88
- package/measure/index.js +19 -13
- package/measure/style/measure.css +1 -84
- package/modelFlat/index.js +0 -10
- package/modelFlat/style/modelFlat.css +1 -66
- package/modelexcavate/index.js +98 -60
- package/modelexcavate/style/modelexcavate.css +1 -66
- package/modelfilter/index.js +0 -10
- package/modelfilter/style/modelfilter.css +1 -66
- package/modelprofileanalysis/index.js +164 -165
- package/modelprofileanalysis/style/modelprofileanalysis.css +1 -94
- package/modelselect/index.js +0 -10
- package/modelselect/style/modelselect.css +1 -28
- package/package.json +1 -1
- package/particleeffect/index.js +0 -10
- package/particleeffect/style/particleeffect.css +1 -94
- package/planeclip/index.js +0 -10
- package/planeclip/style/planeclip.css +1 -94
- package/resetview/index.js +2 -2
- package/roller/index.js +170 -171
- package/roller/style/roller.css +1 -59
- package/scaneffect/index.js +0 -10
- package/scaneffect/style/scaneffect.css +1 -101
- package/sceneset/index.js +1 -10
- package/sceneset/style/sceneset.css +1 -86
- package/sceneview/index.js +384 -373
- package/sceneview/style/sceneview.css +1 -127
- package/screenshot/index.js +158 -159
- package/screenshot/style/screenshot.css +1 -53
- package/shadowanalysis/style/shadowanalysis.css +1 -141
- package/sightlineanalysis/index.js +5 -7
- package/sightlineanalysis/style/divpoint.css +1 -22
- package/sightlineanalysis/style/sightlineanalysis.css +1 -85
- package/skylineanalysis/style/skylineanalysis.css +1 -100
- package/slopeanalysis/style/slopeanalysis.css +1 -101
- package/statusbar/index.js +3 -12
- package/style.css +1 -3817
- package/terrainoperation/index.js +0 -10
- package/terrainoperation/style/terrainoperation.css +1 -66
- package/terrainprofileanalysis/index.js +0 -10
- package/terrainprofileanalysis/style/terrainprofileanalysis.css +1 -83
- package/underground/index.js +3 -3
- package/underground/style/underground.css +1 -19
- package/videofusion/index.js +5 -35
- package/videofusion/style/videofusion.css +1 -104
- package/videoproject/index.js +5 -35
- package/videoproject/style/videoproject.css +1 -104
- package/viewshedanalysis/style/viewshedanalysis.css +1 -88
- package/weathereffect/style/weathereffect.css +1 -95
- package/wireframesketch/index.js +0 -10
- package/wireframesketch/style/wireframesketch.css +1 -12
package/index.js
CHANGED
|
@@ -12,7 +12,7 @@ return /******/ (function() { // webpackBootstrap
|
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
14
|
/***/ 705:
|
|
15
|
-
/***/ (function(module
|
|
15
|
+
/***/ (function(module) {
|
|
16
16
|
|
|
17
17
|
"use strict";
|
|
18
18
|
|
|
@@ -23,8 +23,6 @@ return /******/ (function() { // webpackBootstrap
|
|
|
23
23
|
// css base code, injected by the css-loader
|
|
24
24
|
// eslint-disable-next-line func-names
|
|
25
25
|
|
|
26
|
-
__webpack_require__(118);
|
|
27
|
-
|
|
28
26
|
module.exports = function (cssWithMappingToString) {
|
|
29
27
|
var list = []; // return the list of modules as css string
|
|
30
28
|
|
|
@@ -87,7 +85,9 @@ module.exports = function (cssWithMappingToString) {
|
|
|
87
85
|
/***/ }),
|
|
88
86
|
|
|
89
87
|
/***/ 961:
|
|
90
|
-
/***/ (function(module) {
|
|
88
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
89
|
+
|
|
90
|
+
__webpack_require__(271);
|
|
91
91
|
|
|
92
92
|
!function (e, t) {
|
|
93
93
|
true ? module.exports = t() : 0;
|
|
@@ -744,11 +744,11 @@ module.exports = function (list, options) {
|
|
|
744
744
|
|
|
745
745
|
/***/ }),
|
|
746
746
|
|
|
747
|
-
/***/
|
|
747
|
+
/***/ 271:
|
|
748
748
|
/***/ (function(module) {
|
|
749
749
|
|
|
750
750
|
"use strict";
|
|
751
|
-
module.exports = require("core-js/modules/es.
|
|
751
|
+
module.exports = require("core-js/modules/es.error.cause.js");
|
|
752
752
|
|
|
753
753
|
/***/ }),
|
|
754
754
|
|
|
@@ -1016,13 +1016,13 @@ function _defineProperty(obj, key, value) {
|
|
|
1016
1016
|
|
|
1017
1017
|
return obj;
|
|
1018
1018
|
}
|
|
1019
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
1020
|
-
var es_array_push_js_ = __webpack_require__(118);
|
|
1021
1019
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/mitt"
|
|
1022
1020
|
var mitt_ = __webpack_require__(905);
|
|
1023
1021
|
var mitt_default = /*#__PURE__*/__webpack_require__.n(mitt_);
|
|
1024
1022
|
;// CONCATENATED MODULE: external "core-js/modules/web.dom-exception.stack.js"
|
|
1025
1023
|
var web_dom_exception_stack_js_namespaceObject = require("core-js/modules/web.dom-exception.stack.js");
|
|
1024
|
+
;// CONCATENATED MODULE: external "core-js/modules/es.array.includes.js"
|
|
1025
|
+
var es_array_includes_js_namespaceObject = require("core-js/modules/es.array.includes.js");
|
|
1026
1026
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
|
|
1027
1027
|
var const_image_ = __webpack_require__(277);
|
|
1028
1028
|
;// CONCATENATED MODULE: ./src/webgl/sceneview/DrawManager.js
|
|
@@ -2326,7 +2326,6 @@ var global_event_default = /*#__PURE__*/__webpack_require__.n(global_event_);
|
|
|
2326
2326
|
|
|
2327
2327
|
|
|
2328
2328
|
|
|
2329
|
-
|
|
2330
2329
|
//图层管理类
|
|
2331
2330
|
|
|
2332
2331
|
class LayerManager {
|
|
@@ -4036,7 +4035,6 @@ function delTreeDataByGuid(data, guid) {
|
|
|
4036
4035
|
}
|
|
4037
4036
|
;// CONCATENATED MODULE: ./src/webgl/sceneview/SceneViewViewModel.js
|
|
4038
4037
|
|
|
4039
|
-
|
|
4040
4038
|
//SceneView逻辑类
|
|
4041
4039
|
|
|
4042
4040
|
|
|
@@ -7804,6 +7802,8 @@ class MeasureViewModel {
|
|
|
7804
7802
|
|
|
7805
7803
|
_defineProperty(this, "activeEvent", null);
|
|
7806
7804
|
|
|
7805
|
+
_defineProperty(this, "nauticalMileUnit", "nmi");
|
|
7806
|
+
|
|
7807
7807
|
this._measureHandler = new Cesium.Kq3dMeasureHandler(viewer);
|
|
7808
7808
|
this._viewer = viewer;
|
|
7809
7809
|
this.measureEvent = this._measureHandler.measureEvent;
|
|
@@ -7912,8 +7912,8 @@ class MeasureViewModel {
|
|
|
7912
7912
|
newValue = (value / 1000).toFixed(2) + " km";
|
|
7913
7913
|
break;
|
|
7914
7914
|
|
|
7915
|
-
case
|
|
7916
|
-
newValue = (value / 1852).toFixed(2) + "
|
|
7915
|
+
case this.nauticalMileUnit:
|
|
7916
|
+
newValue = (value / 1852).toFixed(2) + " " + this.nauticalMileUnit;
|
|
7917
7917
|
break;
|
|
7918
7918
|
|
|
7919
7919
|
case "m²":
|
|
@@ -8144,8 +8144,11 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8144
8144
|
|
|
8145
8145
|
let isActive = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
8146
8146
|
let isResult = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
8147
|
-
let distanceValue = null;
|
|
8148
|
-
|
|
8147
|
+
let distanceValue = null; // 默认显示距离的单位
|
|
8148
|
+
|
|
8149
|
+
let distanceUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.distanceUnit || ""); // 海里单位选择
|
|
8150
|
+
|
|
8151
|
+
let nauticalMileUnit = props.settingParams && props.settingParams.nauticalMileUnit || "nmi"; // 面积单位
|
|
8149
8152
|
|
|
8150
8153
|
let areaUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.areaUnit || "");
|
|
8151
8154
|
let result = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("0");
|
|
@@ -8178,7 +8181,7 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8178
8181
|
value: "m"
|
|
8179
8182
|
}, {
|
|
8180
8183
|
label: language.value.nauticalMile,
|
|
8181
|
-
value:
|
|
8184
|
+
value: nauticalMileUnit
|
|
8182
8185
|
}];
|
|
8183
8186
|
};
|
|
8184
8187
|
|
|
@@ -8219,7 +8222,8 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8219
8222
|
});
|
|
8220
8223
|
gis_utils_.utils.getWebMap(props.target, scenceView => {
|
|
8221
8224
|
if (scenceView) {
|
|
8222
|
-
viewModel = new MeasureViewModel(scenceView._viewer);
|
|
8225
|
+
viewModel = new MeasureViewModel(scenceView._viewer);
|
|
8226
|
+
viewModel.nauticalMileUnit = nauticalMileUnit; //注册测量事件,以获取测量结果
|
|
8223
8227
|
|
|
8224
8228
|
viewModel.measureEvent.addEventListener(function (res) {
|
|
8225
8229
|
if (measureType.value === "distance") {
|
|
@@ -8396,8 +8400,8 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8396
8400
|
newValue = (value / 1000).toFixed(2) + " km";
|
|
8397
8401
|
break;
|
|
8398
8402
|
|
|
8399
|
-
case
|
|
8400
|
-
newValue = (value / 1852).toFixed(2) + "
|
|
8403
|
+
case nauticalMileUnit:
|
|
8404
|
+
newValue = (value / 1852).toFixed(2) + " " + nauticalMileUnit;
|
|
8401
8405
|
break;
|
|
8402
8406
|
|
|
8403
8407
|
case "m²":
|
|
@@ -8900,7 +8904,6 @@ class FlightViewModel {
|
|
|
8900
8904
|
}
|
|
8901
8905
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/flight/Flight.vue?vue&type=script&setup=true&lang=js
|
|
8902
8906
|
|
|
8903
|
-
|
|
8904
8907
|
const Flightvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
8905
8908
|
class: "kq-flight3d-box"
|
|
8906
8909
|
};
|
|
@@ -9850,7 +9853,6 @@ var external_xe_utils_namespaceObject = require("xe-utils");
|
|
|
9850
9853
|
var external_xe_utils_default = /*#__PURE__*/__webpack_require__.n(external_xe_utils_namespaceObject);
|
|
9851
9854
|
;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/GPUSpatialQueryViewModel.js
|
|
9852
9855
|
|
|
9853
|
-
|
|
9854
9856
|
//GPU空间查询逻辑类
|
|
9855
9857
|
|
|
9856
9858
|
class GPUSpatialQueryViewModel {
|
|
@@ -10932,7 +10934,6 @@ class ModelSelectViewModel {
|
|
|
10932
10934
|
}
|
|
10933
10935
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelselect/ModelSelect.vue?vue&type=script&setup=true&lang=js
|
|
10934
10936
|
|
|
10935
|
-
|
|
10936
10937
|
const ModelSelectvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
10937
10938
|
class: "title"
|
|
10938
10939
|
};
|
|
@@ -11250,7 +11251,6 @@ ModelSelect.install = (Vue, opts) => {
|
|
|
11250
11251
|
|
|
11251
11252
|
;// CONCATENATED MODULE: ./src/webgl/modelfilter/ModelFilterViewModel.js
|
|
11252
11253
|
|
|
11253
|
-
|
|
11254
11254
|
//模型滤镜逻辑类
|
|
11255
11255
|
|
|
11256
11256
|
class ModelFilterViewModel {
|
|
@@ -12034,7 +12034,6 @@ class WireframeSketchViewModel {
|
|
|
12034
12034
|
|
|
12035
12035
|
|
|
12036
12036
|
|
|
12037
|
-
|
|
12038
12037
|
//语言
|
|
12039
12038
|
|
|
12040
12039
|
const WireframeSketchvue_type_script_setup_true_lang_js_default_ = {
|
|
@@ -12290,7 +12289,6 @@ WireframeSketch.install = (Vue, opts) => {
|
|
|
12290
12289
|
|
|
12291
12290
|
;// CONCATENATED MODULE: ./src/webgl/limitheightanalysis/LimitHeightAnalysisViewModel.js
|
|
12292
12291
|
|
|
12293
|
-
|
|
12294
12292
|
//限高分析逻辑类
|
|
12295
12293
|
class LimitHeightAnalysisViewModel {
|
|
12296
12294
|
//三维viewer对象
|
|
@@ -12868,7 +12866,6 @@ LimitHeightAnalysis.install = (Vue, opts) => {
|
|
|
12868
12866
|
;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/TerrainProfileAnalysisViewModel.js
|
|
12869
12867
|
|
|
12870
12868
|
|
|
12871
|
-
|
|
12872
12869
|
class TerrainProfileAnalysisViewModel {
|
|
12873
12870
|
// 三维viewer对象
|
|
12874
12871
|
//绘制管理对象
|
|
@@ -13294,7 +13291,6 @@ TerrainProfileAnalysis.install = (Vue, opts) => {
|
|
|
13294
13291
|
|
|
13295
13292
|
|
|
13296
13293
|
|
|
13297
|
-
|
|
13298
13294
|
class ScanEffectViewModel {
|
|
13299
13295
|
//参数
|
|
13300
13296
|
// 绘制对象
|
|
@@ -14818,7 +14814,6 @@ ScanEffect.install = (Vue, opts) => {
|
|
|
14818
14814
|
|
|
14819
14815
|
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavateViewModel.js
|
|
14820
14816
|
|
|
14821
|
-
|
|
14822
14817
|
//模型开挖逻辑类
|
|
14823
14818
|
|
|
14824
14819
|
class ModelExcavateViewModel {
|
|
@@ -14862,6 +14857,8 @@ class ModelExcavateViewModel {
|
|
|
14862
14857
|
|
|
14863
14858
|
_defineProperty(this, "intervalId", null);
|
|
14864
14859
|
|
|
14860
|
+
_defineProperty(this, "tileset1", null);
|
|
14861
|
+
|
|
14865
14862
|
_defineProperty(this, "g_flattenedPolygonTexture", null);
|
|
14866
14863
|
|
|
14867
14864
|
this._viewer = scenceView._viewer;
|
|
@@ -14870,12 +14867,43 @@ class ModelExcavateViewModel {
|
|
|
14870
14867
|
this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
14871
14868
|
|
|
14872
14869
|
let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
|
|
14873
|
-
this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
|
|
14870
|
+
this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture(); // this.tileset1 = this._viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
|
|
14871
|
+
// url: "http://support.kqgeo.com:18700/SampleData/3DTiles/Oblique/tileset.json"
|
|
14872
|
+
// }));
|
|
14873
|
+
// this.tileset1.readyPromise.then(function (tileset) {
|
|
14874
|
+
// that._viewer.zoomTo(tileset);
|
|
14875
|
+
// }).otherwise(function (error) {
|
|
14876
|
+
// console.log(error);
|
|
14877
|
+
// });
|
|
14878
|
+
// this.tileset1.enableFlattenning = true;
|
|
14879
|
+
// this.tileset1.flattenDiscard = true;
|
|
14880
|
+
// this.g_flattenedPolygonTexture.attachTileset(this.tileset1);
|
|
14881
|
+
|
|
14874
14882
|
var that = this;
|
|
14883
|
+
var models = this._viewer.scene.primitives._primitives;
|
|
14884
|
+
|
|
14885
|
+
for (let i = 0; i < models.length; i++) {
|
|
14886
|
+
if (models[1] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
14887
|
+
models[i].enableFlattenning = true;
|
|
14888
|
+
models[i].flattenDiscard = true;
|
|
14889
|
+
models[i].readyPromise.then(function (tileset) {
|
|
14890
|
+
that.g_flattenedPolygonTexture.attachTileset(tileset);
|
|
14891
|
+
});
|
|
14892
|
+
}
|
|
14893
|
+
}
|
|
14894
|
+
|
|
14875
14895
|
this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
14876
14896
|
if (shape) {
|
|
14877
14897
|
that._options.positions = shape._controlPoints;
|
|
14878
|
-
|
|
14898
|
+
|
|
14899
|
+
if (shape._controlPoints && shape._controlPoints.length > 3 || shape._controlPoints && shape._controlPoints.length == 3 && shape._controlPoints[2] != shape._controlPoints[0]) {
|
|
14900
|
+
that.createDynamicExcavationEffect();
|
|
14901
|
+
} else {
|
|
14902
|
+
message({
|
|
14903
|
+
message: "请至少绘制3个点!",
|
|
14904
|
+
type: "warning"
|
|
14905
|
+
});
|
|
14906
|
+
}
|
|
14879
14907
|
|
|
14880
14908
|
that._drawManager.clear();
|
|
14881
14909
|
}
|
|
@@ -14884,12 +14912,20 @@ class ModelExcavateViewModel {
|
|
|
14884
14912
|
|
|
14885
14913
|
|
|
14886
14914
|
createDynamicExcavationEffect() {
|
|
14915
|
+
this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
|
|
14887
14916
|
this._Kq3dTerrainExcavation = new window.Cesium.Kq3dTerrainExcavation({
|
|
14888
14917
|
viewer: this._viewer,
|
|
14889
14918
|
height: this._options.height,
|
|
14890
14919
|
positions: this._options.positions,
|
|
14891
14920
|
hasWall: false
|
|
14892
14921
|
});
|
|
14922
|
+
|
|
14923
|
+
if (this._wallPrimitive) {
|
|
14924
|
+
this._viewer.scene.primitives.remove(this._wallPrimitive);
|
|
14925
|
+
|
|
14926
|
+
this._wallPrimitive = undefined;
|
|
14927
|
+
}
|
|
14928
|
+
|
|
14893
14929
|
this._wallPrimitive = new window.Cesium.Kq3dWallPrimitive({
|
|
14894
14930
|
viewer: this._viewer,
|
|
14895
14931
|
height: this._options.height,
|
|
@@ -14906,43 +14942,40 @@ class ModelExcavateViewModel {
|
|
|
14906
14942
|
return;
|
|
14907
14943
|
}
|
|
14908
14944
|
|
|
14909
|
-
that.
|
|
14910
|
-
|
|
14911
|
-
|
|
14912
|
-
|
|
14913
|
-
|
|
14914
|
-
|
|
14915
|
-
|
|
14916
|
-
|
|
14917
|
-
|
|
14918
|
-
|
|
14919
|
-
|
|
14920
|
-
|
|
14921
|
-
|
|
14922
|
-
|
|
14923
|
-
|
|
14924
|
-
|
|
14925
|
-
|
|
14926
|
-
|
|
14927
|
-
|
|
14928
|
-
|
|
14929
|
-
|
|
14930
|
-
|
|
14931
|
-
|
|
14932
|
-
|
|
14933
|
-
|
|
14934
|
-
|
|
14935
|
-
|
|
14936
|
-
|
|
14937
|
-
|
|
14938
|
-
|
|
14939
|
-
|
|
14940
|
-
|
|
14941
|
-
|
|
14942
|
-
|
|
14943
|
-
});
|
|
14944
|
-
that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);
|
|
14945
|
-
}, 100);
|
|
14945
|
+
that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
|
|
14946
|
+
var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
|
|
14947
|
+
positions: that._options.positions,
|
|
14948
|
+
height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
|
|
14949
|
+
});
|
|
14950
|
+
that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon); // that.intervalId = setInterval(function () {
|
|
14951
|
+
// if (that.ii > 100) {
|
|
14952
|
+
// if (that.entity0) {
|
|
14953
|
+
// that._viewer.scene.primitives.remove(that.entity0);
|
|
14954
|
+
// that.entity0 = undefined;
|
|
14955
|
+
// }
|
|
14956
|
+
// if (that.wall) {
|
|
14957
|
+
// that._viewer.scene.primitives.remove(that.wall);
|
|
14958
|
+
// that.wall = undefined;
|
|
14959
|
+
// }
|
|
14960
|
+
// clearInterval(that.intervalId);
|
|
14961
|
+
// that.ii = 0;
|
|
14962
|
+
// return;
|
|
14963
|
+
// }
|
|
14964
|
+
// var carto2 = window.Cesium.Cartesian3.lerp(that._options.positions[0], that._options.positions[3], that.ratio * that.ii, that.scratchCartesian2);
|
|
14965
|
+
// var carto3 = window.Cesium.Cartesian3.lerp(that._options.positions[1], that._options.positions[2], that.ratio * that.ii, that.scratchCartesian3);
|
|
14966
|
+
// if (that.entity0) {
|
|
14967
|
+
// that._viewer.scene.primitives.remove(that.entity0);
|
|
14968
|
+
// that.entity0 = undefined;
|
|
14969
|
+
// }
|
|
14970
|
+
// that.entity0 = that.createPolyline([carto2, carto3]);
|
|
14971
|
+
// that.ii++;
|
|
14972
|
+
// that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
|
|
14973
|
+
// var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
|
|
14974
|
+
// positions: [that._options.positions[0], that._options.positions[1], carto3, carto2],
|
|
14975
|
+
// height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
|
|
14976
|
+
// });
|
|
14977
|
+
// that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);
|
|
14978
|
+
// }, 100);
|
|
14946
14979
|
});
|
|
14947
14980
|
}
|
|
14948
14981
|
|
|
@@ -14994,19 +15027,22 @@ class ModelExcavateViewModel {
|
|
|
14994
15027
|
start() {
|
|
14995
15028
|
// 判断是否添加了模型
|
|
14996
15029
|
var flag = false;
|
|
15030
|
+
var that = this;
|
|
14997
15031
|
var models = this._viewer.scene.primitives._primitives;
|
|
14998
15032
|
|
|
14999
15033
|
for (let i = 0; i < models.length; i++) {
|
|
15000
|
-
if (models[i]._url) {
|
|
15001
|
-
models[i].enableFlattenning = true;
|
|
15002
|
-
models[i].flattenDiscard = true;
|
|
15003
|
-
|
|
15034
|
+
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
15035
|
+
// models[i].enableFlattenning = true;
|
|
15036
|
+
// models[i].flattenDiscard = true;
|
|
15037
|
+
// models[i].readyPromise.then(function (tileset) {
|
|
15038
|
+
// that.g_flattenedPolygonTexture.attachTileset(tileset);
|
|
15039
|
+
// });
|
|
15004
15040
|
flag = true;
|
|
15005
15041
|
}
|
|
15006
15042
|
}
|
|
15007
15043
|
|
|
15008
15044
|
if (flag) {
|
|
15009
|
-
this.
|
|
15045
|
+
this.remove();
|
|
15010
15046
|
|
|
15011
15047
|
this._drawManager.startDraw("polygon", {
|
|
15012
15048
|
clampToGround: true
|
|
@@ -15022,13 +15058,10 @@ class ModelExcavateViewModel {
|
|
|
15022
15058
|
|
|
15023
15059
|
setHeight(val) {
|
|
15024
15060
|
this._options.height = Number(val);
|
|
15025
|
-
}
|
|
15026
|
-
|
|
15027
|
-
|
|
15028
|
-
clear() {
|
|
15029
|
-
this._drawManager.stopDraw(); // 销毁地形开挖
|
|
15030
|
-
|
|
15061
|
+
}
|
|
15031
15062
|
|
|
15063
|
+
remove() {
|
|
15064
|
+
// 销毁地形开挖
|
|
15032
15065
|
if (this.intervalId) {
|
|
15033
15066
|
clearInterval(this.intervalId);
|
|
15034
15067
|
this.ii = 0;
|
|
@@ -15054,11 +15087,20 @@ class ModelExcavateViewModel {
|
|
|
15054
15087
|
|
|
15055
15088
|
this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
|
|
15056
15089
|
this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
|
|
15090
|
+
} // 清除
|
|
15091
|
+
|
|
15092
|
+
|
|
15093
|
+
clear() {
|
|
15094
|
+
this._drawManager.stopDraw();
|
|
15095
|
+
|
|
15096
|
+
this.remove();
|
|
15057
15097
|
} //销毁
|
|
15058
15098
|
|
|
15059
15099
|
|
|
15060
15100
|
destroy() {
|
|
15061
15101
|
this.clear();
|
|
15102
|
+
this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.detachAllTileset();
|
|
15103
|
+
this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.destroy();
|
|
15062
15104
|
}
|
|
15063
15105
|
|
|
15064
15106
|
}
|
|
@@ -15174,6 +15216,7 @@ const ModelExcavatevue_type_script_setup_true_lang_js_default_ = {
|
|
|
15174
15216
|
viewModel = new ModelExcavateViewModel(scenceView, {
|
|
15175
15217
|
height: formItem.excavationDepth
|
|
15176
15218
|
});
|
|
15219
|
+
window.scenceView = scenceView;
|
|
15177
15220
|
}
|
|
15178
15221
|
});
|
|
15179
15222
|
});
|
|
@@ -15355,7 +15398,6 @@ ModelExcavate.install = (Vue, opts) => {
|
|
|
15355
15398
|
|
|
15356
15399
|
;// CONCATENATED MODULE: ./src/webgl/modelFlat/ModelFlatViewModel.js
|
|
15357
15400
|
|
|
15358
|
-
|
|
15359
15401
|
//模型拾取逻辑类
|
|
15360
15402
|
|
|
15361
15403
|
class ModelFlatViewModel {
|
|
@@ -18352,7 +18394,6 @@ ShadowAnalysis.install = (Vue, opts) => {
|
|
|
18352
18394
|
|
|
18353
18395
|
;// CONCATENATED MODULE: ./src/webgl/modelprofileanalysis/ModelProfileAnalysisViewModel.js
|
|
18354
18396
|
|
|
18355
|
-
|
|
18356
18397
|
//分析逻辑类
|
|
18357
18398
|
let floatingPoint;
|
|
18358
18399
|
let drawPoints = [];
|
|
@@ -20080,7 +20121,6 @@ SkylineAnalysis.install = (Vue, opts) => {
|
|
|
20080
20121
|
|
|
20081
20122
|
;// CONCATENATED MODULE: ./src/webgl/terrainoperation/TerrainOperationViewModel.js
|
|
20082
20123
|
|
|
20083
|
-
|
|
20084
20124
|
//地形淹没分析逻辑类
|
|
20085
20125
|
|
|
20086
20126
|
class TerrainOperationViewModel {
|
|
@@ -20861,9 +20901,9 @@ const ExcavateFillAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
20861
20901
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
20862
20902
|
altitudeHeight: props.settingParams && props.settingParams.altitudeHeight || 2920,
|
|
20863
20903
|
// 基准高度
|
|
20864
|
-
minAltitudeHeight: props.settingParams && props.settingParams.
|
|
20904
|
+
minAltitudeHeight: props.settingParams && props.settingParams.minAltitudeHeight || 0,
|
|
20865
20905
|
// 基准高度区间最小值
|
|
20866
|
-
maxAltitudeHeight: props.settingParams && props.settingParams.
|
|
20906
|
+
maxAltitudeHeight: props.settingParams && props.settingParams.maxAltitudeHeight || 5000,
|
|
20867
20907
|
// 基准高度区间最大值
|
|
20868
20908
|
excavateColor: props.settingParams && props.settingParams.excavateColor || "#67C23A",
|
|
20869
20909
|
// 挖方颜色
|
|
@@ -26589,7 +26629,6 @@ IsolineAnalysis.install = (Vue, opts) => {
|
|
|
26589
26629
|
|
|
26590
26630
|
;// CONCATENATED MODULE: ./src/webgl/boxclip/BoxClipViewModel.js
|
|
26591
26631
|
|
|
26592
|
-
|
|
26593
26632
|
//Box裁剪逻辑类
|
|
26594
26633
|
|
|
26595
26634
|
class BoxClipViewModel {
|
|
@@ -27698,7 +27737,6 @@ BoxClip.install = (Vue, opts) => {
|
|
|
27698
27737
|
|
|
27699
27738
|
;// CONCATENATED MODULE: ./src/webgl/planeclip/PlaneClipViewModel.js
|
|
27700
27739
|
|
|
27701
|
-
|
|
27702
27740
|
//平面裁剪逻辑类
|
|
27703
27741
|
|
|
27704
27742
|
class PlaneClipViewModel {
|
|
@@ -28465,12 +28503,6 @@ PlaneClip.install = (Vue, opts) => {
|
|
|
28465
28503
|
};
|
|
28466
28504
|
|
|
28467
28505
|
|
|
28468
|
-
;// CONCATENATED MODULE: external "core-js/modules/web.url-search-params.delete.js"
|
|
28469
|
-
var web_url_search_params_delete_js_namespaceObject = require("core-js/modules/web.url-search-params.delete.js");
|
|
28470
|
-
;// CONCATENATED MODULE: external "core-js/modules/web.url-search-params.has.js"
|
|
28471
|
-
var web_url_search_params_has_js_namespaceObject = require("core-js/modules/web.url-search-params.has.js");
|
|
28472
|
-
;// CONCATENATED MODULE: external "core-js/modules/web.url-search-params.size.js"
|
|
28473
|
-
var web_url_search_params_size_js_namespaceObject = require("core-js/modules/web.url-search-params.size.js");
|
|
28474
28506
|
;// CONCATENATED MODULE: external "papaparse"
|
|
28475
28507
|
var external_papaparse_namespaceObject = require("papaparse");
|
|
28476
28508
|
var external_papaparse_default = /*#__PURE__*/__webpack_require__.n(external_papaparse_namespaceObject);
|
|
@@ -28480,10 +28512,6 @@ var external_papaparse_default = /*#__PURE__*/__webpack_require__.n(external_pap
|
|
|
28480
28512
|
|
|
28481
28513
|
|
|
28482
28514
|
|
|
28483
|
-
|
|
28484
|
-
|
|
28485
|
-
|
|
28486
|
-
|
|
28487
28515
|
//添加数据逻辑类
|
|
28488
28516
|
|
|
28489
28517
|
class AddDataViewModel {
|
|
@@ -30608,7 +30636,6 @@ AddData.install = (Vue, opts) => {
|
|
|
30608
30636
|
;// CONCATENATED MODULE: ./src/webgl/particleeffect/ParticleEffectViewModel.js
|
|
30609
30637
|
|
|
30610
30638
|
|
|
30611
|
-
|
|
30612
30639
|
let _gravityScratch = null;
|
|
30613
30640
|
let _gravity = 1.0; //粒子特效逻辑类
|
|
30614
30641
|
|
|
@@ -32557,7 +32584,6 @@ WeatherEffect.install = (Vue, opts) => {
|
|
|
32557
32584
|
|
|
32558
32585
|
;// CONCATENATED MODULE: ./src/webgl/comparemap/CompareMapViewModel.js
|
|
32559
32586
|
|
|
32560
|
-
|
|
32561
32587
|
//多窗口逻辑类
|
|
32562
32588
|
class CompareMapViewModel {
|
|
32563
32589
|
// 三维视图对象
|
|
@@ -32685,6 +32711,7 @@ class CompareMapViewModel {
|
|
|
32685
32711
|
}
|
|
32686
32712
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/comparemap/CompareMapTree.vue?vue&type=script&setup=true&lang=js
|
|
32687
32713
|
|
|
32714
|
+
|
|
32688
32715
|
const CompareMapTreevue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
32689
32716
|
class: "kq3d-compare-map-tree"
|
|
32690
32717
|
};
|
|
@@ -33038,7 +33065,6 @@ CompareMap.install = (Vue, opts) => {
|
|
|
33038
33065
|
|
|
33039
33066
|
;// CONCATENATED MODULE: ./src/webgl/screenshot/ScreenshotViewModel.js
|
|
33040
33067
|
|
|
33041
|
-
|
|
33042
33068
|
//截图逻辑类
|
|
33043
33069
|
class ScreenshotViewModel {
|
|
33044
33070
|
//三维viewer对象
|
|
@@ -33764,7 +33790,6 @@ Hawkeye.install = (Vue, opts) => {
|
|
|
33764
33790
|
|
|
33765
33791
|
;// CONCATENATED MODULE: ./src/webgl/roller/RollerViewModel.js
|
|
33766
33792
|
|
|
33767
|
-
|
|
33768
33793
|
//卷帘逻辑类
|
|
33769
33794
|
class RollerViewModel {
|
|
33770
33795
|
//三维viewer对象
|
|
@@ -34892,9 +34917,6 @@ class VideoProjectViewModel {
|
|
|
34892
34917
|
}
|
|
34893
34918
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/videoproject/VideoProject.vue?vue&type=script&setup=true&lang=js
|
|
34894
34919
|
|
|
34895
|
-
|
|
34896
|
-
|
|
34897
|
-
|
|
34898
34920
|
const VideoProjectvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
34899
34921
|
class: "kq3d-video-project-box"
|
|
34900
34922
|
};
|
|
@@ -36180,9 +36202,6 @@ class VideoFusiontViewModel {
|
|
|
36180
36202
|
}
|
|
36181
36203
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/videofusion/VideoFusion.vue?vue&type=script&setup=true&lang=js
|
|
36182
36204
|
|
|
36183
|
-
|
|
36184
|
-
|
|
36185
|
-
|
|
36186
36205
|
const VideoFusionvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
36187
36206
|
class: "kq3d-video-fusion-box"
|
|
36188
36207
|
};
|
|
@@ -39347,7 +39366,6 @@ SceneSet.install = (Vue, opts) => {
|
|
|
39347
39366
|
|
|
39348
39367
|
;// CONCATENATED MODULE: ./src/webgl/light/LightViewModel.js
|
|
39349
39368
|
|
|
39350
|
-
|
|
39351
39369
|
//灯光特效逻辑类
|
|
39352
39370
|
class LightViewModel {
|
|
39353
39371
|
//灯光对象
|
|
@@ -40238,7 +40256,6 @@ Light.install = (Vue, opts) => {
|
|
|
40238
40256
|
|
|
40239
40257
|
;// CONCATENATED MODULE: ./src/webgl/geologicalbodyanalysis/GeologicalBodyAnalysisViewModel.js
|
|
40240
40258
|
|
|
40241
|
-
|
|
40242
40259
|
//地质体分析逻辑类
|
|
40243
40260
|
|
|
40244
40261
|
class GeologicalBodyAnalysisViewModel {
|