Skip to content

BlockSuite API Documentation / @blocksuite/affine-block-image / ImageSelection

Class: ImageSelection

Defined in: packages/affine/shared/dist/selection/image.d.ts:2

Extends

Constructors

new ImageSelection()

new ImageSelection(__namedParameters): ImageSelection

Defined in: packages/framework/store/dist/extension/selection/base.d.ts:11

Parameters

__namedParameters

BaseSelectionOptions

Returns

ImageSelection

Inherited from

BaseSelection.constructor

Properties

blockId

readonly blockId: string

Defined in: packages/framework/store/dist/extension/selection/base.d.ts:8

Inherited from

BaseSelection.blockId


group

static group: string

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

Overrides

BaseSelection.group


type

static type: string

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

Overrides

BaseSelection.type

Accessors

group

Get Signature

get group(): string

Defined in: packages/framework/store/dist/extension/selection/base.d.ts:9

Returns

string

Inherited from

BaseSelection.group


type

Get Signature

get type(): string

Defined in: packages/framework/store/dist/extension/selection/base.d.ts:10

Returns

string

Inherited from

BaseSelection.type

Methods

equals()

equals(other): boolean

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

Parameters

other

BaseSelection

Returns

boolean

Overrides

BaseSelection.equals


is()

is<T>(type): this is T extends SelectionConstructor<U> ? U : never

Defined in: packages/framework/store/dist/extension/selection/base.d.ts:14

Type Parameters

T

T extends SelectionConstructor<BaseSelection>

Parameters

type

T

Returns

this is T extends SelectionConstructor<U> ? U : never

Inherited from

BaseSelection.is


toJSON()

toJSON(): Record<string, unknown>

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

Returns

Record<string, unknown>

Overrides

BaseSelection.toJSON


fromJSON()

static fromJSON(json): ImageSelection

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

Parameters

json

Record<string, unknown>

Returns

ImageSelection

Overrides

BaseSelection.fromJSON