UNPKG

@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.

20 lines (19 loc) 436 B
export interface URIBufferObject { uri: string; byteLength: number; } export interface TexturesObject { name: string; sampler: number; source: number; } export interface ImageDataObject { data?: Uint8Array | ArrayBuffer; uri?: string; mimeType?: string; } export interface ExportResult { buffers?: ArrayBuffer[] | URIBufferObject[]; images?: ImageDataObject[]; textures?: TexturesObject[]; }