@kq_npm/client3d_webgl_vue 3.2.6-beta → 3.2.7-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
@@ -3810,12 +3810,26 @@ Compass.install = (Vue, opts) => {
3810
3810
 
3811
3811
 
3812
3812
  ;// CONCATENATED MODULE: ./src/webgl/clientPrint/ClientPrintViewModel.js
3813
+
3814
+
3813
3815
  /**
3814
3816
  * @class ClientPrintViewModel
3815
3817
  * @classdesc 客户端打印
3816
3818
  */
3817
3819
  class ClientPrintViewModel {
3818
- constructor() {}
3820
+ constructor(scenceView) {
3821
+ _defineProperty(this, "_viewer", null);
3822
+
3823
+ this._viewer = scenceView._viewer;
3824
+ }
3825
+ /**
3826
+ * 改变状态栏方法
3827
+ */
3828
+
3829
+
3830
+ changStatusBar(val) {
3831
+ this._viewer.statusBar.show = val;
3832
+ }
3819
3833
  /**
3820
3834
  * 销毁执行方法。
3821
3835
  */
@@ -4246,7 +4260,6 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
4246
4260
 
4247
4261
  global_event_default().setDefaultMapInfo("scencePrint", "cesium", null);
4248
4262
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
4249
- viewModel = new ClientPrintViewModel();
4250
4263
  setTitleDataform.value.data.title = props.printTitle;
4251
4264
  companyName.value = props.companyName;
4252
4265
  sizelist.value = [];
@@ -4262,6 +4275,7 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
4262
4275
  initControl();
4263
4276
  global_event_default().getWebMapByMapTarget("scencePrint", scenceView => {
4264
4277
  if (scenceView && scenceView._viewer) {
4278
+ viewModel = new ClientPrintViewModel(scenceView);
4265
4279
  cameraToImage = new Cesium.Kq3dCanvasToImage(scenceView._viewer._container, {
4266
4280
  viewer: scenceView._viewer,
4267
4281
  canvas: scenceView._viewer.scene.canvas
@@ -4326,6 +4340,10 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
4326
4340
 
4327
4341
  return yearCNStr + nonthCNStr + dayCNStr;
4328
4342
  }
4343
+
4344
+ function changStatusBar() {
4345
+ viewModel && viewModel.changStatusBar(scalesShow.value);
4346
+ }
4329
4347
  /**
4330
4348
  * 显示切换
4331
4349
  * @param {string} type
@@ -5040,7 +5058,8 @@ const ClientPrintvue_type_script_setup_true_lang_js_default_ = {
5040
5058
  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
5059
  class: "btnStyle",
5042
5060
  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)
5061
+ "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),
5062
+ onChange: changStatusBar
5044
5063
  }, {
5045
5064
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [_hoisted_9]),
5046
5065
  _: 1
@@ -8112,6 +8131,7 @@ var external_xe_utils_default = /*#__PURE__*/__webpack_require__.n(external_xe_u
8112
8131
  ;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/GPUSpatialQueryViewModel.js
8113
8132
 
8114
8133
  //GPU空间查询逻辑类
8134
+
8115
8135
  class GPUSpatialQueryViewModel {
8116
8136
  //GPU查询三维对象
8117
8137
  //绘制管理对象
@@ -8221,7 +8241,10 @@ class GPUSpatialQueryViewModel {
8221
8241
  image: null
8222
8242
  });
8223
8243
  } else {
8224
- throw "请添加模型后分析!";
8244
+ message({
8245
+ message: "请添加模型后分析!",
8246
+ type: "warning"
8247
+ });
8225
8248
  }
8226
8249
  } // 开始查询
8227
8250
 
@@ -9059,6 +9082,7 @@ GPUSpatialQuery.install = (Vue, opts) => {
9059
9082
  ;// CONCATENATED MODULE: ./src/webgl/modelselect/ModelSelectViewModel.js
9060
9083
 
9061
9084
  //模型拾取逻辑类
9085
+
9062
9086
  class ModelSelectViewModel {
9063
9087
  //三维viewer对象
9064
9088
  //屏幕空间事件处理程序三维对象
@@ -9145,7 +9169,10 @@ class ModelSelectViewModel {
9145
9169
  this.setCursor("crosshair");
9146
9170
  this._isPick = true;
9147
9171
  } else {
9148
- throw "请添加模型后拾取!";
9172
+ message({
9173
+ message: "请添加模型后拾取!",
9174
+ type: "warning"
9175
+ });
9149
9176
  }
9150
9177
  }
9151
9178
 
@@ -10732,6 +10759,7 @@ ViewshedAnalysis.install = (Vue, opts) => {
10732
10759
  ;// CONCATENATED MODULE: ./src/webgl/shadowanalysis/ShadowAnalysisViewModel.js
10733
10760
 
10734
10761
  // 分析逻辑类
10762
+
10735
10763
  class ShadowAnalysisViewModel {
10736
10764
  //阴影分析三维对象
10737
10765
  constructor(scenceView, viewModel) {
@@ -10814,7 +10842,10 @@ class ShadowAnalysisViewModel {
10814
10842
  clampToGround: true
10815
10843
  });
10816
10844
  } else {
10817
- throw "请添加模型后分析!";
10845
+ message({
10846
+ message: "请添加模型后分析!",
10847
+ type: "warning"
10848
+ });
10818
10849
  }
10819
10850
  } // 阴影分析
10820
10851
 
@@ -12658,6 +12689,7 @@ ProfileAnalysis.install = (Vue, opts) => {
12658
12689
  ;// CONCATENATED MODULE: ./src/webgl/skylineanalysis/SkylineAnalysisViewModel.js
12659
12690
 
12660
12691
  //天际线分析逻辑类
12692
+
12661
12693
  class SkylineAnalysisViewModel {
12662
12694
  /**
12663
12695
  * 天际线分析逻辑类
@@ -12736,7 +12768,10 @@ class SkylineAnalysisViewModel {
12736
12768
 
12737
12769
  this.setSkyline2D();
12738
12770
  } else {
12739
- throw "请添加模型后提取!";
12771
+ message({
12772
+ message: "请添加模型后提取!",
12773
+ type: "warning"
12774
+ });
12740
12775
  }
12741
12776
  }
12742
12777
  /**
@@ -12768,7 +12803,10 @@ class SkylineAnalysisViewModel {
12768
12803
 
12769
12804
  this._skylineAnalysis.viewer.camera.moveBackward(1);
12770
12805
  } else {
12771
- throw "请添加模型后绘制!";
12806
+ message({
12807
+ message: "请添加模型后提取!",
12808
+ type: "warning"
12809
+ });
12772
12810
  }
12773
12811
  }
12774
12812
  /**
@@ -13459,6 +13497,7 @@ SkylineAnalysis.install = (Vue, opts) => {
13459
13497
  ;// CONCATENATED MODULE: ./src/webgl/terrainoperation/TerrainOperationViewModel.js
13460
13498
 
13461
13499
  //地形淹没分析逻辑类
13500
+
13462
13501
  class TerrainOperationViewModel {
13463
13502
  //地形开挖三维对象
13464
13503
  //地形修改三维对象
@@ -13596,13 +13635,23 @@ class TerrainOperationViewModel {
13596
13635
  start() {
13597
13636
  // 判断是否添加了地形
13598
13637
  if (this._globaOptions.viewer.terrainProvider.availability) {
13599
- this.clear();
13638
+ if (this._globaOptions.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
13639
+ this.clear();
13600
13640
 
13601
- this._drawManager.startDraw("polygon", {
13602
- clampToGround: true
13603
- });
13641
+ this._drawManager.startDraw("polygon", {
13642
+ clampToGround: true
13643
+ });
13644
+ } else {
13645
+ message({
13646
+ message: "只支持STK类型的地形分析!",
13647
+ type: "warning"
13648
+ });
13649
+ }
13604
13650
  } else {
13605
- throw "请加载地形后分析!";
13651
+ message({
13652
+ message: "请加载地形后分析!",
13653
+ type: "warning"
13654
+ });
13606
13655
  }
13607
13656
  } //改变分析类型
13608
13657
 
@@ -14002,6 +14051,7 @@ TerrainOperation.install = (Vue, opts) => {
14002
14051
  ;// CONCATENATED MODULE: ./src/webgl/excavatefillanalysis/ExcavateFillAnalysisViewModel.js
14003
14052
 
14004
14053
  //填挖方分析逻辑类
14054
+
14005
14055
  class ExcavateFillAnalysisViewModel {
14006
14056
  //填挖方分析三维对象
14007
14057
  //绘制管理对象
@@ -14062,11 +14112,21 @@ class ExcavateFillAnalysisViewModel {
14062
14112
  start() {
14063
14113
  // 判断是否添加了地形
14064
14114
  if (this._options.viewer.terrainProvider.availability) {
14065
- this._drawManager.startDraw("polygon", {
14066
- clampToGround: true
14067
- });
14115
+ if (this._options.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
14116
+ this._drawManager.startDraw("polygon", {
14117
+ clampToGround: true
14118
+ });
14119
+ } else {
14120
+ message({
14121
+ message: "只支持STK类型的地形分析!",
14122
+ type: "warning"
14123
+ });
14124
+ }
14068
14125
  } else {
14069
- throw "请加载地形后分析!";
14126
+ message({
14127
+ message: "请加载地形后分析!",
14128
+ type: "warning"
14129
+ });
14070
14130
  }
14071
14131
  } //清除全部结果
14072
14132
 
@@ -14607,6 +14667,7 @@ ExcavateFillAnalysis.install = (Vue, opts) => {
14607
14667
 
14608
14668
  //地形淹没分析逻辑类
14609
14669
 
14670
+
14610
14671
  class FloodAnalysisViewModel {
14611
14672
  //地形淹没三维对象
14612
14673
  //模型淹没三维对象
@@ -14709,11 +14770,21 @@ class FloodAnalysisViewModel {
14709
14770
  // 判断是否添加了地形
14710
14771
  if (this._mode === 0) {
14711
14772
  if (this._floodModelAnalysis.viewer.terrainProvider.availability) {
14712
- this.clear();
14773
+ if (this._floodModelAnalysis.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
14774
+ this.clear();
14713
14775
 
14714
- this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
14776
+ this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
14777
+ } else {
14778
+ message({
14779
+ message: "只支持STK类型的地形分析!",
14780
+ type: "warning"
14781
+ });
14782
+ }
14715
14783
  } else {
14716
- throw "请加载地形后分析!";
14784
+ message({
14785
+ message: "请加载地形后分析!",
14786
+ type: "warning"
14787
+ });
14717
14788
  }
14718
14789
  } else if (this._mode === 1) {
14719
14790
  var modelFlag = false;
@@ -14731,7 +14802,10 @@ class FloodAnalysisViewModel {
14731
14802
 
14732
14803
  this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
14733
14804
  } else {
14734
- throw "请加载模型后分析!";
14805
+ message({
14806
+ message: "请添加模型后分析!",
14807
+ type: "warning"
14808
+ });
14735
14809
  }
14736
14810
  }
14737
14811
  } //清除全部结果
@@ -15528,6 +15602,7 @@ FloodAnalysis.install = (Vue, opts) => {
15528
15602
 
15529
15603
  // 分析逻辑类
15530
15604
 
15605
+
15531
15606
  class SlopeAnalysisViewModel {
15532
15607
  // 坡度坡向三维对象
15533
15608
  constructor(scenceView, viewModel) {
@@ -15649,26 +15724,36 @@ class SlopeAnalysisViewModel {
15649
15724
  start() {
15650
15725
  // 判断是否添加了地形
15651
15726
  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
15727
+ if (this._globaOptions.viewModel.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
15728
+ if (this._globaOptions.viewModel.fillStyle === "slopeFilter") {
15729
+ // 坡度过滤不需要进行绘制
15730
+ this._slopeAnalysis = new Cesium.Kq3dSlope({
15731
+ viewer: this._globaOptions.viewer,
15732
+ positions: this._defaultPositions,
15733
+ isFilter: true,
15734
+ minSlope: this._globaOptions.viewModel.minSlope,
15735
+ maxSlope: this._globaOptions.viewModel.maxSlope,
15736
+ color: Cesium.Color.fromCssColorString(this._globaOptions.viewModel.slopeColorText).withAlpha(Number(this._globaOptions.viewModel.slopeColorAlpha))
15667
15737
  });
15738
+ } else {
15739
+ // this.clear();
15740
+ if (this._globaOptions._drawManager) {
15741
+ this._globaOptions._drawManager.startDraw("polygon", {
15742
+ clampToGround: true
15743
+ });
15744
+ }
15668
15745
  }
15746
+ } else {
15747
+ message({
15748
+ message: "只支持STK类型的地形分析!",
15749
+ type: "warning"
15750
+ });
15669
15751
  }
15670
15752
  } else {
15671
- throw "请加载地形后分析!";
15753
+ message({
15754
+ message: "请加载地形后分析!",
15755
+ type: "warning"
15756
+ });
15672
15757
  }
15673
15758
  } //修改填充样式
15674
15759
 
@@ -16602,6 +16687,7 @@ SlopeAnalysis.install = (Vue, opts) => {
16602
16687
  /**
16603
16688
  * 坡向逻辑类
16604
16689
  **/
16690
+
16605
16691
  class AspectAnalysisViewModel {
16606
16692
  // 坡向三维对象
16607
16693
  constructor(scenceView, aspect) {
@@ -16642,15 +16728,25 @@ class AspectAnalysisViewModel {
16642
16728
  start() {
16643
16729
  // 判断是否添加了地形
16644
16730
  if (this._globaOptions.viewer.terrainProvider.availability) {
16645
- if (this._globaOptions._drawManager) {
16646
- this.clear();
16731
+ if (this._globaOptions.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
16732
+ if (this._globaOptions._drawManager) {
16733
+ this.clear();
16647
16734
 
16648
- this._globaOptions._drawManager.startDraw("polygon", {
16649
- clampToGround: true
16735
+ this._globaOptions._drawManager.startDraw("polygon", {
16736
+ clampToGround: true
16737
+ });
16738
+ }
16739
+ } else {
16740
+ message({
16741
+ message: "只支持STK类型的地形分析!",
16742
+ type: "warning"
16650
16743
  });
16651
16744
  }
16652
16745
  } else {
16653
- throw "请加载地形后分析!";
16746
+ message({
16747
+ message: "请加载地形后分析!",
16748
+ type: "warning"
16749
+ });
16654
16750
  }
16655
16751
  } // 设置采样间隔
16656
16752
 
@@ -17114,6 +17210,7 @@ AspectAnalysis.install = (Vue, opts) => {
17114
17210
 
17115
17211
  //等值线分析逻辑类
17116
17212
 
17213
+
17117
17214
  class IsolineAnalysisViewModel {
17118
17215
  //等值线分析三维对象
17119
17216
  //等高面高度区间
@@ -17330,7 +17427,10 @@ class IsolineAnalysisViewModel {
17330
17427
  clampToGround: true
17331
17428
  });
17332
17429
  } else {
17333
- throw "请加载地形后分析!";
17430
+ message({
17431
+ message: "请添加模型后分析!",
17432
+ type: "warning"
17433
+ });
17334
17434
  }
17335
17435
  } //清除全部结果
17336
17436
 
@@ -19720,6 +19820,7 @@ IsolineAnalysis.install = (Vue, opts) => {
19720
19820
  ;// CONCATENATED MODULE: ./src/webgl/boxclip/BoxClipViewModel.js
19721
19821
 
19722
19822
  //Box裁剪逻辑类
19823
+
19723
19824
  class BoxClipViewModel {
19724
19825
  //三维viewer对象
19725
19826
  //Box裁剪存储参数对象
@@ -19818,7 +19919,10 @@ class BoxClipViewModel {
19818
19919
  image: null
19819
19920
  });
19820
19921
  } else {
19821
- throw "请添加模型后裁剪!";
19922
+ message({
19923
+ message: "请添加模型后裁剪!",
19924
+ type: "warning"
19925
+ });
19822
19926
  }
19823
19927
  } //清除全部
19824
19928
 
@@ -20813,6 +20917,7 @@ BoxClip.install = (Vue, opts) => {
20813
20917
  ;// CONCATENATED MODULE: ./src/webgl/planeclip/PlaneClipViewModel.js
20814
20918
 
20815
20919
  //平面裁剪逻辑类
20920
+
20816
20921
  class PlaneClipViewModel {
20817
20922
  //三维viewer对象
20818
20923
  //平面裁剪存储参数对象
@@ -20915,7 +21020,10 @@ class PlaneClipViewModel {
20915
21020
  image: null
20916
21021
  });
20917
21022
  } else {
20918
- throw "请添加模型后裁剪!";
21023
+ message({
21024
+ message: "请添加模型后裁剪!",
21025
+ type: "warning"
21026
+ });
20919
21027
  }
20920
21028
  } //清除全部
20921
21029
 
@@ -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