@speridlabs/visus 1.0.4 → 2.0.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 +21 -3
- package/dist/main.es.js +572 -483
- package/dist/main.umd.js +6 -6
- package/dist/react.es.js +745 -656
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -49,6 +49,15 @@ export declare class BoundingBox {
|
|
|
49
49
|
* Class for loading PLY files with Gaussian Splat data
|
|
50
50
|
*/
|
|
51
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;
|
|
52
61
|
/**
|
|
53
62
|
* Load a PLY file with Gaussian Splat data
|
|
54
63
|
* @param url URL of the PLY file
|
|
@@ -65,11 +74,20 @@ export declare class PlyLoader extends THREE.Loader {
|
|
|
65
74
|
*/
|
|
66
75
|
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<SplatData>;
|
|
67
76
|
/**
|
|
68
|
-
* Parse PLY buffer data
|
|
77
|
+
* Parse PLY buffer data asynchronously using Web Worker
|
|
69
78
|
* @param buffer ArrayBuffer containing PLY data
|
|
70
|
-
* @returns
|
|
79
|
+
* @returns Promise that resolves with parsed SplatData
|
|
80
|
+
*/
|
|
81
|
+
private parseAsync;
|
|
82
|
+
/**
|
|
83
|
+
* Terminate the Web Worker and clean up resources
|
|
71
84
|
*/
|
|
72
|
-
|
|
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;
|
|
73
91
|
}
|
|
74
92
|
|
|
75
93
|
export declare class SplatData {
|