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

Source

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

Properties

blockId

readonly blockId: string

Source

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


group

static readonly group: string

Source

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


type

static readonly type: string

Source

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

Accessors

group

get group(): string

Returns

string

Source

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


type

get type(): keyof Selection

Returns

keyof Selection

Source

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

Methods

equals()

abstract equals(other): boolean

Parameters

other: BaseSelection

Returns

boolean

Source

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


is()

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

Type parameters

T extends keyof Selection

Parameters

type: T

Returns

this is SelectionInstance[T]

Source

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


toJSON()

abstract toJSON(): Record<string, unknown>

Returns

Record<string, unknown>

Source

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


fromJSON()

static fromJSON(_): BaseSelection

Parameters

_: Record<string, unknown>

Returns

BaseSelection

Source

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