API > @blocksuite/store > AssetsManager
Class: AssetsManager ​
Constructors ​
constructor ​
new AssetsManager(
options
):AssetsManager
Parameters ​
Parameter | Type |
---|---|
options | AssetsManagerConfig |
Returns ​
Defined In ​
packages/store/src/transformer/assets.ts:13
Properties ​
_assetsMap ​
private
readonly
_assetsMap:Map
<string
,Blob
>
Defined In ​
packages/store/src/transformer/assets.ts:10
_blob ​
private
readonly
_blob:BlobManager
Defined In ​
packages/store/src/transformer/assets.ts:11
Methods ​
cleanup ​
cleanup():
void
Returns ​
void
Defined In ​
packages/store/src/transformer/assets.ts:21
getAssets ​
getAssets():
Map
<string
,Blob
>
Returns ​
Map
< string
, Blob
>
Defined In ​
packages/store/src/transformer/assets.ts:17
readFromBlob ​
readFromBlob(
blobId
):Promise
<void
>
Parameters ​
Parameter | Type |
---|---|
blobId | string |
Returns ​
Promise
< void
>
Defined In ​
packages/store/src/transformer/assets.ts:25
writeToBlob ​
writeToBlob(
blobId
):Promise
<void
>
Parameters ​
Parameter | Type |
---|---|
blobId | string |
Returns ​
Promise
< void
>
Defined In ​
packages/store/src/transformer/assets.ts:32