BlockSuite API Documentation / @blocksuite/block-std / BlockSelection
Class: BlockSelection
Extends
Constructors
new BlockSelection(__namedParameters)
new BlockSelection(
__namedParameters
):BlockSelection
Parameters
• __namedParameters: BaseSelectionOptions
Returns
Inherited from
Source
block-std/src/selection/base.ts:18
Properties
path
readonly
path:string
[]
Inherited from
Source
block-std/src/selection/base.ts:16
group
static
group:string
='note'
Overrides
Source
block-std/src/selection/variants/block.ts:12
type
static
type:string
='block'
Overrides
Source
block-std/src/selection/variants/block.ts:11
Accessors
blockId
get
blockId():string
Returns
string
Source
block-std/src/selection/base.ts:22
group
get
group():string
Returns
string
Source
block-std/src/selection/base.ts:37
type
get
type(): keyofSelection
Returns
keyof Selection
Source
block-std/src/selection/base.ts:32
Methods
equals()
equals(
other
):boolean
Parameters
• other: BaseSelection
Returns
boolean
Overrides
Source
block-std/src/selection/variants/block.ts:14
is()
is<
T
>(type
):this is SelectionInstance[T]
Type parameters
• T extends keyof Selection
Parameters
• type: T
Returns
this is SelectionInstance[T]
Inherited from
Source
block-std/src/selection/base.ts:26
toJSON()
toJSON():
Record
<string
,unknown
>
Returns
Record
<string
, unknown
>
Overrides
Source
block-std/src/selection/variants/block.ts:21
fromJSON()
static
fromJSON(json
):BlockSelection
Parameters
• json: Record
<string
, unknown
>
Returns
Overrides
Source
block-std/src/selection/variants/block.ts:28