@kq_npm/client3d_webgl_vue 4.5.40 → 4.5.42

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.
@@ -251,11 +251,11 @@ class SkylineAnalysisViewModel {
251
251
  lineWidth: option.skylineWidth, //天际线线宽
252
252
  radius: option.skylineRadius //天际线分析范围
253
253
  };
254
- if (option.viewPosition) this._options.viewPosition = option.viewPosition;
255
- if (option.heading) this._options.heading = option.heading;
256
- if (option.pitch) this._options.pitch = option.pitch;
257
- if (option.roll) this._options.viewPosition = option.roll;
258
- if (option.fov) this._options.fov = option.fov;
254
+ // if (option.viewPosition) this._options.viewPosition = option.viewPosition;
255
+ // if (option.heading) this._options.heading = option.heading;
256
+ // if (option.pitch) this._options.pitch = option.pitch;
257
+ // if (option.roll) this._options.viewPosition = option.roll;
258
+ // if (option.fov) this._options.fov = option.fov;
259
259
  // 实例化天际线分析类
260
260
  this._skylineAnalysis = new window.Cesium.Kq3dSkyline(this._options);
261
261
  }
@@ -272,7 +272,7 @@ class SkylineAnalysisViewModel {
272
272
  }
273
273
  }
274
274
  if (flag) {
275
- if (!this._skylineAnalysis || this._skylineAnalysis.isDestroyed()) {
275
+ if (this._skylineAnalysis?.isDestroyed?.()) {
276
276
  this._skylineAnalysis = new window.Cesium.Kq3dSkyline(this._options);
277
277
  }
278
278
  this._skylineAnalysis.updateBuffer();
@@ -302,8 +302,6 @@ class SkylineAnalysisViewModel {
302
302
  this._skylineAnalysis = new window.Cesium.Kq3dSkyline(this._options);
303
303
  }
304
304
  this._showLimitHeightBody = true;
305
- this._skylineAnalysis.faceColor = this._options.faceColor;
306
- this._skylineAnalysis.faceOutlineColor = this._options.faceOutlineColor;
307
305
  this._skylineAnalysis.drawHeightGeo();
308
306
  this._skylineAnalysis.viewer.camera.moveBackward(1);
309
307
  } else {
@@ -402,7 +400,7 @@ class SkylineAnalysisViewModel {
402
400
  if (this._skylineAnalysis && !this._skylineAnalysis.isDestroyed()) {
403
401
  this._skylineAnalysis.removeAlllimitHeights();
404
402
  this._skylineAnalysis.removeAllFaces();
405
- // this._skylineAnalysis.removeGeoJsonDataSource();
403
+ this._skylineAnalysis.removeGeoJsonDataSource();
406
404
  this._skylineAnalysis.removeCzmlJsonDataSource();
407
405
  }
408
406
  }
@@ -567,7 +565,9 @@ let resultEcahrtVis = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.r
567
565
 
568
566
 
569
567
  let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
570
- collapseValue: (props.settingParams && props.settingParams.collapseValue) || ((props.settingParams && props.settingParams.collapseValue)==''? "":"setting"), // 默认展开属性设置
568
+ collapseValue:
569
+ (props.settingParams && props.settingParams.collapseValue) ||
570
+ ((props.settingParams && props.settingParams.collapseValue) == "" ? "" : "setting"), // 默认展开属性设置
571
571
  skylineColor: (props.settingParams && props.settingParams.skylineColor) || "#ff0000", // 天际线颜色
572
572
  skylineRadius: (props.settingParams && props.settingParams.skylineRadius) || 1000, // 天际线半径
573
573
  minSkylineRadius: (props.settingParams && props.settingParams.minSkylineRadius) || 0, // 天际线半径范围最小值
@@ -576,7 +576,7 @@ let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive
576
576
  limitHeightBodyAlpha: (props.settingParams && props.settingParams.limitHeightBodyAlpha) || 0.7, // 限高体透明度
577
577
  minLimitHeightBodyAlpha: (props.settingParams && props.settingParams.minLimitHeightBodyAlpha) || 0, // 限高体透明度范围最小值
578
578
  maxLimitHeightBodyAlpha: (props.settingParams && props.settingParams.maxLimitHeightBodyAlpha) || 1, // 限高体透明度范围最大值
579
- skylineWidth: 2 // 天际线宽度
579
+ skylineWidth: props?.settingParams?.skylineWidth ?? 2 // 天际线宽度
580
580
  });
581
581
 
582
582
  // 组件容器Ref
@@ -620,17 +620,7 @@ headerTempTitle.value = language.value.skylineAnalysis;
620
620
 
621
621
  gis_utils_.utils.getWebMap(null, scenceView => {
622
622
  if (scenceView) {
623
- viewModel = new SkylineAnalysisViewModel(
624
- scenceView,
625
- {
626
- skylineColor: formItem.skylineColor,
627
- skylineRadius: formItem.skylineRadius,
628
- limitHeightBodyColor: formItem.limitHeightBodyColor,
629
- limitHeightBodyAlpha: formItem.limitHeightBodyAlpha,
630
- skylineWidth: formItem.skylineWidth
631
- },
632
- setEchartsColor()
633
- );
623
+ viewModel = new SkylineAnalysisViewModel(scenceView, formItem, setEchartsColor());
634
624
  viewModel._skylineAnalysisChartTitle = scenceView._language["skylineAnalysisChartTitle"];
635
625
  }
636
626
  });
@@ -268,7 +268,11 @@ class SlopeAspectAnalysisViewModel {
268
268
  colorImage: this.getImagePath(viewModel.colorImage),
269
269
  };
270
270
  this._globaOptions.viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
271
- this._globaOptions.viewer.scene.globe.enableLighting = true;
271
+ // this._globaOptions.viewer.scene.globe.enableLighting = true;
272
+ this._globaOptions.viewer.scene.logarithmicDepthBuffer = true;
273
+ this._globaOptions.viewer.scene.pickTranslucentDepth = true;
274
+ this._globaOptions.viewer.scene._environmentState.renderTranslucentDepthForPick = true;
275
+
272
276
  this._globaOptions._drawManager = scenceView._drawManager;
273
277
  // 坡度对象
274
278
  this._aspectAnalysis = new window.Cesium.Kq3dAspect({