Skip to content

BlockSuite API Documentation / @blocksuite/block-std / BaseSelection

Class: abstract BaseSelection

Extended by

Constructors

new BaseSelection()

new BaseSelection(__namedParameters): BaseSelection

Parameters

__namedParameters: BaseSelectionOptions

Returns

BaseSelection

Defined in

packages/framework/block-std/src/selection/base.ts:29

Properties

blockId

readonly blockId: string

Defined in

packages/framework/block-std/src/selection/base.ts:18


group

readonly static group: string

Defined in

packages/framework/block-std/src/selection/base.ts:14


type

readonly static type: string

Defined in

packages/framework/block-std/src/selection/base.ts:16

Accessors

group

get group(): string

Returns

string

Defined in

packages/framework/block-std/src/selection/base.ts:20


type

get type(): keyof Selection

Returns

keyof Selection

Defined in

packages/framework/block-std/src/selection/base.ts:24

Methods

equals()

abstract equals(other): boolean

Parameters

other: BaseSelection

Returns

boolean

Defined in

packages/framework/block-std/src/selection/base.ts:40


is()

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

Type Parameters

T extends keyof Selection

Parameters

type: T

Returns

this is SelectionInstance[T]

Defined in

packages/framework/block-std/src/selection/base.ts:42


toJSON()

abstract toJSON(): Record<string, unknown>

Returns

Record<string, unknown>

Defined in

packages/framework/block-std/src/selection/base.ts:48


fromJSON()

static fromJSON(_): BaseSelection

Parameters

_: Record<string, unknown>

Returns

BaseSelection

Defined in

packages/framework/block-std/src/selection/base.ts:33