BlockSuite API Documentation / @blocksuite/store / AssetsManager
Class: AssetsManager
Constructors
new AssetsManager()
new AssetsManager(
options
):AssetsManager
Parameters
• options: AssetsManagerConfig
Returns
Source
packages/framework/store/src/transformer/assets.ts:19
Properties
_assetsMap
private
readonly
_assetsMap:Map
<string
,Blob
>
Source
packages/framework/store/src/transformer/assets.ts:15
_blob
private
readonly
_blob:BlobCRUD
Source
packages/framework/store/src/transformer/assets.ts:17
Methods
cleanup()
cleanup():
void
Returns
void
Source
packages/framework/store/src/transformer/assets.ts:31
getAssets()
getAssets():
Map
<string
,Blob
>
Returns
Map
<string
, Blob
>
Source
packages/framework/store/src/transformer/assets.ts:23
isEmpty()
isEmpty():
boolean
Returns
boolean
Source
packages/framework/store/src/transformer/assets.ts:27
readFromBlob()
readFromBlob(
blobId
):Promise
<void
>
Parameters
• blobId: string
Returns
Promise
<void
>
Source
packages/framework/store/src/transformer/assets.ts:35
writeToBlob()
writeToBlob(
blobId
):Promise
<void
>
Parameters
• blobId: string
Returns
Promise
<void
>
Source
packages/framework/store/src/transformer/assets.ts:42