@vctrl/hooks
Version:
vctrl/hooks is a React hooks package designed to simplify 3D model loading and management within React applications. It's part of the vectreal-core ecosystem and is primarily used in the vctrl/viewer React component and the official website application.
11 lines (10 loc) • 523 B
TypeScript
import { SceneAssetRefMap, SerializedSceneAssetDataMap } from '../../../../core/src/index.ts';
export interface FetchManifestAssetsOptions {
headers?: HeadersInit;
onProgress?: (fraction: number) => void;
}
/**
* Fetches manifest asset refs in parallel into raw byte entries.
* Progress is byte-weighted when all sizes are known, count-weighted otherwise.
*/
export declare function fetchManifestAssetData(assetRefs: SceneAssetRefMap, options?: FetchManifestAssetsOptions): Promise<SerializedSceneAssetDataMap>;