@d5techs/3dgs-lib 1.4.25 → 1.4.27
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/3dgs-lib.cjs +215 -33
- package/dist/3dgs-lib.cjs.map +1 -1
- package/dist/3dgs-lib.js +215 -33
- package/dist/3dgs-lib.js.map +1 -1
- package/dist/App.d.ts +4 -0
- package/dist/core/OrbitControls.d.ts +1 -0
- package/dist/gs/SOGEncoder.d.ts +1 -1
- package/package.json +1 -1
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;
|
package/dist/gs/SOGEncoder.d.ts
CHANGED
|
@@ -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
|
|
13
|
+
import type { CompactSplatData, CoordinateSystem } from "./PLYLoaderMobile";
|
|
14
14
|
export interface SOGEncodeOptions {
|
|
15
15
|
maxSHBands?: number;
|
|
16
16
|
iterations?: number;
|