PhosKinTime-Vis TypeScript API
PhosKinTime-Vis TypeScript API / sources/memory / MemorySource
Class: MemorySource¶
Defined in: src/lib/sources/memory.ts:4
In-memory source (tests, and bundles fetched by the Pages demo).
Implements¶
Constructors¶
Constructor¶
new MemorySource(
label,files):MemorySource
Defined in: src/lib/sources/memory.ts:7
Parameters¶
label¶
string
files¶
Record\<string, Uint8Array>
Returns¶
MemorySource
Properties¶
kind¶
readonlykind:"memory"
Defined in: src/lib/sources/memory.ts:5
Implementation of¶
label¶
readonlylabel:string
Defined in: src/lib/sources/memory.ts:7
Human-readable origin (folder or file name).
Implementation of¶
Methods¶
list()¶
list():
string[]
Defined in: src/lib/sources/memory.ts:11
Paths relative to the bundle root (the folder that holds manifest.json).
Returns¶
string[]
Implementation of¶
read()¶
read(
path):Promise\<ArrayBuffer>
Defined in: src/lib/sources/memory.ts:14
Parameters¶
path¶
string
Returns¶
Promise\<ArrayBuffer>