Skip to content

BlockSuite API Documentation / @blocksuite/blocks / ImageAdapter

Class: ImageAdapter

Extends

Constructors

new ImageAdapter(undefined)

new ImageAdapter(): ImageAdapter

Returns

ImageAdapter

Inherited from

@blocksuite/store.BaseAdapter.constructor

Properties

configs

protected configs: Map<string, unknown>

Inherited from

@blocksuite/store.BaseAdapter.configs

Source

packages/framework/store/dist/adapter/base.d.ts:41

Methods

applyConfigs()

applyConfigs(configs): void

Parameters

configs: Map<string, unknown>

Returns

void

Inherited from

@blocksuite/store.BaseAdapter.applyConfigs

Source

packages/framework/store/dist/adapter/base.d.ts:48


fromBlockSnapshot()

fromBlockSnapshot(_payload): Promise<FromBlockSnapshotResult<Image>>

Parameters

_payload: FromBlockSnapshotPayload

Returns

Promise<FromBlockSnapshotResult<Image>>

Overrides

@blocksuite/store.BaseAdapter.fromBlockSnapshot

Source

packages/blocks/src/_common/adapters/image.ts:37


fromDocSnapshot()

fromDocSnapshot(_payload): Promise<FromDocSnapshotResult<Image>>

Parameters

_payload: FromDocSnapshotPayload

Returns

Promise<FromDocSnapshotResult<Image>>

Overrides

@blocksuite/store.BaseAdapter.fromDocSnapshot

Source

packages/blocks/src/_common/adapters/image.ts:32


fromSliceSnapshot()

fromSliceSnapshot(payload): Promise<FromSliceSnapshotResult<Image>>

Parameters

payload: FromSliceSnapshotPayload

Returns

Promise<FromSliceSnapshotResult<Image>>

Overrides

@blocksuite/store.BaseAdapter.fromSliceSnapshot

Source

packages/blocks/src/_common/adapters/image.ts:42


toBlockSnapshot()

toBlockSnapshot(_payload): Promise<BlockSnapshot>

Parameters

_payload: ToBlockSnapshotPayload<Image>

Returns

Promise<BlockSnapshot>

Overrides

@blocksuite/store.BaseAdapter.toBlockSnapshot

Source

packages/blocks/src/_common/adapters/image.ts:67


toDocSnapshot()

toDocSnapshot(_payload): Promise<DocSnapshot>

Parameters

_payload: ToDocSnapshotPayload<Image>

Returns

Promise<DocSnapshot>

Overrides

@blocksuite/store.BaseAdapter.toDocSnapshot

Source

packages/blocks/src/_common/adapters/image.ts:62


toSliceSnapshot()

toSliceSnapshot(payload): Promise<null | SliceSnapshot>

Parameters

payload: ImageToSliceSnapshotPayload

Returns

Promise<null | SliceSnapshot>

Overrides

@blocksuite/store.BaseAdapter.toSliceSnapshot

Source

packages/blocks/src/_common/adapters/image.ts:72


Generated using TypeDoc and typedoc-plugin-markdown.