@d5techs/3dgs-lib 1.4.25 → 1.4.26

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
@@ -194,6 +194,10 @@ export declare class App {
194
194
  */
195
195
  createSplatBoundingBoxProvider(): SplatBoundingBoxProvider | null;
196
196
  getRenderer(): Renderer;
197
+ /**
198
+ * CPU splat 拾取:在屏幕坐标 (clientX, clientY) 处找最近的 splat,返回世界坐标或 null
199
+ */
200
+ pickSplatPosition(clientX: number, clientY: number): [number, number, number] | null;
197
201
  getCamera(): Camera;
198
202
  getControls(): OrbitControls;
199
203
  getMeshRenderer(): MeshRenderer;
@@ -35,6 +35,7 @@ export declare class OrbitControls {
35
35
  private lastTouchDistance;
36
36
  private lastTouchCenter;
37
37
  enabled: boolean;
38
+ pickWorldPosition: ((clientX: number, clientY: number) => [number, number, number] | null) | null;
38
39
  private boundOnMouseDown;
39
40
  private boundOnMouseMove;
40
41
  private boundOnMouseUp;
@@ -10,7 +10,7 @@
10
10
  * 5. DC 颜色 + 不透明度:DP codebook 量化 → WebP
11
11
  * 6. 高阶 SH (L1-L3):GPU k-means palette + DP codebook → centroids/labels WebP
12
12
  */
13
- import type { CompactSplatData, CoordinateSystem } from './PLYLoaderMobile';
13
+ import type { CompactSplatData, CoordinateSystem } from "./PLYLoaderMobile";
14
14
  export interface SOGEncodeOptions {
15
15
  maxSHBands?: number;
16
16
  iterations?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d5techs/3dgs-lib",
3
- "version": "1.4.25",
3
+ "version": "1.4.26",
4
4
  "description": "可扩展的 WebGPU 3D 渲染引擎",
5
5
  "type": "module",
6
6
  "main": "./dist/3dgs-lib.cjs",