@d5techs/3dgs-lib 1.4.23 → 1.4.25
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 +23 -12
- package/dist/3dgs-lib.cjs.map +1 -1
- package/dist/3dgs-lib.js +23 -12
- package/dist/3dgs-lib.js.map +1 -1
- package/dist/gs/SOGEncoder.d.ts +13 -1
- package/package.json +1 -1
package/dist/gs/SOGEncoder.d.ts
CHANGED
|
@@ -16,5 +16,17 @@ export interface SOGEncodeOptions {
|
|
|
16
16
|
iterations?: number;
|
|
17
17
|
paletteSize?: number;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* @param step - step identifier:
|
|
21
|
+
* 'coord_transform' | 'morton_sort' | 'encode_position' |
|
|
22
|
+
* 'encode_scale' | 'encode_quaternion' | 'encode_color' |
|
|
23
|
+
* 'sh_compress' | 'sh_cluster' | 'sh_quantize' |
|
|
24
|
+
* 'encode_webp' | 'pack_zip' | 'done'
|
|
25
|
+
* @param progress - 0..1
|
|
26
|
+
* @param detail - optional extra info, e.g. { iter: 3, total: 10 }
|
|
27
|
+
*/
|
|
28
|
+
export type SOGEncodeProgressCallback = (step: string, progress: number, detail?: {
|
|
29
|
+
iter?: number;
|
|
30
|
+
total?: number;
|
|
31
|
+
}) => void;
|
|
20
32
|
export declare function serializeSOG(data: CompactSplatData, coordinateSystem?: CoordinateSystem, options?: SOGEncodeOptions, onProgress?: SOGEncodeProgressCallback): Promise<ArrayBuffer>;
|