@kq_npm/client3d_webgl_vue 4.3.7 → 4.3.9

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
@@ -4104,8 +4104,8 @@ class SceneViewViewModel extends (mitt_default()) {
4104
4104
  }
4105
4105
 
4106
4106
  this._viewer = new Cesium.Viewer(this._viewerId, defaultOptions); //隐藏地图状态栏
4107
+ // this._viewer.statusBar.show = false;
4107
4108
 
4108
- this._viewer.statusBar.show = false;
4109
4109
  this._viewer.geologyBodyCollection = [];
4110
4110
 
4111
4111
  if (!this._props.showLogo) {
@@ -4158,6 +4158,7 @@ class SceneViewViewModel extends (mitt_default()) {
4158
4158
  case "kqserver":
4159
4159
  layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dKQGISMapServerImageryProviderExt({
4160
4160
  url: layerConfig.url,
4161
+ layers: layerConfig.id,
4161
4162
  ua_token: layerConfig.accessToken
4162
4163
  }), index);
4163
4164
  break;
@@ -13565,7 +13566,7 @@ const SceneToHDImagevue_type_script_setup_true_lang_js_default_ = {
13565
13566
  }, {
13566
13567
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse_item, {
13567
13568
  class: "scene-content",
13568
- title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).sceneContent,
13569
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).screenParameter,
13569
13570
  name: "content"
13570
13571
  }, null, 8
13571
13572
  /* PROPS */
@@ -20446,6 +20447,7 @@ class TerrainOperationViewModel {
20446
20447
  //绘制的坐标点集合
20447
20448
  //地形操作类型
20448
20449
  //开挖深度
20450
+ //平整高度
20449
20451
  //绘制完成监听事件
20450
20452
  constructor(scenceView, viewModel) {
20451
20453
  _defineProperty(this, "_terrainexcavationext", null);
@@ -20462,6 +20464,8 @@ class TerrainOperationViewModel {
20462
20464
 
20463
20465
  _defineProperty(this, "_height", 0);
20464
20466
 
20467
+ _defineProperty(this, "_smoothHeight", 2000);
20468
+
20465
20469
  _defineProperty(this, "_removeEventListener", null);
20466
20470
 
20467
20471
  this._globaOptions.viewer = scenceView._viewer;
@@ -20470,6 +20474,7 @@ class TerrainOperationViewModel {
20470
20474
  this._drawManager = scenceView._drawManager;
20471
20475
  this._terrainStyle = viewModel.terrainStyle;
20472
20476
  this._height = viewModel.excavationDepth;
20477
+ this._smoothHeight = viewModel.modificationHeight;
20473
20478
  var that = this;
20474
20479
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
20475
20480
  if (shape) {
@@ -20534,6 +20539,7 @@ class TerrainOperationViewModel {
20534
20539
  that._terrainmodification = new window.Cesium.Kq3dTerrainModification({
20535
20540
  viewer: that._globaOptions.viewer,
20536
20541
  positions: positions,
20542
+ height: Number(that._smoothHeight) || 2000,
20537
20543
  heights: heights
20538
20544
  });
20539
20545
  } else {
@@ -20621,6 +20627,11 @@ class TerrainOperationViewModel {
20621
20627
  }
20622
20628
  });
20623
20629
  }
20630
+ }
20631
+
20632
+ setModificationHeight(height) {
20633
+ this._smoothHeight = Number(height);
20634
+ if (this._terrainmodification) this._terrainmodification._height = this._smoothHeight;
20624
20635
  } //清除全部结果
20625
20636
 
20626
20637
 
@@ -20660,6 +20671,9 @@ const TerrainOperationvue_type_script_setup_true_lang_js_hoisted_2 = {
20660
20671
  class: "kq3d-terrain-operation-analysis-span"
20661
20672
  };
20662
20673
  const TerrainOperationvue_type_script_setup_true_lang_js_hoisted_3 = {
20674
+ class: "kq3d-terrain-operation-analysis-span"
20675
+ };
20676
+ const TerrainOperationvue_type_script_setup_true_lang_js_hoisted_4 = {
20663
20677
  class: "kq3d-terrain-operation-analysis-footer"
20664
20678
  };
20665
20679
 
@@ -20735,7 +20749,13 @@ const TerrainOperationvue_type_script_setup_true_lang_js_default_ = {
20735
20749
  // 地形开挖深度
20736
20750
  minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 100,
20737
20751
  // 地形开挖深度范围最小值
20738
- maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 5000 // 地形开挖深度范围最大值
20752
+ maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 5000,
20753
+ // 地形开挖深度范围最大值
20754
+ modificationHeight: props.settingParams && props.settingParams.modificationHeight || 2000,
20755
+ // 地形平整
20756
+ minModificationHeight: props.settingParams && props.settingParams.minModificationHeight || 100,
20757
+ // 地形平整高度最小值
20758
+ maxModificationHeight: props.settingParams && props.settingParams.maxModificationHeight || 8000 // 地形平整高度最大值
20739
20759
 
20740
20760
  });
20741
20761
  let viewModel = null; // 组件容器Ref
@@ -20773,7 +20793,8 @@ const TerrainOperationvue_type_script_setup_true_lang_js_default_ = {
20773
20793
 
20774
20794
  viewModel = new TerrainOperationViewModel(scenceView, {
20775
20795
  terrainStyle: formItem.terrainStyle,
20776
- excavationDepth: formItem.excavationDepth
20796
+ excavationDepth: formItem.excavationDepth,
20797
+ modificationHeight: formItem.modificationHeight
20777
20798
  });
20778
20799
  }
20779
20800
  });
@@ -20797,6 +20818,11 @@ const TerrainOperationvue_type_script_setup_true_lang_js_default_ = {
20797
20818
 
20798
20819
  function changeHeight() {
20799
20820
  viewModel && viewModel.setHeight(formItem.excavationDepth);
20821
+ } // 调整平整高度
20822
+
20823
+
20824
+ function changeModificationHeight() {
20825
+ viewModel && viewModel.setModificationHeight(formItem.modificationHeight);
20800
20826
  } // 开始分析
20801
20827
 
20802
20828
 
@@ -20816,6 +20842,7 @@ const TerrainOperationvue_type_script_setup_true_lang_js_default_ = {
20816
20842
  expose({
20817
20843
  changeStyle,
20818
20844
  changeHeight,
20845
+ changeModificationHeight,
20819
20846
  startOperation,
20820
20847
  clear
20821
20848
  });
@@ -20937,6 +20964,64 @@ const TerrainOperationvue_type_script_setup_true_lang_js_default_ = {
20937
20964
  _: 1
20938
20965
  /* STABLE */
20939
20966
 
20967
+ })) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).terrainStyle === 2 ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_row, {
20968
+ key: 2,
20969
+ gutter: 10
20970
+ }, {
20971
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
20972
+ span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
20973
+ }, {
20974
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", TerrainOperationvue_type_script_setup_true_lang_js_hoisted_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).modificationHeight), 1
20975
+ /* TEXT */
20976
+ )]),
20977
+ _: 1
20978
+ /* STABLE */
20979
+
20980
+ }, 8
20981
+ /* PROPS */
20982
+ , ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
20983
+ span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 11 : 8
20984
+ }, {
20985
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_slider, {
20986
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).modificationHeight,
20987
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).modificationHeight = $event),
20988
+ step: 100,
20989
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minModificationHeight,
20990
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxModificationHeight,
20991
+ onChange: _cache[8] || (_cache[8] = $event => changeModificationHeight()),
20992
+ onClick: _cache[9] || (_cache[9] = $event => changeModificationHeight())
20993
+ }, null, 8
20994
+ /* PROPS */
20995
+ , ["modelValue", "min", "max"])]),
20996
+ _: 1
20997
+ /* STABLE */
20998
+
20999
+ }, 8
21000
+ /* PROPS */
21001
+ , ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
21002
+ span: 6,
21003
+ style: {
21004
+ "text-align": "end"
21005
+ }
21006
+ }, {
21007
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_input_number, {
21008
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).modificationHeight,
21009
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).modificationHeight = $event),
21010
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minModificationHeight,
21011
+ step: 100,
21012
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxModificationHeight,
21013
+ "controls-position": "right",
21014
+ onInput: _cache[11] || (_cache[11] = $event => changeModificationHeight())
21015
+ }, null, 8
21016
+ /* PROPS */
21017
+ , ["modelValue", "min", "max"])]),
21018
+ _: 1
21019
+ /* STABLE */
21020
+
21021
+ })]),
21022
+ _: 1
21023
+ /* STABLE */
21024
+
20940
21025
  })) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
20941
21026
  class: "kq3d-terrain-operation-analysis-tip"
20942
21027
  }, {
@@ -20946,8 +21031,8 @@ const TerrainOperationvue_type_script_setup_true_lang_js_default_ = {
20946
21031
  _: 1
20947
21032
  /* STABLE */
20948
21033
 
20949
- }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", TerrainOperationvue_type_script_setup_true_lang_js_hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
20950
- onClick: _cache[7] || (_cache[7] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
21034
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", TerrainOperationvue_type_script_setup_true_lang_js_hoisted_4, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
21035
+ onClick: _cache[12] || (_cache[12] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
20951
21036
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
20952
21037
  type: "primary"
20953
21038
  }, {
@@ -20960,7 +21045,7 @@ const TerrainOperationvue_type_script_setup_true_lang_js_default_ = {
20960
21045
  }, 8
20961
21046
  /* PROPS */
20962
21047
  , ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
20963
- onClick: _cache[8] || (_cache[8] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
21048
+ onClick: _cache[13] || (_cache[13] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
20964
21049
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
20965
21050
  }, {
20966
21051
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear), 1
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"4.3.7","homepage":"","keywords":["KQGIS","webGL","Vue"],"sdkNames":["@kq_npm/client_icons_vue"],"restrictedVersion":true,"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"1.1.1","echarts":"4.9.0","echarts-stat":"1.2.0","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","@kq_npm/client_icons_vue":"0.8.3-beta","css-vars-ponyfill":"2.4.8","html2canvas":"1.4.1","xe-utils":"3.5.4"}}
1
+ {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"4.3.9","homepage":"","keywords":["KQGIS","webGL","Vue"],"sdkNames":["@kq_npm/client_icons_vue"],"restrictedVersion":true,"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"1.1.1","echarts":"4.9.0","echarts-stat":"1.2.0","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","@kq_npm/client_icons_vue":"0.8.4-beta","css-vars-ponyfill":"2.4.8","html2canvas":"1.4.1","xe-utils":"3.5.4"}}
@@ -341,7 +341,7 @@ const __default__ = {
341
341
  }, {
342
342
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse_item, {
343
343
  class: "scene-content",
344
- title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).sceneContent,
344
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).screenParameter,
345
345
  name: "content"
346
346
  }, null, 8
347
347
  /* PROPS */
@@ -27986,7 +27986,7 @@ const __default__ = {
27986
27986
  }, {
27987
27987
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse_item, {
27988
27988
  class: "scene-content",
27989
- title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).sceneContent,
27989
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).screenParameter,
27990
27990
  name: "content"
27991
27991
  }, null, 8
27992
27992
  /* PROPS */
@@ -34165,6 +34165,7 @@ class TerrainOperationViewModel {
34165
34165
  //绘制的坐标点集合
34166
34166
  //地形操作类型
34167
34167
  //开挖深度
34168
+ //平整高度
34168
34169
  //绘制完成监听事件
34169
34170
  constructor(scenceView, viewModel) {
34170
34171
  (0,defineProperty/* default */.Z)(this, "_terrainexcavationext", null);
@@ -34181,6 +34182,8 @@ class TerrainOperationViewModel {
34181
34182
 
34182
34183
  (0,defineProperty/* default */.Z)(this, "_height", 0);
34183
34184
 
34185
+ (0,defineProperty/* default */.Z)(this, "_smoothHeight", 2000);
34186
+
34184
34187
  (0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
34185
34188
 
34186
34189
  this._globaOptions.viewer = scenceView._viewer;
@@ -34189,6 +34192,7 @@ class TerrainOperationViewModel {
34189
34192
  this._drawManager = scenceView._drawManager;
34190
34193
  this._terrainStyle = viewModel.terrainStyle;
34191
34194
  this._height = viewModel.excavationDepth;
34195
+ this._smoothHeight = viewModel.modificationHeight;
34192
34196
  var that = this;
34193
34197
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
34194
34198
  if (shape) {
@@ -34253,6 +34257,7 @@ class TerrainOperationViewModel {
34253
34257
  that._terrainmodification = new window.Cesium.Kq3dTerrainModification({
34254
34258
  viewer: that._globaOptions.viewer,
34255
34259
  positions: positions,
34260
+ height: Number(that._smoothHeight) || 2000,
34256
34261
  heights: heights
34257
34262
  });
34258
34263
  } else {
@@ -34340,6 +34345,11 @@ class TerrainOperationViewModel {
34340
34345
  }
34341
34346
  });
34342
34347
  }
34348
+ }
34349
+
34350
+ setModificationHeight(height) {
34351
+ this._smoothHeight = Number(height);
34352
+ if (this._terrainmodification) this._terrainmodification._height = this._smoothHeight;
34343
34353
  } //清除全部结果
34344
34354
 
34345
34355
 
@@ -34385,6 +34395,9 @@ const _hoisted_2 = {
34385
34395
  class: "kq3d-terrain-operation-analysis-span"
34386
34396
  };
34387
34397
  const _hoisted_3 = {
34398
+ class: "kq3d-terrain-operation-analysis-span"
34399
+ };
34400
+ const _hoisted_4 = {
34388
34401
  class: "kq3d-terrain-operation-analysis-footer"
34389
34402
  };
34390
34403
 
@@ -34460,7 +34473,13 @@ const __default__ = {
34460
34473
  // 地形开挖深度
34461
34474
  minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 100,
34462
34475
  // 地形开挖深度范围最小值
34463
- maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 5000 // 地形开挖深度范围最大值
34476
+ maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 5000,
34477
+ // 地形开挖深度范围最大值
34478
+ modificationHeight: props.settingParams && props.settingParams.modificationHeight || 2000,
34479
+ // 地形平整
34480
+ minModificationHeight: props.settingParams && props.settingParams.minModificationHeight || 100,
34481
+ // 地形平整高度最小值
34482
+ maxModificationHeight: props.settingParams && props.settingParams.maxModificationHeight || 8000 // 地形平整高度最大值
34464
34483
 
34465
34484
  });
34466
34485
  let viewModel = null; // 组件容器Ref
@@ -34498,7 +34517,8 @@ const __default__ = {
34498
34517
 
34499
34518
  viewModel = new TerrainOperationViewModel(scenceView, {
34500
34519
  terrainStyle: formItem.terrainStyle,
34501
- excavationDepth: formItem.excavationDepth
34520
+ excavationDepth: formItem.excavationDepth,
34521
+ modificationHeight: formItem.modificationHeight
34502
34522
  });
34503
34523
  }
34504
34524
  });
@@ -34522,6 +34542,11 @@ const __default__ = {
34522
34542
 
34523
34543
  function changeHeight() {
34524
34544
  viewModel && viewModel.setHeight(formItem.excavationDepth);
34545
+ } // 调整平整高度
34546
+
34547
+
34548
+ function changeModificationHeight() {
34549
+ viewModel && viewModel.setModificationHeight(formItem.modificationHeight);
34525
34550
  } // 开始分析
34526
34551
 
34527
34552
 
@@ -34541,6 +34566,7 @@ const __default__ = {
34541
34566
  expose({
34542
34567
  changeStyle,
34543
34568
  changeHeight,
34569
+ changeModificationHeight,
34544
34570
  startOperation,
34545
34571
  clear
34546
34572
  });
@@ -34662,6 +34688,64 @@ const __default__ = {
34662
34688
  _: 1
34663
34689
  /* STABLE */
34664
34690
 
34691
+ })) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).terrainStyle === 2 ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_row, {
34692
+ key: 2,
34693
+ gutter: 10
34694
+ }, {
34695
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
34696
+ span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
34697
+ }, {
34698
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).modificationHeight), 1
34699
+ /* TEXT */
34700
+ )]),
34701
+ _: 1
34702
+ /* STABLE */
34703
+
34704
+ }, 8
34705
+ /* PROPS */
34706
+ , ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
34707
+ span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 11 : 8
34708
+ }, {
34709
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_slider, {
34710
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).modificationHeight,
34711
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).modificationHeight = $event),
34712
+ step: 100,
34713
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minModificationHeight,
34714
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxModificationHeight,
34715
+ onChange: _cache[8] || (_cache[8] = $event => changeModificationHeight()),
34716
+ onClick: _cache[9] || (_cache[9] = $event => changeModificationHeight())
34717
+ }, null, 8
34718
+ /* PROPS */
34719
+ , ["modelValue", "min", "max"])]),
34720
+ _: 1
34721
+ /* STABLE */
34722
+
34723
+ }, 8
34724
+ /* PROPS */
34725
+ , ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
34726
+ span: 6,
34727
+ style: {
34728
+ "text-align": "end"
34729
+ }
34730
+ }, {
34731
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_input_number, {
34732
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).modificationHeight,
34733
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).modificationHeight = $event),
34734
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minModificationHeight,
34735
+ step: 100,
34736
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxModificationHeight,
34737
+ "controls-position": "right",
34738
+ onInput: _cache[11] || (_cache[11] = $event => changeModificationHeight())
34739
+ }, null, 8
34740
+ /* PROPS */
34741
+ , ["modelValue", "min", "max"])]),
34742
+ _: 1
34743
+ /* STABLE */
34744
+
34745
+ })]),
34746
+ _: 1
34747
+ /* STABLE */
34748
+
34665
34749
  })) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
34666
34750
  class: "kq3d-terrain-operation-analysis-tip"
34667
34751
  }, {
@@ -34671,8 +34755,8 @@ const __default__ = {
34671
34755
  _: 1
34672
34756
  /* STABLE */
34673
34757
 
34674
- }), (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, {
34675
- onClick: _cache[7] || (_cache[7] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
34758
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_4, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
34759
+ onClick: _cache[12] || (_cache[12] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
34676
34760
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
34677
34761
  type: "primary"
34678
34762
  }, {
@@ -34685,7 +34769,7 @@ const __default__ = {
34685
34769
  }, 8
34686
34770
  /* PROPS */
34687
34771
  , ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
34688
- onClick: _cache[8] || (_cache[8] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
34772
+ onClick: _cache[13] || (_cache[13] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
34689
34773
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
34690
34774
  }, {
34691
34775
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear), 1
@@ -43857,8 +43941,8 @@ class SceneViewViewModel extends (mitt_default()) {
43857
43941
  }
43858
43942
 
43859
43943
  this._viewer = new Cesium.Viewer(this._viewerId, defaultOptions); //隐藏地图状态栏
43944
+ // this._viewer.statusBar.show = false;
43860
43945
 
43861
- this._viewer.statusBar.show = false;
43862
43946
  this._viewer.geologyBodyCollection = [];
43863
43947
 
43864
43948
  if (!this._props.showLogo) {
@@ -43911,6 +43995,7 @@ class SceneViewViewModel extends (mitt_default()) {
43911
43995
  case "kqserver":
43912
43996
  layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dKQGISMapServerImageryProviderExt({
43913
43997
  url: layerConfig.url,
43998
+ layers: layerConfig.id,
43914
43999
  ua_token: layerConfig.accessToken
43915
44000
  }), index);
43916
44001
  break;
@@ -204,6 +204,7 @@ class TerrainOperationViewModel {
204
204
  //绘制的坐标点集合
205
205
  //地形操作类型
206
206
  //开挖深度
207
+ //平整高度
207
208
  //绘制完成监听事件
208
209
  constructor(scenceView, viewModel) {
209
210
  (0,defineProperty/* default */.Z)(this, "_terrainexcavationext", null);
@@ -220,6 +221,8 @@ class TerrainOperationViewModel {
220
221
 
221
222
  (0,defineProperty/* default */.Z)(this, "_height", 0);
222
223
 
224
+ (0,defineProperty/* default */.Z)(this, "_smoothHeight", 2000);
225
+
223
226
  (0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
224
227
 
225
228
  this._globaOptions.viewer = scenceView._viewer;
@@ -228,6 +231,7 @@ class TerrainOperationViewModel {
228
231
  this._drawManager = scenceView._drawManager;
229
232
  this._terrainStyle = viewModel.terrainStyle;
230
233
  this._height = viewModel.excavationDepth;
234
+ this._smoothHeight = viewModel.modificationHeight;
231
235
  var that = this;
232
236
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
233
237
  if (shape) {
@@ -292,6 +296,7 @@ class TerrainOperationViewModel {
292
296
  that._terrainmodification = new window.Cesium.Kq3dTerrainModification({
293
297
  viewer: that._globaOptions.viewer,
294
298
  positions: positions,
299
+ height: Number(that._smoothHeight) || 2000,
295
300
  heights: heights
296
301
  });
297
302
  } else {
@@ -379,6 +384,11 @@ class TerrainOperationViewModel {
379
384
  }
380
385
  });
381
386
  }
387
+ }
388
+
389
+ setModificationHeight(height) {
390
+ this._smoothHeight = Number(height);
391
+ if (this._terrainmodification) this._terrainmodification._height = this._smoothHeight;
382
392
  } //清除全部结果
383
393
 
384
394
 
@@ -424,6 +434,9 @@ const _hoisted_2 = {
424
434
  class: "kq3d-terrain-operation-analysis-span"
425
435
  };
426
436
  const _hoisted_3 = {
437
+ class: "kq3d-terrain-operation-analysis-span"
438
+ };
439
+ const _hoisted_4 = {
427
440
  class: "kq3d-terrain-operation-analysis-footer"
428
441
  };
429
442
 
@@ -499,7 +512,13 @@ const __default__ = {
499
512
  // 地形开挖深度
500
513
  minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 100,
501
514
  // 地形开挖深度范围最小值
502
- maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 5000 // 地形开挖深度范围最大值
515
+ maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 5000,
516
+ // 地形开挖深度范围最大值
517
+ modificationHeight: props.settingParams && props.settingParams.modificationHeight || 2000,
518
+ // 地形平整
519
+ minModificationHeight: props.settingParams && props.settingParams.minModificationHeight || 100,
520
+ // 地形平整高度最小值
521
+ maxModificationHeight: props.settingParams && props.settingParams.maxModificationHeight || 8000 // 地形平整高度最大值
503
522
 
504
523
  });
505
524
  let viewModel = null; // 组件容器Ref
@@ -537,7 +556,8 @@ const __default__ = {
537
556
 
538
557
  viewModel = new TerrainOperationViewModel(scenceView, {
539
558
  terrainStyle: formItem.terrainStyle,
540
- excavationDepth: formItem.excavationDepth
559
+ excavationDepth: formItem.excavationDepth,
560
+ modificationHeight: formItem.modificationHeight
541
561
  });
542
562
  }
543
563
  });
@@ -561,6 +581,11 @@ const __default__ = {
561
581
 
562
582
  function changeHeight() {
563
583
  viewModel && viewModel.setHeight(formItem.excavationDepth);
584
+ } // 调整平整高度
585
+
586
+
587
+ function changeModificationHeight() {
588
+ viewModel && viewModel.setModificationHeight(formItem.modificationHeight);
564
589
  } // 开始分析
565
590
 
566
591
 
@@ -580,6 +605,7 @@ const __default__ = {
580
605
  expose({
581
606
  changeStyle,
582
607
  changeHeight,
608
+ changeModificationHeight,
583
609
  startOperation,
584
610
  clear
585
611
  });
@@ -701,6 +727,64 @@ const __default__ = {
701
727
  _: 1
702
728
  /* STABLE */
703
729
 
730
+ })) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).terrainStyle === 2 ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_row, {
731
+ key: 2,
732
+ gutter: 10
733
+ }, {
734
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
735
+ span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
736
+ }, {
737
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).modificationHeight), 1
738
+ /* TEXT */
739
+ )]),
740
+ _: 1
741
+ /* STABLE */
742
+
743
+ }, 8
744
+ /* PROPS */
745
+ , ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
746
+ span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 11 : 8
747
+ }, {
748
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_slider, {
749
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).modificationHeight,
750
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).modificationHeight = $event),
751
+ step: 100,
752
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minModificationHeight,
753
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxModificationHeight,
754
+ onChange: _cache[8] || (_cache[8] = $event => changeModificationHeight()),
755
+ onClick: _cache[9] || (_cache[9] = $event => changeModificationHeight())
756
+ }, null, 8
757
+ /* PROPS */
758
+ , ["modelValue", "min", "max"])]),
759
+ _: 1
760
+ /* STABLE */
761
+
762
+ }, 8
763
+ /* PROPS */
764
+ , ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
765
+ span: 6,
766
+ style: {
767
+ "text-align": "end"
768
+ }
769
+ }, {
770
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_input_number, {
771
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).modificationHeight,
772
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).modificationHeight = $event),
773
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minModificationHeight,
774
+ step: 100,
775
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxModificationHeight,
776
+ "controls-position": "right",
777
+ onInput: _cache[11] || (_cache[11] = $event => changeModificationHeight())
778
+ }, null, 8
779
+ /* PROPS */
780
+ , ["modelValue", "min", "max"])]),
781
+ _: 1
782
+ /* STABLE */
783
+
784
+ })]),
785
+ _: 1
786
+ /* STABLE */
787
+
704
788
  })) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
705
789
  class: "kq3d-terrain-operation-analysis-tip"
706
790
  }, {
@@ -710,8 +794,8 @@ const __default__ = {
710
794
  _: 1
711
795
  /* STABLE */
712
796
 
713
- }), (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, {
714
- onClick: _cache[7] || (_cache[7] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
797
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_4, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
798
+ onClick: _cache[12] || (_cache[12] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
715
799
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
716
800
  type: "primary"
717
801
  }, {
@@ -724,7 +808,7 @@ const __default__ = {
724
808
  }, 8
725
809
  /* PROPS */
726
810
  , ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
727
- onClick: _cache[8] || (_cache[8] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
811
+ onClick: _cache[13] || (_cache[13] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
728
812
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
729
813
  }, {
730
814
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear), 1