Interface: ModelDataProvider
Provides data for 3D models.
Extends
Methods
getBinaryFile()
getBinaryFile(
baseUrl,fileName,abortSignal?):Promise<ArrayBuffer>
Downloads a binary blob.
Parameters
• baseUrl: string
Base URL of the model.
• fileName: string
Filename of binary file.
• abortSignal?: AbortSignal
Optional abort signal that can be used to cancel an in progress fetch.
Returns
Promise<ArrayBuffer>
Overrides
BinaryFileProvider . getBinaryFile
Defined in
packages/data-providers/src/ModelDataProvider.ts:23
getJsonFile()
getJsonFile(
baseUrl,fileName):Promise<any>
Download and parse a JSON file and return the resulting struct.
Parameters
• baseUrl: string
Base URL of the model.
• fileName: string
Filename of JSON file.
Returns
Promise<any>
Overrides
JsonFileProvider . getJsonFile