@kq_npm/client3d_webgl_vue 4.5.55 → 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 (82) hide show
  1. package/adddata/index.js +189 -21
  2. package/airspacegridoccupancyquery/index.js +1977 -0
  3. package/airspacegridoccupancyquery/style/airspacegridoccupancyquery.css +1 -0
  4. package/airspacegridoccupancyquery/style/index.js +3 -0
  5. package/airspaceprofileanalysis/index.js +1870 -0
  6. package/airspaceprofileanalysis/style/airspaceprofileanalysis.css +1 -0
  7. package/airspaceprofileanalysis/style/index.js +3 -0
  8. package/aspectanalysis/index.js +25 -7
  9. package/baseterraingallery/index.js +16 -4
  10. package/boxclip/index.js +58 -16
  11. package/buildpointmodel/index.js +3207 -230
  12. package/buildpointmodel/style/buildpointmodel.css +1 -1
  13. package/buildpolygonmodel/index.js +205 -81
  14. package/buildpolylinemodel/index.js +346 -70
  15. package/clientPrint/index.js +32440 -2337
  16. package/comparemap/index.js +132 -60
  17. package/compass/index.js +16 -6
  18. package/excavatefillanalysis/index.js +51 -7
  19. package/fixedzoomin/index.js +24 -7
  20. package/fixedzoomout/index.js +25 -7
  21. package/flight/index.js +113 -26
  22. package/floodanalysis/index.js +79 -14
  23. package/geologicalbodyanalysis/index.js +41 -5
  24. package/gpuspatialquery/index.js +127 -19
  25. package/gridoccupancyquery/index.js +627 -0
  26. package/gridoccupancyquery/style/gridoccupancyquery.css +1 -0
  27. package/gridoccupancyquery/style/index.js +3 -0
  28. package/hawkeye/index.js +20 -2
  29. package/headertemp/index.js +7 -2
  30. package/heatmap3d/index.js +282 -158
  31. package/index.js +32440 -2337
  32. package/isolineanalysis/index.js +113 -38
  33. package/light/index.js +80 -22
  34. package/limitheightanalysis/index.js +30 -10
  35. package/lowaltitudefeature/index.js +5027 -0
  36. package/lowaltitudefeature/style/index.js +3 -0
  37. package/lowaltitudefeature/style/lowaltitudefeature.css +1 -0
  38. package/measure/index.js +60 -19
  39. package/modelFlat/index.js +48 -8
  40. package/modeledit/index.js +38 -4
  41. package/modelexcavate/index.js +48 -7
  42. package/modelfilter/index.js +51 -8
  43. package/modelmaterialedit/index.js +127 -25
  44. package/modelprofileanalysis/index.js +51 -14
  45. package/modelselect/index.js +34 -3
  46. package/modelstyleedit/index.js +39 -3
  47. package/modeltransform/index.js +79 -14
  48. package/package.json +1 -1
  49. package/particleeffect/index.js +83 -17
  50. package/planeclip/index.js +66 -17
  51. package/pointcloudrender/index.js +134 -15
  52. package/radarscananalysis/index.js +35 -3
  53. package/resetview/index.js +14 -6
  54. package/roller/index.js +55 -18
  55. package/scaneffect/index.js +98 -29
  56. package/sceneadvancedtoimage/index.js +32 -6
  57. package/sceneapp/index.js +32440 -2337
  58. package/sceneset/index.js +141 -71
  59. package/scenetohdimage/index.js +23 -3
  60. package/sceneview/index.js +32440 -2337
  61. package/sceneview/style/sceneview.css +1 -1
  62. package/screenshot/index.js +44 -11
  63. package/shadowanalysis/index.js +79 -19
  64. package/sightlineanalysis/index.js +66 -15
  65. package/skylineanalysis/index.js +20 -4
  66. package/slopeanalysis/index.js +75 -16
  67. package/slopeaspectanalysis/index.js +128 -26
  68. package/statusbar/index.js +80 -67
  69. package/style.css +1 -1
  70. package/terrainoperation/index.js +39 -7
  71. package/terrainprofileanalysis/index.js +43 -5
  72. package/toolbarapp/index.js +32440 -2337
  73. package/toolboxapp/index.js +32440 -2337
  74. package/typhoontrac/index.js +134 -16
  75. package/underground/index.js +8 -2
  76. package/videofusion/index.js +164 -79
  77. package/videoproject/index.js +77 -23
  78. package/viewshedanalysis/index.js +61 -14
  79. package/weathereffect/index.js +73 -18
  80. package/webgl.es.js +866 -16
  81. package/windyslicing/index.js +258 -54
  82. package/wireframesketch/index.js +25 -8
@@ -113,7 +113,7 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
113
113
  // 超出高度颜色
114
114
  overHeightColorAlpha: props?.settingParams?.overHeightColorAlpha ?? 0.6 // 超出高度颜色透明度
115
115
  });
116
- let viewModel = null;
116
+ let viewModel = null; // 视图模型实例
117
117
 
118
118
  // 组件容器Ref
119
119
  let boxRef = (0, _vue.ref)(null);
@@ -155,7 +155,9 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
155
155
  headerTemp.value = (0, _util.createHeaderTemp)(boxRef.value, (0, _vue.toRefs)(props), headerTempRef, "webgl.limitHeightAnalysis");
156
156
  }
157
157
  };
158
- // 参数切换
158
+ /** @description 参数切换
159
+ * @param {String} key 变化的字段标识
160
+ */
159
161
  function paramsChanged(key) {
160
162
  switch (key) {
161
163
  case "baseHeight":
@@ -380,13 +382,20 @@ var _useGlobalConfig = __webpack_require__(22686);
380
382
  //限高分析逻辑类
381
383
 
382
384
  class LimitHeightAnalysisViewModel {
385
+ // 当前语言包
386
+ /** @description 构造函数,初始化限高分析视图模型
387
+ * @param {Object} scenceView 场景视图对象
388
+ * @param {Object} options 限高分析参数对象
389
+ */
383
390
  constructor(scenceView, options) {
384
391
  this._viewer = null;
385
392
  //三维viewer对象
386
393
  this._options = {};
387
394
  //限高分析存储参数对象
388
395
  this._drawManager = null;
396
+ // 绘制管理器实例
389
397
  this._limitHeightAnalysis = null;
398
+ // 限高分析对象
390
399
  this._language = {};
391
400
  const {
392
401
  locale
@@ -396,12 +405,13 @@ class LimitHeightAnalysisViewModel {
396
405
  this._options = options;
397
406
  this._drawManager = scenceView._drawManager;
398
407
  this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
399
- this._viewer.scene.postProcessStages._fxaa.enabled = true;
408
+ this._viewer.scene.postProcessStages._fxaa.enabled = true; // 开启抗锯齿
400
409
  }
401
410
  // 绘制限高分析,显示分析体
402
411
  drawPolygon() {
403
412
  if (!this._options.positions) return;
404
413
  var newPositions = [];
414
+ // 将笛卡尔坐标转换为经纬度数组
405
415
  this._options.positions.forEach(item => {
406
416
  var newPos = window.Cesium.Cartographic.fromCartesian(item);
407
417
  newPositions.push(newPos.longitude);
@@ -427,11 +437,13 @@ class LimitHeightAnalysisViewModel {
427
437
  // 判断是否添加了模型
428
438
  var flag = false;
429
439
  var models = this._viewer.scene.primitives._primitives;
440
+ // 遍历场景图元查找 3D Tileset 模型
430
441
  for (let i = 0; i < models.length; i++) {
431
442
  if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
432
443
  flag = true;
433
444
  }
434
445
  }
446
+ // 存在模型时进入多边形绘制流程
435
447
  if (flag) {
436
448
  this.clear();
437
449
  if (this._drawManager) {
@@ -455,25 +467,33 @@ class LimitHeightAnalysisViewModel {
455
467
  });
456
468
  }
457
469
  }
458
- // 修改基底高度
470
+ /** @description 修改基底高度
471
+ * @param {Number} val 基底高度值
472
+ */
459
473
  changeBaseHeight(val) {
460
474
  this._options.baseHeight = val;
461
475
  this.clear();
462
476
  this.drawPolygon();
463
477
  }
464
- // 修改限制高度
478
+ /** @description 修改限制高度
479
+ * @param {Number} val 限制高度值
480
+ */
465
481
  changeLimitHeight(val) {
466
482
  this._options.limitHeight = val;
467
483
  this.clear();
468
484
  this.drawPolygon();
469
485
  }
470
- // 修改限制高度颜色
486
+ /** @description 修改限制高度颜色
487
+ * @param {String} val 颜色字符串
488
+ */
471
489
  changeLimitHeightColor(val) {
472
490
  this._options.limitHeightColor = val;
473
491
  this.clear();
474
492
  this.drawPolygon();
475
493
  }
476
- // 修改超出高度颜色
494
+ /** @description 修改超出高度颜色
495
+ * @param {String} val 颜色字符串
496
+ */
477
497
  changeOverHeightColor(val) {
478
498
  this._options.overHeightColor = val;
479
499
  this.clear();
@@ -612,11 +632,11 @@ Object.defineProperty(exports, "__esModule", ({
612
632
  value: true
613
633
  }));
614
634
  exports.kq_npm_client_leaflet_vue = exports.kq_npm_client_common_vue = exports.kq_npm_client3d_webgl_vue = void 0;
615
- let kq_npm_client_common_vue = exports.kq_npm_client_common_vue = window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {};
635
+ const kq_npm_client_common_vue = exports.kq_npm_client_common_vue = window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {};
616
636
  __webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
617
- let kq_npm_client_leaflet_vue = exports.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {};
637
+ const kq_npm_client_leaflet_vue = exports.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {};
618
638
  __webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
619
- let kq_npm_client3d_webgl_vue = exports.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue || {};
639
+ const kq_npm_client3d_webgl_vue = exports.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue || {};
620
640
  __webpack_require__.g.kq_npm_client3d_webgl_vue = kq_npm_client3d_webgl_vue;
621
641
 
622
642
  /***/ })