Skip to content

@burnmark-io/designer-core


@burnmark-io/designer-core / AssetLoader

Interface: AssetLoader ​

Defined in: packages/core/src/assets.ts:10

Asset loader interface and in-memory default implementation.

The design model stores images by assetKey — a content-addressed key into an asset store. Consuming apps are free to back this with IndexedDB, the filesystem, S3, or anything else. The in-memory implementation is convenient for scripts and tests.

Methods ​

has() ​

has(key): Promise<boolean>

Defined in: packages/core/src/assets.ts:13

Parameters ​

key ​

string

Returns ​

Promise<boolean>


load() ​

load(key): Promise<Uint8Array>

Defined in: packages/core/src/assets.ts:11

Parameters ​

key ​

string

Returns ​

Promise<Uint8Array>


store() ​

store(data): Promise<string>

Defined in: packages/core/src/assets.ts:12

Parameters ​

data ​

Uint8Array | ArrayBuffer

Returns ​

Promise<string>

Not affiliated with Dymo, Brother, Avery, or any hardware vendor.