Skip to content

BlockSuite API Documentation / @blocksuite/store / AssetsManager

Class: AssetsManager ​

Contents ​

Constructors ​

new AssetsManager(options) ​

new AssetsManager(options): AssetsManager

Parameters ​

• options: AssetsManagerConfig

Returns ​

AssetsManager

Source ​

packages/store/src/transformer/assets.ts:13

Properties ​

_assetsMap ​

private readonly _assetsMap: Map<string, Blob>

Source ​

packages/store/src/transformer/assets.ts:10


_blob ​

private readonly _blob: BlobManager

Source ​

packages/store/src/transformer/assets.ts:11

Methods ​

cleanup() ​

cleanup(): void

Returns ​

void

Source ​

packages/store/src/transformer/assets.ts:21


getAssets() ​

getAssets(): Map<string, Blob>

Returns ​

Map<string, Blob>

Source ​

packages/store/src/transformer/assets.ts:17


readFromBlob() ​

readFromBlob(blobId): Promise<void>

Parameters ​

• blobId: string

Returns ​

Promise<void>

Source ​

packages/store/src/transformer/assets.ts:25


writeToBlob() ​

writeToBlob(blobId): Promise<void>

Parameters ​

• blobId: string

Returns ​

Promise<void>

Source ​

packages/store/src/transformer/assets.ts:32


Generated using typedoc-plugin-markdown and TypeDoc