Skip to content

BlockSuite API Documentation / @blocksuite/blocks / ImageSelection

Class: ImageSelection

Extends

Constructors

new ImageSelection()

new ImageSelection(__namedParameters): ImageSelection

Parameters

__namedParameters

BaseSelectionOptions

Returns

ImageSelection

Inherited from

BaseSelection.constructor

Defined in

packages/framework/block-std/dist/selection/base.d.ts:10

Properties

blockId

readonly blockId: string

Inherited from

BaseSelection.blockId

Defined in

packages/framework/block-std/dist/selection/base.d.ts:7


group

static group: string

Overrides

BaseSelection.group

Defined in

packages/affine/shared/dist/selection/image.d.ts:3


type

static type: string

Overrides

BaseSelection.type

Defined in

packages/affine/shared/dist/selection/image.d.ts:4

Accessors

group

Get Signature

get group(): string

Returns

string

Inherited from

BaseSelection.group

Defined in

packages/framework/block-std/dist/selection/base.d.ts:8


type

Get Signature

get type(): keyof Selection

Returns

keyof Selection

Inherited from

BaseSelection.type

Defined in

packages/framework/block-std/dist/selection/base.d.ts:9

Methods

equals()

equals(other): boolean

Parameters

other

BaseSelection

Returns

boolean

Overrides

BaseSelection.equals

Defined in

packages/affine/shared/dist/selection/image.d.ts:6


is()

is<T>(type): this is SelectionInstance[T]

Type Parameters

T extends keyof Selection

Parameters

type

T

Returns

this is SelectionInstance[T]

Inherited from

BaseSelection.is

Defined in

packages/framework/block-std/dist/selection/base.d.ts:13


toJSON()

toJSON(): Record<string, unknown>

Returns

Record<string, unknown>

Overrides

BaseSelection.toJSON

Defined in

packages/affine/shared/dist/selection/image.d.ts:7


fromJSON()

static fromJSON(json): ImageSelection

Parameters

json

Record<string, unknown>

Returns

ImageSelection

Overrides

BaseSelection.fromJSON

Defined in

packages/affine/shared/dist/selection/image.d.ts:5