Skip to content

BlockSuite API Documentation / @blocksuite/store / AssetsManager

Class: AssetsManager

Defined in: packages/framework/store/src/transformer/assets.ts:20

Constructors

new AssetsManager()

new AssetsManager(options): AssetsManager

Defined in: packages/framework/store/src/transformer/assets.ts:29

Parameters

options

AssetsManagerConfig

Returns

AssetsManager

Methods

cleanup()

cleanup(): void

Defined in: packages/framework/store/src/transformer/assets.ts:33

Returns

void


getAssets()

getAssets(): Map<string, Blob>

Defined in: packages/framework/store/src/transformer/assets.ts:38

Returns

Map<string, Blob>


getPathBlobIdMap()

getPathBlobIdMap(): Map<string, string>

Defined in: packages/framework/store/src/transformer/assets.ts:42

Returns

Map<string, string>


isEmpty()

isEmpty(): boolean

Defined in: packages/framework/store/src/transformer/assets.ts:46

Returns

boolean


readFromBlob()

readFromBlob(blobId): Promise<void>

Defined in: packages/framework/store/src/transformer/assets.ts:50

Parameters

blobId

string

Returns

Promise<void>


writeToBlob()

writeToBlob(blobId): Promise<void>

Defined in: packages/framework/store/src/transformer/assets.ts:83

Parameters

blobId

string

Returns

Promise<void>