BlockSuite API Documentation / @blocksuite/blocks / ImageAdapter
Class: ImageAdapter
Extends
Constructors
new ImageAdapter()
new ImageAdapter(
job
):ImageAdapter
Parameters
job
Returns
Inherited from
Defined in
packages/framework/store/dist/adapter/base.d.ts:46
Properties
job
job:
Job
Inherited from
Defined in
packages/framework/store/dist/adapter/base.d.ts:44
Accessors
configs
Get Signature
get configs():
Map
<string
,string
>
Returns
Map
<string
, string
>
Inherited from
Defined in
packages/framework/store/dist/adapter/base.d.ts:45
Methods
fromBlock()
fromBlock(
model
):Promise
<undefined
|FromBlockSnapshotResult
<Image
>>
Parameters
model
Returns
Promise
<undefined
| FromBlockSnapshotResult
<Image
>>
Inherited from
Defined in
packages/framework/store/dist/adapter/base.d.ts:47
fromBlockSnapshot()
fromBlockSnapshot(
_payload
):Promise
<FromBlockSnapshotResult
<Image
>>
Parameters
_payload
Returns
Promise
<FromBlockSnapshotResult
<Image
>>
Overrides
Defined in
packages/blocks/src/_common/adapters/image.ts:38
fromDoc()
fromDoc(
doc
):Promise
<undefined
|FromDocSnapshotResult
<Image
>>
Parameters
doc
Returns
Promise
<undefined
| FromDocSnapshotResult
<Image
>>
Inherited from
Defined in
packages/framework/store/dist/adapter/base.d.ts:49
fromDocSnapshot()
fromDocSnapshot(
_payload
):Promise
<FromDocSnapshotResult
<Image
>>
Parameters
_payload
Returns
Promise
<FromDocSnapshotResult
<Image
>>
Overrides
Defined in
packages/blocks/src/_common/adapters/image.ts:47
fromSlice()
fromSlice(
slice
):Promise
<undefined
|FromSliceSnapshotResult
<Image
>>
Parameters
slice
Returns
Promise
<undefined
| FromSliceSnapshotResult
<Image
>>
Inherited from
Defined in
packages/framework/store/dist/adapter/base.d.ts:51
fromSliceSnapshot()
fromSliceSnapshot(
payload
):Promise
<FromSliceSnapshotResult
<Image
>>
Parameters
payload
Returns
Promise
<FromSliceSnapshotResult
<Image
>>
Overrides
Defined in
packages/blocks/src/_common/adapters/image.ts:56
toBlock()
toBlock(
payload
,doc
,parent
?,index
?):Promise
<undefined
|BlockModel
<object
,object
>>
Parameters
payload
doc
parent?
string
index?
number
Returns
Promise
<undefined
| BlockModel
<object
, object
>>
Inherited from
Defined in
packages/framework/store/dist/adapter/base.d.ts:53
toBlockSnapshot()
toBlockSnapshot(
_payload
):Promise
<BlockSnapshot
>
Parameters
_payload
Returns
Promise
<BlockSnapshot
>
Overrides
Defined in
packages/blocks/src/_common/adapters/image.ts:77
toDoc()
toDoc(
payload
):Promise
<undefined
|Doc
>
Parameters
payload
Returns
Promise
<undefined
| Doc
>
Inherited from
Defined in
packages/framework/store/dist/adapter/base.d.ts:55
toDocSnapshot()
toDocSnapshot(
_payload
):Promise
<DocSnapshot
>
Parameters
_payload
Returns
Promise
<DocSnapshot
>
Overrides
Defined in
packages/blocks/src/_common/adapters/image.ts:86
toSlice()
toSlice(
payload
,doc
,parent
?,index
?):Promise
<undefined
|Slice
>
Parameters
payload
doc
parent?
string
index?
number
Returns
Promise
<undefined
| Slice
>
Inherited from
Defined in
packages/framework/store/dist/adapter/base.d.ts:57
toSliceSnapshot()
toSliceSnapshot(
payload
):Promise
<null
|SliceSnapshot
>
Parameters
payload
ImageToSliceSnapshotPayload
Returns
Promise
<null
| SliceSnapshot
>
Overrides
Defined in
packages/blocks/src/_common/adapters/image.ts:95