BlockSuite API Documentation / @blocksuite/block-std / BlockSelection
Class: BlockSelection
Extends
Constructors
new BlockSelection()
new BlockSelection(
__namedParameters
):BlockSelection
Parameters
• __namedParameters: BaseSelectionOptions
Returns
Inherited from
Defined in
packages/framework/block-std/src/selection/base.ts:29
Properties
blockId
readonly
blockId:string
Inherited from
Defined in
packages/framework/block-std/src/selection/base.ts:18
group
static
group:string
='note'
Overrides
Defined in
packages/framework/block-std/src/selection/variants/block.ts:10
type
static
type:string
='block'
Overrides
Defined in
packages/framework/block-std/src/selection/variants/block.ts:12
Accessors
group
get
group():string
Returns
string
Inherited from
Defined in
packages/framework/block-std/src/selection/base.ts:20
type
get
type(): keyofSelection
Returns
keyof Selection
Inherited from
Defined in
packages/framework/block-std/src/selection/base.ts:24
Methods
equals()
equals(
other
):boolean
Parameters
• other: BaseSelection
Returns
boolean
Overrides
Defined in
packages/framework/block-std/src/selection/variants/block.ts:19
is()
is<
T
>(type
):this is SelectionInstance[T]
Type Parameters
• T extends keyof Selection
Parameters
• type: T
Returns
this is SelectionInstance[T]
Inherited from
Defined in
packages/framework/block-std/src/selection/base.ts:42
toJSON()
toJSON():
Record
<string
,unknown
>
Returns
Record
<string
, unknown
>
Overrides
Defined in
packages/framework/block-std/src/selection/variants/block.ts:26
fromJSON()
static
fromJSON(json
):BlockSelection
Parameters
• json: Record
<string
, unknown
>
Returns
Overrides
Defined in
packages/framework/block-std/src/selection/variants/block.ts:14