@kq_npm/client3d_webgl_vue 4.5.56 → 4.5.57

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.
Files changed (73) hide show
  1. package/adddata/index.js +189 -21
  2. package/airspacegridoccupancyquery/index.js +108 -7
  3. package/airspaceprofileanalysis/index.js +99 -7
  4. package/aspectanalysis/index.js +25 -7
  5. package/baseterraingallery/index.js +16 -4
  6. package/boxclip/index.js +58 -16
  7. package/buildpointmodel/index.js +3441 -544
  8. package/buildpointmodel/style/buildpointmodel.css +1 -1
  9. package/buildpolygonmodel/index.js +205 -81
  10. package/buildpolylinemodel/index.js +346 -70
  11. package/clientPrint/index.js +10524 -3041
  12. package/comparemap/index.js +132 -60
  13. package/compass/index.js +16 -6
  14. package/excavatefillanalysis/index.js +51 -7
  15. package/fixedzoomin/index.js +24 -7
  16. package/fixedzoomout/index.js +25 -7
  17. package/flight/index.js +113 -26
  18. package/floodanalysis/index.js +79 -14
  19. package/geologicalbodyanalysis/index.js +41 -5
  20. package/gpuspatialquery/index.js +59 -11
  21. package/gridoccupancyquery/index.js +78 -12
  22. package/hawkeye/index.js +20 -2
  23. package/headertemp/index.js +7 -2
  24. package/heatmap3d/index.js +282 -158
  25. package/index.js +10524 -3041
  26. package/isolineanalysis/index.js +113 -38
  27. package/light/index.js +80 -22
  28. package/limitheightanalysis/index.js +30 -10
  29. package/lowaltitudefeature/index.js +292 -119
  30. package/measure/index.js +60 -19
  31. package/modelFlat/index.js +48 -8
  32. package/modeledit/index.js +38 -4
  33. package/modelexcavate/index.js +48 -7
  34. package/modelfilter/index.js +51 -8
  35. package/modelmaterialedit/index.js +127 -25
  36. package/modelprofileanalysis/index.js +50 -14
  37. package/modelselect/index.js +33 -3
  38. package/modelstyleedit/index.js +39 -3
  39. package/modeltransform/index.js +79 -14
  40. package/package.json +1 -1
  41. package/particleeffect/index.js +83 -17
  42. package/planeclip/index.js +66 -17
  43. package/pointcloudrender/index.js +134 -15
  44. package/radarscananalysis/index.js +35 -3
  45. package/resetview/index.js +14 -6
  46. package/roller/index.js +55 -18
  47. package/scaneffect/index.js +98 -29
  48. package/sceneadvancedtoimage/index.js +32 -6
  49. package/sceneapp/index.js +10524 -3041
  50. package/sceneset/index.js +141 -71
  51. package/scenetohdimage/index.js +23 -3
  52. package/sceneview/index.js +10524 -3041
  53. package/screenshot/index.js +44 -11
  54. package/shadowanalysis/index.js +79 -19
  55. package/sightlineanalysis/index.js +66 -15
  56. package/skylineanalysis/index.js +20 -4
  57. package/slopeanalysis/index.js +75 -16
  58. package/slopeaspectanalysis/index.js +128 -26
  59. package/statusbar/index.js +80 -67
  60. package/style.css +1 -1
  61. package/terrainoperation/index.js +39 -7
  62. package/terrainprofileanalysis/index.js +43 -5
  63. package/toolbarapp/index.js +10524 -3041
  64. package/toolboxapp/index.js +10524 -3041
  65. package/typhoontrac/index.js +134 -16
  66. package/underground/index.js +8 -2
  67. package/videofusion/index.js +86 -30
  68. package/videoproject/index.js +77 -23
  69. package/viewshedanalysis/index.js +58 -13
  70. package/weathereffect/index.js +73 -18
  71. package/webgl.es.js +263 -264
  72. package/windyslicing/index.js +233 -45
  73. package/wireframesketch/index.js +25 -8
@@ -61,6 +61,11 @@ var _useGlobalConfig = __webpack_require__(22686);
61
61
  **/
62
62
 
63
63
  class AspectAnalysisViewModel {
64
+ // 限制绘制面积(平方公里)
65
+ /** @description 构造函数,初始化坡向分析对象
66
+ * @param {Object} scenceView 场景视图对象,包含 _viewer、_drawManager 等
67
+ * @param {Object} aspect 坡向分析参数,包含采样间隔、箭头宽度、箭头颜色等
68
+ */
64
69
  constructor(scenceView, aspect) {
65
70
  this._aspectAnalysis = null;
66
71
  // 坡向三维对象
@@ -70,7 +75,9 @@ class AspectAnalysisViewModel {
70
75
  _drawManager: null
71
76
  };
72
77
  this._language = {};
78
+ // 多语言资源对象
73
79
  this._scenceView = null;
80
+ // 场景视图对象
74
81
  this._restrictedArea = null;
75
82
  const {
76
83
  locale
@@ -109,6 +116,7 @@ class AspectAnalysisViewModel {
109
116
  if (!shape.groupName || shape.groupName !== "AspectAnalysisDraw") return;
110
117
  that._globaOptions._drawManager.clearDrawGroup("AspectAnalysisDraw");
111
118
  if (shape) {
119
+ // 配置了限制绘制面积时,校验多边形面积是否超出限制
112
120
  if (typeof that._restrictedArea === 'number' && !isNaN(that._restrictedArea) && isFinite(that._restrictedArea)) {
113
121
  const area = that._scenceView.computePolygonArea(shape._controlPoints);
114
122
  if (area / 1000000 > Number(that._restrictedArea)) {
@@ -124,27 +132,35 @@ class AspectAnalysisViewModel {
124
132
  }, "AspectAnalysisDraw");
125
133
  }
126
134
  } else {
135
+ // 使用了 STK 地形,不支持该分析
127
136
  (0, _message.default)({
128
137
  message: this._language.value.webgl["stkTerrainAnalysisTips"],
129
138
  type: "warning"
130
139
  });
131
140
  }
132
141
  } else {
142
+ // 未添加地形,无法分析
133
143
  (0, _message.default)({
134
144
  message: this._language.value.webgl["terrainAnalysisTips"],
135
145
  type: "warning"
136
146
  });
137
147
  }
138
148
  }
139
- // 设置采样间隔
149
+ /** @description 设置采样间隔
150
+ * @param {Number} newValue 采样间隔值
151
+ */
140
152
  setInterval(newValue) {
141
153
  if (this._aspectAnalysis) this._aspectAnalysis._interval = newValue;
142
154
  }
143
- // 设置箭头宽度
155
+ /** @description 设置箭头宽度
156
+ * @param {Number} newValue 箭头宽度值
157
+ */
144
158
  setArrowWidth(newValue) {
145
159
  if (this._aspectAnalysis) this._aspectAnalysis._width = newValue;
146
160
  }
147
- // 设置箭头颜色
161
+ /** @description 设置箭头颜色
162
+ * @param {String} newValue 箭头颜色 CSS 颜色字符串
163
+ */
148
164
  setArrowColor(newValue) {
149
165
  if (this._aspectAnalysis) this._aspectAnalysis._color = Cesium.Color.fromCssColorString(newValue);
150
166
  }
@@ -318,7 +334,9 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
318
334
  }
319
335
  };
320
336
 
321
- // 参数改变
337
+ /** @description 参数改变处理,根据变更字段同步到视图模型
338
+ * @param {String} key 变更的参数字段名
339
+ */
322
340
  function paramsChanged(key) {
323
341
  switch (key) {
324
342
  case "interval":
@@ -585,11 +603,11 @@ Object.defineProperty(exports, "__esModule", ({
585
603
  value: true
586
604
  }));
587
605
  exports.kq_npm_client_leaflet_vue = exports.kq_npm_client_common_vue = exports.kq_npm_client3d_webgl_vue = void 0;
588
- let kq_npm_client_common_vue = exports.kq_npm_client_common_vue = window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {};
606
+ const kq_npm_client_common_vue = exports.kq_npm_client_common_vue = window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {};
589
607
  __webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
590
- let kq_npm_client_leaflet_vue = exports.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {};
608
+ const kq_npm_client_leaflet_vue = exports.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {};
591
609
  __webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
592
- let kq_npm_client3d_webgl_vue = exports.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue || {};
610
+ const kq_npm_client3d_webgl_vue = exports.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue || {};
593
611
  __webpack_require__.g.kq_npm_client3d_webgl_vue = kq_npm_client3d_webgl_vue;
594
612
 
595
613
  /***/ })
@@ -379,6 +379,9 @@ exports["default"] = void 0;
379
379
  //在线地形逻辑类
380
380
  class BaseterrainGalleryViewModel {
381
381
  //基本地形对象
382
+ /** @description 构造函数,初始化地形对象
383
+ * @param {Object} viewer Cesium 场景视图实例
384
+ */
382
385
  constructor(viewer) {
383
386
  this._baseterrainGallery = {};
384
387
  this._baseterrainGallery.viewer = viewer;
@@ -386,6 +389,9 @@ class BaseterrainGalleryViewModel {
386
389
  this._baseterrainGallery.viewer.scene.postProcessStages.fxaa.enabled = false;
387
390
  //this.terrainTDT();
388
391
  }
392
+ /** @description 根据索引设置地形类型
393
+ * @param {Number} inx 地形索引(0 天地图、1 Cesium 全球地形、2 无地形)
394
+ */
389
395
  setTerrainType(inx) {
390
396
  if (inx === 0) {
391
397
  this._baseterrainGallery.viewer.terrainProvider = this._baseterrainGallery.terrainTDT;
@@ -583,6 +589,8 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
583
589
  headerTemp.value = (0, _util.createHeaderTemp)(boxRef.value, (0, _vue.toRefs)(props), headerTempRef, "webgl.onlineTerrain");
584
590
  }
585
591
  };
592
+
593
+ // 根据当前选中索引更新当前地形显示文本(无参数)
586
594
  function changSelectTerrain() {
587
595
  switch (currentIndex.value) {
588
596
  case 0:
@@ -596,7 +604,9 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
596
604
  break;
597
605
  }
598
606
  }
599
- //地形选择事件
607
+ /** @description 地形选择事件,切换地形类型
608
+ * @param {Number} inx 地形索引(0 天地图、1 Cesium 全球地形、2 无地形)
609
+ */
600
610
  function clickHandler(inx) {
601
611
  currentIndex.value = inx;
602
612
  changSelectTerrain();
@@ -606,6 +616,8 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
606
616
  function clearResult() {
607
617
  viewModel && viewModel.clear();
608
618
  }
619
+
620
+ // 获取当前选中的地形索引(无参数)
609
621
  function getSelectIndex() {
610
622
  return currentIndex.value;
611
623
  }
@@ -714,11 +726,11 @@ Object.defineProperty(exports, "__esModule", ({
714
726
  value: true
715
727
  }));
716
728
  exports.kq_npm_client_leaflet_vue = exports.kq_npm_client_common_vue = exports.kq_npm_client3d_webgl_vue = void 0;
717
- let kq_npm_client_common_vue = exports.kq_npm_client_common_vue = window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {};
729
+ const kq_npm_client_common_vue = exports.kq_npm_client_common_vue = window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {};
718
730
  __webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
719
- let kq_npm_client_leaflet_vue = exports.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {};
731
+ const kq_npm_client_leaflet_vue = exports.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {};
720
732
  __webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
721
- let kq_npm_client3d_webgl_vue = exports.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue || {};
733
+ const kq_npm_client3d_webgl_vue = exports.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue || {};
722
734
  __webpack_require__.g.kq_npm_client3d_webgl_vue = kq_npm_client3d_webgl_vue;
723
735
 
724
736
  /***/ })
package/boxclip/index.js CHANGED
@@ -683,6 +683,10 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
683
683
  callbackParams();
684
684
  }, 1000);
685
685
  });
686
+ /** @description 回调刷新图层列表并初始化选中项
687
+ * @param {String} key 回调标识
688
+ * @param {*} val 回调值
689
+ */
686
690
  function callbackParams(key, val) {
687
691
  if (viewModel) {
688
692
  tiles.value = viewModel.findLayers(); // 获取所有tileset对象
@@ -703,7 +707,9 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
703
707
  }
704
708
  };
705
709
 
706
- // 参数改变
710
+ /** @description 参数改变处理,根据变更字段同步到视图模型
711
+ * @param {String} key 变更的参数字段名
712
+ */
707
713
  function paramsChanged(key) {
708
714
  switch (key) {
709
715
  case "tileset":
@@ -1838,6 +1844,12 @@ var _useGlobalConfig = __webpack_require__(22686);
1838
1844
  //Box裁剪逻辑类
1839
1845
 
1840
1846
  class BoxClipViewModel {
1847
+ // 图层列表刷新回调
1848
+ /** @description 构造函数,初始化裁剪视图模型并绑定图层变化监听
1849
+ * @param {Object} scenceView 场景视图对象
1850
+ * @param {Object} options 用户传入的裁剪参数
1851
+ * @param {Function} callbackParams 图层列表刷新回调
1852
+ */
1841
1853
  constructor(scenceView, options, callbackParams) {
1842
1854
  this._viewer = null;
1843
1855
  //三维viewer对象
@@ -1868,6 +1880,7 @@ class BoxClipViewModel {
1868
1880
  this._drawManager = null;
1869
1881
  //绘制管理对象
1870
1882
  this._language = {};
1883
+ // 多语言资源对象
1871
1884
  this.callbackParams = null;
1872
1885
  const {
1873
1886
  locale
@@ -1885,6 +1898,9 @@ class BoxClipViewModel {
1885
1898
  // 添加图层数据源变化监听
1886
1899
  _gisUtils.mapViewUtils.bindViewEvents("resetLayerDatas", this._resetListData, scenceView._viewerId);
1887
1900
  }
1901
+ /** @description 图层数据源变化回调,刷新图层列表
1902
+ * @param {Object} e 事件参数对象
1903
+ */
1888
1904
  _resetListData(e) {
1889
1905
  // 如果图层变化事件是自己触发的 则不继续执行 避免死循环
1890
1906
  if (e.eventTarget && e.eventTarget === this) {
@@ -1908,7 +1924,10 @@ class BoxClipViewModel {
1908
1924
  return tilesets;
1909
1925
  }
1910
1926
 
1911
- //根据id获取tileset对象
1927
+ /** @description 根据id获取tileset对象
1928
+ * @param {String} id tileset 的 guid
1929
+ * @returns {Object} 匹配到的 tileset 对象
1930
+ */
1912
1931
  findLayerById(id) {
1913
1932
  const primitives = this._options.viewer.scene.primitives._primitives;
1914
1933
  const tileset = primitives.find(function (item) {
@@ -1928,6 +1947,7 @@ class BoxClipViewModel {
1928
1947
  flag = true;
1929
1948
  }
1930
1949
  }
1950
+ // 已添加模型时启动绘制,否则提示
1931
1951
  if (flag) {
1932
1952
  this.clear();
1933
1953
  if (this._drawManager) {
@@ -1972,18 +1992,24 @@ class BoxClipViewModel {
1972
1992
  _gisUtils.mapViewUtils.offViewEvents("resetLayerDatas", this._resetListData, this._viewer._container.id);
1973
1993
  }
1974
1994
 
1975
- // 设置裁剪对象
1995
+ /** @description 设置裁剪对象
1996
+ * @param {String} layerId tileset 的 guid
1997
+ */
1976
1998
  setLayer(layerId) {
1977
1999
  this.clear();
1978
2000
  this._options.tileset = this.findLayerById(layerId);
1979
2001
  }
1980
2002
 
1981
- // 设置裁剪方式,为true时,则为外部裁剪,否则为内部裁剪
2003
+ /** @description 设置裁剪方式,为true时,则为外部裁剪,否则为内部裁剪
2004
+ * @param {Boolean} val 是否为外部裁剪
2005
+ */
1982
2006
  setClipType(val) {
1983
2007
  this._options.unionClippingRegions = val;
1984
2008
  if (this._boxclipAnalysis) this._boxclipAnalysis.unionClippingRegions = val;
1985
2009
  }
1986
- //是否裁剪
2010
+ /** @description 是否裁剪
2011
+ * @param {Boolean} val 是否开启裁剪
2012
+ */
1987
2013
  setClip(val) {
1988
2014
  this._options.enable = val;
1989
2015
  if (this._boxclipAnalysis) {
@@ -1991,42 +2017,58 @@ class BoxClipViewModel {
1991
2017
  this._boxclipAnalysis.boxEnable = this._options.boxEnable;
1992
2018
  }
1993
2019
  }
1994
- //显/隐辅助对象
2020
+ /** @description 显/隐辅助对象
2021
+ * @param {Boolean} val 是否显示辅助盒
2022
+ */
1995
2023
  setShowBox(val) {
1996
2024
  this._options.boxEnable = val;
1997
2025
  if (this._boxclipAnalysis) this._boxclipAnalysis.boxEnable = val;
1998
2026
  }
1999
- // X方向上移动
2027
+ /** @description X方向上移动
2028
+ * @param {Number} val X方向位移值
2029
+ */
2000
2030
  setXDistance(val) {
2001
2031
  this._options.x = Number(val);
2002
2032
  if (this._boxclipAnalysis) this._boxclipAnalysis.translationClip("x", Number(val));
2003
2033
  }
2004
- // Y方向上移动
2034
+ /** @description Y方向上移动
2035
+ * @param {Number} val Y方向位移值
2036
+ */
2005
2037
  setYDistance(val) {
2006
2038
  this._options.y = Number(val);
2007
2039
  if (this._boxclipAnalysis) this._boxclipAnalysis.translationClip("y", Number(val));
2008
2040
  }
2009
- // Z方向上移动
2041
+ /** @description Z方向上移动
2042
+ * @param {Number} val Z方向位移值
2043
+ */
2010
2044
  setZDistance(val) {
2011
2045
  this._options.z = Number(val);
2012
2046
  if (this._boxclipAnalysis) this._boxclipAnalysis.translationClip("z", Number(val));
2013
2047
  }
2014
- //设置裁剪体长度
2048
+ /** @description 设置裁剪体长度
2049
+ * @param {Number} val 裁剪体长度
2050
+ */
2015
2051
  setAxisX(val) {
2016
2052
  this._options.axisX = Number(val);
2017
2053
  if (this._boxclipAnalysis) this._boxclipAnalysis.axisX = Number(val);
2018
2054
  }
2019
- //设置裁剪体宽度
2055
+ /** @description 设置裁剪体宽度
2056
+ * @param {Number} val 裁剪体宽度
2057
+ */
2020
2058
  setAxisY(val) {
2021
2059
  this._options.axisY = Number(val);
2022
2060
  if (this._boxclipAnalysis) this._boxclipAnalysis.axisY = Number(val);
2023
2061
  }
2024
- //设置裁剪体高度
2062
+ /** @description 设置裁剪体高度
2063
+ * @param {Number} val 裁剪体高度
2064
+ */
2025
2065
  setAxisZ(val) {
2026
2066
  this._options.axisZ = Number(val);
2027
2067
  if (this._boxclipAnalysis) this._boxclipAnalysis.axisZ = Number(val);
2028
2068
  }
2029
- //设置裁剪体旋转角
2069
+ /** @description 设置裁剪体旋转角
2070
+ * @param {Number} val 裁剪体旋转角度
2071
+ */
2030
2072
  setAngle(val) {
2031
2073
  this._options.angle = Number(val);
2032
2074
  if (this._boxclipAnalysis) this._boxclipAnalysis.angle = Number(val);
@@ -2864,11 +2906,11 @@ Object.defineProperty(exports, "__esModule", ({
2864
2906
  value: true
2865
2907
  }));
2866
2908
  exports.kq_npm_client_leaflet_vue = exports.kq_npm_client_common_vue = exports.kq_npm_client3d_webgl_vue = void 0;
2867
- let kq_npm_client_common_vue = exports.kq_npm_client_common_vue = window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {};
2909
+ const kq_npm_client_common_vue = exports.kq_npm_client_common_vue = window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {};
2868
2910
  __webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
2869
- let kq_npm_client_leaflet_vue = exports.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {};
2911
+ const kq_npm_client_leaflet_vue = exports.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {};
2870
2912
  __webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
2871
- let kq_npm_client3d_webgl_vue = exports.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue || {};
2913
+ const kq_npm_client3d_webgl_vue = exports.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue || {};
2872
2914
  __webpack_require__.g.kq_npm_client3d_webgl_vue = kq_npm_client3d_webgl_vue;
2873
2915
 
2874
2916
  /***/ })