@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
@@ -1,13 +1,13 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/_utils/util"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/configprovider/useGlobalConfig"));
3
+ module.exports = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/configprovider/useGlobalConfig"), require("@kq_npm/client_common_vue/_utils/util"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define("@kq_npm/client3d_webgl_vue", ["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/_utils/util", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/configprovider/useGlobalConfig"], factory);
5
+ define("@kq_npm/client3d_webgl_vue", ["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/configprovider/useGlobalConfig", "@kq_npm/client_common_vue/_utils/util"], factory);
6
6
  else if(typeof exports === 'object')
7
- exports["@kq_npm/client3d_webgl_vue"] = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/_utils/util"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/configprovider/useGlobalConfig"));
7
+ exports["@kq_npm/client3d_webgl_vue"] = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/configprovider/useGlobalConfig"), require("@kq_npm/client_common_vue/_utils/util"));
8
8
  else
9
- root["@kq_npm/client3d_webgl_vue"] = factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/_utils/util"], root["@kq_npm/client_common_vue/init.js"], root["@kq_npm/client_common_vue/configprovider/useGlobalConfig"]);
10
- })(this, function(__WEBPACK_EXTERNAL_MODULE__50154__, __WEBPACK_EXTERNAL_MODULE__20064__, __WEBPACK_EXTERNAL_MODULE__42975__, __WEBPACK_EXTERNAL_MODULE__20455__, __WEBPACK_EXTERNAL_MODULE__22686__) {
9
+ root["@kq_npm/client3d_webgl_vue"] = factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/init.js"], root["@kq_npm/client_common_vue/configprovider/useGlobalConfig"], root["@kq_npm/client_common_vue/_utils/util"]);
10
+ })(this, function(__WEBPACK_EXTERNAL_MODULE__50154__, __WEBPACK_EXTERNAL_MODULE__20064__, __WEBPACK_EXTERNAL_MODULE__20455__, __WEBPACK_EXTERNAL_MODULE__22686__, __WEBPACK_EXTERNAL_MODULE__42975__) {
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
@@ -98,10 +98,10 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
98
98
 
99
99
  // 获取组件传参
100
100
  const props = __props;
101
- const lonlatOffset = 0.00001;
102
- const heightOffset = 10.0;
101
+ const lonlatOffset = 0.00001; // 经纬度滑动条偏移量
102
+ const heightOffset = 10.0; // 高度滑动条偏移量
103
103
  let formItem = (0, _vue.reactive)({
104
- collapseValue: props?.settingParams?.collapseValue === '' ? '' : props?.settingParams?.collapseValue ?? "setting",
104
+ collapseValue: props?.settingParams?.collapseValue === "" ? "" : props?.settingParams?.collapseValue ?? "setting",
105
105
  // 默认展开属性设置
106
106
  longitude: 0,
107
107
  minLongitude: -lonlatOffset,
@@ -127,14 +127,15 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
127
127
  let showCoordinate = (0, _vue.ref)(false);
128
128
  // 显示朝向角俯仰角翻转角
129
129
  let showHpr = (0, _vue.ref)(false);
130
- let viewModel = null;
130
+ let viewModel = null; // 视频融合视图模型对象
131
131
 
132
132
  // 组件容器Ref
133
133
  let boxRef = (0, _vue.ref)(null);
134
134
 
135
135
  // 生成组件默认header
136
- let headerTemp = (0, _vue.ref)();
137
- let headerTempRef = (0, _vue.ref)();
136
+ let headerTemp = (0, _vue.ref)(); // 动态生成的Header组件
137
+ let headerTempRef = (0, _vue.ref)(); // Header组件Ref
138
+
138
139
  (0, _vue.onMounted)(() => {
139
140
  (0, _util.updatePosition)(boxRef.value, props);
140
141
  (0, _vue.watch)(() => props.position, (newVal, oldVal) => {
@@ -169,16 +170,24 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
169
170
  const watchCreateHeaderTemp = () => {
170
171
  if (props.showHeaderTemp) {
171
172
  // 生成headerTemp
172
- headerTemp.value = (0, _util.createHeaderTemp)(boxRef.value, (0, _vue.toRefs)(props), headerTempRef, 'webgl.videoFusion');
173
+ headerTemp.value = (0, _util.createHeaderTemp)(boxRef.value, (0, _vue.toRefs)(props), headerTempRef, "webgl.videoFusion");
173
174
  }
174
175
  };
176
+
177
+ /**
178
+ * @description 选择视频文件后获取本地访问URL并设置到视图模型
179
+ * @param {Object} file 上传的文件对象
180
+ */
175
181
  function selectVideo(file) {
176
182
  formItem.videoPath = file.name;
177
183
  let url = URL.createObjectURL(file.raw);
178
184
  viewModel.setVideoPath(url);
179
185
  }
180
186
 
181
- // 参数改变
187
+ /**
188
+ * @description 参数改变时根据类型调用对应的视图模型方法
189
+ * @param {String} key 改变的参数类型标识
190
+ */
182
191
  function paramsChanged(key) {
183
192
  switch (key) {
184
193
  case "videoPath":
@@ -211,6 +220,7 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
211
220
  case "longitude":
212
221
  case "latitude":
213
222
  case "height":
223
+ // 经纬度或高度变化时统一更新坐标
214
224
  viewModel.setPosition(formItem.longitude, formItem.latitude, formItem.height);
215
225
  break;
216
226
  default:
@@ -222,17 +232,22 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
222
232
  function fusion() {
223
233
  if (formItem.videoPath === "") {
224
234
  (0, _message.default)({
225
- message: t('webgl.videoPathEmpty'),
235
+ message: t("webgl.videoPathEmpty"),
226
236
  type: "warning"
227
237
  });
228
238
  } else {
229
239
  if (viewModel) {
230
- viewModel.fusion();
231
- setCoordinate();
232
- serHpr();
240
+ viewModel.fusion(function (bool) {
241
+ if (bool) {
242
+ setCoordinate();
243
+ serHpr();
244
+ }
245
+ });
233
246
  }
234
247
  }
235
248
  }
249
+
250
+ // 设置坐标滑动条范围
236
251
  function setCoordinate() {
237
252
  let coordinate = viewModel.getProjectCoordinate();
238
253
  if (coordinate) {
@@ -314,7 +329,7 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
314
329
  span: 6,
315
330
  class: "colClass"
316
331
  }, {
317
- default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("span", _hoisted_2, (0, _vue.toDisplayString)((0, _vue.unref)(t)('webgl.videoPath')), 1 /* TEXT */)]),
332
+ default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("span", _hoisted_2, (0, _vue.toDisplayString)((0, _vue.unref)(t)("webgl.videoPath")), 1 /* TEXT */)]),
318
333
  _: 1 /* STABLE */
319
334
  }), (0, _vue.createVNode)(_component_kq_col, {
320
335
  span: 18
@@ -350,7 +365,7 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
350
365
  }), (0, _vue.createVNode)(_component_kq_row, {
351
366
  class: "kq3d-video-fusion-tip"
352
367
  }, {
353
- default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("p", null, (0, _vue.toDisplayString)((0, _vue.unref)(t)('webgl.videoFusionTips')), 1 /* TEXT */)]),
368
+ default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("p", null, (0, _vue.toDisplayString)((0, _vue.unref)(t)("webgl.videoFusionTips")), 1 /* TEXT */)]),
354
369
  _: 1 /* STABLE */
355
370
  }), (0, _vue.createVNode)(_component_kq_collapse, {
356
371
  "model-value": (0, _vue.unref)(formItem).collapseValue,
@@ -794,20 +809,20 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
794
809
  title: (0, _vue.unref)(t)('webgl.fusion'),
795
810
  type: "primary"
796
811
  }, {
797
- default: (0, _vue.withCtx)(() => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)((0, _vue.unref)(t)('webgl.fusion')), 1 /* TEXT */)]),
812
+ default: (0, _vue.withCtx)(() => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)((0, _vue.unref)(t)("webgl.fusion")), 1 /* TEXT */)]),
798
813
  _: 1 /* STABLE */
799
814
  }, 8 /* PROPS */, ["title"]), (0, _vue.createVNode)(_component_kq_button, {
800
815
  onClick: _cache[39] || (_cache[39] = (0, _vue.withModifiers)($event => flyTo(), ["stop"])),
801
816
  title: (0, _vue.unref)(t)('webgl.flyTo'),
802
817
  type: "primary"
803
818
  }, {
804
- default: (0, _vue.withCtx)(() => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)((0, _vue.unref)(t)('webgl.flyTo')), 1 /* TEXT */)]),
819
+ default: (0, _vue.withCtx)(() => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)((0, _vue.unref)(t)("webgl.flyTo")), 1 /* TEXT */)]),
805
820
  _: 1 /* STABLE */
806
821
  }, 8 /* PROPS */, ["title"]), (0, _vue.createVNode)(_component_kq_button, {
807
822
  onClick: _cache[40] || (_cache[40] = (0, _vue.withModifiers)($event => clearResult(), ["stop"])),
808
823
  title: (0, _vue.unref)(t)('webgl.clear')
809
824
  }, {
810
- default: (0, _vue.withCtx)(() => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)((0, _vue.unref)(t)('webgl.clear')), 1 /* TEXT */)]),
825
+ default: (0, _vue.withCtx)(() => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)((0, _vue.unref)(t)("webgl.clear")), 1 /* TEXT */)]),
811
826
  _: 1 /* STABLE */
812
827
  }, 8 /* PROPS */, ["title"])])])], 2 /* CLASS */);
813
828
  };
@@ -926,20 +941,30 @@ _KqGIS.kq_npm_client_common_vue.KqMessage = _indexFull.ElMessage;
926
941
  /***/ }),
927
942
 
928
943
  /***/ 93012:
929
- /***/ (function(__unused_webpack_module, exports) {
944
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
930
945
 
931
946
 
932
947
 
948
+ var _interopRequireDefault = __webpack_require__(33751);
933
949
  Object.defineProperty(exports, "__esModule", ({
934
950
  value: true
935
951
  }));
936
952
  exports["default"] = void 0;
937
- /*
938
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
939
- * All rights reserved.
953
+ var _message = _interopRequireDefault(__webpack_require__(71323));
954
+ var _useGlobalConfig = __webpack_require__(22686);
955
+ /*
956
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
957
+ * All rights reserved.
940
958
  */
941
959
  //视频融合逻辑类
960
+
942
961
  class VideoFusiontViewModel {
962
+ //当前语言对象
963
+ /**
964
+ * @description 构造函数,初始化视频融合管理对象
965
+ * @param {Object} scenceView 场景视图对象,包含 _viewer 属性
966
+ * @param {Object} options 视频融合配置参数
967
+ */
943
968
  constructor(scenceView, options) {
944
969
  this._viewer = null;
945
970
  //三维viewer对象
@@ -948,47 +973,75 @@ class VideoFusiontViewModel {
948
973
  this._videoFusion = null;
949
974
  //视频融合对象
950
975
  this._videoFusionCollection = null;
976
+ //视频融合集合管理对象
977
+ this._language = {};
978
+ const {
979
+ locale
980
+ } = (0, _useGlobalConfig.useLocale)();
981
+ this._language = locale;
951
982
  this._options = Object.assign({}, options);
952
983
  this._viewer = scenceView._viewer;
953
984
  this._videoFusionCollection = new Cesium.Kq3dVideoFusionCollection(this._viewer);
954
985
  }
955
986
 
956
- // 融合
957
- fusion() {
958
- let type = 3;
959
- if (this._options.videoPath.indexOf('.m3u8') > 0) {
960
- type = 5;
987
+ /**
988
+ * @description 执行视频融合,将视频投影到三维模型上
989
+ * @param {Function} cb 融合完成后的回调函数,接收布尔参数表示是否成功
990
+ */
991
+ fusion(cb) {
992
+ // 判断是否添加了模型
993
+ var flag = false;
994
+ var models = this._viewer.scene.primitives._primitives;
995
+ for (let i = 0; i < models.length; i++) {
996
+ if (models[i]._url && models[i] instanceof Cesium.Cesium3DTileset) {
997
+ flag = true;
998
+ }
999
+ }
1000
+ if (flag) {
1001
+ let type = 3;
1002
+ // 判断视频流格式,m3u8使用类型5
1003
+ if (this._options.videoPath.indexOf('.m3u8') >= 0) {
1004
+ type = 5;
1005
+ }
1006
+ this.clear();
1007
+ const cartographic = Cesium.Cartographic.fromCartesian(this._viewer.camera.positionWC);
1008
+ this._options.heading = Cesium.Math.toDegrees(this._viewer.camera.heading);
1009
+ this._options.pitch = Cesium.Math.toDegrees(this._viewer.camera.pitch);
1010
+ this._options.roll = Cesium.Math.toDegrees(this._viewer.camera.roll);
1011
+ var param = {
1012
+ url: this._options.videoPath,
1013
+ type: type,
1014
+ position: {
1015
+ x: Cesium.Math.toDegrees(cartographic.longitude),
1016
+ y: Cesium.Math.toDegrees(cartographic.latitude),
1017
+ z: cartographic.height
1018
+ },
1019
+ hpr: {
1020
+ heading: this._options.heading,
1021
+ pitch: this._options.pitch,
1022
+ roll: this._options.roll
1023
+ },
1024
+ alpha: this._options.alpha,
1025
+ far: this._options.far,
1026
+ fov: this._options.fov,
1027
+ featheringDelta: this._options.eclosion,
1028
+ debugFrustum: this._options.showHideLine,
1029
+ k1: 0,
1030
+ k2: 0,
1031
+ cx: 300,
1032
+ cy: 60,
1033
+ f: 3000
1034
+ };
1035
+ this._videoFusion = this._videoFusionCollection.addVideoTarget(param);
1036
+ typeof cb === "function" && cb(true);
1037
+ } else {
1038
+ // 未添加模型时给出提示
1039
+ (0, _message.default)({
1040
+ message: this._language.value.webgl["addModelFusionTips"],
1041
+ type: "warning"
1042
+ });
1043
+ typeof cb === "function" && cb(false);
961
1044
  }
962
- this.clear();
963
- let cartographic = Cesium.Cartographic.fromCartesian(this._viewer.camera.positionWC);
964
- this._options.heading = Cesium.Math.toDegrees(this._viewer.camera.heading);
965
- this._options.pitch = Cesium.Math.toDegrees(this._viewer.camera.pitch);
966
- this._options.roll = Cesium.Math.toDegrees(this._viewer.camera.roll);
967
- var param = {
968
- url: this._options.videoPath,
969
- type: type,
970
- position: {
971
- x: Cesium.Math.toDegrees(cartographic.longitude),
972
- y: Cesium.Math.toDegrees(cartographic.latitude),
973
- z: cartographic.height
974
- },
975
- hpr: {
976
- heading: this._options.heading,
977
- pitch: this._options.pitch,
978
- roll: this._options.roll
979
- },
980
- alpha: this._options.alpha,
981
- far: this._options.far,
982
- fov: this._options.fov,
983
- featheringDelta: this._options.eclosion,
984
- debugFrustum: this._options.showHideLine,
985
- k1: 0,
986
- k2: 0,
987
- cx: 300,
988
- cy: 60,
989
- f: 3000
990
- };
991
- this._videoFusion = this._videoFusionCollection.addVideoTarget(param);
992
1045
  }
993
1046
 
994
1047
  // 获取融合坐标
@@ -1010,7 +1063,7 @@ class VideoFusiontViewModel {
1010
1063
  //飞入
1011
1064
  flyTo() {
1012
1065
  if (this._videoFusion) {
1013
- let position = Cesium.Cartesian3.fromDegrees(this._videoFusion.param.position.x, this._videoFusion.param.position.y, this._videoFusion.param.position.z);
1066
+ const position = Cesium.Cartesian3.fromDegrees(this._videoFusion.param.position.x, this._videoFusion.param.position.y, this._videoFusion.param.position.z);
1014
1067
  this._viewer.camera.flyTo({
1015
1068
  destination: position,
1016
1069
  orientation: {
@@ -1033,20 +1086,31 @@ class VideoFusiontViewModel {
1033
1086
  this._videoFusionCollection && this._videoFusionCollection.destroy();
1034
1087
  }
1035
1088
 
1036
- // 设置坐标
1089
+ /**
1090
+ * @description 设置视频融合的坐标位置
1091
+ * @param {Number} longitude 经度
1092
+ * @param {Number} latitude 纬度
1093
+ * @param {Number} height 高度
1094
+ */
1037
1095
  setPosition(longitude, latitude, height) {
1038
- let cameraPosition = Cesium.Cartesian3.fromDegrees(longitude, latitude, height);
1096
+ const cameraPosition = Cesium.Cartesian3.fromDegrees(longitude, latitude, height);
1039
1097
  this._videoFusion && this._videoFusionCollection.updateVideoTarget(this._videoFusion.id, {
1040
1098
  cameraPosition: cameraPosition
1041
1099
  });
1042
1100
  }
1043
1101
 
1044
- // 设置视频路径
1102
+ /**
1103
+ * @description 设置视频流路径
1104
+ * @param {String} val 视频流地址
1105
+ */
1045
1106
  setVideoPath(val) {
1046
1107
  this._options.videoPath = val;
1047
1108
  }
1048
1109
 
1049
- // 设置视场角度
1110
+ /**
1111
+ * @description 设置视场角度
1112
+ * @param {Number} val 视场角度值
1113
+ */
1050
1114
  setFov(val) {
1051
1115
  this._options.fov = Number(val);
1052
1116
  if (this._videoFusion) {
@@ -1056,17 +1120,23 @@ class VideoFusiontViewModel {
1056
1120
  }
1057
1121
  }
1058
1122
 
1059
- // 设置投影距离
1123
+ /**
1124
+ * @description 设置投影距离
1125
+ * @param {Number} val 投影距离值
1126
+ */
1060
1127
  setFar(val) {
1061
1128
  this._options.far = Number(val);
1062
1129
  if (this._videoFusion) this._videoFusion._changeFar(this._options.far);
1063
1130
  }
1064
1131
 
1065
- // 设置朝向角
1132
+ /**
1133
+ * @description 设置朝向角
1134
+ * @param {Number} val 朝向角度值
1135
+ */
1066
1136
  setHeading(val) {
1067
1137
  this._options.heading = Number(val);
1068
1138
  if (this._videoFusion) {
1069
- let param = this._videoFusion.param;
1139
+ const param = this._videoFusion.param;
1070
1140
  param.hpr.heading = this._options.heading;
1071
1141
  this._videoFusionCollection.updateVideoTarget(this._videoFusion.id, {
1072
1142
  position: param.position
@@ -1074,11 +1144,14 @@ class VideoFusiontViewModel {
1074
1144
  }
1075
1145
  }
1076
1146
 
1077
- // 设置俯仰角
1147
+ /**
1148
+ * @description 设置俯仰角
1149
+ * @param {Number} val 俯仰角度值
1150
+ */
1078
1151
  setPitch(val) {
1079
1152
  this._options.pitch = Number(val);
1080
1153
  if (this._videoFusion) {
1081
- let param = this._videoFusion.param;
1154
+ const param = this._videoFusion.param;
1082
1155
  param.hpr.pitch = this._options.pitch;
1083
1156
  this._videoFusionCollection.updateVideoTarget(this._videoFusion.id, {
1084
1157
  position: param.position
@@ -1086,11 +1159,14 @@ class VideoFusiontViewModel {
1086
1159
  }
1087
1160
  }
1088
1161
 
1089
- // 设置翻转角
1162
+ /**
1163
+ * @description 设置翻转角
1164
+ * @param {Number} val 翻转角度值
1165
+ */
1090
1166
  setRoll(val) {
1091
1167
  this._options.roll = Number(val);
1092
1168
  if (this._videoFusion) {
1093
- let param = this._videoFusion.param;
1169
+ const param = this._videoFusion.param;
1094
1170
  param.hpr.roll = this._options.roll;
1095
1171
  this._videoFusionCollection.updateVideoTarget(this._videoFusion.id, {
1096
1172
  position: param.position
@@ -1098,7 +1174,10 @@ class VideoFusiontViewModel {
1098
1174
  }
1099
1175
  }
1100
1176
 
1101
- // 设置透明度
1177
+ /**
1178
+ * @description 设置透明度
1179
+ * @param {Number} val 透明度值
1180
+ */
1102
1181
  setAlpha(val) {
1103
1182
  this._options.alpha = Number(val);
1104
1183
  if (this._videoFusion) {
@@ -1108,7 +1187,10 @@ class VideoFusiontViewModel {
1108
1187
  }
1109
1188
  }
1110
1189
 
1111
- // 设置羽化度
1190
+ /**
1191
+ * @description 设置羽化度
1192
+ * @param {Number} val 羽化度值
1193
+ */
1112
1194
  setEclosion(val) {
1113
1195
  this._options.eclosion = Number(val);
1114
1196
  if (this._videoFusion) {
@@ -1118,7 +1200,10 @@ class VideoFusiontViewModel {
1118
1200
  }
1119
1201
  }
1120
1202
 
1121
- // 显隐线框
1203
+ /**
1204
+ * @description 设置线框显隐
1205
+ * @param {Boolean} val 是否显示线框
1206
+ */
1122
1207
  showHideLine(val) {
1123
1208
  this._options.showHideLine = val;
1124
1209
  if (this._videoFusion) this._videoFusion.debugFrustum = val;
@@ -1137,11 +1222,11 @@ Object.defineProperty(exports, "__esModule", ({
1137
1222
  value: true
1138
1223
  }));
1139
1224
  exports.kq_npm_client_leaflet_vue = exports.kq_npm_client_common_vue = exports.kq_npm_client3d_webgl_vue = void 0;
1140
- let kq_npm_client_common_vue = exports.kq_npm_client_common_vue = window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {};
1225
+ const kq_npm_client_common_vue = exports.kq_npm_client_common_vue = window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {};
1141
1226
  __webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
1142
- let kq_npm_client_leaflet_vue = exports.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {};
1227
+ const kq_npm_client_leaflet_vue = exports.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {};
1143
1228
  __webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
1144
- let kq_npm_client3d_webgl_vue = exports.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue || {};
1229
+ const kq_npm_client3d_webgl_vue = exports.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue = window.kq_npm_client3d_webgl_vue || {};
1145
1230
  __webpack_require__.g.kq_npm_client3d_webgl_vue = kq_npm_client3d_webgl_vue;
1146
1231
 
1147
1232
  /***/ })