@d5techs/3dgs-lib 1.4.23 → 1.4.24

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.
@@ -16,5 +16,17 @@ export interface SOGEncodeOptions {
16
16
  iterations?: number;
17
17
  paletteSize?: number;
18
18
  }
19
- export type SOGEncodeProgressCallback = (step: string, progress: number) => void;
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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d5techs/3dgs-lib",
3
- "version": "1.4.23",
3
+ "version": "1.4.24",
4
4
  "description": "可扩展的 WebGPU 3D 渲染引擎",
5
5
  "type": "module",
6
6
  "main": "./dist/3dgs-lib.cjs",