MCPcopy Create free account
hub / github.com/achrefelouafi/GrassSystemThreeJS / importFile

Function importFile

src/model.js:273–276  ·  view source on GitHub ↗

Load a GLB from a user File object.

(file)

Source from the content-addressed store, hash-verified

271 moss,
272 /** Load a GLB from a user File object. */
273 importFile(file) {
274 const url = URL.createObjectURL(file);
275 loadURL(url, (e) => console.error('Failed to load GLB:', e));
276 },
277 /** Swap to one of the bundled models by URL. */
278 loadModel(url) {
279 loadURL(url, (e) => console.error('Failed to load GLB:', e));

Callers

nothing calls this directly

Calls 1

loadURLFunction · 0.85

Tested by

no test coverage detected