BlockSuite API Documentation / @blocksuite/store / AssetsManager
Class: AssetsManager
Constructors
new AssetsManager(options)
new AssetsManager(
options
):AssetsManager
Parameters
• options: AssetsManagerConfig
Returns
Source
packages/framework/store/src/transformer/assets.ts:13
Properties
_assetsMap
private
readonly
_assetsMap:Map
<string
,Blob
>
Source
packages/framework/store/src/transformer/assets.ts:10
_blob
private
readonly
_blob:BlobManager
Source
packages/framework/store/src/transformer/assets.ts:11
Methods
cleanup()
cleanup():
void
Returns
void
Source
packages/framework/store/src/transformer/assets.ts:25
getAssets()
getAssets():
Map
<string
,Blob
>
Returns
Map
<string
, Blob
>
Source
packages/framework/store/src/transformer/assets.ts:17
isEmpty()
isEmpty():
boolean
Returns
boolean
Source
packages/framework/store/src/transformer/assets.ts:21
readFromBlob()
readFromBlob(
blobId
):Promise
<void
>
Parameters
• blobId: string
Returns
Promise
<void
>
Source
packages/framework/store/src/transformer/assets.ts:29
writeToBlob()
writeToBlob(
blobId
):Promise
<void
>
Parameters
• blobId: string
Returns
Promise
<void
>
Source
packages/framework/store/src/transformer/assets.ts:36
Generated using TypeDoc and typedoc-plugin-markdown.