PhosKinTime-Vis TypeScript API
PhosKinTime-Vis TypeScript API / sources/types / DataSource
Interface: DataSource¶
Defined in: src/lib/sources/types.ts:6
DataSource: where bundle bytes come from. The loader only needs to list relative paths and read bytes, so new transports (an engine over HTTP, a remote URL) plug in without changing panels or the model.
Properties¶
kind¶
readonlykind:"folder"|"zip"|"engine"|"memory"
Defined in: src/lib/sources/types.ts:7
label¶
readonlylabel:string
Defined in: src/lib/sources/types.ts:9
Human-readable origin (folder or file name).
Methods¶
list()¶
list():
string[]
Defined in: src/lib/sources/types.ts:11
Paths relative to the bundle root (the folder that holds manifest.json).
Returns¶
string[]
read()¶
read(
path):Promise\<ArrayBuffer>
Defined in: src/lib/sources/types.ts:12
Parameters¶
path¶
string
Returns¶
Promise\<ArrayBuffer>