MCPcopy Index your code
hub / github.com/sparkjsdev/spark / loadAsync

Method loadAsync

src/SplatLoader.ts:40–54  ·  view source on GitHub ↗
(
    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

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected