Skip to content

API > @blocksuite/block-std > BaseSelection

Class: BaseSelection ​

Extended By ​

Constructors ​

constructor ​

new BaseSelection(__namedParameters): BaseSelection

Parameters ​

ParameterType
__namedParametersBaseSelectionOptions

Returns ​

BaseSelection

Defined In ​

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

Properties ​

path ​

readonly path: string[]

Defined In ​

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


group ​

static readonly group: string

Defined In ​

block-std/src/selection/base.ts:15


type ​

static readonly type: string

Defined In ​

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

Accessors ​

blockId ​

get blockId(): string

Defined In ​

block-std/src/selection/base.ts:22


group ​

get group(): string

Defined In ​

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


type ​

get type(): keyof Selection

Defined In ​

block-std/src/selection/base.ts:32

Methods ​

equals ​

abstract equals(other): boolean

Parameters ​

ParameterType
otherBaseSelection

Returns ​

boolean

Defined In ​

block-std/src/selection/base.ts:41


is ​

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

Type parameters ​

Parameter
T extends keyof Selection

Parameters ​

ParameterType
typeT

Returns ​

this is SelectionInstance[T]

Defined In ​

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


toJSON ​

abstract toJSON(): Record< string, unknown >

Returns ​

Record< string, unknown >

Defined In ​

block-std/src/selection/base.ts:43


fromJSON ​

static fromJSON(_): BaseSelection

Parameters ​

ParameterType
_Record< string, unknown >

Returns ​

BaseSelection

Defined In ​

block-std/src/selection/base.ts:45