@kq_npm/client3d_webgl_vue 3.2.6-beta → 3.2.8-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
@@ -471,7 +471,6 @@ __webpack_require__.d(__webpack_exports__, {
471
471
  "Kq3dBoxClip": function() { return /* reexport */ BoxClip; },
472
472
  "Kq3dBoxClipViewModel": function() { return /* reexport */ BoxClipViewModel; },
473
473
  "Kq3dClientPrint": function() { return /* reexport */ ClientPrint; },
474
- "Kq3dClientPrintViewModel": function() { return /* reexport */ ClientPrintViewModel; },
475
474
  "Kq3dCompareMap": function() { return /* reexport */ CompareMap; },
476
475
  "Kq3dCompareMapViewModel": function() { return /* reexport */ CompareMapViewModel; },
477
476
  "Kq3dCompass": function() { return /* reexport */ Compass; },
@@ -3809,21 +3808,6 @@ Compass.install = (Vue, opts) => {
3809
3808
  };
3810
3809
 
3811
3810
 
3812
- ;// CONCATENATED MODULE: ./src/webgl/clientPrint/ClientPrintViewModel.js
3813
- /**
3814
- * @class ClientPrintViewModel
3815
- * @classdesc 客户端打印
3816
- */
3817
- class ClientPrintViewModel {
3818
- constructor() {}
3819
- /**
3820
- * 销毁执行方法。
3821
- */
3822
-
3823
-
3824
- destroy() {}
3825
-
3826
- }
3827
3811
  ;// CONCATENATED MODULE: external "html2canvas"
3828
3812
  var external_html2canvas_namespaceObject = require("html2canvas");
3829
3813
  var external_html2canvas_default = /*#__PURE__*/__webpack_require__.n(external_html2canvas_namespaceObject);
@@ -3968,28 +3952,15 @@ const _hoisted_41 = {
3968
3952
  class: "baseImage"
3969
3953
  };
3970
3954
  const _hoisted_42 = ["src"];
3971
-
3972
- const _hoisted_43 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", {
3973
- style: {
3974
- "width": "100%",
3975
- "height": "100%",
3976
- "position": "absolute",
3977
- "index": "1000"
3978
- }
3979
- }, null, -1
3980
- /* HOISTED */
3981
- );
3982
-
3983
- const _hoisted_44 = ["src"];
3984
- const _hoisted_45 = ["id"];
3985
- const _hoisted_46 = ["onClick"];
3986
- const _hoisted_47 = {
3955
+ const _hoisted_43 = ["id"];
3956
+ const _hoisted_44 = ["onClick"];
3957
+ const _hoisted_45 = {
3987
3958
  class: "kq3d-client-print-infomationContainer"
3988
3959
  };
3989
- const _hoisted_48 = {
3960
+ const _hoisted_46 = {
3990
3961
  class: "kq3d-client-print-systemTime"
3991
3962
  };
3992
- const _hoisted_49 = {
3963
+ const _hoisted_47 = {
3993
3964
  class: "kq3d-client-print-companyName"
3994
3965
  };
3995
3966
 
@@ -3997,8 +3968,6 @@ const _hoisted_49 = {
3997
3968
 
3998
3969
 
3999
3970
 
4000
-
4001
-
4002
3971
  const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
4003
3972
  name: "Kq3dClientPrint"
4004
3973
  };
@@ -4040,6 +4009,10 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
4040
4009
  scenceInfo: Object,
4041
4010
  // 默认显示的图层组名称
4042
4011
  defaultShowLayerNames: Array,
4012
+
4013
+ /**
4014
+ * showToolButtons - 是否显示工具栏按钮
4015
+ */
4043
4016
  showToolButtons: {
4044
4017
  type: Boolean,
4045
4018
  default: true
@@ -4059,8 +4032,7 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
4059
4032
  setup(__props, {
4060
4033
  expose
4061
4034
  }) {
4062
- const props = __props;
4063
- let viewModel = null; // 标题的数据
4035
+ const props = __props; // 标题的数据
4064
4036
 
4065
4037
  let setTitleDataform = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({
4066
4038
  style: {
@@ -4199,9 +4171,7 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
4199
4171
  let papAnchor = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)("纵向"); // 默认
4200
4172
  // 图片格式
4201
4173
 
4202
- let imageType = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)("png"); //地图对象
4203
-
4204
- let map2_ref = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(); //图例对象
4174
+ let imageType = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)("png"); //图例对象
4205
4175
 
4206
4176
  let lengend_ref = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(); // 图例窗口显示与隐藏
4207
4177
 
@@ -4223,7 +4193,8 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
4223
4193
  let systemTime = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(""); // 公司名
4224
4194
 
4225
4195
  let companyName = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)("");
4226
- let printState = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false); // 打印对象
4196
+ let printState = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
4197
+ let printViewer = null; // 打印对象
4227
4198
 
4228
4199
  let printObj = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({
4229
4200
  id: "printMap",
@@ -4246,7 +4217,6 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
4246
4217
 
4247
4218
  global_event_default().setDefaultMapInfo("scencePrint", "cesium", null);
4248
4219
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
4249
- viewModel = new ClientPrintViewModel();
4250
4220
  setTitleDataform.value.data.title = props.printTitle;
4251
4221
  companyName.value = props.companyName;
4252
4222
  sizelist.value = [];
@@ -4262,6 +4232,7 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
4262
4232
  initControl();
4263
4233
  global_event_default().getWebMapByMapTarget("scencePrint", scenceView => {
4264
4234
  if (scenceView && scenceView._viewer) {
4235
+ printViewer = scenceView._viewer;
4265
4236
  cameraToImage = new Cesium.Kq3dCanvasToImage(scenceView._viewer._container, {
4266
4237
  viewer: scenceView._viewer,
4267
4238
  canvas: scenceView._viewer.scene.canvas
@@ -4271,7 +4242,6 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
4271
4242
  });
4272
4243
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onBeforeUnmount)(() => {
4273
4244
  destroy();
4274
- viewModel = null;
4275
4245
  });
4276
4246
  /**
4277
4247
  * 获取当前时间
@@ -4326,6 +4296,10 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
4326
4296
 
4327
4297
  return yearCNStr + nonthCNStr + dayCNStr;
4328
4298
  }
4299
+
4300
+ function changStatusBar() {
4301
+ if (printViewer) printViewer.statusBar.show = scalesShow.value;
4302
+ }
4329
4303
  /**
4330
4304
  * 显示切换
4331
4305
  * @param {string} type
@@ -4529,7 +4503,6 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
4529
4503
 
4530
4504
  function moveWin(event) {
4531
4505
  event = event || window.event;
4532
- map2_ref.value.getWebMap().map.dragging.disable();
4533
4506
  var x = event.pageX;
4534
4507
  var y = event.pageY;
4535
4508
 
@@ -4861,7 +4834,6 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
4861
4834
  labelValue: ""
4862
4835
  }
4863
4836
  };
4864
- viewModel.destroy();
4865
4837
  } // 抛出方法 外部调用
4866
4838
 
4867
4839
 
@@ -4903,6 +4875,8 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
4903
4875
 
4904
4876
  const _component_kq_legend = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-legend");
4905
4877
 
4878
+ const _component_kq3d_compass = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq3d-compass");
4879
+
4906
4880
  const _component_kq_scence_view = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-scence-view");
4907
4881
 
4908
4882
  const _component_kq_scrollbar = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-scrollbar");
@@ -5040,7 +5014,8 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
5040
5014
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_checkbox, {
5041
5015
  class: "btnStyle",
5042
5016
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(scalesShow),
5043
- "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.isRef)(scalesShow) ? scalesShow.value = $event : scalesShow = $event)
5017
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.isRef)(scalesShow) ? scalesShow.value = $event : scalesShow = $event),
5018
+ onChange: changStatusBar
5044
5019
  }, {
5045
5020
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [_hoisted_9]),
5046
5021
  _: 1
@@ -5835,12 +5810,7 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
5835
5810
  onMouseover: setdragCursor,
5836
5811
  onMousedown: dragTl,
5837
5812
  id: "divcompassDiv"
5838
- }, [_hoisted_43, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("img", {
5839
- class: "kq3d-client-print-compassImgStyle",
5840
- src: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(const_image_namespaceObject.COMMPASS_URL)
5841
- }, null, 8
5842
- /* PROPS */
5843
- , _hoisted_44)], 544
5813
+ }, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq3d_compass)], 544
5844
5814
  /* HYDRATE_EVENTS, NEED_PATCH */
5845
5815
  ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(compassShow)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)(" 文本标注 "), ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(setLabelData).value, item => {
5846
5816
  return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)(((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("div", {
@@ -5876,9 +5846,9 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
5876
5846
 
5877
5847
  })], 8
5878
5848
  /* PROPS */
5879
- , _hoisted_46)], 40
5849
+ , _hoisted_44)], 40
5880
5850
  /* PROPS, HYDRATE_EVENTS */
5881
- , _hoisted_45)), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, item.data.isShow]]);
5851
+ , _hoisted_43)), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, item.data.isShow]]);
5882
5852
  }), 128
5883
5853
  /* KEYED_FRAGMENT */
5884
5854
  ))]),
@@ -5889,9 +5859,9 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
5889
5859
  /* PROPS */
5890
5860
  , ["options", "service", "scenceInfo", "showToolButtons", "defaultShowLayerNames", "toolButtonsPosition", "showLogo"])], 512
5891
5861
  /* NEED_PATCH */
5892
- ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_47, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_48, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("span", null, "日期:" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(systemTime)), 1
5862
+ ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_45, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_46, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("span", null, "日期:" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(systemTime)), 1
5893
5863
  /* TEXT */
5894
- )]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_49, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("span", null, "公司:" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(companyName)), 1
5864
+ )]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_47, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("span", null, "公司:" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(companyName)), 1
5895
5865
  /* TEXT */
5896
5866
  )])])], 512
5897
5867
  /* NEED_PATCH */
@@ -5921,7 +5891,6 @@ const ClientPrint_exports_ = ClientPrintvue_type_script_setup_true_lang_js;
5921
5891
 
5922
5892
 
5923
5893
 
5924
-
5925
5894
  ClientPrint.install = (Vue, opts) => {
5926
5895
  init_js_default()(Vue, opts);
5927
5896
  Vue.component(ClientPrint.name, ClientPrint);
@@ -8112,6 +8081,7 @@ var external_xe_utils_default = /*#__PURE__*/__webpack_require__.n(external_xe_u
8112
8081
  ;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/GPUSpatialQueryViewModel.js
8113
8082
 
8114
8083
  //GPU空间查询逻辑类
8084
+
8115
8085
  class GPUSpatialQueryViewModel {
8116
8086
  //GPU查询三维对象
8117
8087
  //绘制管理对象
@@ -8221,7 +8191,10 @@ class GPUSpatialQueryViewModel {
8221
8191
  image: null
8222
8192
  });
8223
8193
  } else {
8224
- throw "请添加模型后分析!";
8194
+ message({
8195
+ message: "请添加模型后分析!",
8196
+ type: "warning"
8197
+ });
8225
8198
  }
8226
8199
  } // 开始查询
8227
8200
 
@@ -9059,6 +9032,7 @@ GPUSpatialQuery.install = (Vue, opts) => {
9059
9032
  ;// CONCATENATED MODULE: ./src/webgl/modelselect/ModelSelectViewModel.js
9060
9033
 
9061
9034
  //模型拾取逻辑类
9035
+
9062
9036
  class ModelSelectViewModel {
9063
9037
  //三维viewer对象
9064
9038
  //屏幕空间事件处理程序三维对象
@@ -9145,7 +9119,10 @@ class ModelSelectViewModel {
9145
9119
  this.setCursor("crosshair");
9146
9120
  this._isPick = true;
9147
9121
  } else {
9148
- throw "请添加模型后拾取!";
9122
+ message({
9123
+ message: "请添加模型后拾取!",
9124
+ type: "warning"
9125
+ });
9149
9126
  }
9150
9127
  }
9151
9128
 
@@ -10732,6 +10709,7 @@ ViewshedAnalysis.install = (Vue, opts) => {
10732
10709
  ;// CONCATENATED MODULE: ./src/webgl/shadowanalysis/ShadowAnalysisViewModel.js
10733
10710
 
10734
10711
  // 分析逻辑类
10712
+
10735
10713
  class ShadowAnalysisViewModel {
10736
10714
  //阴影分析三维对象
10737
10715
  constructor(scenceView, viewModel) {
@@ -10814,7 +10792,10 @@ class ShadowAnalysisViewModel {
10814
10792
  clampToGround: true
10815
10793
  });
10816
10794
  } else {
10817
- throw "请添加模型后分析!";
10795
+ message({
10796
+ message: "请添加模型后分析!",
10797
+ type: "warning"
10798
+ });
10818
10799
  }
10819
10800
  } // 阴影分析
10820
10801
 
@@ -12658,6 +12639,7 @@ ProfileAnalysis.install = (Vue, opts) => {
12658
12639
  ;// CONCATENATED MODULE: ./src/webgl/skylineanalysis/SkylineAnalysisViewModel.js
12659
12640
 
12660
12641
  //天际线分析逻辑类
12642
+
12661
12643
  class SkylineAnalysisViewModel {
12662
12644
  /**
12663
12645
  * 天际线分析逻辑类
@@ -12736,7 +12718,10 @@ class SkylineAnalysisViewModel {
12736
12718
 
12737
12719
  this.setSkyline2D();
12738
12720
  } else {
12739
- throw "请添加模型后提取!";
12721
+ message({
12722
+ message: "请添加模型后提取!",
12723
+ type: "warning"
12724
+ });
12740
12725
  }
12741
12726
  }
12742
12727
  /**
@@ -12768,7 +12753,10 @@ class SkylineAnalysisViewModel {
12768
12753
 
12769
12754
  this._skylineAnalysis.viewer.camera.moveBackward(1);
12770
12755
  } else {
12771
- throw "请添加模型后绘制!";
12756
+ message({
12757
+ message: "请添加模型后提取!",
12758
+ type: "warning"
12759
+ });
12772
12760
  }
12773
12761
  }
12774
12762
  /**
@@ -13459,6 +13447,7 @@ SkylineAnalysis.install = (Vue, opts) => {
13459
13447
  ;// CONCATENATED MODULE: ./src/webgl/terrainoperation/TerrainOperationViewModel.js
13460
13448
 
13461
13449
  //地形淹没分析逻辑类
13450
+
13462
13451
  class TerrainOperationViewModel {
13463
13452
  //地形开挖三维对象
13464
13453
  //地形修改三维对象
@@ -13596,13 +13585,23 @@ class TerrainOperationViewModel {
13596
13585
  start() {
13597
13586
  // 判断是否添加了地形
13598
13587
  if (this._globaOptions.viewer.terrainProvider.availability) {
13599
- this.clear();
13588
+ if (this._globaOptions.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
13589
+ this.clear();
13600
13590
 
13601
- this._drawManager.startDraw("polygon", {
13602
- clampToGround: true
13603
- });
13591
+ this._drawManager.startDraw("polygon", {
13592
+ clampToGround: true
13593
+ });
13594
+ } else {
13595
+ message({
13596
+ message: "只支持STK类型的地形分析!",
13597
+ type: "warning"
13598
+ });
13599
+ }
13604
13600
  } else {
13605
- throw "请加载地形后分析!";
13601
+ message({
13602
+ message: "请加载地形后分析!",
13603
+ type: "warning"
13604
+ });
13606
13605
  }
13607
13606
  } //改变分析类型
13608
13607
 
@@ -14002,6 +14001,7 @@ TerrainOperation.install = (Vue, opts) => {
14002
14001
  ;// CONCATENATED MODULE: ./src/webgl/excavatefillanalysis/ExcavateFillAnalysisViewModel.js
14003
14002
 
14004
14003
  //填挖方分析逻辑类
14004
+
14005
14005
  class ExcavateFillAnalysisViewModel {
14006
14006
  //填挖方分析三维对象
14007
14007
  //绘制管理对象
@@ -14062,11 +14062,21 @@ class ExcavateFillAnalysisViewModel {
14062
14062
  start() {
14063
14063
  // 判断是否添加了地形
14064
14064
  if (this._options.viewer.terrainProvider.availability) {
14065
- this._drawManager.startDraw("polygon", {
14066
- clampToGround: true
14067
- });
14065
+ if (this._options.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
14066
+ this._drawManager.startDraw("polygon", {
14067
+ clampToGround: true
14068
+ });
14069
+ } else {
14070
+ message({
14071
+ message: "只支持STK类型的地形分析!",
14072
+ type: "warning"
14073
+ });
14074
+ }
14068
14075
  } else {
14069
- throw "请加载地形后分析!";
14076
+ message({
14077
+ message: "请加载地形后分析!",
14078
+ type: "warning"
14079
+ });
14070
14080
  }
14071
14081
  } //清除全部结果
14072
14082
 
@@ -14607,6 +14617,7 @@ ExcavateFillAnalysis.install = (Vue, opts) => {
14607
14617
 
14608
14618
  //地形淹没分析逻辑类
14609
14619
 
14620
+
14610
14621
  class FloodAnalysisViewModel {
14611
14622
  //地形淹没三维对象
14612
14623
  //模型淹没三维对象
@@ -14709,11 +14720,21 @@ class FloodAnalysisViewModel {
14709
14720
  // 判断是否添加了地形
14710
14721
  if (this._mode === 0) {
14711
14722
  if (this._floodModelAnalysis.viewer.terrainProvider.availability) {
14712
- this.clear();
14723
+ if (this._floodModelAnalysis.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
14724
+ this.clear();
14713
14725
 
14714
- this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
14726
+ this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
14727
+ } else {
14728
+ message({
14729
+ message: "只支持STK类型的地形分析!",
14730
+ type: "warning"
14731
+ });
14732
+ }
14715
14733
  } else {
14716
- throw "请加载地形后分析!";
14734
+ message({
14735
+ message: "请加载地形后分析!",
14736
+ type: "warning"
14737
+ });
14717
14738
  }
14718
14739
  } else if (this._mode === 1) {
14719
14740
  var modelFlag = false;
@@ -14731,7 +14752,10 @@ class FloodAnalysisViewModel {
14731
14752
 
14732
14753
  this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
14733
14754
  } else {
14734
- throw "请加载模型后分析!";
14755
+ message({
14756
+ message: "请添加模型后分析!",
14757
+ type: "warning"
14758
+ });
14735
14759
  }
14736
14760
  }
14737
14761
  } //清除全部结果
@@ -15528,6 +15552,7 @@ FloodAnalysis.install = (Vue, opts) => {
15528
15552
 
15529
15553
  // 分析逻辑类
15530
15554
 
15555
+
15531
15556
  class SlopeAnalysisViewModel {
15532
15557
  // 坡度坡向三维对象
15533
15558
  constructor(scenceView, viewModel) {
@@ -15649,26 +15674,36 @@ class SlopeAnalysisViewModel {
15649
15674
  start() {
15650
15675
  // 判断是否添加了地形
15651
15676
  if (this._globaOptions.viewModel.viewer.terrainProvider.availability) {
15652
- if (this._globaOptions.viewModel.fillStyle === "slopeFilter") {
15653
- // 坡度过滤不需要进行绘制
15654
- this._slopeAnalysis = new Cesium.Kq3dSlope({
15655
- viewer: this._globaOptions.viewer,
15656
- positions: this._defaultPositions,
15657
- isFilter: true,
15658
- minSlope: this._globaOptions.viewModel.minSlope,
15659
- maxSlope: this._globaOptions.viewModel.maxSlope,
15660
- color: Cesium.Color.fromCssColorString(this._globaOptions.viewModel.slopeColorText).withAlpha(Number(this._globaOptions.viewModel.slopeColorAlpha))
15661
- });
15662
- } else {
15663
- // this.clear();
15664
- if (this._globaOptions._drawManager) {
15665
- this._globaOptions._drawManager.startDraw("polygon", {
15666
- clampToGround: true
15677
+ if (this._globaOptions.viewModel.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
15678
+ if (this._globaOptions.viewModel.fillStyle === "slopeFilter") {
15679
+ // 坡度过滤不需要进行绘制
15680
+ this._slopeAnalysis = new Cesium.Kq3dSlope({
15681
+ viewer: this._globaOptions.viewer,
15682
+ positions: this._defaultPositions,
15683
+ isFilter: true,
15684
+ minSlope: this._globaOptions.viewModel.minSlope,
15685
+ maxSlope: this._globaOptions.viewModel.maxSlope,
15686
+ color: Cesium.Color.fromCssColorString(this._globaOptions.viewModel.slopeColorText).withAlpha(Number(this._globaOptions.viewModel.slopeColorAlpha))
15667
15687
  });
15688
+ } else {
15689
+ // this.clear();
15690
+ if (this._globaOptions._drawManager) {
15691
+ this._globaOptions._drawManager.startDraw("polygon", {
15692
+ clampToGround: true
15693
+ });
15694
+ }
15668
15695
  }
15696
+ } else {
15697
+ message({
15698
+ message: "只支持STK类型的地形分析!",
15699
+ type: "warning"
15700
+ });
15669
15701
  }
15670
15702
  } else {
15671
- throw "请加载地形后分析!";
15703
+ message({
15704
+ message: "请加载地形后分析!",
15705
+ type: "warning"
15706
+ });
15672
15707
  }
15673
15708
  } //修改填充样式
15674
15709
 
@@ -16602,6 +16637,7 @@ SlopeAnalysis.install = (Vue, opts) => {
16602
16637
  /**
16603
16638
  * 坡向逻辑类
16604
16639
  **/
16640
+
16605
16641
  class AspectAnalysisViewModel {
16606
16642
  // 坡向三维对象
16607
16643
  constructor(scenceView, aspect) {
@@ -16642,15 +16678,25 @@ class AspectAnalysisViewModel {
16642
16678
  start() {
16643
16679
  // 判断是否添加了地形
16644
16680
  if (this._globaOptions.viewer.terrainProvider.availability) {
16645
- if (this._globaOptions._drawManager) {
16646
- this.clear();
16681
+ if (this._globaOptions.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
16682
+ if (this._globaOptions._drawManager) {
16683
+ this.clear();
16647
16684
 
16648
- this._globaOptions._drawManager.startDraw("polygon", {
16649
- clampToGround: true
16685
+ this._globaOptions._drawManager.startDraw("polygon", {
16686
+ clampToGround: true
16687
+ });
16688
+ }
16689
+ } else {
16690
+ message({
16691
+ message: "只支持STK类型的地形分析!",
16692
+ type: "warning"
16650
16693
  });
16651
16694
  }
16652
16695
  } else {
16653
- throw "请加载地形后分析!";
16696
+ message({
16697
+ message: "请加载地形后分析!",
16698
+ type: "warning"
16699
+ });
16654
16700
  }
16655
16701
  } // 设置采样间隔
16656
16702
 
@@ -17114,6 +17160,7 @@ AspectAnalysis.install = (Vue, opts) => {
17114
17160
 
17115
17161
  //等值线分析逻辑类
17116
17162
 
17163
+
17117
17164
  class IsolineAnalysisViewModel {
17118
17165
  //等值线分析三维对象
17119
17166
  //等高面高度区间
@@ -17330,7 +17377,10 @@ class IsolineAnalysisViewModel {
17330
17377
  clampToGround: true
17331
17378
  });
17332
17379
  } else {
17333
- throw "请加载地形后分析!";
17380
+ message({
17381
+ message: "请添加模型后分析!",
17382
+ type: "warning"
17383
+ });
17334
17384
  }
17335
17385
  } //清除全部结果
17336
17386
 
@@ -19720,6 +19770,7 @@ IsolineAnalysis.install = (Vue, opts) => {
19720
19770
  ;// CONCATENATED MODULE: ./src/webgl/boxclip/BoxClipViewModel.js
19721
19771
 
19722
19772
  //Box裁剪逻辑类
19773
+
19723
19774
  class BoxClipViewModel {
19724
19775
  //三维viewer对象
19725
19776
  //Box裁剪存储参数对象
@@ -19818,7 +19869,10 @@ class BoxClipViewModel {
19818
19869
  image: null
19819
19870
  });
19820
19871
  } else {
19821
- throw "请添加模型后裁剪!";
19872
+ message({
19873
+ message: "请添加模型后裁剪!",
19874
+ type: "warning"
19875
+ });
19822
19876
  }
19823
19877
  } //清除全部
19824
19878
 
@@ -20813,6 +20867,7 @@ BoxClip.install = (Vue, opts) => {
20813
20867
  ;// CONCATENATED MODULE: ./src/webgl/planeclip/PlaneClipViewModel.js
20814
20868
 
20815
20869
  //平面裁剪逻辑类
20870
+
20816
20871
  class PlaneClipViewModel {
20817
20872
  //三维viewer对象
20818
20873
  //平面裁剪存储参数对象
@@ -20915,7 +20970,10 @@ class PlaneClipViewModel {
20915
20970
  image: null
20916
20971
  });
20917
20972
  } else {
20918
- throw "请添加模型后裁剪!";
20973
+ message({
20974
+ message: "请添加模型后裁剪!",
20975
+ type: "warning"
20976
+ });
20919
20977
  }
20920
20978
  } //清除全部
20921
20979
 
@@ -27099,7 +27157,6 @@ StatusBar.install = (Vue, opts) => {
27099
27157
 
27100
27158
  // 客户端打印
27101
27159
 
27102
-
27103
27160
  // 在线地形
27104
27161
 
27105
27162
 
@@ -2,6 +2,33 @@
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
+ /***/ 909:
6
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7
+
8
+
9
+ // EXPORTS
10
+ __webpack_require__.d(__webpack_exports__, {
11
+ "Z": function() { return /* binding */ message; }
12
+ });
13
+
14
+ ;// CONCATENATED MODULE: external "element-plus/es"
15
+ var es_namespaceObject = require("element-plus/es");
16
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
17
+ var init_js_ = __webpack_require__(5406);
18
+ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
19
+ ;// CONCATENATED MODULE: ./src/common/_ui/message/index.js
20
+
21
+
22
+
23
+ es_namespaceObject.ElMessage.install = (Vue, opts) => {
24
+ init_js_default()(Vue, opts);
25
+ Vue.component("KqMessage", es_namespaceObject.ElMessage);
26
+ };
27
+
28
+ /* harmony default export */ var message = (es_namespaceObject.ElMessage);
29
+
30
+ /***/ }),
31
+
5
32
  /***/ 348:
6
33
  /***/ (function(module) {
7
34
 
@@ -155,10 +182,13 @@ var gis_utils_ = __webpack_require__(826);
155
182
  var defineProperty = __webpack_require__(8270);
156
183
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
157
184
  var const_image_ = __webpack_require__(9702);
185
+ // EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
186
+ var message = __webpack_require__(909);
158
187
  ;// CONCATENATED MODULE: ./src/webgl/isolineanalysis/IsolineAnalysisViewModel.js
159
188
 
160
189
  //等值线分析逻辑类
161
190
 
191
+
162
192
  class IsolineAnalysisViewModel {
163
193
  //等值线分析三维对象
164
194
  //等高面高度区间
@@ -375,7 +405,10 @@ class IsolineAnalysisViewModel {
375
405
  clampToGround: true
376
406
  });
377
407
  } else {
378
- throw "请加载地形后分析!";
408
+ (0,message/* default */.Z)({
409
+ message: "请添加模型后分析!",
410
+ type: "warning"
411
+ });
379
412
  }
380
413
  } //清除全部结果
381
414