@kq_npm/client3d_webgl_vue 0.5.0-beta → 0.5.2-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.
@@ -78,6 +78,7 @@ function _defineProperty(obj, key, value) {
78
78
 
79
79
  //地形淹没分析逻辑类
80
80
  class BaseterrainGalleryViewModel {
81
+ //基本地形对象
81
82
  constructor(viewer) {
82
83
  _defineProperty(this, "_baseterrainGallery", {});
83
84
 
@@ -219,6 +220,8 @@ const __default__ = {
219
220
  clearResult();
220
221
  });
221
222
  expose({
223
+ changSelectTerrain,
224
+ clickHandler,
222
225
  clearResult
223
226
  });
224
227
  return (_ctx, _cache) => {
@@ -80,6 +80,8 @@ function _defineProperty(obj, key, value) {
80
80
 
81
81
  //多窗口逻辑类
82
82
  class CompareMapViewModel {
83
+ // 三维视图对象
84
+ //三维viewer对象
83
85
  constructor(scenceView) {
84
86
  _defineProperty(this, "_scenceView", null);
85
87
 
package/compass/index.js CHANGED
@@ -78,6 +78,7 @@ function _defineProperty(obj, key, value) {
78
78
 
79
79
  // 重置视图
80
80
  class CompassViewModel {
81
+ //三维viewer对象
81
82
  constructor(viewer) {
82
83
  _defineProperty(this, "_viewer", null);
83
84
 
@@ -84,6 +84,10 @@ var turf_namespaceObject = require("@turf/turf");
84
84
  window.turf = turf_namespaceObject; //填挖方分析逻辑类
85
85
 
86
86
  class ExcavateFillAnalysisViewModel {
87
+ //填挖方分析三维对象
88
+ //绘制管理对象
89
+ //填挖方分析参数对象
90
+ //绘制完成监听事件
87
91
  constructor(scenceView, options, callback) {
88
92
  _defineProperty(this, "_excavateFillAnalysis", null);
89
93
 
@@ -345,6 +349,8 @@ const __default__ = {
345
349
  viewModel && viewModel.destroy();
346
350
  });
347
351
  expose({
352
+ startAnalysis,
353
+ paramsChanged,
348
354
  clearResult
349
355
  });
350
356
  return (_ctx, _cache) => {
@@ -78,6 +78,7 @@ function _defineProperty(obj, key, value) {
78
78
 
79
79
  // 三维固定缩放逻辑
80
80
  class FixedZoomViewModel {
81
+ //三维viewer对象
81
82
  constructor(viewer) {
82
83
  _defineProperty(this, "_viewer", null);
83
84
 
package/flight/index.js CHANGED
@@ -97,6 +97,8 @@ function _defineProperty(obj, key, value) {
97
97
 
98
98
  //飞行操作类
99
99
  class FlightViewModel {
100
+ //飞行三维对象
101
+ //停止事件
100
102
  constructor(viewer) {
101
103
  _defineProperty(this, "_animationPath", null);
102
104
 
@@ -242,7 +244,9 @@ const __default__ = {
242
244
  }
243
245
  },
244
246
 
245
- setup(__props) {
247
+ setup(__props, {
248
+ expose
249
+ }) {
246
250
  const props = __props;
247
251
  let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
248
252
  let isAdd = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
@@ -497,7 +501,7 @@ const __default__ = {
497
501
  } //导入文件
498
502
 
499
503
 
500
- function importFile(file, fileList) {
504
+ function importFile(file) {
501
505
  var name = file.name.split(".")[0];
502
506
  viewModel.fromXmlFile(file.raw).then(() => {
503
507
  var xmlString = viewModel.asXmlString();
@@ -517,6 +521,25 @@ const __default__ = {
517
521
  }
518
522
  }
519
523
 
524
+ expose({
525
+ save,
526
+ cancel,
527
+ addPath,
528
+ editPath,
529
+ deletePath,
530
+ play,
531
+ pause,
532
+ stop,
533
+ repeat,
534
+ addKey,
535
+ replaceKey,
536
+ deleteKey,
537
+ prePlay,
538
+ prePause,
539
+ preStop,
540
+ importFile,
541
+ exportFile
542
+ });
520
543
  return (_ctx, _cache) => {
521
544
  const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-icon");
522
545
 
@@ -81,8 +81,11 @@ var const_image_namespaceObject = require("@kq_npm/client_common_vue/_utils/cons
81
81
  //地形淹没分析逻辑类
82
82
 
83
83
  class FloodAnalysisViewModel {
84
- //地形淹没
85
- //模型淹没
84
+ //地形淹没三维对象
85
+ //模型淹没三维对象
86
+ //测量三维对象
87
+ //测量结果
88
+ //淹没模式
86
89
  constructor(scenceView, options) {
87
90
  _defineProperty(this, "_floodTerrainAnalysis", null);
88
91
 
@@ -94,7 +97,8 @@ class FloodAnalysisViewModel {
94
97
 
95
98
  _defineProperty(this, "_mode", 0);
96
99
 
97
- _defineProperty(this, "_colorImages", [{
100
+ _defineProperty(this, "_colorImages", [//淹没纹理图片集合
101
+ {
98
102
  value: "0",
99
103
  src: const_image_namespaceObject.RED_TO_PURPLE_URL
100
104
  }, {
@@ -382,7 +386,7 @@ const __default__ = {
382
386
  viewModel.setMoveMode(formItem.floodMode);
383
387
  break;
384
388
 
385
- case "direction":
389
+ case "moveMode":
386
390
  viewModel.setMoveDirection(formItem.floodDirection);
387
391
  break;
388
392
 
@@ -417,7 +421,10 @@ const __default__ = {
417
421
  viewModel && viewModel.destroy();
418
422
  });
419
423
  expose({
420
- clearResult
424
+ startAnalysis,
425
+ clearResult,
426
+ getImagePath,
427
+ paramsChanged
421
428
  });
422
429
  return (_ctx, _cache) => {
423
430
  const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-row");
@@ -81,6 +81,13 @@ function _defineProperty(obj, key, value) {
81
81
 
82
82
  //GPU空间查询逻辑类
83
83
  class GpuSpatialQueryViewModel {
84
+ //GPU查询三维对象
85
+ //绘制管理对象
86
+ //绘制的图形
87
+ //绘制图形的坐标
88
+ //传入参数
89
+ //绘制后的查询事件
90
+ //绘制完成监听事件
84
91
  constructor(scenceView, options) {
85
92
  _defineProperty(this, "_gpuSpatialQuery", null);
86
93
 
@@ -480,6 +487,8 @@ const __default__ = {
480
487
  viewModel && viewModel.destroy();
481
488
  });
482
489
  expose({
490
+ paramsChanged,
491
+ query,
483
492
  reset
484
493
  });
485
494
  return (_ctx, _cache) => {
package/hawkeye/index.js CHANGED
@@ -78,6 +78,7 @@ function _defineProperty(obj, key, value) {
78
78
 
79
79
  //鹰眼逻辑类
80
80
  class HawkeyeViewModel {
81
+ //鹰眼三维对象
81
82
  constructor(scenceView, options) {
82
83
  _defineProperty(this, "_overviewMap", null);
83
84
 
package/index.js CHANGED
@@ -2735,6 +2735,7 @@ var icons_vue_namespaceObject = require("@element-plus/icons-vue");
2735
2735
 
2736
2736
  // 三维固定缩放逻辑
2737
2737
  class FixedZoomViewModel {
2738
+ //三维viewer对象
2738
2739
  constructor(viewer) {
2739
2740
  _defineProperty(this, "_viewer", null);
2740
2741
 
@@ -2915,6 +2916,7 @@ FixedZoom.install = (Vue, opts) => {
2915
2916
 
2916
2917
  // 重置视图
2917
2918
  class ResetViewViewModel {
2919
+ //三维viewer对象
2918
2920
  constructor(viewer) {
2919
2921
  _defineProperty(this, "_viewer", null);
2920
2922
 
@@ -3029,6 +3031,7 @@ var client_icons_vue_namespaceObject = require("@kq_npm/client_icons_vue");
3029
3031
 
3030
3032
  // 重置视图
3031
3033
  class CompassViewModel {
3034
+ //三维viewer对象
3032
3035
  constructor(viewer) {
3033
3036
  _defineProperty(this, "_viewer", null);
3034
3037
 
@@ -3188,6 +3191,7 @@ Compass.install = (Vue, opts) => {
3188
3191
 
3189
3192
  //地形淹没分析逻辑类
3190
3193
  class BaseterrainGalleryViewModel {
3194
+ //基本地形对象
3191
3195
  constructor(viewer) {
3192
3196
  _defineProperty(this, "_baseterrainGallery", {});
3193
3197
 
@@ -3327,6 +3331,8 @@ const BaseterrainGalleryvue_type_script_setup_true_lang_js_default_ = {
3327
3331
  clearResult();
3328
3332
  });
3329
3333
  expose({
3334
+ changSelectTerrain,
3335
+ clickHandler,
3330
3336
  clearResult
3331
3337
  });
3332
3338
  return (_ctx, _cache) => {
@@ -3498,6 +3504,9 @@ BaseterrainGallery.install = (Vue, opts) => {
3498
3504
 
3499
3505
  //测量操作类
3500
3506
  class MeasureViewModel {
3507
+ //测量三维对象
3508
+ //测量事件
3509
+ //活动事件
3501
3510
  constructor(viewer) {
3502
3511
  _defineProperty(this, "_measureHandler", null);
3503
3512
 
@@ -3785,6 +3794,7 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
3785
3794
  }
3786
3795
 
3787
3796
  expose({
3797
+ startMeasure,
3788
3798
  clearMeasure
3789
3799
  });
3790
3800
  return (_ctx, _cache) => {
@@ -3985,6 +3995,8 @@ es_namespaceObject.ElMessage.install = (Vue, opts) => {
3985
3995
 
3986
3996
  //飞行操作类
3987
3997
  class FlightViewModel {
3998
+ //飞行三维对象
3999
+ //停止事件
3988
4000
  constructor(viewer) {
3989
4001
  _defineProperty(this, "_animationPath", null);
3990
4002
 
@@ -4130,7 +4142,9 @@ const Flightvue_type_script_setup_true_lang_js_default_ = {
4130
4142
  }
4131
4143
  },
4132
4144
 
4133
- setup(__props) {
4145
+ setup(__props, {
4146
+ expose
4147
+ }) {
4134
4148
  const props = __props;
4135
4149
  let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
4136
4150
  let isAdd = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
@@ -4385,7 +4399,7 @@ const Flightvue_type_script_setup_true_lang_js_default_ = {
4385
4399
  } //导入文件
4386
4400
 
4387
4401
 
4388
- function importFile(file, fileList) {
4402
+ function importFile(file) {
4389
4403
  var name = file.name.split(".")[0];
4390
4404
  viewModel.fromXmlFile(file.raw).then(() => {
4391
4405
  var xmlString = viewModel.asXmlString();
@@ -4405,6 +4419,25 @@ const Flightvue_type_script_setup_true_lang_js_default_ = {
4405
4419
  }
4406
4420
  }
4407
4421
 
4422
+ expose({
4423
+ save,
4424
+ cancel,
4425
+ addPath,
4426
+ editPath,
4427
+ deletePath,
4428
+ play,
4429
+ pause,
4430
+ stop,
4431
+ repeat,
4432
+ addKey,
4433
+ replaceKey,
4434
+ deleteKey,
4435
+ prePlay,
4436
+ prePause,
4437
+ preStop,
4438
+ importFile,
4439
+ exportFile
4440
+ });
4408
4441
  return (_ctx, _cache) => {
4409
4442
  const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-icon");
4410
4443
 
@@ -4865,6 +4898,13 @@ var external_xe_utils_default = /*#__PURE__*/__webpack_require__.n(external_xe_u
4865
4898
 
4866
4899
  //GPU空间查询逻辑类
4867
4900
  class GpuSpatialQueryViewModel {
4901
+ //GPU查询三维对象
4902
+ //绘制管理对象
4903
+ //绘制的图形
4904
+ //绘制图形的坐标
4905
+ //传入参数
4906
+ //绘制后的查询事件
4907
+ //绘制完成监听事件
4868
4908
  constructor(scenceView, options) {
4869
4909
  _defineProperty(this, "_gpuSpatialQuery", null);
4870
4910
 
@@ -5264,6 +5304,8 @@ const GpuSpatialQueryvue_type_script_setup_true_lang_js_default_ = {
5264
5304
  viewModel && viewModel.destroy();
5265
5305
  });
5266
5306
  expose({
5307
+ paramsChanged,
5308
+ query,
5267
5309
  reset
5268
5310
  });
5269
5311
  return (_ctx, _cache) => {
@@ -5702,6 +5744,10 @@ GpuSpatialQuery.install = (Vue, opts) => {
5702
5744
 
5703
5745
  //模型拾取逻辑类
5704
5746
  class ModelSelectViewModel {
5747
+ //三维viewer对象
5748
+ //屏幕空间事件处理程序三维对象
5749
+ //拾取状态
5750
+ //高亮三维对象
5705
5751
  constructor(scenceView, pickCallFunc) {
5706
5752
  _defineProperty(this, "_viewer", null);
5707
5753
 
@@ -5873,7 +5919,9 @@ const ModelSelectvue_type_script_setup_true_lang_js_default_ = {
5873
5919
  viewModel && viewModel.destroy();
5874
5920
  });
5875
5921
  expose({
5876
- clear
5922
+ pick,
5923
+ clear,
5924
+ pickCallFunc
5877
5925
  });
5878
5926
  return (_ctx, _cache) => {
5879
5927
  const _component_KqTree = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("KqTree");
@@ -6030,6 +6078,16 @@ var update = injectStylesIntoStyleTag_default()(divpoint/* default */.Z, options
6030
6078
  //通视分析逻辑类
6031
6079
 
6032
6080
  class SightlineAnalysisViewModel {
6081
+ //三维viewer对象
6082
+ //通视分析三维对象
6083
+ //绘制管理对象
6084
+ //绘制完成监听事件
6085
+ //障碍物颜色
6086
+ //是否显示标注
6087
+ //添加的点的类型
6088
+ //创建的divpoint集合
6089
+ //拾取的点位集合
6090
+ //高亮的障碍物的id集合
6033
6091
  constructor(scenceView, options) {
6034
6092
  _defineProperty(this, "_viewer", null);
6035
6093
 
@@ -6369,6 +6427,9 @@ const SightlineAnalysisvue_type_script_setup_true_lang_js_default_ = {
6369
6427
  viewModel && viewModel.destroy();
6370
6428
  });
6371
6429
  expose({
6430
+ paramsChanged,
6431
+ addSeePoint,
6432
+ addTargetPoint,
6372
6433
  clearResult
6373
6434
  });
6374
6435
  return (_ctx, _cache) => {
@@ -6629,6 +6690,7 @@ SightlineAnalysis.install = (Vue, opts) => {
6629
6690
 
6630
6691
  //可视域分析逻辑类
6631
6692
  class ViewshedAnalysisViewModel {
6693
+ //可视域分析三维对象
6632
6694
  constructor(scenceView, options) {
6633
6695
  _defineProperty(this, "_viewshedAnalysis", null);
6634
6696
 
@@ -6808,6 +6870,8 @@ const ViewshedAnalysisvue_type_script_setup_true_lang_js_default_ = {
6808
6870
  viewModel && viewModel.destroy();
6809
6871
  });
6810
6872
  expose({
6873
+ paramsChanged,
6874
+ startAnalysis,
6811
6875
  clearResult
6812
6876
  });
6813
6877
  return (_ctx, _cache) => {
@@ -7129,10 +7193,12 @@ ViewshedAnalysis.install = (Vue, opts) => {
7129
7193
 
7130
7194
  // 分析逻辑类
7131
7195
  class ShadowAnalysisViewModel {
7196
+ //阴影分析三维对象
7132
7197
  constructor(scenceView, viewModel) {
7133
7198
  _defineProperty(this, "_shadowAnalysis", null);
7134
7199
 
7135
7200
  _defineProperty(this, "_globaOptions", {
7201
+ //全局参数
7136
7202
  viewer: null,
7137
7203
  _drawManager: null
7138
7204
  });
@@ -7552,6 +7618,9 @@ const ShadowAnalysisvue_type_script_setup_true_lang_js_default_ = {
7552
7618
  viewModel && viewModel.destroy();
7553
7619
  });
7554
7620
  expose({
7621
+ paramsChanged,
7622
+ startAnalysis,
7623
+ playTime,
7555
7624
  clearResult
7556
7625
  });
7557
7626
  return (_ctx, _cache) => {
@@ -8106,6 +8175,9 @@ let drawPoints = [];
8106
8175
  let activeShapePoints = [];
8107
8176
  let activeCartographicPoints = [];
8108
8177
  class ProfileAnalysisViewModel {
8178
+ //剖面分析三维对象
8179
+ //显示结果的DOM元素
8180
+ //显示结果的DOM元素显隐
8109
8181
  constructor(viewer, viewModel, chart) {
8110
8182
  _defineProperty(this, "_profileAnalysis", null);
8111
8183
 
@@ -8114,6 +8186,7 @@ class ProfileAnalysisViewModel {
8114
8186
  _defineProperty(this, "_ProfileAnalysisChartVis", null);
8115
8187
 
8116
8188
  _defineProperty(this, "_globaOptions", {
8189
+ //全局参数对象
8117
8190
  width: 360,
8118
8191
  height: 360
8119
8192
  });
@@ -8450,7 +8523,13 @@ const ProfileAnalysisvue_type_script_setup_true_lang_js_default_ = {
8450
8523
  viewModel && viewModel.destroy();
8451
8524
  });
8452
8525
  expose({
8453
- clearResult
8526
+ startAnalysis,
8527
+ clearResult,
8528
+ onChangeEnablePerspective,
8529
+ onChangePerspectiveAngle,
8530
+ onChangeTargetAreaWidth,
8531
+ onChangeTargetAreaHeight,
8532
+ onChangeCameraHeight
8454
8533
  });
8455
8534
  return (_ctx, _cache) => {
8456
8535
  const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-row");
@@ -9519,6 +9598,14 @@ SkylineAnalysis.install = (Vue, opts) => {
9519
9598
 
9520
9599
  //地形淹没分析逻辑类
9521
9600
  class TerrainOperationViewModel {
9601
+ //地形开挖三维对象
9602
+ //地形修改三维对象
9603
+ //绘制管理对象
9604
+ //全局参数
9605
+ //绘制的坐标点集合
9606
+ //地形操作类型
9607
+ //开挖深度
9608
+ //绘制完成监听事件
9522
9609
  constructor(scenceView, viewModel) {
9523
9610
  _defineProperty(this, "_terrainexcavationext", null);
9524
9611
 
@@ -9787,6 +9874,9 @@ const TerrainOperationvue_type_script_setup_true_lang_js_default_ = {
9787
9874
  viewModel && viewModel.destroy();
9788
9875
  });
9789
9876
  expose({
9877
+ changeStyle,
9878
+ changeHeight,
9879
+ startOperation,
9790
9880
  clear
9791
9881
  });
9792
9882
  return (_ctx, _cache) => {
@@ -9962,6 +10052,10 @@ TerrainOperation.install = (Vue, opts) => {
9962
10052
  window.turf = turf_namespaceObject; //填挖方分析逻辑类
9963
10053
 
9964
10054
  class ExcavateFillAnalysisViewModel {
10055
+ //填挖方分析三维对象
10056
+ //绘制管理对象
10057
+ //填挖方分析参数对象
10058
+ //绘制完成监听事件
9965
10059
  constructor(scenceView, options, callback) {
9966
10060
  _defineProperty(this, "_excavateFillAnalysis", null);
9967
10061
 
@@ -10223,6 +10317,8 @@ const ExcavateFillAnalysisvue_type_script_setup_true_lang_js_default_ = {
10223
10317
  viewModel && viewModel.destroy();
10224
10318
  });
10225
10319
  expose({
10320
+ startAnalysis,
10321
+ paramsChanged,
10226
10322
  clearResult
10227
10323
  });
10228
10324
  return (_ctx, _cache) => {
@@ -10481,8 +10577,11 @@ ExcavateFillAnalysis.install = (Vue, opts) => {
10481
10577
  //地形淹没分析逻辑类
10482
10578
 
10483
10579
  class FloodAnalysisViewModel {
10484
- //地形淹没
10485
- //模型淹没
10580
+ //地形淹没三维对象
10581
+ //模型淹没三维对象
10582
+ //测量三维对象
10583
+ //测量结果
10584
+ //淹没模式
10486
10585
  constructor(scenceView, options) {
10487
10586
  _defineProperty(this, "_floodTerrainAnalysis", null);
10488
10587
 
@@ -10494,7 +10593,8 @@ class FloodAnalysisViewModel {
10494
10593
 
10495
10594
  _defineProperty(this, "_mode", 0);
10496
10595
 
10497
- _defineProperty(this, "_colorImages", [{
10596
+ _defineProperty(this, "_colorImages", [//淹没纹理图片集合
10597
+ {
10498
10598
  value: "0",
10499
10599
  src: const_image_namespaceObject.RED_TO_PURPLE_URL
10500
10600
  }, {
@@ -10782,7 +10882,7 @@ const FloodAnalysisvue_type_script_setup_true_lang_js_default_ = {
10782
10882
  viewModel.setMoveMode(formItem.floodMode);
10783
10883
  break;
10784
10884
 
10785
- case "direction":
10885
+ case "moveMode":
10786
10886
  viewModel.setMoveDirection(formItem.floodDirection);
10787
10887
  break;
10788
10888
 
@@ -10817,7 +10917,10 @@ const FloodAnalysisvue_type_script_setup_true_lang_js_default_ = {
10817
10917
  viewModel && viewModel.destroy();
10818
10918
  });
10819
10919
  expose({
10820
- clearResult
10920
+ startAnalysis,
10921
+ clearResult,
10922
+ getImagePath,
10923
+ paramsChanged
10821
10924
  });
10822
10925
  return (_ctx, _cache) => {
10823
10926
  const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-row");
@@ -11277,17 +11380,21 @@ FloodAnalysis.install = (Vue, opts) => {
11277
11380
  // 分析逻辑类
11278
11381
 
11279
11382
  class SlopeAnalysisViewModel {
11383
+ // 坡度坡向三维对象
11280
11384
  constructor(scenceView, viewModel) {
11281
11385
  _defineProperty(this, "_slopeAnalysis", null);
11282
11386
 
11283
11387
  _defineProperty(this, "_globaOptions", {
11388
+ //全局参数
11284
11389
  viewer: null,
11285
11390
  _drawManager: null
11286
11391
  });
11287
11392
 
11288
- _defineProperty(this, "_defaultPositions", [new Cesium.Cartesian3(320344.97912128427, 5634145.630522612, 2962308.690344629), new Cesium.Cartesian3(324448.6451820951, 5639835.805638826, 2951088.4423702545), new Cesium.Cartesian3(320344.97912128427, 5634145.630522612, 2962308.690344629)]);
11393
+ _defineProperty(this, "_defaultPositions", [//默认分析坐标
11394
+ new Cesium.Cartesian3(320344.97912128427, 5634145.630522612, 2962308.690344629), new Cesium.Cartesian3(324448.6451820951, 5639835.805638826, 2951088.4423702545), new Cesium.Cartesian3(320344.97912128427, 5634145.630522612, 2962308.690344629)]);
11289
11395
 
11290
- _defineProperty(this, "_colorImages", [{
11396
+ _defineProperty(this, "_colorImages", [//渐变图片集合
11397
+ {
11291
11398
  value: "0",
11292
11399
  src: const_image_namespaceObject.RED_TO_PURPLE_URL
11293
11400
  }, {
@@ -11738,6 +11845,10 @@ const SlopeAnalysisvue_type_script_setup_true_lang_js_default_ = {
11738
11845
  viewModel && viewModel.destroy();
11739
11846
  });
11740
11847
  expose({
11848
+ refactorArr,
11849
+ getImagePath,
11850
+ paramsChanged,
11851
+ startAnalysis,
11741
11852
  clearResult
11742
11853
  });
11743
11854
  return (_ctx, _cache) => {
@@ -12262,11 +12373,10 @@ SlopeAnalysis.install = (Vue, opts) => {
12262
12373
  //等值线分析逻辑类
12263
12374
 
12264
12375
  class IsolineAnalysisViewModel {
12376
+ //等值线分析三维对象
12265
12377
  constructor(scenceView, options) {
12266
12378
  _defineProperty(this, "_elevation", null);
12267
12379
 
12268
- _defineProperty(this, "_surfaceColorImage", null);
12269
-
12270
12380
  _defineProperty(this, "_surfaceColorTableValue", [0.0, 0.1, 0.2, 0.3, 0.4]);
12271
12381
 
12272
12382
  _defineProperty(this, "_surfaceColorTable", ["#2a2828", "#2747E0", "#D33B7D", "#D33038", "#FF9742"]);
@@ -12677,7 +12787,9 @@ const IsolineAnalysisvue_type_script_setup_true_lang_js_default_ = {
12677
12787
  }
12678
12788
  },
12679
12789
 
12680
- setup(__props) {
12790
+ setup(__props, {
12791
+ expose
12792
+ }) {
12681
12793
  const props = __props;
12682
12794
  const {
12683
12795
  proxy
@@ -12917,6 +13029,15 @@ const IsolineAnalysisvue_type_script_setup_true_lang_js_default_ = {
12917
13029
  }
12918
13030
  }
12919
13031
 
13032
+ expose({
13033
+ refactorArr,
13034
+ startAnalysis,
13035
+ onChangeSelect,
13036
+ onChangeFillStyle,
13037
+ clearResult,
13038
+ getImagePath,
13039
+ paramsChanged
13040
+ });
12920
13041
  return (_ctx, _cache) => {
12921
13042
  const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-col");
12922
13043
 
@@ -19450,6 +19571,8 @@ WeatherEffect.install = (Vue, opts) => {
19450
19571
 
19451
19572
  //多窗口逻辑类
19452
19573
  class CompareMapViewModel {
19574
+ // 三维视图对象
19575
+ //三维viewer对象
19453
19576
  constructor(scenceView) {
19454
19577
  _defineProperty(this, "_scenceView", null);
19455
19578
 
@@ -19848,6 +19971,9 @@ CompareMap.install = (Vue, opts) => {
19848
19971
 
19849
19972
  //Box裁剪逻辑类
19850
19973
  class ScreenshotViewModel {
19974
+ //三维viewer对象
19975
+ //参数对象
19976
+ //截图三维对象
19851
19977
  constructor(viewer, options) {
19852
19978
  _defineProperty(this, "_viewer", null);
19853
19979
 
@@ -19960,7 +20086,7 @@ class ScreenshotViewModel {
19960
20086
  calcHeightByWindowRatio(height) {
19961
20087
  var r = this._viewer.scene.canvas.width / this._viewer.scene.canvas.height;
19962
20088
  return parseInt(height / r);
19963
- } // 设置图片宽度
20089
+ } // 锁定图片宽高比
19964
20090
 
19965
20091
 
19966
20092
  setImgAspectRatio(val) {
@@ -20317,6 +20443,7 @@ Screenshot.install = (Vue, opts) => {
20317
20443
 
20318
20444
  //鹰眼逻辑类
20319
20445
  class HawkeyeViewModel {
20446
+ //鹰眼三维对象
20320
20447
  constructor(scenceView, options) {
20321
20448
  _defineProperty(this, "_overviewMap", null);
20322
20449
 
@@ -20474,6 +20601,15 @@ Hawkeye.install = (Vue, opts) => {
20474
20601
 
20475
20602
  //卷帘逻辑类
20476
20603
  class RollerViewModel {
20604
+ //三维viewer对象
20605
+ //图层管理对象
20606
+ //卷帘的图层数组
20607
+ //左右卷帘的线的DOM元素
20608
+ //上下卷帘的线的DOM元素
20609
+ //左右卷帘三维对象
20610
+ //上下卷帘三维对象
20611
+ //左右卷帘活动状态
20612
+ //上下卷帘活动状态
20477
20613
  constructor(scenceView, options) {
20478
20614
  _defineProperty(this, "_viewer", null);
20479
20615
 
@@ -20743,6 +20879,8 @@ const Rollervue_type_script_setup_true_lang_js_default_ = {
20743
20879
  viewModel && viewModel.destroy();
20744
20880
  });
20745
20881
  expose({
20882
+ changeMode,
20883
+ changeDirection,
20746
20884
  reset
20747
20885
  });
20748
20886
  return (_ctx, _cache) => {
@@ -20928,6 +21066,8 @@ Roller.install = (Vue, opts) => {
20928
21066
  ;// CONCATENATED MODULE: ./src/webgl/underground/UndergroundViewModel.js
20929
21067
 
20930
21068
  class UndergroundViewModel {
21069
+ // 三维viewer对象
21070
+ // 地下模式三维管理对象
20931
21071
  constructor(viewer) {
20932
21072
  _defineProperty(this, "_viewer", null);
20933
21073
 
@@ -21003,7 +21143,9 @@ const Undergroundvue_type_script_setup_true_lang_js_default_ = {
21003
21143
  }
21004
21144
  },
21005
21145
 
21006
- setup(__props) {
21146
+ setup(__props, {
21147
+ expose
21148
+ }) {
21007
21149
  const props = __props;
21008
21150
  const {
21009
21151
  proxy
@@ -21039,6 +21181,9 @@ const Undergroundvue_type_script_setup_true_lang_js_default_ = {
21039
21181
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onBeforeUnmount)(() => {
21040
21182
  viewModel && viewModel.destroy();
21041
21183
  });
21184
+ expose({
21185
+ undergroundChange
21186
+ });
21042
21187
  return (_ctx, _cache) => {
21043
21188
  const _component_kq_switch = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-switch");
21044
21189
 
@@ -81,11 +81,10 @@ var const_image_namespaceObject = require("@kq_npm/client_common_vue/_utils/cons
81
81
  //等值线分析逻辑类
82
82
 
83
83
  class IsolineAnalysisViewModel {
84
+ //等值线分析三维对象
84
85
  constructor(scenceView, options) {
85
86
  _defineProperty(this, "_elevation", null);
86
87
 
87
- _defineProperty(this, "_surfaceColorImage", null);
88
-
89
88
  _defineProperty(this, "_surfaceColorTableValue", [0.0, 0.1, 0.2, 0.3, 0.4]);
90
89
 
91
90
  _defineProperty(this, "_surfaceColorTable", ["#2a2828", "#2747E0", "#D33B7D", "#D33038", "#FF9742"]);
@@ -496,7 +495,9 @@ const __default__ = {
496
495
  }
497
496
  },
498
497
 
499
- setup(__props) {
498
+ setup(__props, {
499
+ expose
500
+ }) {
500
501
  const props = __props;
501
502
  const {
502
503
  proxy
@@ -736,6 +737,15 @@ const __default__ = {
736
737
  }
737
738
  }
738
739
 
740
+ expose({
741
+ refactorArr,
742
+ startAnalysis,
743
+ onChangeSelect,
744
+ onChangeFillStyle,
745
+ clearResult,
746
+ getImagePath,
747
+ paramsChanged
748
+ });
739
749
  return (_ctx, _cache) => {
740
750
  const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-col");
741
751
 
package/measure/index.js CHANGED
@@ -82,6 +82,9 @@ function _defineProperty(obj, key, value) {
82
82
 
83
83
  //测量操作类
84
84
  class MeasureViewModel {
85
+ //测量三维对象
86
+ //测量事件
87
+ //活动事件
85
88
  constructor(viewer) {
86
89
  _defineProperty(this, "_measureHandler", null);
87
90
 
@@ -369,6 +372,7 @@ const __default__ = {
369
372
  }
370
373
 
371
374
  expose({
375
+ startMeasure,
372
376
  clearMeasure
373
377
  });
374
378
  return (_ctx, _cache) => {
@@ -78,6 +78,10 @@ function _defineProperty(obj, key, value) {
78
78
 
79
79
  //模型拾取逻辑类
80
80
  class ModelSelectViewModel {
81
+ //三维viewer对象
82
+ //屏幕空间事件处理程序三维对象
83
+ //拾取状态
84
+ //高亮三维对象
81
85
  constructor(scenceView, pickCallFunc) {
82
86
  _defineProperty(this, "_viewer", null);
83
87
 
@@ -249,7 +253,9 @@ const __default__ = {
249
253
  viewModel && viewModel.destroy();
250
254
  });
251
255
  expose({
252
- clear
256
+ pick,
257
+ clear,
258
+ pickCallFunc
253
259
  });
254
260
  return (_ctx, _cache) => {
255
261
  const _component_KqTree = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("KqTree");
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"0.5.0-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"^1.1.1","echarts":"^5.3.3","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","@turf/turf":"^6.5.0","css-vars-ponyfill":"^2.4.8","xe-utils":"^3.5.4"}}
1
+ {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"0.5.2-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"^1.1.1","echarts":"^5.3.3","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","@turf/turf":"^6.5.0","css-vars-ponyfill":"^2.4.8","xe-utils":"^3.5.4"}}
@@ -82,6 +82,9 @@ let drawPoints = [];
82
82
  let activeShapePoints = [];
83
83
  let activeCartographicPoints = [];
84
84
  class ProfileAnalysisViewModel {
85
+ //剖面分析三维对象
86
+ //显示结果的DOM元素
87
+ //显示结果的DOM元素显隐
85
88
  constructor(viewer, viewModel, chart) {
86
89
  _defineProperty(this, "_profileAnalysis", null);
87
90
 
@@ -90,6 +93,7 @@ class ProfileAnalysisViewModel {
90
93
  _defineProperty(this, "_ProfileAnalysisChartVis", null);
91
94
 
92
95
  _defineProperty(this, "_globaOptions", {
96
+ //全局参数对象
93
97
  width: 360,
94
98
  height: 360
95
99
  });
@@ -426,7 +430,13 @@ const __default__ = {
426
430
  viewModel && viewModel.destroy();
427
431
  });
428
432
  expose({
429
- clearResult
433
+ startAnalysis,
434
+ clearResult,
435
+ onChangeEnablePerspective,
436
+ onChangePerspectiveAngle,
437
+ onChangeTargetAreaWidth,
438
+ onChangeTargetAreaHeight,
439
+ onChangeCameraHeight
430
440
  });
431
441
  return (_ctx, _cache) => {
432
442
  const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-row");
@@ -78,6 +78,7 @@ function _defineProperty(obj, key, value) {
78
78
 
79
79
  // 重置视图
80
80
  class ResetViewViewModel {
81
+ //三维viewer对象
81
82
  constructor(viewer) {
82
83
  _defineProperty(this, "_viewer", null);
83
84
 
package/roller/index.js CHANGED
@@ -78,6 +78,15 @@ function _defineProperty(obj, key, value) {
78
78
 
79
79
  //卷帘逻辑类
80
80
  class RollerViewModel {
81
+ //三维viewer对象
82
+ //图层管理对象
83
+ //卷帘的图层数组
84
+ //左右卷帘的线的DOM元素
85
+ //上下卷帘的线的DOM元素
86
+ //左右卷帘三维对象
87
+ //上下卷帘三维对象
88
+ //左右卷帘活动状态
89
+ //上下卷帘活动状态
81
90
  constructor(scenceView, options) {
82
91
  _defineProperty(this, "_viewer", null);
83
92
 
@@ -347,6 +356,8 @@ const __default__ = {
347
356
  viewModel && viewModel.destroy();
348
357
  });
349
358
  expose({
359
+ changeMode,
360
+ changeDirection,
350
361
  reset
351
362
  });
352
363
  return (_ctx, _cache) => {
@@ -78,6 +78,9 @@ function _defineProperty(obj, key, value) {
78
78
 
79
79
  //Box裁剪逻辑类
80
80
  class ScreenshotViewModel {
81
+ //三维viewer对象
82
+ //参数对象
83
+ //截图三维对象
81
84
  constructor(viewer, options) {
82
85
  _defineProperty(this, "_viewer", null);
83
86
 
@@ -190,7 +193,7 @@ class ScreenshotViewModel {
190
193
  calcHeightByWindowRatio(height) {
191
194
  var r = this._viewer.scene.canvas.width / this._viewer.scene.canvas.height;
192
195
  return parseInt(height / r);
193
- } // 设置图片宽度
196
+ } // 锁定图片宽高比
194
197
 
195
198
 
196
199
  setImgAspectRatio(val) {
@@ -78,10 +78,12 @@ function _defineProperty(obj, key, value) {
78
78
 
79
79
  // 分析逻辑类
80
80
  class ShadowAnalysisViewModel {
81
+ //阴影分析三维对象
81
82
  constructor(scenceView, viewModel) {
82
83
  _defineProperty(this, "_shadowAnalysis", null);
83
84
 
84
85
  _defineProperty(this, "_globaOptions", {
86
+ //全局参数
85
87
  viewer: null,
86
88
  _drawManager: null
87
89
  });
@@ -503,6 +505,9 @@ const __default__ = {
503
505
  viewModel && viewModel.destroy();
504
506
  });
505
507
  expose({
508
+ paramsChanged,
509
+ startAnalysis,
510
+ playTime,
506
511
  clearResult
507
512
  });
508
513
  return (_ctx, _cache) => {
@@ -496,6 +496,16 @@ var update = injectStylesIntoStyleTag_default()(divpoint/* default */.Z, options
496
496
  //通视分析逻辑类
497
497
 
498
498
  class SightlineAnalysisViewModel {
499
+ //三维viewer对象
500
+ //通视分析三维对象
501
+ //绘制管理对象
502
+ //绘制完成监听事件
503
+ //障碍物颜色
504
+ //是否显示标注
505
+ //添加的点的类型
506
+ //创建的divpoint集合
507
+ //拾取的点位集合
508
+ //高亮的障碍物的id集合
499
509
  constructor(scenceView, options) {
500
510
  _defineProperty(this, "_viewer", null);
501
511
 
@@ -835,6 +845,9 @@ const __default__ = {
835
845
  viewModel && viewModel.destroy();
836
846
  });
837
847
  expose({
848
+ paramsChanged,
849
+ addSeePoint,
850
+ addTargetPoint,
838
851
  clearResult
839
852
  });
840
853
  return (_ctx, _cache) => {
@@ -81,17 +81,21 @@ var const_image_namespaceObject = require("@kq_npm/client_common_vue/_utils/cons
81
81
  // 分析逻辑类
82
82
 
83
83
  class SlopeAnalysisViewModel {
84
+ // 坡度坡向三维对象
84
85
  constructor(scenceView, viewModel) {
85
86
  _defineProperty(this, "_slopeAnalysis", null);
86
87
 
87
88
  _defineProperty(this, "_globaOptions", {
89
+ //全局参数
88
90
  viewer: null,
89
91
  _drawManager: null
90
92
  });
91
93
 
92
- _defineProperty(this, "_defaultPositions", [new Cesium.Cartesian3(320344.97912128427, 5634145.630522612, 2962308.690344629), new Cesium.Cartesian3(324448.6451820951, 5639835.805638826, 2951088.4423702545), new Cesium.Cartesian3(320344.97912128427, 5634145.630522612, 2962308.690344629)]);
94
+ _defineProperty(this, "_defaultPositions", [//默认分析坐标
95
+ new Cesium.Cartesian3(320344.97912128427, 5634145.630522612, 2962308.690344629), new Cesium.Cartesian3(324448.6451820951, 5639835.805638826, 2951088.4423702545), new Cesium.Cartesian3(320344.97912128427, 5634145.630522612, 2962308.690344629)]);
93
96
 
94
- _defineProperty(this, "_colorImages", [{
97
+ _defineProperty(this, "_colorImages", [//渐变图片集合
98
+ {
95
99
  value: "0",
96
100
  src: const_image_namespaceObject.RED_TO_PURPLE_URL
97
101
  }, {
@@ -542,6 +546,10 @@ const __default__ = {
542
546
  viewModel && viewModel.destroy();
543
547
  });
544
548
  expose({
549
+ refactorArr,
550
+ getImagePath,
551
+ paramsChanged,
552
+ startAnalysis,
545
553
  clearResult
546
554
  });
547
555
  return (_ctx, _cache) => {
@@ -78,6 +78,14 @@ function _defineProperty(obj, key, value) {
78
78
 
79
79
  //地形淹没分析逻辑类
80
80
  class TerrainOperationViewModel {
81
+ //地形开挖三维对象
82
+ //地形修改三维对象
83
+ //绘制管理对象
84
+ //全局参数
85
+ //绘制的坐标点集合
86
+ //地形操作类型
87
+ //开挖深度
88
+ //绘制完成监听事件
81
89
  constructor(scenceView, viewModel) {
82
90
  _defineProperty(this, "_terrainexcavationext", null);
83
91
 
@@ -346,6 +354,9 @@ const __default__ = {
346
354
  viewModel && viewModel.destroy();
347
355
  });
348
356
  expose({
357
+ changeStyle,
358
+ changeHeight,
359
+ startOperation,
349
360
  clear
350
361
  });
351
362
  return (_ctx, _cache) => {
@@ -77,6 +77,8 @@ function _defineProperty(obj, key, value) {
77
77
  ;// CONCATENATED MODULE: ./src/webgl/underground/UndergroundViewModel.js
78
78
 
79
79
  class UndergroundViewModel {
80
+ // 三维viewer对象
81
+ // 地下模式三维管理对象
80
82
  constructor(viewer) {
81
83
  _defineProperty(this, "_viewer", null);
82
84
 
@@ -152,7 +154,9 @@ const __default__ = {
152
154
  }
153
155
  },
154
156
 
155
- setup(__props) {
157
+ setup(__props, {
158
+ expose
159
+ }) {
156
160
  const props = __props;
157
161
  const {
158
162
  proxy
@@ -188,6 +192,9 @@ const __default__ = {
188
192
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onBeforeUnmount)(() => {
189
193
  viewModel && viewModel.destroy();
190
194
  });
195
+ expose({
196
+ undergroundChange
197
+ });
191
198
  return (_ctx, _cache) => {
192
199
  const _component_kq_switch = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-switch");
193
200
 
@@ -78,6 +78,7 @@ function _defineProperty(obj, key, value) {
78
78
 
79
79
  //可视域分析逻辑类
80
80
  class ViewshedAnalysisViewModel {
81
+ //可视域分析三维对象
81
82
  constructor(scenceView, options) {
82
83
  _defineProperty(this, "_viewshedAnalysis", null);
83
84
 
@@ -257,6 +258,8 @@ const __default__ = {
257
258
  viewModel && viewModel.destroy();
258
259
  });
259
260
  expose({
261
+ paramsChanged,
262
+ startAnalysis,
260
263
  clearResult
261
264
  });
262
265
  return (_ctx, _cache) => {