BlockSuite API Documentation / @blocksuite/block-std / BlockSelection
Class: BlockSelection
Extends
Constructors
new BlockSelection()
new BlockSelection(
__namedParameters
):BlockSelection
Parameters
• __namedParameters: BaseSelectionOptions
Returns
Inherited from
Source
packages/framework/block-std/src/selection/base.ts:16
Properties
blockId
readonly
blockId:string
Inherited from
Source
packages/framework/block-std/src/selection/base.ts:14
group
static
group:string
='note'
Overrides
Source
packages/framework/block-std/src/selection/variants/block.ts:11
type
static
type:string
='block'
Overrides
Source
packages/framework/block-std/src/selection/variants/block.ts:10
Accessors
group
get
group():string
Returns
string
Source
packages/framework/block-std/src/selection/base.ts:31
type
get
type(): keyofSelection
Returns
keyof Selection
Source
packages/framework/block-std/src/selection/base.ts:26
Methods
equals()
equals(
other
):boolean
Parameters
• other: BaseSelection
Returns
boolean
Overrides
Source
packages/framework/block-std/src/selection/variants/block.ts:13
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
packages/framework/block-std/src/selection/base.ts:20
toJSON()
toJSON():
Record
<string
,unknown
>
Returns
Record
<string
, unknown
>
Overrides
Source
packages/framework/block-std/src/selection/variants/block.ts:20
fromJSON()
static
fromJSON(json
):BlockSelection
Parameters
• json: Record
<string
, unknown
>
Returns
Overrides
Source
packages/framework/block-std/src/selection/variants/block.ts:27