@kq_npm/client3d_webgl_vue 4.5.54 → 4.5.56

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.
@@ -511,6 +511,11 @@ class WindySlicingViewModel {
511
511
  this.windySlicingSurfaceSection(this._currentVolumePosition, Object.assign(layerConfig, {
512
512
  zValues: val
513
513
  }));
514
+ this._handleSectionChange('long');
515
+ this._handleSectionChange('lat');
516
+ setTimeout(() => {
517
+ this._setgdVolumeVisible();
518
+ }, 200);
514
519
  }
515
520
  }
516
521
 
@@ -633,7 +638,7 @@ class WindySlicingViewModel {
633
638
  setjdVolumeVisible() {
634
639
  const line = JSON.parse(JSON.stringify(this.volumelines?.volumeLine1));
635
640
  line.forEach(item => {
636
- item.x = item.x - Number(this._options["longSectionValue"]);
641
+ item.x = item.x + Number(this._options["longSectionValue"]);
637
642
  });
638
643
  const zValues = this._options?.enableLayerings?.slice(0, this._options?.altitudeControl);
639
644
  this._volumePrimitive1 = this.getSlicingParams({
@@ -650,7 +655,7 @@ class WindySlicingViewModel {
650
655
  setwdVolumeVisible() {
651
656
  const line = JSON.parse(JSON.stringify(this.volumelines?.volumeLine2));
652
657
  line.forEach(item => {
653
- item.y = item.y - Number(this._options["latSectionValue"]);
658
+ item.y = item.y + Number(this._options["latSectionValue"]);
654
659
  });
655
660
  const zValues = this._options?.enableLayerings?.slice(0, this._options?.altitudeControl);
656
661
  this._volumePrimitive2 = this.getSlicingParams({
@@ -662,16 +667,27 @@ class WindySlicingViewModel {
662
667
  this._volumePrimitive2.showSection(line);
663
668
  });
664
669
  }
665
-
666
670
  // 高度剖面
667
- setgdVolumeVisible() {
668
- const zshowMax = this._options?.enableLayerings?.slice(0, this._options?.altitudeControl);
669
- const zVisibles = this._generateZVisibles(zshowMax, this._options["enableHeightSection"], this._options["heightSectionValue"] - 1);
670
- if (this._volumePrimitive) {
671
- this._volumePrimitive.updateVisibles(zVisibles);
671
+ _setgdVolumeVisible() {
672
+ let zshowMax = this._options?.enableLayerings?.slice(0, this._options?.altitudeControl);
673
+ let zVisibles = [];
674
+ if (this._options["enableHeightSection"]) {
675
+ for (let i = 0; i < zshowMax.length; i++) {
676
+ if (i == this._options["heightSectionValue"] - 1) {
677
+ zVisibles.push(true);
678
+ } else {
679
+ zVisibles.push(false);
680
+ }
681
+ }
682
+ if (this._windySlicingLayerconfig.unit == "hpa") zVisibles = zVisibles.reverse();
683
+ if (this._volumePrimitive) this._volumePrimitive.updateVisibles(zVisibles);
684
+ } else {
685
+ for (let i = 0; i < zshowMax.length; i++) {
686
+ zVisibles.push(false);
687
+ }
688
+ this._volumePrimitive && this._volumePrimitive.updateVisibles(zVisibles);
672
689
  }
673
690
  }
674
-
675
691
  // 分层显隐(重命名+简化逻辑)
676
692
  _setEnableLayeringVisible() {
677
693
  const zValues = this._windySlicingLayerconfig?.zValues || [];