@kq_npm/client3d_webgl_vue 4.5.4-beta → 4.5.5-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/index.js CHANGED
@@ -11329,9 +11329,9 @@ function delTreeDataByGuid(data, guid) {
11329
11329
 
11330
11330
 
11331
11331
 
11332
- /*
11333
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
11334
- * All rights reserved.
11332
+ /*
11333
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
11334
+ * All rights reserved.
11335
11335
  */
11336
11336
  //SceneView逻辑类
11337
11337
 
@@ -11395,8 +11395,23 @@ class SceneViewViewModel extends (mitt_default()) {
11395
11395
  this._viewer.bottomContainer.children[0].style.display = "none";
11396
11396
  }
11397
11397
  // this._viewer.scene.globe.depthTestAgainstTerrain = true;
11398
- this.initManagerClass();
11399
11398
 
11399
+ // 模型开挖分析对象
11400
+ let that = this;
11401
+ let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
11402
+ this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
11403
+ // 模型开挖设置
11404
+ this._viewer.scene.primitives.primitiveAdded.addEventListener(function (result) {
11405
+ that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.detachAllTileset();
11406
+ var models = that._viewer.scene.primitives._primitives;
11407
+ for (let i = 0; i < models.length; i++) {
11408
+ if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
11409
+ models[i].enableFlattenning = true;
11410
+ that.g_flattenedPolygonTexture.attachTileset(models[i]);
11411
+ }
11412
+ }
11413
+ });
11414
+ this.initManagerClass();
11400
11415
  // 添加模型淹没分析对象, 淹没分析组件使用
11401
11416
  this._floodModelAnalysis = new Cesium.Kq3dFloodModelAnalysis({
11402
11417
  viewer: this._viewer
@@ -12648,6 +12663,11 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
12648
12663
  showLogo: {
12649
12664
  type: Boolean,
12650
12665
  default: false
12666
+ },
12667
+ // 是否使用自定义地图数据
12668
+ useCustomData: {
12669
+ type: Boolean,
12670
+ default: false
12651
12671
  }
12652
12672
  },
12653
12673
  setup(__props, {
@@ -12662,7 +12682,7 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
12662
12682
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
12663
12683
  language.value = messages.value[newVal]["webgl"];
12664
12684
  companyName.value = props.companyName || language.value.comapanyname;
12665
- systemTime.value = newVal == 'zh' ? getSystemIime() : getSystemEnTime();
12685
+ systemTime.value = newVal == "zh" ? getSystemIime() : getSystemEnTime();
12666
12686
  printObj.value.popTitle = language.value.print;
12667
12687
  });
12668
12688
  const props = __props;
@@ -12801,14 +12821,34 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
12801
12821
  printState.value = false;
12802
12822
  }
12803
12823
  });
12824
+ let showMap = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
12825
+ let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
12826
+ options: props && props.options,
12827
+ service: props && props.service,
12828
+ scenceInfo: props && props.scenceInfo,
12829
+ defaultShowLayerNames: props && props.defaultShowLayerNames,
12830
+ showToolButtons: props && props.showToolButtons,
12831
+ toolButtonsPosition: props && props.toolButtonsPosition,
12832
+ showLogo: props && props.showLogo
12833
+ });
12804
12834
  let currentClick = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({});
12805
12835
  let scaleFloor = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(1);
12806
12836
  let scaleStep = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0.2);
12807
12837
  // 查询进度条
12808
12838
  let loadState = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
12809
12839
  // 三维球id
12810
- global_event_default().setDefaultMapInfo("scencePrint", "cesium", null);
12840
+ global_event_default().setWebMap("scencePrint", "cesium", null);
12811
12841
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
12842
+ if (!props.useCustomData) {
12843
+ global_event_default().getWebMapByMapTarget(props.mapTarget, scenceView => {
12844
+ if (scenceView && scenceView._viewer) {
12845
+ formItem = scenceView._props;
12846
+ showMap = true;
12847
+ }
12848
+ });
12849
+ } else {
12850
+ showMap = true;
12851
+ }
12812
12852
  setTitleDataform.value.data.title = props.printTitle || language.value.oneimage;
12813
12853
  papAnchor.value = "portrait";
12814
12854
  borderStyleValue.value = "printborder1";
@@ -13992,15 +14032,16 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
13992
14032
  ref: printContentDiv
13993
14033
  }, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_21, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("img", {
13994
14034
  src: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(scenceImageUrl)
13995
- }, null, 8 /* PROPS */, _hoisted_22)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_scene_view, {
14035
+ }, null, 8 /* PROPS */, _hoisted_22)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showMap) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_scene_view, {
14036
+ key: 0,
13996
14037
  target: 'scencePrint',
13997
- options: __props.options,
13998
- service: __props.service,
13999
- scenceInfo: __props.scenceInfo,
14000
- showToolButtons: __props.showToolButtons,
14001
- defaultShowLayerNames: __props.defaultShowLayerNames,
14002
- toolButtonsPosition: __props.toolButtonsPosition,
14003
- showLogo: __props.showLogo,
14038
+ options: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).options,
14039
+ service: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).service,
14040
+ scenceInfo: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).scenceInfo,
14041
+ showToolButtons: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).showToolButtons,
14042
+ defaultShowLayerNames: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).defaultShowLayerNames,
14043
+ toolButtonsPosition: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).toolButtonsPosition,
14044
+ showLogo: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).showLogo,
14004
14045
  style: {
14005
14046
  "position": "relative"
14006
14047
  }
@@ -14053,7 +14094,7 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
14053
14094
  }, 8 /* PROPS */, ["title"])], 8 /* PROPS */, _hoisted_24)], 40 /* PROPS, NEED_HYDRATION */, _hoisted_23)), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, item.data.isShow]]);
14054
14095
  }), 128 /* KEYED_FRAGMENT */))]),
14055
14096
  _: 1 /* STABLE */
14056
- }, 8 /* PROPS */, ["options", "service", "scenceInfo", "showToolButtons", "defaultShowLayerNames", "toolButtonsPosition", "showLogo"])], 512 /* NEED_PATCH */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_25, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_26, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).printcompany) + ":" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(companyName)), 1 /* TEXT */)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_27, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).printdate) + ":" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(systemTime)), 1 /* TEXT */)])])], 512 /* NEED_PATCH */)]),
14097
+ }, 8 /* PROPS */, ["options", "service", "scenceInfo", "showToolButtons", "defaultShowLayerNames", "toolButtonsPosition", "showLogo"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)], 512 /* NEED_PATCH */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_25, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_26, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).printcompany) + ":" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(companyName)), 1 /* TEXT */)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_27, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).printdate) + ":" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(systemTime)), 1 /* TEXT */)])])], 512 /* NEED_PATCH */)]),
14057
14098
  _: 1 /* STABLE */
14058
14099
  })], 512 /* NEED_PATCH */)], 512 /* NEED_PATCH */);
14059
14100
  };
@@ -15059,7 +15100,7 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
15059
15100
  if (mode.value === "ground") {
15060
15101
  if (!viewModel.checkTerrainAdded()) {
15061
15102
  message({
15062
- message: "请先加载地形!",
15103
+ message: language.value["measuretAddTerrainTips"],
15063
15104
  type: "warning"
15064
15105
  });
15065
15106
  return;
@@ -15068,7 +15109,7 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
15068
15109
  if (mode.value === "model") {
15069
15110
  if (!viewModel.checkModelAdded()) {
15070
15111
  message({
15071
- message: "请先加载模型!",
15112
+ message: language.value["measuretAddModelTips"],
15072
15113
  type: "warning"
15073
15114
  });
15074
15115
  return;
@@ -15794,7 +15835,7 @@ const Flightvue_type_script_setup_true_lang_js_default_ = {
15794
15835
  function save() {
15795
15836
  if (pathName.value === "") {
15796
15837
  message({
15797
- message: "请输入路径名称!",
15838
+ message: language.value["enterPathName"] + "!",
15798
15839
  type: "warning"
15799
15840
  });
15800
15841
  } else {
@@ -16220,15 +16261,13 @@ var external_xe_utils_default = /*#__PURE__*/__webpack_require__.n(external_xe_u
16220
16261
  ;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/GPUSpatialQueryViewModel.js
16221
16262
 
16222
16263
 
16223
- /*
16224
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
16225
- * All rights reserved.
16264
+ /*
16265
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
16266
+ * All rights reserved.
16226
16267
  */
16227
16268
  //GPU空间查询逻辑类
16228
16269
 
16229
16270
  class GPUSpatialQueryViewModel {
16230
- //绘制完成监听事件
16231
-
16232
16271
  constructor(scenceView, options) {
16233
16272
  _defineProperty(this, "_gpuSpatialQuery", null);
16234
16273
  //GPU查询三维对象
@@ -16243,6 +16282,9 @@ class GPUSpatialQueryViewModel {
16243
16282
  _defineProperty(this, "finishedQuery", null);
16244
16283
  //绘制后的查询事件
16245
16284
  _defineProperty(this, "_removeEventListener", null);
16285
+ //绘制完成监听事件
16286
+ _defineProperty(this, "_language", {});
16287
+ this._language = scenceView._language;
16246
16288
  options.viewer = scenceView._viewer;
16247
16289
  options.viewer.scene.globe.depthTestAgainstTerrain = true;
16248
16290
  options.viewer.scene.logarithmicDepthBuffer = true;
@@ -16321,7 +16363,7 @@ class GPUSpatialQueryViewModel {
16321
16363
  });
16322
16364
  } else {
16323
16365
  message({
16324
- message: "请添加模型后分析!",
16366
+ message: this._language["addModelAnalysisTips"],
16325
16367
  type: "warning"
16326
16368
  });
16327
16369
  }
@@ -16996,15 +17038,13 @@ GPUSpatialQuery.install = (Vue, opts) => {
16996
17038
 
16997
17039
 
16998
17040
 
16999
- /*
17000
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
17001
- * All rights reserved.
17041
+ /*
17042
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
17043
+ * All rights reserved.
17002
17044
  */
17003
17045
  //模型拾取逻辑类
17004
17046
 
17005
17047
  class ModelSelectViewModel {
17006
- // 模型属性匹配字段
17007
-
17008
17048
  constructor(scenceView, pickCallFunc) {
17009
17049
  _defineProperty(this, "_viewer", null);
17010
17050
  //三维viewer对象
@@ -17019,6 +17059,9 @@ class ModelSelectViewModel {
17019
17059
  _defineProperty(this, "_modeFiledArray", null);
17020
17060
  // 模型属性唯一值字段集合
17021
17061
  _defineProperty(this, "_modeFiled", "id");
17062
+ // 模型属性匹配字段
17063
+ _defineProperty(this, "_language", {});
17064
+ this._language = scenceView._language;
17022
17065
  this._viewer = scenceView._viewer;
17023
17066
  this._drawManager = scenceView._drawManager;
17024
17067
  this._handler = new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);
@@ -17083,7 +17126,7 @@ class ModelSelectViewModel {
17083
17126
  this._isPick = true;
17084
17127
  } else {
17085
17128
  message({
17086
- message: "请添加模型后拾取!",
17129
+ message: this._language["addModelAnalysisTips"],
17087
17130
  type: "warning"
17088
17131
  });
17089
17132
  }
@@ -18702,9 +18745,9 @@ LimitHeightAnalysis.install = (Vue, opts) => {
18702
18745
  ;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/TerrainProfileAnalysisViewModel.js
18703
18746
 
18704
18747
 
18705
- /*
18706
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
18707
- * All rights reserved.
18748
+ /*
18749
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
18750
+ * All rights reserved.
18708
18751
  */
18709
18752
 
18710
18753
  class TerrainProfileAnalysisViewModel {
@@ -18723,7 +18766,9 @@ class TerrainProfileAnalysisViewModel {
18723
18766
  _defineProperty(this, "distance", null);
18724
18767
  _defineProperty(this, "divPointArr", []);
18725
18768
  _defineProperty(this, "languageDta", {});
18769
+ _defineProperty(this, "_language", {});
18726
18770
  _defineProperty(this, "coordDivpoint", null);
18771
+ this._language = scenceView._language;
18727
18772
  this._viewer = scenceView._viewer;
18728
18773
  this._drawManager = scenceView._drawManager;
18729
18774
  this._analyseHeight = option.analyseHeight;
@@ -18839,13 +18884,13 @@ class TerrainProfileAnalysisViewModel {
18839
18884
  });
18840
18885
  } else {
18841
18886
  message({
18842
- message: "只支持STK类型的地形分析!",
18887
+ message: this._language["stkTerrainAnalysisTips"],
18843
18888
  type: "warning"
18844
18889
  });
18845
18890
  }
18846
18891
  } else {
18847
18892
  message({
18848
- message: "请加载地形后分析!",
18893
+ message: this._language["terrainAnalysisTips"],
18849
18894
  type: "warning"
18850
18895
  });
18851
18896
  }
@@ -19727,6 +19772,8 @@ class SceneAdvancedToImageViewModel {
19727
19772
  _defineProperty(this, "_removeEventListener", null);
19728
19773
  //绘制完成监听事件
19729
19774
  _defineProperty(this, "_satellitePyramidPrimitive", null);
19775
+ _defineProperty(this, "_language", {});
19776
+ this._language = scenceView._language;
19730
19777
  this._viewer = scenceView._viewer;
19731
19778
  this._options = options;
19732
19779
  this._drawManager = scenceView._drawManager;
@@ -19775,13 +19822,13 @@ class SceneAdvancedToImageViewModel {
19775
19822
  }, 1000);
19776
19823
  } catch (error) {
19777
19824
  message({
19778
- message: "出图异常!",
19825
+ message: this._language["toImageErrorTips"],
19779
19826
  type: "error"
19780
19827
  });
19781
19828
  }
19782
19829
  } else {
19783
19830
  message({
19784
- message: "请先绘制视椎体!",
19831
+ message: this._language["toImageCentrumOpticusTips"],
19785
19832
  type: "warning"
19786
19833
  });
19787
19834
  }
@@ -20500,9 +20547,9 @@ SceneAdvancedToImage.install = (Vue, opts) => {
20500
20547
  ;// CONCATENATED MODULE: ./src/webgl/scaneffect/ScanEffectViewModel.js
20501
20548
 
20502
20549
 
20503
- /*
20504
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
20505
- * All rights reserved.
20550
+ /*
20551
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
20552
+ * All rights reserved.
20506
20553
  */
20507
20554
 
20508
20555
 
@@ -20916,7 +20963,7 @@ class ScanEffectViewModel {
20916
20963
  }
20917
20964
  } else {
20918
20965
  message({
20919
- message: "请添加模型后提取!",
20966
+ message: this._language["addModelExtractionTips"],
20920
20967
  type: "warning"
20921
20968
  });
20922
20969
  }
@@ -21696,9 +21743,9 @@ var web_url_search_params_has_js_ = __webpack_require__(168);
21696
21743
  var web_url_search_params_size_js_ = __webpack_require__(217);
21697
21744
  ;// CONCATENATED MODULE: ./src/webgl/heatmap3d/Heatmap3dViewModel.js
21698
21745
 
21699
- /*
21700
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
21701
- * All rights reserved.
21746
+ /*
21747
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
21748
+ * All rights reserved.
21702
21749
  */
21703
21750
  //热力图
21704
21751
 
@@ -21758,7 +21805,7 @@ class Heatmap3dViewModel {
21758
21805
  lat: lat
21759
21806
  }));
21760
21807
  }
21761
- (0,util_.setInnerHtml)(document.getElementById('mouse_lonlat'), `<p>${that.language['longitude'] || "经度"}:${lon.toFixed(5)}</p><p>${that.language['latitude'] || "纬度"}:${lat.toFixed(5)}</p><p>${that.language['heatValue'] || "热力值"}:${val}</p>`);
21808
+ (0,util_.setInnerHtml)(document.getElementById('mouse_lonlat'), `<p>${that.language['longitude'] || "longitude"}:${lon.toFixed(5)}</p><p>${that.language['latitude'] || "latitude"}:${lat.toFixed(5)}</p><p>${that.language['heatValue'] || "value"}:${val}</p>`);
21762
21809
  that._mouseLabel.setVisible(true);
21763
21810
  } else {
21764
21811
  that._mouseLabel.setVisible(false);
@@ -23179,6 +23226,7 @@ class ModelExcavateViewModel {
23179
23226
  _defineProperty(this, "_wallPrimitive", void 0);
23180
23227
  //Kq3dWallPrimitive
23181
23228
  _defineProperty(this, "entity0", null);
23229
+ _defineProperty(this, "_language", {});
23182
23230
  _defineProperty(this, "wall", null);
23183
23231
  _defineProperty(this, "ratio", 0.01);
23184
23232
  _defineProperty(this, "ii", 1);
@@ -23190,21 +23238,25 @@ class ModelExcavateViewModel {
23190
23238
  _defineProperty(this, "scratchCartesian7", new window.Cesium.Cartesian3());
23191
23239
  _defineProperty(this, "intervalId", null);
23192
23240
  _defineProperty(this, "g_flattenedPolygonTexture", null);
23241
+ this._language = scenceView._language;
23193
23242
  this._viewer = scenceView._viewer;
23194
23243
  this._options = options;
23195
23244
  this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
23196
-
23197
- let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
23198
- this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
23199
23245
  var that = this;
23200
- var models = this._viewer.scene.primitives._primitives;
23201
- for (let i = 0; i < models.length; i++) {
23202
- if (models[1] instanceof Cesium.Cesium3DTileset && models[i]._url) {
23203
- models[i].enableFlattenning = true;
23204
- models[i].flattenDiscard = true;
23205
- models[i].readyPromise.then(function (tileset) {
23206
- that.g_flattenedPolygonTexture.attachTileset(tileset);
23207
- });
23246
+ if (scenceView.g_flattenedPolygonTexture) {
23247
+ this.g_flattenedPolygonTexture = scenceView.g_flattenedPolygonTexture;
23248
+ } else {
23249
+ let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
23250
+ this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
23251
+ var models = this._viewer.scene.primitives._primitives;
23252
+ for (let i = 0; i < models.length; i++) {
23253
+ if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
23254
+ models[i].enableFlattenning = true;
23255
+ models[i].flattenDiscard = true;
23256
+ models[i].readyPromise.then(function (tileset) {
23257
+ that.g_flattenedPolygonTexture.attachTileset(tileset);
23258
+ });
23259
+ }
23208
23260
  }
23209
23261
  }
23210
23262
  this._measureHandler = new Cesium.Kq3dMeasureHandler(this._viewer);
@@ -23337,8 +23389,8 @@ class ModelExcavateViewModel {
23337
23389
  var models = this._viewer.scene.primitives._primitives;
23338
23390
  for (let i = 0; i < models.length; i++) {
23339
23391
  if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
23340
- // models[i].enableFlattenning = true;
23341
- // models[i].flattenDiscard = true;
23392
+ models[i].enableFlattenning = true;
23393
+ models[i].flattenDiscard = true;
23342
23394
  // models[i].readyPromise.then(function (tileset) {
23343
23395
  // that.g_flattenedPolygonTexture.attachTileset(tileset);
23344
23396
  // });
@@ -23350,7 +23402,7 @@ class ModelExcavateViewModel {
23350
23402
  this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
23351
23403
  } else {
23352
23404
  message({
23353
- message: "请添加模型后绘制!",
23405
+ message: this._language["addModelTips"],
23354
23406
  type: "warning"
23355
23407
  });
23356
23408
  }
@@ -23389,8 +23441,8 @@ class ModelExcavateViewModel {
23389
23441
  //销毁
23390
23442
  destroy() {
23391
23443
  this.clear();
23392
- this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.detachAllTileset();
23393
- this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.destroy();
23444
+ // this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.detachAllTileset();
23445
+ // this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.destroy();
23394
23446
  this._measureHandler && this._measureHandler.destroy();
23395
23447
  this._measureHandler = null;
23396
23448
  }
@@ -23602,7 +23654,7 @@ const ModelExcavatevue_type_script_setup_true_lang_js_default_ = {
23602
23654
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
23603
23655
  class: "kq3d-model-excavate-tip"
23604
23656
  }, {
23605
- 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 + '(' + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).reverseDrawPolygon + ')'), 1 /* TEXT */)]),
23657
+ 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 /* TEXT */)]),
23606
23658
  _: 1 /* STABLE */
23607
23659
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", ModelExcavatevue_type_script_setup_true_lang_js_hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
23608
23660
  onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
@@ -23648,9 +23700,9 @@ ModelExcavate.install = (Vue, opts) => {
23648
23700
 
23649
23701
 
23650
23702
 
23651
- /*
23652
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
23653
- * All rights reserved.
23703
+ /*
23704
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
23705
+ * All rights reserved.
23654
23706
  */
23655
23707
  //模型拾取逻辑类
23656
23708
 
@@ -23664,32 +23716,54 @@ class ModelFlatViewModel {
23664
23716
  //全局参数
23665
23717
  _defineProperty(this, "_removeEventListener", null);
23666
23718
  //绘制完成监听事件
23719
+ _defineProperty(this, "_measureHandler", null);
23720
+ //测量三维对象
23721
+ _defineProperty(this, "_measureResult", null);
23722
+ //测量结果
23667
23723
  _defineProperty(this, "_flatteningPolygonTex", null);
23668
23724
  // 平整对象
23669
23725
  _defineProperty(this, "_assistPolygons", []);
23670
23726
  //平整辅助面数组
23671
23727
  _defineProperty(this, "currentFlatPolygonIndex", -1);
23728
+ _defineProperty(this, "_language", {});
23672
23729
  this._viewer = scenceView._viewer;
23673
23730
  this._options = viewModel;
23674
23731
  this._viewer.scene.globe.depthTestAgainstTerrain = true;
23732
+ this._language = scenceView._language;
23675
23733
  this._drawManager = scenceView._drawManager;
23676
23734
  //Create flattenning controller
23677
- let kq3dFlattening = new window.Cesium.Kq3dFlattenning(this._viewer, {});
23678
- //Create flattenedPolygonTexture
23679
- this._flatteningPolygonTex = kq3dFlattening.createFlattenedPolygonTexture();
23680
- var models = this._viewer.scene.primitives._primitives;
23681
- for (let i = 0; i < models.length; i++) {
23682
- if (models[i]._url) {
23683
- //Attach 3dTiles
23684
- this._flatteningPolygonTex.attachTileset(models[i]);
23735
+ var that = this;
23736
+ if (scenceView.g_flattenedPolygonTexture) {
23737
+ this._flatteningPolygonTex = scenceView.g_flattenedPolygonTexture;
23738
+ } else {
23739
+ let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
23740
+ this._flatteningPolygonTex = kq3dFlattenning.createFlattenedPolygonTexture();
23741
+ var models = this._viewer.scene.primitives._primitives;
23742
+ for (let i = 0; i < models.length; i++) {
23743
+ if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
23744
+ that._flatteningPolygonTex.attachTileset(models[i]);
23745
+ }
23685
23746
  }
23686
23747
  }
23687
- let that = this;
23688
- this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
23689
- if (shape) {
23690
- that._options.positions = shape._controlPoints;
23691
- that.createFlat();
23692
- that._drawManager.clear();
23748
+ // this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
23749
+ // if (shape) {
23750
+ // that._options.positions = shape._controlPoints;
23751
+ // that.createFlat();
23752
+ // that._drawManager.clear();
23753
+ // }
23754
+ // });
23755
+ this._measureHandler = new Cesium.Kq3dMeasureHandler(this._viewer);
23756
+ this._measureHandler.measureEvent.addEventListener(function (result) {
23757
+ that._measureResult = result;
23758
+ result.measureResult.label.show = false;
23759
+ });
23760
+ this._measureHandler.activeEvent.addEventListener(function (ret) {
23761
+ if (ret == false) {
23762
+ if (that._measureResult) {
23763
+ that._options.positions = that._measureResult.positions;
23764
+ that.createFlat();
23765
+ that._measureResult.measureResult.destroy();
23766
+ }
23693
23767
  }
23694
23768
  });
23695
23769
  }
@@ -23708,7 +23782,7 @@ class ModelFlatViewModel {
23708
23782
  positions: this._options.positions,
23709
23783
  height: this._options.flatHeight
23710
23784
  });
23711
- this._flatteningPolygonTex.addFlattenedPolygon(myPolygon);
23785
+ this._flatteningPolygonTex && this._flatteningPolygonTex.addFlattenedPolygon(myPolygon);
23712
23786
  }
23713
23787
  // 获取平整数量
23714
23788
  getFlatCount() {
@@ -23720,18 +23794,18 @@ class ModelFlatViewModel {
23720
23794
  var flag = false;
23721
23795
  var models = this._viewer.scene.primitives._primitives;
23722
23796
  for (let i = 0; i < models.length; i++) {
23723
- if (models[i]._url) {
23797
+ if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
23798
+ models[i].flattenDiscard = false;
23724
23799
  flag = true;
23725
23800
  }
23726
23801
  }
23727
23802
  if (flag) {
23728
- this.remove();
23729
- this._drawManager.startDraw("polygon", {
23730
- clampToGround: true
23731
- });
23803
+ this.remove(!this._options.showFlattenedPolygons);
23804
+ this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
23805
+ // this._drawManager.startDraw("polygon", { clampToGround: true });
23732
23806
  } else {
23733
23807
  message({
23734
- message: "请添加模型后绘制!",
23808
+ message: this._language["addModelTips"],
23735
23809
  type: "warning"
23736
23810
  });
23737
23811
  }
@@ -23739,7 +23813,7 @@ class ModelFlatViewModel {
23739
23813
  // 切换高度重新计算
23740
23814
  setHeight(val) {
23741
23815
  this._options.flatHeight = Number(val);
23742
- if (this.currentFlatPolygonIndex === -1) {
23816
+ if (this.currentFlatPolygonIndex == -1) {
23743
23817
  this._flatteningPolygonTex.setFlattenedPolygonHeight(-1, Number(val));
23744
23818
  } else {
23745
23819
  this._flatteningPolygonTex.setFlattenedPolygonHeight(this.currentFlatPolygonIndex, Number(val));
@@ -23763,21 +23837,27 @@ class ModelFlatViewModel {
23763
23837
  this.currentFlatPolygonIndex = val;
23764
23838
  }
23765
23839
  // 清除绘制
23766
- remove() {
23840
+ remove(bool) {
23767
23841
  this._drawManager.stopDraw();
23842
+ if (bool) {
23843
+ this._flatteningPolygonTex && this._flatteningPolygonTex.removeAllFlattenedPolygon();
23844
+ for (var i = 0; i < this._assistPolygons.length; i++) {
23845
+ this._viewer.entities.remove(this._assistPolygons[i]);
23846
+ }
23847
+ this._assistPolygons = [];
23848
+ }
23768
23849
  }
23769
23850
  // 清除
23770
23851
  clear() {
23771
- this.remove();
23772
- this._flatteningPolygonTex.removeAllFlattenedPolygon();
23773
- for (var i = 0; i < this._assistPolygons.length; i++) {
23774
- this._viewer.entities.remove(this._assistPolygons[i]);
23775
- }
23776
- this._assistPolygons = [];
23852
+ this.remove(true);
23853
+ this._measureResult = null;
23854
+ this._measureHandler.clear();
23777
23855
  }
23778
23856
  //销毁
23779
23857
  destroy() {
23780
23858
  this.clear();
23859
+ this._measureHandler && this._measureHandler.destroy();
23860
+ this._measureHandler = null;
23781
23861
  }
23782
23862
  }
23783
23863
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelFlat/ModelFlat.vue?vue&type=script&setup=true&lang=js
@@ -23862,7 +23942,9 @@ const ModelFlatvue_type_script_setup_true_lang_js_default_ = {
23862
23942
  // 模型平整深度范围最小值
23863
23943
  maxFlatDepth: props.settingParams && props.settingParams.maxExcavationDepth || 100,
23864
23944
  // 模型平整深度范围最大值
23865
- flatteningShow: props.settingParams && props.settingParams.maxExcavationDepth || true // 压平面是否显示
23945
+ flatteningShow: props.settingParams && props.settingParams.maxExcavationDepth || true,
23946
+ // 压平面是否显示
23947
+ showFlattenedPolygons: props.settingParams && props.settingParams.showFlattenedPolygons || false // 是否显示多个压平面分析结果
23866
23948
  });
23867
23949
 
23868
23950
  // 组件容器Ref
@@ -23895,14 +23977,7 @@ const ModelFlatvue_type_script_setup_true_lang_js_default_ = {
23895
23977
  //父组件ScenceView初始化完成后执行
23896
23978
  gis_utils_.utils.getWebMap(null, scenceView => {
23897
23979
  if (scenceView) {
23898
- viewModel = new ModelFlatViewModel(scenceView, {
23899
- flatHeight: formItem.flatHeight,
23900
- flatteningShow: formItem.flatteningShow
23901
- });
23902
- setTimeout(() => {
23903
- setCurrentFlatPolygonIndex(0);
23904
- console.log(getFlatCount());
23905
- }, 1500);
23980
+ viewModel = new ModelFlatViewModel(scenceView, formItem);
23906
23981
  }
23907
23982
  });
23908
23983
  });
@@ -25194,9 +25269,9 @@ var esnext_iterator_map_js_ = __webpack_require__(224);
25194
25269
  ;// CONCATENATED MODULE: ./src/webgl/shadowanalysis/ShadowAnalysisViewModel.js
25195
25270
 
25196
25271
 
25197
- /*
25198
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
25199
- * All rights reserved.
25272
+ /*
25273
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
25274
+ * All rights reserved.
25200
25275
  */
25201
25276
  // 分析逻辑类
25202
25277
 
@@ -25209,6 +25284,8 @@ class ShadowAnalysisViewModel {
25209
25284
  viewer: null,
25210
25285
  _drawManager: null
25211
25286
  });
25287
+ _defineProperty(this, "_language", {});
25288
+ this._language = scenceView._language;
25212
25289
  this._globaOptions.viewer = scenceView._viewer;
25213
25290
  this._globaOptions.viewModel = {
25214
25291
  viewer: this._globaOptions.viewer,
@@ -25276,7 +25353,7 @@ class ShadowAnalysisViewModel {
25276
25353
  });
25277
25354
  } else {
25278
25355
  message({
25279
- message: "请添加模型后分析!",
25356
+ message: this._language["addModelAnalysisTips"],
25280
25357
  type: "warning"
25281
25358
  });
25282
25359
  }
@@ -26778,9 +26855,9 @@ ModelProfileAnalysis.install = (Vue, opts) => {
26778
26855
 
26779
26856
  ;// CONCATENATED MODULE: ./src/webgl/skylineanalysis/SkylineAnalysisViewModel.js
26780
26857
 
26781
- /*
26782
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
26783
- * All rights reserved.
26858
+ /*
26859
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
26860
+ * All rights reserved.
26784
26861
  */
26785
26862
  //天际线分析逻辑类
26786
26863
 
@@ -26805,6 +26882,8 @@ class SkylineAnalysisViewModel {
26805
26882
  _defineProperty(this, "_options", null);
26806
26883
  _defineProperty(this, "_showLimitHeightBody", null);
26807
26884
  _defineProperty(this, "_chartStyle", null);
26885
+ _defineProperty(this, "_language", {});
26886
+ this._language = scenceView._language;
26808
26887
  this._chartStyle = chartStyle;
26809
26888
  viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
26810
26889
  viewer.scene.postProcessStages._fxaa.enabled = true;
@@ -26850,7 +26929,7 @@ class SkylineAnalysisViewModel {
26850
26929
  this.setSkyline2D();
26851
26930
  } else {
26852
26931
  message({
26853
- message: "请添加模型后提取!",
26932
+ message: this._language["addModelExtractionTips"],
26854
26933
  type: "warning"
26855
26934
  });
26856
26935
  }
@@ -26878,7 +26957,7 @@ class SkylineAnalysisViewModel {
26878
26957
  this._skylineAnalysis.viewer.camera.moveBackward(1);
26879
26958
  } else {
26880
26959
  message({
26881
- message: "请添加模型后提取!",
26960
+ message: this._language["addModelExtractionTips"],
26882
26961
  type: "warning"
26883
26962
  });
26884
26963
  }
@@ -27508,15 +27587,14 @@ SkylineAnalysis.install = (Vue, opts) => {
27508
27587
 
27509
27588
 
27510
27589
 
27511
- /*
27512
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
27513
- * All rights reserved.
27590
+ /*
27591
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
27592
+ * All rights reserved.
27514
27593
  */
27515
27594
 
27516
27595
  //地形淹没分析逻辑类
27517
27596
 
27518
27597
  class TerrainOperationViewModel {
27519
- //绘制完成监听事件
27520
27598
  constructor(scenceView, viewModel) {
27521
27599
  _defineProperty(this, "_terrainexcavationext", null);
27522
27600
  //地形开挖三维对象
@@ -27535,6 +27613,9 @@ class TerrainOperationViewModel {
27535
27613
  _defineProperty(this, "_smoothHeight", 2000);
27536
27614
  //平整高度
27537
27615
  _defineProperty(this, "_removeEventListener", null);
27616
+ //绘制完成监听事件
27617
+ _defineProperty(this, "_language", {});
27618
+ this._language = scenceView._language;
27538
27619
  this._globaOptions.viewer = scenceView._viewer;
27539
27620
  this._globaOptions.viewer.scene.logarithmicDepthBuffer = false;
27540
27621
  this._globaOptions.viewer.scene.globe.depthTestAgainstTerrain = true;
@@ -27640,13 +27721,13 @@ class TerrainOperationViewModel {
27640
27721
  });
27641
27722
  } else {
27642
27723
  message({
27643
- message: "只支持STK类型的地形分析!",
27724
+ message: this._language["stkTerrainAnalysisTips"],
27644
27725
  type: "warning"
27645
27726
  });
27646
27727
  }
27647
27728
  } else {
27648
27729
  message({
27649
- message: "请加载地形后分析!",
27730
+ message: this._language["terrainAnalysisTips"],
27650
27731
  type: "warning"
27651
27732
  });
27652
27733
  }
@@ -28047,15 +28128,13 @@ TerrainOperation.install = (Vue, opts) => {
28047
28128
  ;// CONCATENATED MODULE: ./src/webgl/excavatefillanalysis/ExcavateFillAnalysisViewModel.js
28048
28129
 
28049
28130
 
28050
- /*
28051
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
28052
- * All rights reserved.
28131
+ /*
28132
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
28133
+ * All rights reserved.
28053
28134
  */
28054
28135
  //填挖方分析逻辑类
28055
28136
 
28056
28137
  class ExcavateFillAnalysisViewModel {
28057
- //绘制完成监听事件
28058
-
28059
28138
  constructor(scenceView, options, callback) {
28060
28139
  _defineProperty(this, "_excavateFillAnalysis", null);
28061
28140
  //填挖方分析三维对象
@@ -28064,6 +28143,9 @@ class ExcavateFillAnalysisViewModel {
28064
28143
  _defineProperty(this, "_options", null);
28065
28144
  //填挖方分析存储参数对象
28066
28145
  _defineProperty(this, "_removeEventListener", null);
28146
+ //绘制完成监听事件
28147
+ _defineProperty(this, "_language", {});
28148
+ this._language = scenceView._language;
28067
28149
  options.viewer = scenceView._viewer;
28068
28150
  options.viewer.scene.globe.depthTestAgainstTerrain = true;
28069
28151
  if (options.cutColor) {
@@ -28112,13 +28194,13 @@ class ExcavateFillAnalysisViewModel {
28112
28194
  });
28113
28195
  } else {
28114
28196
  message({
28115
- message: "只支持STK类型的地形分析!",
28197
+ message: this._language["stkTerrainAnalysisTips"],
28116
28198
  type: "warning"
28117
28199
  });
28118
28200
  }
28119
28201
  } else {
28120
28202
  message({
28121
- message: "请加载地形后分析!",
28203
+ message: this._language["terrainAnalysisTips"],
28122
28204
  type: "warning"
28123
28205
  });
28124
28206
  }
@@ -28564,9 +28646,9 @@ ExcavateFillAnalysis.install = (Vue, opts) => {
28564
28646
 
28565
28647
 
28566
28648
 
28567
- /*
28568
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
28569
- * All rights reserved.
28649
+ /*
28650
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
28651
+ * All rights reserved.
28570
28652
  */
28571
28653
 
28572
28654
  //地形淹没分析逻辑类
@@ -28584,6 +28666,7 @@ class FloodAnalysisViewModel {
28584
28666
  //测量结果
28585
28667
  _defineProperty(this, "_mode", 0);
28586
28668
  //淹没模式
28669
+ _defineProperty(this, "_language", {});
28587
28670
  _defineProperty(this, "_colorImages", [
28588
28671
  //淹没纹理图片集合
28589
28672
  {
@@ -28596,6 +28679,7 @@ class FloodAnalysisViewModel {
28596
28679
  value: "2",
28597
28680
  src: const_image_.GREEN_TO_BLUE_URL
28598
28681
  }]);
28682
+ this._language = scenceView._language;
28599
28683
  this._mode = options.mode;
28600
28684
  options.viewer = scenceView._viewer;
28601
28685
  options.viewer.scene.globe.depthTestAgainstTerrain = true;
@@ -28662,13 +28746,13 @@ class FloodAnalysisViewModel {
28662
28746
  this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
28663
28747
  } else {
28664
28748
  message({
28665
- message: "只支持STK类型的地形分析!",
28749
+ message: this._language["stkTerrainAnalysisTips"],
28666
28750
  type: "warning"
28667
28751
  });
28668
28752
  }
28669
28753
  } else {
28670
28754
  message({
28671
- message: "请加载地形后分析!",
28755
+ message: this._language["terrainAnalysisTips"],
28672
28756
  type: "warning"
28673
28757
  });
28674
28758
  }
@@ -28686,7 +28770,7 @@ class FloodAnalysisViewModel {
28686
28770
  this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
28687
28771
  } else {
28688
28772
  message({
28689
- message: "请添加模型后分析!",
28773
+ message: this._language["addModelAnalysisTips"],
28690
28774
  type: "warning"
28691
28775
  });
28692
28776
  }
@@ -29323,9 +29407,9 @@ FloodAnalysis.install = (Vue, opts) => {
29323
29407
 
29324
29408
 
29325
29409
 
29326
- /*
29327
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
29328
- * All rights reserved.
29410
+ /*
29411
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
29412
+ * All rights reserved.
29329
29413
  */
29330
29414
 
29331
29415
  // 分析逻辑类
@@ -29351,6 +29435,8 @@ class SlopeAnalysisViewModel {
29351
29435
  value: "2",
29352
29436
  src: const_image_.GREEN_TO_BLUE_URL
29353
29437
  }]);
29438
+ _defineProperty(this, "_language", {});
29439
+ this._language = scenceView._language;
29354
29440
  this._globaOptions.viewer = scenceView._viewer;
29355
29441
  this._globaOptions.viewModel = {
29356
29442
  fillStyle: viewModel.fillStyle,
@@ -29464,13 +29550,13 @@ class SlopeAnalysisViewModel {
29464
29550
  }
29465
29551
  } else {
29466
29552
  message({
29467
- message: "只支持STK类型的地形分析!",
29553
+ message: this._language["stkTerrainAnalysisTips"],
29468
29554
  type: "warning"
29469
29555
  });
29470
29556
  }
29471
29557
  } else {
29472
29558
  message({
29473
- message: "请加载地形后分析!",
29559
+ message: this._language["terrainAnalysisTips"],
29474
29560
  type: "warning"
29475
29561
  });
29476
29562
  }
@@ -30197,9 +30283,9 @@ SlopeAnalysis.install = (Vue, opts) => {
30197
30283
 
30198
30284
  ;// CONCATENATED MODULE: ./src/webgl/aspectanalysis/AspectAnalysisViewModel.js
30199
30285
 
30200
- /*
30201
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
30202
- * All rights reserved.
30286
+ /*
30287
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
30288
+ * All rights reserved.
30203
30289
  */
30204
30290
  /**
30205
30291
  * 坡向逻辑类
@@ -30214,6 +30300,8 @@ class AspectAnalysisViewModel {
30214
30300
  viewer: null,
30215
30301
  _drawManager: null
30216
30302
  });
30303
+ _defineProperty(this, "_language", {});
30304
+ this._language = scenceView._language;
30217
30305
  this._globaOptions.viewer = scenceView._viewer;
30218
30306
  let options = {
30219
30307
  interval: aspect.interval || 500,
@@ -30249,13 +30337,13 @@ class AspectAnalysisViewModel {
30249
30337
  }
30250
30338
  } else {
30251
30339
  message({
30252
- message: "只支持STK类型的地形分析!",
30340
+ message: this._language["stkTerrainAnalysisTips"],
30253
30341
  type: "warning"
30254
30342
  });
30255
30343
  }
30256
30344
  } else {
30257
30345
  message({
30258
- message: "请加载地形后分析!",
30346
+ message: this._language["terrainAnalysisTips"],
30259
30347
  type: "warning"
30260
30348
  });
30261
30349
  }
@@ -30637,9 +30725,9 @@ AspectAnalysis.install = (Vue, opts) => {
30637
30725
 
30638
30726
 
30639
30727
 
30640
- /*
30641
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
30642
- * All rights reserved.
30728
+ /*
30729
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
30730
+ * All rights reserved.
30643
30731
  */
30644
30732
 
30645
30733
  // 分析逻辑类
@@ -30655,6 +30743,7 @@ class SlopeAspectAnalysisViewModel {
30655
30743
  viewer: null,
30656
30744
  _drawManager: null
30657
30745
  });
30746
+ _defineProperty(this, "_language", {});
30658
30747
  _defineProperty(this, "_colorImages", [
30659
30748
  //渐变图片集合
30660
30749
  {
@@ -30667,6 +30756,7 @@ class SlopeAspectAnalysisViewModel {
30667
30756
  value: "2",
30668
30757
  src: const_image_.GREEN_TO_BLUE_URL
30669
30758
  }]);
30759
+ this._language = scenceView._language;
30670
30760
  this._globaOptions.viewer = scenceView._viewer;
30671
30761
  this._globaOptions.viewModel = {
30672
30762
  fillStyle: viewModel.fillStyle,
@@ -30774,17 +30864,18 @@ class SlopeAspectAnalysisViewModel {
30774
30864
  }
30775
30865
  } else {
30776
30866
  message({
30777
- message: "只支持STK类型的地形分析!",
30867
+ message: this._language["stkTerrainAnalysisTips"],
30778
30868
  type: "warning"
30779
30869
  });
30780
30870
  }
30781
30871
  } else {
30782
30872
  message({
30783
- message: "请加载地形后分析!",
30873
+ message: this._language["terrainAnalysisTips"],
30784
30874
  type: "warning"
30785
30875
  });
30786
30876
  }
30787
30877
  }
30878
+
30788
30879
  //修改填充样式
30789
30880
  changeFilltyle(key) {
30790
30881
  this._globaOptions.viewModel.fillStyle = key;
@@ -31657,16 +31748,14 @@ SlopeAspectAnalysis.install = (Vue, opts) => {
31657
31748
 
31658
31749
 
31659
31750
 
31660
- /*
31661
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
31662
- * All rights reserved.
31751
+ /*
31752
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
31753
+ * All rights reserved.
31663
31754
  */
31664
31755
 
31665
31756
  //等值线分析逻辑类
31666
31757
 
31667
31758
  class IsolineAnalysisViewModel {
31668
- //等值线分析存储参数对象
31669
-
31670
31759
  constructor(scenceView, options) {
31671
31760
  _defineProperty(this, "_elevation", null);
31672
31761
  //等值线分析三维对象
@@ -31693,6 +31782,9 @@ class IsolineAnalysisViewModel {
31693
31782
  src: const_image_.GREEN_TO_BLUE_URL
31694
31783
  }]);
31695
31784
  _defineProperty(this, "_options", null);
31785
+ //等值线分析存储参数对象
31786
+ _defineProperty(this, "_language", {});
31787
+ this._language = scenceView._language;
31696
31788
  this._options = options;
31697
31789
  this._options.viewer = scenceView._viewer;
31698
31790
  this._options.viewer.scene.globe.depthTestAgainstTerrain = true;
@@ -31846,7 +31938,7 @@ class IsolineAnalysisViewModel {
31846
31938
  });
31847
31939
  } else {
31848
31940
  message({
31849
- message: "请添加地形后分析!",
31941
+ message: this._language["terrainAnalysisTips"],
31850
31942
  type: "warning"
31851
31943
  });
31852
31944
  }
@@ -33672,15 +33764,13 @@ IsolineAnalysis.install = (Vue, opts) => {
33672
33764
 
33673
33765
 
33674
33766
 
33675
- /*
33676
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
33677
- * All rights reserved.
33767
+ /*
33768
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
33769
+ * All rights reserved.
33678
33770
  */
33679
33771
  //Box裁剪逻辑类
33680
33772
 
33681
33773
  class BoxClipViewModel {
33682
- //绘制完成监听事件
33683
-
33684
33774
  constructor(scenceView, options) {
33685
33775
  _defineProperty(this, "_viewer", null);
33686
33776
  //三维viewer对象
@@ -33711,6 +33801,9 @@ class BoxClipViewModel {
33711
33801
  _defineProperty(this, "_drawManager", null);
33712
33802
  //绘制管理对象
33713
33803
  _defineProperty(this, "_removeEventListener", null);
33804
+ //绘制完成监听事件
33805
+ _defineProperty(this, "_language", {});
33806
+ this._language = scenceView._language;
33714
33807
  this._options = Object.assign({}, options, this._defaultOptions);
33715
33808
  this._viewer = scenceView._viewer;
33716
33809
  // this._viewer.enabledFXAA = true;
@@ -33768,7 +33861,7 @@ class BoxClipViewModel {
33768
33861
  });
33769
33862
  } else {
33770
33863
  message({
33771
- message: "请添加模型后裁剪!",
33864
+ message: this._language["addModelClipTips"],
33772
33865
  type: "warning"
33773
33866
  });
33774
33867
  }
@@ -34542,15 +34635,13 @@ BoxClip.install = (Vue, opts) => {
34542
34635
 
34543
34636
 
34544
34637
 
34545
- /*
34546
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
34547
- * All rights reserved.
34638
+ /*
34639
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
34640
+ * All rights reserved.
34548
34641
  */
34549
34642
  //平面裁剪逻辑类
34550
34643
 
34551
34644
  class PlaneClipViewModel {
34552
- //绘制完成事件监听
34553
-
34554
34645
  constructor(scenceView, options) {
34555
34646
  _defineProperty(this, "_viewer", null);
34556
34647
  //三维viewer对象
@@ -34585,10 +34676,13 @@ class PlaneClipViewModel {
34585
34676
  _defineProperty(this, "_drawManager", null);
34586
34677
  //绘制管理对象
34587
34678
  _defineProperty(this, "_removeEventListener", null);
34679
+ //绘制完成事件监听
34680
+ _defineProperty(this, "_language", {});
34588
34681
  this._options = Object.assign({}, options, this._defaultOptions);
34589
34682
  this._viewer = scenceView._viewer;
34590
34683
  // this._viewer.enabledFXAA = true;
34591
34684
  this._options.viewer = this._viewer;
34685
+ this._language = scenceView._language;
34592
34686
  this._drawManager = scenceView._drawManager;
34593
34687
  let that = this;
34594
34688
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
@@ -34641,7 +34735,7 @@ class PlaneClipViewModel {
34641
34735
  });
34642
34736
  } else {
34643
34737
  message({
34644
- message: "请添加模型后裁剪!",
34738
+ message: this._language["addModelAnalysisTips"],
34645
34739
  type: "warning"
34646
34740
  });
34647
34741
  }
@@ -44750,9 +44844,9 @@ Light.install = (Vue, opts) => {
44750
44844
 
44751
44845
 
44752
44846
 
44753
- /*
44754
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
44755
- * All rights reserved.
44847
+ /*
44848
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
44849
+ * All rights reserved.
44756
44850
  */
44757
44851
  //地质体分析逻辑类
44758
44852
 
@@ -44765,6 +44859,8 @@ class GeologicalBodyAnalysisViewModel {
44765
44859
  _defineProperty(this, "_geologyBody", null);
44766
44860
  //地质体分析三维对象
44767
44861
  _defineProperty(this, "_measureHandler", null);
44862
+ _defineProperty(this, "_language", {});
44863
+ this._language = scenceView._language;
44768
44864
  this._options = options;
44769
44865
  this._viewer = scenceView._viewer;
44770
44866
  this._measureHandler = new Cesium.Kq3dMeasureHandler(scenceView._viewer);
@@ -44864,7 +44960,7 @@ class GeologicalBodyAnalysisViewModel {
44864
44960
  }
44865
44961
  } else {
44866
44962
  message({
44867
- message: "请添加地质体后分析!",
44963
+ message: this._language["addGeologyBodyTips"],
44868
44964
  type: "warning"
44869
44965
  });
44870
44966
  }