BlockSuite API Documentation / @blocksuite/store / AssetsManager
Class: AssetsManager
Constructors
new AssetsManager()
new AssetsManager(
options
):AssetsManager
Parameters
options
AssetsManagerConfig
Returns
Defined in
packages/framework/store/src/transformer/assets.ts:34
Methods
cleanup()
cleanup():
void
Returns
void
Defined in
packages/framework/store/src/transformer/assets.ts:38
getAssets()
getAssets():
Map
<string
,Blob
>
Returns
Map
<string
, Blob
>
Defined in
packages/framework/store/src/transformer/assets.ts:43
getPathBlobIdMap()
getPathBlobIdMap():
Map
<string
,string
>
Returns
Map
<string
, string
>
Defined in
packages/framework/store/src/transformer/assets.ts:47
isEmpty()
isEmpty():
boolean
Returns
boolean
Defined in
packages/framework/store/src/transformer/assets.ts:51
readFromBlob()
readFromBlob(
blobId
):Promise
<void
>
Parameters
blobId
string
Returns
Promise
<void
>
Defined in
packages/framework/store/src/transformer/assets.ts:55
writeToBlob()
writeToBlob(
blobId
):Promise
<void
>
Parameters
blobId
string
Returns
Promise
<void
>
Defined in
packages/framework/store/src/transformer/assets.ts:88