Skip to content

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

readonly kind: "memory"

Defined in: src/lib/sources/memory.ts:5

Implementation of

DataSource.kind


label

readonly label: string

Defined in: src/lib/sources/memory.ts:7

Human-readable origin (folder or file name).

Implementation of

DataSource.label

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

DataSource.list


read()

read(path): Promise\<ArrayBuffer>

Defined in: src/lib/sources/memory.ts:14

Parameters

path

string

Returns

Promise\<ArrayBuffer>

Implementation of

DataSource.read