@speridlabs/visus 2.0.0 → 2.1.0

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/main.d.ts CHANGED
@@ -97,7 +97,6 @@ export declare class SplatData {
97
97
  scales: Float32Array;
98
98
  colors: Float32Array;
99
99
  opacities: Float32Array;
100
- centers: Float32Array;
101
100
  boundingBox: BoundingBox;
102
101
  constructor(numSplats?: number);
103
102
  private allocateBuffers;
@@ -182,7 +181,7 @@ export declare interface SplatMaterialOptions {
182
181
  */
183
182
  export declare class SplatMesh extends THREE.Mesh {
184
183
  sorter: SplatSorter;
185
- splatData: SplatData;
184
+ splatData: SplatData | null;
186
185
  options: SplatMeshOptions;
187
186
  textureManager: TextureManager;
188
187
  material: SplatMaterial;
@@ -245,6 +244,7 @@ export declare class SplatMesh extends THREE.Mesh {
245
244
 
246
245
  export declare interface SplatMeshOptions extends SplatMaterialOptions {
247
246
  autoSort?: boolean;
247
+ keepSplatData?: boolean;
248
248
  }
249
249
 
250
250
  /**
@@ -271,8 +271,9 @@ export declare class SplatSorter extends THREE.EventDispatcher<{
271
271
  * @param orderTexture The THREE.DataTexture (R32UI) to store the sorted splat indices.
272
272
  * @param centers A Float32Array containing the center position (x, y, z) for each splat.
273
273
  * @param chunks Optional: A Float32Array containing bounding box chunk data [minX, minY, minZ, maxX, maxY, maxZ, ...] for optimization.
274
+ * @param transferOwnership Optional: If true, transfers ownership of centers buffer to worker (saves memory, main thread loses access). Default: false.
274
275
  */
275
- init(orderTexture: THREE.DataTexture, centers: Float32Array, chunks?: Float32Array): void;
276
+ init(orderTexture: THREE.DataTexture, centers: Float32Array, chunks?: Float32Array, transferOwnership?: boolean): void;
276
277
  /**
277
278
  * Applies an optional mapping to filter or reorder splats before sorting.
278
279
  * The sorter will only consider splats whose original indices are present in the mapping.