@d5techs/3dgs-lib 1.4.37 → 1.4.38

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.
@@ -19,6 +19,7 @@ export declare class OrbitControls {
19
19
  touchZoomSpeed: number;
20
20
  touchPanSpeed: number;
21
21
  zoomDistanceCap: number;
22
+ private _modelCenter;
22
23
  enableDamping: boolean;
23
24
  dampingFactor: number;
24
25
  private isDragging;
@@ -80,6 +81,11 @@ export declare class OrbitControls {
80
81
  * 将球坐标写入相机位置(内部方法,不处理阻尼)
81
82
  */
82
83
  private applySpherical;
84
+ /**
85
+ * 缩放有效距离:取 distance、相机到模型中心距离、zoomDistanceCap 三者最小值。
86
+ * 保证缩放步长始终与相机到模型的真实接近程度匹配。
87
+ */
88
+ private getEffectiveZoomDist;
83
89
  /**
84
90
  * 每帧调用:应用阻尼衰减并更新相机
85
91
  * 在渲染循环中调用此方法以获得平滑惯性效果
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d5techs/3dgs-lib",
3
- "version": "1.4.37",
3
+ "version": "1.4.38",
4
4
  "description": "可扩展的 WebGPU 3D 渲染引擎",
5
5
  "type": "module",
6
6
  "main": "./dist/3dgs-lib.cjs",