@d5techs/3dgs-lib 1.4.85 → 1.4.86

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.
package/dist/App.d.ts CHANGED
@@ -74,7 +74,7 @@ export declare class App {
74
74
  private isRunning;
75
75
  private animationId;
76
76
  private useMobileRenderer;
77
- private isMobile;
77
+ private mobileOptimizationsEnabled;
78
78
  private mobileMaxVisibleCap;
79
79
  private lastCompactData;
80
80
  private adaptivePerformanceEnabled;
@@ -103,10 +103,12 @@ export declare class App {
103
103
  */
104
104
  private applyAppleGPUDefaults;
105
105
  /**
106
- * 移动端自动性能优化
107
- * 核心策略:降 DPR + 降分辨率 + 激进剔除 + 降排序频率
106
+ * 启用/禁用移动端性能优化(默认关闭)
107
+ * 开启后,加载模型时将自动应用:f16 半精度、16-bit 排序、像素剔除、动态分辨率等。
108
+ * 应在 init() 之后、加载模型之前调用。
108
109
  */
109
- private applyMobileDefaults;
110
+ enableMobileOptimizations(enabled?: boolean): void;
111
+ isMobileOptimized(): boolean;
110
112
  /**
111
113
  * 创建 GSSplatRenderer 并自动应用平台优化
112
114
  * @param forMobile 移动端模式:半精度(32B/splat)+ SH L0,内存降为 1/8
@@ -34,6 +34,7 @@ export declare class OrbitControls {
34
34
  private deltaPanZ;
35
35
  moveSpeed: number;
36
36
  private pressedKeys;
37
+ private _wasKeyboardMoving;
37
38
  private touchMode;
38
39
  private lastTouchDistance;
39
40
  private lastTouchCenter;
@@ -78,6 +79,12 @@ export declare class OrbitControls {
78
79
  private onTouchEnd;
79
80
  private getTouchDistance;
80
81
  private getTouchCenter;
82
+ /**
83
+ * 将 orbit 目标重新锚定到屏幕中心的模型表面点,
84
+ * 保持相机世界坐标不变,仅重算 distance/theta/phi。
85
+ * 用于 WASD 移动或触摸缩放结束后修复旋转中心偏移。
86
+ */
87
+ private recenterOrbitTarget;
81
88
  /**
82
89
  * 将球坐标写入相机位置(内部方法,不处理阻尼)
83
90
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d5techs/3dgs-lib",
3
- "version": "1.4.85",
3
+ "version": "1.4.86",
4
4
  "description": "可扩展的 WebGPU 3D 渲染引擎",
5
5
  "type": "module",
6
6
  "main": "./dist/3dgs-lib.cjs",