@shopware-ag/dive
Version:
Shopware Spatial Framework
23 lines (22 loc) • 803 B
TypeScript
import { Object3D } from 'three/webgpu';
import { FileType } from '../../../../index.ts';
export declare class AssetLoader {
private _gltfLoader;
private _usdLoader;
private _stepLoader;
constructor();
load(uri: string, fileType?: FileType): Promise<Object3D>;
/**
* Detects file type from content (magic bytes)
* @param uri - The URI to load and detect
* @returns The detected file extension or empty string if detection fails
*/
private _detectFileTypeFromContent;
/**
* parse function for the chunk
* @param arrayBuffer - the array buffer to parse, will be provided within the chunk
* @param type - the file type of the array buffer
* @returns the parsed object, will be stored within the chunk
*/
private _parse;
}