@speridlabs/visus 2.4.2 → 2.4.3

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
@@ -1,336 +1,344 @@
1
- import * as THREE from 'three';
2
-
3
- /**
4
- * Simplified bounding box class that tracks min/max points
5
- */
6
- export declare class BoundingBox {
7
- min: THREE.Vector3;
8
- max: THREE.Vector3;
9
- center: THREE.Vector3;
10
- /** Half extents (size/2) */
11
- halfExtents: THREE.Vector3;
12
- /**
13
- * Reset the bounding box to its initial state
14
- */
15
- reset(): void;
16
- /**
17
- * Expand the bounding box to include the given point
18
- * @param point Point to include in the bounding box
19
- */
20
- expandByPoint(point: THREE.Vector3): void;
21
- /**
22
- * Expand this bounding box to include another bounding box
23
- * @param box Bounding box to include
24
- */
25
- expandByBox(box: BoundingBox): void;
26
- /**
27
- * Update the center and half extents based on min/max
28
- */
29
- private updateDerived;
30
- /**
31
- * Check if this box contains a point
32
- * @param point Point to check
33
- * @returns True if the point is inside the box
34
- */
35
- containsPoint(point: THREE.Vector3): boolean;
36
- /**
37
- * Create a Three.js Box3 from this bounding box
38
- * @returns THREE.Box3 representation
39
- */
40
- toBox3(): THREE.Box3;
41
- /**
42
- * Create a clone of this bounding box
43
- * @returns New bounding box with the same values
44
- */
45
- clone(): BoundingBox;
46
- }
47
-
48
- /**
49
- * Class for loading PLY files with Gaussian Splat data
50
- */
51
- export declare class PlyLoader extends THREE.Loader {
52
- private requestId;
53
- private worker;
54
- private pendingCallbacks;
55
- constructor(manager?: THREE.LoadingManager);
56
- /**
57
- * Handles messages received from the parsing worker
58
- * @param event The message event from the worker
59
- */
60
- private onWorkerMessage;
61
- /**
62
- * Load a PLY file with Gaussian Splat data
63
- * @param url URL of the PLY file
64
- * @param onLoad Optional callback when loading is complete
65
- * @param onProgress Optional progress callback
66
- * @param onError Optional error callback
67
- */
68
- load(url: string, onLoad?: (data: SplatData) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void): void;
69
- /**
70
- * Load a PLY file asynchronously and return a Promise
71
- * @param url URL of the PLY file
72
- * @param onProgress Optional progress callback
73
- * @returns A Promise that resolves with the parsed SplatData
74
- */
75
- loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<SplatData>;
76
- /**
77
- * Parse PLY buffer data asynchronously using Web Worker
78
- * @param buffer ArrayBuffer containing PLY data
79
- * @returns Promise that resolves with parsed SplatData
80
- */
81
- private parseAsync;
82
- /**
83
- * Terminate the Web Worker and clean up resources
84
- */
85
- dispose(): void;
86
- /**
87
- * Creates the self-contained code for the parsing Web Worker
88
- * @returns A string containing the JavaScript code for the worker
89
- */
90
- private createWorkerCode;
91
- }
92
-
93
- /**
94
- * Class for loading SOGS (Self Organizing Gaussians) files
95
- */
96
- export declare class SogsLoader extends THREE.Loader {
97
- constructor(manager?: THREE.LoadingManager);
98
- /**
99
- * Detect if a buffer is a ZIP file by checking magic bytes
100
- * ZIP files start with signature: PK\x03\x04 (0x50 0x4B 0x03 0x04)
101
- */
102
- private isZipBuffer;
103
- /**
104
- * Load a SOGS file (meta.json + textures)
105
- * @param url URL of the meta.json file
106
- * @param onLoad Optional callback when loading is complete
107
- * @param onProgress Optional progress callback
108
- * @param onError Optional error callback
109
- */
110
- load(url: string, onLoad?: (data: SplatData) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void): void;
111
- /**
112
- * Load a SOGS file asynchronously and return a Promise
113
- * @param url URL of the meta.json file
114
- * @param onProgress Optional progress callback
115
- * @returns A Promise that resolves with the parsed SplatData
116
- */
117
- loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<SplatData>;
118
- private parseAsync;
119
- private parseMetaAsync;
120
- private parseZipAsync;
121
- }
122
-
123
- export declare class SplatData {
124
- numSplats: number;
125
- textureWidth: number;
126
- textureHeight: number;
127
- ranges: SplatRanges;
128
- centers: Float32Array;
129
- boundingBox: BoundingBox;
130
- packedColor: Uint8Array;
131
- packedGeometry: Uint32Array;
132
- constructor(numSplats: number, textureWidth: number, textureHeight: number, centers: Float32Array, packedGeometry: Uint32Array, packedColor: Uint8Array, ranges: SplatRanges, boundingBox: BoundingBox);
133
- /**
134
- * Optional: Reconstruct a full JS object for a specific splat.
135
- * Useful for raycasting or debugging.
136
- */
137
- dispose(): void;
138
- }
139
-
140
- export declare class SplatMaterial extends THREE.ShaderMaterial {
141
- constructor(options?: SplatMaterialOptions);
142
- setTexWidth(w: number): void;
143
- /**
144
- * Update the viewport size
145
- * @param width Viewport width
146
- * @param height Viewport height
147
- */
148
- updateViewport(width: number, height: number): void;
149
- /**
150
- * Set the main packed geometry texture (RGBA32UI)
151
- */
152
- setPackedGeometry(texture: THREE.Texture): void;
153
- /**
154
- * Set the packed color texture (RGBA8)
155
- */
156
- setPackedColor(texture: THREE.Texture): void;
157
- /**
158
- * Set order texture for sorting
159
- */
160
- setOrderTexture(texture: THREE.Texture): void;
161
- /**
162
- * Set the ranges needed to decompress the packed floats
163
- */
164
- setRanges(ranges: SplatRanges): void;
165
- /**
166
- * Set number of splats to render
167
- * @param count Number of splats
168
- */
169
- setNumSplats(count: number): void;
170
- }
171
-
172
- export declare interface SplatMaterialOptions {
173
- alphaTest?: number;
174
- alphaHash?: boolean;
175
- toneMapped?: boolean;
176
- }
177
-
178
- /**
179
- * A mesh that renders Gaussian splats
180
- * Not a real MESH, but a custom geometry with instancing
181
- */
182
- export declare class SplatMesh extends THREE.Mesh {
183
- sorter: SplatSorter;
184
- options: SplatMeshOptions;
185
- splatData: SplatData | null;
186
- textureManager: TextureManager;
187
- material: SplatMaterial;
188
- geometry: THREE.InstancedBufferGeometry;
189
- private lastCameraPositionLocal;
190
- private lastCameraDirectionLocal;
191
- private invModelMatrix;
192
- private _vpW;
193
- private _vpH;
194
- private _size;
195
- private _camPosW;
196
- private _camDirW;
197
- private _camPosL;
198
- private _camDirL;
199
- /** Number of splats combined into a single instanced draw call. */
200
- private static INSTANCE_SIZE;
201
- /**
202
- * Create a new SplatMesh for rendering Gaussian splats
203
- * @param splatData The splat data to render
204
- * @param options Rendering options
205
- */
206
- constructor(splatData: SplatData, options?: SplatMeshOptions);
207
- private onSorterUpdated;
208
- /**
209
- * Creates the instanced geometry for rendering splats.
210
- * @param totalSplats Total number of splats in the data.
211
- * @param instanceSize Number of splats per instance.
212
- * @returns InstancedBufferGeometry
213
- */
214
- private static createInstancedGeometry;
215
- /**
216
- * Create chunks data (bounding box min/max) for the sorter.
217
- * @returns Float32Array containing chunk data [minX, minY, minZ, maxX, maxY, maxZ] or null.
218
- */
219
- private createChunks;
220
- /**
221
- * Update the viewport size
222
- * @param width Viewport width
223
- * @param height Viewport height
224
- */
225
- updateViewport(width: number, height: number): void;
226
- /**
227
- * Sorts splats based on camera position and direction.
228
- * @param camera The camera to sort against.
229
- */
230
- sort(camera: THREE.Camera): void;
231
- /**
232
- * THREE.js hook called before rendering the object.
233
- * Used here to trigger sorting and update viewport.
234
- * @param renderer The renderer
235
- * @param scene The scene
236
- * @param camera The camera
237
- */
238
- onBeforeRender(renderer: THREE.WebGLRenderer, scene: THREE.Scene, camera: THREE.Camera): void;
239
- /**
240
- * Dispose of resources
241
- */
242
- dispose(): void;
243
- }
244
-
245
- export declare interface SplatMeshOptions extends SplatMaterialOptions {
246
- autoSort?: boolean;
247
- keepSplatData?: boolean;
248
- }
249
-
250
- declare interface SplatRanges {
251
- sh0: {
252
- min: THREE.Vector3;
253
- max: THREE.Vector3;
254
- };
255
- means: {
256
- min: THREE.Vector3;
257
- max: THREE.Vector3;
258
- };
259
- scales: {
260
- min: THREE.Vector3;
261
- max: THREE.Vector3;
262
- };
263
- }
264
-
265
- /**
266
- * Manages sorting of splats based on camera view using a Web Worker.
267
- */
268
- export declare class SplatSorter extends THREE.EventDispatcher<{
269
- updated: SplatSortUpdateEvent;
270
- }> {
271
- private worker;
272
- private centers;
273
- private orderTexture;
274
- /** Bounding box data for optimization */
275
- private chunks;
276
- private lastCameraPosition;
277
- private lastCameraDirection;
278
- constructor();
279
- /**
280
- * Handles messages received from the sorting worker.
281
- * @param event The message event from the worker.
282
- */
283
- private onWorkerMessage;
284
- /**
285
- * Initializes the sorter with necessary data and textures.
286
- * @param orderTexture The THREE.DataTexture (R32UI) to store the sorted splat indices.
287
- * @param centers A Float32Array containing the center position (x, y, z) for each splat.
288
- * @param chunks Optional: A Float32Array containing bounding box chunk data [minX, minY, minZ, maxX, maxY, maxZ, ...] for optimization.
289
- * @param transferOwnership Optional: If true, transfers ownership of centers buffer to worker (saves memory, main thread loses access). Default: false.
290
- */
291
- init(orderTexture: THREE.DataTexture, centers: Float32Array, chunks?: Float32Array, transferOwnership?: boolean): void;
292
- /**
293
- * Applies an optional mapping to filter or reorder splats before sorting.
294
- * The sorter will only consider splats whose original indices are present in the mapping.
295
- * @param mapping A Uint32Array where each element is the *original* index of a splat to include, or null to reset mapping.
296
- */
297
- setMapping(mapping: Uint32Array | null): void;
298
- /**
299
- * Updates the camera parameters used for sorting.
300
- * @param position The camera's position in the sorter's local coordinate space.
301
- * @param direction The camera's forward direction in the sorter's local coordinate space.
302
- */
303
- setCamera(position: THREE.Vector3, direction: THREE.Vector3): void;
304
- /**
305
- * Terminates the Web Worker and cleans up resources.
306
- */
307
- dispose(): void;
308
- /**
309
- * Creates the self-contained code for the sorting Web Worker.
310
- * @returns A string containing the JavaScript code for the worker.
311
- */
312
- private createWorkerCode;
313
- }
314
-
315
- /** Event dispatched when the sort is updated */
316
- declare interface SplatSortUpdateEvent extends THREE.Event {
317
- type: 'updated';
318
- count: number;
319
- }
320
-
321
- export declare class TextureManager {
322
- packedGeometry: THREE.DataTexture;
323
- packedColor: THREE.DataTexture;
324
- orderTexture: THREE.DataTexture;
325
- width: number;
326
- height: number;
327
- constructor(data: SplatData);
328
- private createGeometryTexture;
329
- private createColorTexture;
330
- private createOrderTexture;
331
- dispose(): void;
332
- }
333
-
334
- export declare const VERSION = "0.3.0";
335
-
336
- export { }
1
+ import * as THREE from 'three';
2
+
3
+ /**
4
+ * Simplified bounding box class that tracks min/max points
5
+ */
6
+ export declare class BoundingBox {
7
+ min: THREE.Vector3;
8
+ max: THREE.Vector3;
9
+ center: THREE.Vector3;
10
+ /** Half extents (size/2) */
11
+ halfExtents: THREE.Vector3;
12
+ /**
13
+ * Reset the bounding box to its initial state
14
+ */
15
+ reset(): void;
16
+ /**
17
+ * Expand the bounding box to include the given point
18
+ * @param point Point to include in the bounding box
19
+ */
20
+ expandByPoint(point: THREE.Vector3): void;
21
+ /**
22
+ * Expand this bounding box to include another bounding box
23
+ * @param box Bounding box to include
24
+ */
25
+ expandByBox(box: BoundingBox): void;
26
+ /**
27
+ * Update the center and half extents based on min/max
28
+ */
29
+ private updateDerived;
30
+ /**
31
+ * Check if this box contains a point
32
+ * @param point Point to check
33
+ * @returns True if the point is inside the box
34
+ */
35
+ containsPoint(point: THREE.Vector3): boolean;
36
+ /**
37
+ * Create a Three.js Box3 from this bounding box
38
+ * @returns THREE.Box3 representation
39
+ */
40
+ toBox3(): THREE.Box3;
41
+ /**
42
+ * Create a clone of this bounding box
43
+ * @returns New bounding box with the same values
44
+ */
45
+ clone(): BoundingBox;
46
+ }
47
+
48
+ /**
49
+ * Class for loading PLY files with Gaussian Splat data
50
+ */
51
+ export declare class PlyLoader extends THREE.Loader {
52
+ private requestId;
53
+ private worker;
54
+ private pendingCallbacks;
55
+ constructor(manager?: THREE.LoadingManager, options?: PlyLoaderOptions);
56
+ /**
57
+ * Handles messages received from the parsing worker
58
+ * @param event The message event from the worker
59
+ */
60
+ private onWorkerMessage;
61
+ /**
62
+ * Load a PLY file with Gaussian Splat data
63
+ * @param url URL of the PLY file
64
+ * @param onLoad Optional callback when loading is complete
65
+ * @param onProgress Optional progress callback
66
+ * @param onError Optional error callback
67
+ */
68
+ load(url: string, onLoad?: (data: SplatData) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void): void;
69
+ /**
70
+ * Load a PLY file asynchronously and return a Promise
71
+ * @param url URL of the PLY file
72
+ * @param onProgress Optional progress callback
73
+ * @returns A Promise that resolves with the parsed SplatData
74
+ */
75
+ loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<SplatData>;
76
+ /**
77
+ * Parse PLY buffer data asynchronously using Web Worker
78
+ * @param buffer ArrayBuffer containing PLY data
79
+ * @returns Promise that resolves with parsed SplatData
80
+ */
81
+ private parseAsync;
82
+ /**
83
+ * Terminate the Web Worker and clean up resources
84
+ */
85
+ dispose(): void;
86
+ /**
87
+ * Creates the self-contained code for the parsing Web Worker
88
+ * @returns A string containing the JavaScript code for the worker
89
+ */
90
+ private createWorkerCode;
91
+ }
92
+
93
+ export declare interface PlyLoaderOptions {
94
+ withCredentials?: boolean;
95
+ }
96
+
97
+ /**
98
+ * Class for loading SOGS (Self Organizing Gaussians) files
99
+ */
100
+ export declare class SogsLoader extends THREE.Loader {
101
+ constructor(manager?: THREE.LoadingManager, options?: SogsLoaderOptions);
102
+ /**
103
+ * Detect if a buffer is a ZIP file by checking magic bytes
104
+ * ZIP files start with signature: PK\x03\x04 (0x50 0x4B 0x03 0x04)
105
+ */
106
+ private isZipBuffer;
107
+ /**
108
+ * Load a SOGS file (meta.json + textures)
109
+ * @param url URL of the meta.json file
110
+ * @param onLoad Optional callback when loading is complete
111
+ * @param onProgress Optional progress callback
112
+ * @param onError Optional error callback
113
+ */
114
+ load(url: string, onLoad?: (data: SplatData) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void): void;
115
+ /**
116
+ * Load a SOGS file asynchronously and return a Promise
117
+ * @param url URL of the meta.json file
118
+ * @param onProgress Optional progress callback
119
+ * @returns A Promise that resolves with the parsed SplatData
120
+ */
121
+ loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<SplatData>;
122
+ private parseAsync;
123
+ private parseMetaAsync;
124
+ private parseZipAsync;
125
+ }
126
+
127
+ export declare interface SogsLoaderOptions {
128
+ withCredentials?: boolean;
129
+ }
130
+
131
+ export declare class SplatData {
132
+ numSplats: number;
133
+ textureWidth: number;
134
+ textureHeight: number;
135
+ ranges: SplatRanges;
136
+ centers: Float32Array;
137
+ boundingBox: BoundingBox;
138
+ packedColor: Uint8Array;
139
+ packedGeometry: Uint32Array;
140
+ constructor(numSplats: number, textureWidth: number, textureHeight: number, centers: Float32Array, packedGeometry: Uint32Array, packedColor: Uint8Array, ranges: SplatRanges, boundingBox: BoundingBox);
141
+ /**
142
+ * Optional: Reconstruct a full JS object for a specific splat.
143
+ * Useful for raycasting or debugging.
144
+ */
145
+ dispose(): void;
146
+ }
147
+
148
+ export declare class SplatMaterial extends THREE.ShaderMaterial {
149
+ constructor(options?: SplatMaterialOptions);
150
+ setTexWidth(w: number): void;
151
+ /**
152
+ * Update the viewport size
153
+ * @param width Viewport width
154
+ * @param height Viewport height
155
+ */
156
+ updateViewport(width: number, height: number): void;
157
+ /**
158
+ * Set the main packed geometry texture (RGBA32UI)
159
+ */
160
+ setPackedGeometry(texture: THREE.Texture): void;
161
+ /**
162
+ * Set the packed color texture (RGBA8)
163
+ */
164
+ setPackedColor(texture: THREE.Texture): void;
165
+ /**
166
+ * Set order texture for sorting
167
+ */
168
+ setOrderTexture(texture: THREE.Texture): void;
169
+ /**
170
+ * Set the ranges needed to decompress the packed floats
171
+ */
172
+ setRanges(ranges: SplatRanges): void;
173
+ /**
174
+ * Set number of splats to render
175
+ * @param count Number of splats
176
+ */
177
+ setNumSplats(count: number): void;
178
+ }
179
+
180
+ export declare interface SplatMaterialOptions {
181
+ alphaTest?: number;
182
+ alphaHash?: boolean;
183
+ toneMapped?: boolean;
184
+ }
185
+
186
+ /**
187
+ * A mesh that renders Gaussian splats
188
+ * Not a real MESH, but a custom geometry with instancing
189
+ */
190
+ export declare class SplatMesh extends THREE.Mesh {
191
+ sorter: SplatSorter;
192
+ options: SplatMeshOptions;
193
+ splatData: SplatData | null;
194
+ textureManager: TextureManager;
195
+ material: SplatMaterial;
196
+ geometry: THREE.InstancedBufferGeometry;
197
+ private lastCameraPositionLocal;
198
+ private lastCameraDirectionLocal;
199
+ private invModelMatrix;
200
+ private _vpW;
201
+ private _vpH;
202
+ private _size;
203
+ private _camPosW;
204
+ private _camDirW;
205
+ private _camPosL;
206
+ private _camDirL;
207
+ /** Number of splats combined into a single instanced draw call. */
208
+ private static INSTANCE_SIZE;
209
+ /**
210
+ * Create a new SplatMesh for rendering Gaussian splats
211
+ * @param splatData The splat data to render
212
+ * @param options Rendering options
213
+ */
214
+ constructor(splatData: SplatData, options?: SplatMeshOptions);
215
+ private onSorterUpdated;
216
+ /**
217
+ * Creates the instanced geometry for rendering splats.
218
+ * @param totalSplats Total number of splats in the data.
219
+ * @param instanceSize Number of splats per instance.
220
+ * @returns InstancedBufferGeometry
221
+ */
222
+ private static createInstancedGeometry;
223
+ /**
224
+ * Create chunks data (bounding box min/max) for the sorter.
225
+ * @returns Float32Array containing chunk data [minX, minY, minZ, maxX, maxY, maxZ] or null.
226
+ */
227
+ private createChunks;
228
+ /**
229
+ * Update the viewport size
230
+ * @param width Viewport width
231
+ * @param height Viewport height
232
+ */
233
+ updateViewport(width: number, height: number): void;
234
+ /**
235
+ * Sorts splats based on camera position and direction.
236
+ * @param camera The camera to sort against.
237
+ */
238
+ sort(camera: THREE.Camera): void;
239
+ /**
240
+ * THREE.js hook called before rendering the object.
241
+ * Used here to trigger sorting and update viewport.
242
+ * @param renderer The renderer
243
+ * @param scene The scene
244
+ * @param camera The camera
245
+ */
246
+ onBeforeRender(renderer: THREE.WebGLRenderer, scene: THREE.Scene, camera: THREE.Camera): void;
247
+ /**
248
+ * Dispose of resources
249
+ */
250
+ dispose(): void;
251
+ }
252
+
253
+ export declare interface SplatMeshOptions extends SplatMaterialOptions {
254
+ autoSort?: boolean;
255
+ keepSplatData?: boolean;
256
+ }
257
+
258
+ declare interface SplatRanges {
259
+ sh0: {
260
+ min: THREE.Vector3;
261
+ max: THREE.Vector3;
262
+ };
263
+ means: {
264
+ min: THREE.Vector3;
265
+ max: THREE.Vector3;
266
+ };
267
+ scales: {
268
+ min: THREE.Vector3;
269
+ max: THREE.Vector3;
270
+ };
271
+ }
272
+
273
+ /**
274
+ * Manages sorting of splats based on camera view using a Web Worker.
275
+ */
276
+ export declare class SplatSorter extends THREE.EventDispatcher<{
277
+ updated: SplatSortUpdateEvent;
278
+ }> {
279
+ private worker;
280
+ private centers;
281
+ private orderTexture;
282
+ /** Bounding box data for optimization */
283
+ private chunks;
284
+ private lastCameraPosition;
285
+ private lastCameraDirection;
286
+ constructor();
287
+ /**
288
+ * Handles messages received from the sorting worker.
289
+ * @param event The message event from the worker.
290
+ */
291
+ private onWorkerMessage;
292
+ /**
293
+ * Initializes the sorter with necessary data and textures.
294
+ * @param orderTexture The THREE.DataTexture (R32UI) to store the sorted splat indices.
295
+ * @param centers A Float32Array containing the center position (x, y, z) for each splat.
296
+ * @param chunks Optional: A Float32Array containing bounding box chunk data [minX, minY, minZ, maxX, maxY, maxZ, ...] for optimization.
297
+ * @param transferOwnership Optional: If true, transfers ownership of centers buffer to worker (saves memory, main thread loses access). Default: false.
298
+ */
299
+ init(orderTexture: THREE.DataTexture, centers: Float32Array, chunks?: Float32Array, transferOwnership?: boolean): void;
300
+ /**
301
+ * Applies an optional mapping to filter or reorder splats before sorting.
302
+ * The sorter will only consider splats whose original indices are present in the mapping.
303
+ * @param mapping A Uint32Array where each element is the *original* index of a splat to include, or null to reset mapping.
304
+ */
305
+ setMapping(mapping: Uint32Array | null): void;
306
+ /**
307
+ * Updates the camera parameters used for sorting.
308
+ * @param position The camera's position in the sorter's local coordinate space.
309
+ * @param direction The camera's forward direction in the sorter's local coordinate space.
310
+ */
311
+ setCamera(position: THREE.Vector3, direction: THREE.Vector3): void;
312
+ /**
313
+ * Terminates the Web Worker and cleans up resources.
314
+ */
315
+ dispose(): void;
316
+ /**
317
+ * Creates the self-contained code for the sorting Web Worker.
318
+ * @returns A string containing the JavaScript code for the worker.
319
+ */
320
+ private createWorkerCode;
321
+ }
322
+
323
+ /** Event dispatched when the sort is updated */
324
+ declare interface SplatSortUpdateEvent extends THREE.Event {
325
+ type: 'updated';
326
+ count: number;
327
+ }
328
+
329
+ export declare class TextureManager {
330
+ packedGeometry: THREE.DataTexture;
331
+ packedColor: THREE.DataTexture;
332
+ orderTexture: THREE.DataTexture;
333
+ width: number;
334
+ height: number;
335
+ constructor(data: SplatData);
336
+ private createGeometryTexture;
337
+ private createColorTexture;
338
+ private createOrderTexture;
339
+ dispose(): void;
340
+ }
341
+
342
+ export declare const VERSION = "0.3.0";
343
+
344
+ export { }