mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-07 00:43:07 +01:00
* chore (dockerfile): cleanup dockerfile * feature (plugin): extend plugin interface * chore (docker): setup new Dockerfile * chore (dockerfile): update dockerfile
18 lines
440 B
JavaScript
18 lines
440 B
JavaScript
export default async function(I3D, { THREE }) {
|
|
const module = await import("./vendor/FBXLoader.js");
|
|
|
|
return class Impl extends I3D {
|
|
constructor() {
|
|
super();
|
|
}
|
|
|
|
load(url, onLoad, onProgress, onError) {
|
|
return (new module.FBXLoader()).load(url, onLoad, onProgress, onError);
|
|
}
|
|
|
|
transform(obj) {
|
|
obj.name = "All";
|
|
return obj;
|
|
}
|
|
}
|
|
}
|