BlockSuite API Documentation / @blocksuite/block-std / BaseSelection
Class: abstract
BaseSelection
Extended by
Constructors
new BaseSelection(__namedParameters)
new BaseSelection(
__namedParameters
):BaseSelection
Parameters
• __namedParameters: BaseSelectionOptions
Returns
Source
packages/framework/block-std/src/selection/base.ts:18
Properties
path
readonly
path:string
[]
Source
packages/framework/block-std/src/selection/base.ts:16
group
static
readonly
group:string
Source
packages/framework/block-std/src/selection/base.ts:15
type
static
readonly
type:string
Source
packages/framework/block-std/src/selection/base.ts:14
Accessors
blockId
get
blockId():string
Returns
string
Source
packages/framework/block-std/src/selection/base.ts:22
group
get
group():string
Returns
string
Source
packages/framework/block-std/src/selection/base.ts:37
type
get
type(): keyofSelection
Returns
keyof Selection
Source
packages/framework/block-std/src/selection/base.ts:32
Methods
equals()
abstract
equals(other
):boolean
Parameters
• other: BaseSelection
Returns
boolean
Source
packages/framework/block-std/src/selection/base.ts:41
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:26
toJSON()
abstract
toJSON():Record
<string
,unknown
>
Returns
Record
<string
, unknown
>
Source
packages/framework/block-std/src/selection/base.ts:43
fromJSON()
static
fromJSON(_
):BaseSelection
Parameters
• _: Record
<string
, unknown
>
Returns
Source
packages/framework/block-std/src/selection/base.ts:45