MCPcopy
hub / github.com/sparkjsdev/spark / load

Method load

src/SplatLoader.ts:26–38  ·  view source on GitHub ↗
(
    url: string,
    onLoad?: (decoded: PackedSplats | ExtSplats) => void,
    onProgress?: (event: ProgressEvent) => void,
    onError?: (error: unknown) => void,
  )

Source from the content-addressed store, hash-verified

24 }
25
26 load(
27 url: string,
28 onLoad?: (decoded: PackedSplats | ExtSplats) => void,
29 onProgress?: (event: ProgressEvent) => void,
30 onError?: (error: unknown) => void,
31 ) {
32 return this.loadInternal({
33 url,
34 onLoad,
35 onProgress,
36 onError,
37 });
38 }
39
40 async loadAsync(
41 url: string,

Callers 4

loadAsyncMethod · 0.95
loadGLBFunction · 0.80
loadDelitGLBFunction · 0.80
loadTableFunction · 0.80

Calls 1

loadInternalMethod · 0.95

Tested by

no test coverage detected