Method
loadAsync
(
url: string,
onProgress?: (event: ProgressEvent) => void,
)
Source from the content-addressed store, hash-verified
| 38 | } |
| 39 | |
| 40 | async loadAsync( |
| 41 | url: string, |
| 42 | onProgress?: (event: ProgressEvent) => void, |
| 43 | ): Promise<PackedSplats | ExtSplats> { |
| 44 | return new Promise((resolve, reject) => { |
| 45 | this.load( |
| 46 | url, |
| 47 | (decoded) => { |
| 48 | resolve(decoded); |
| 49 | }, |
| 50 | onProgress, |
| 51 | reject, |
| 52 | ); |
| 53 | }); |
| 54 | } |
| 55 | |
| 56 | parse(packedSplats: PackedSplats): SplatMesh { |
| 57 | return new SplatMesh({ packedSplats }); |
Callers
nothing calls this directly
Tested by
no test coverage detected