BlockSuite API Documentation / @blocksuite/block-std / BlockSelection
Class: BlockSelection
Defined in: packages/framework/block-std/src/selection/variants/block.ts:8
Extends
Constructors
new BlockSelection()
new BlockSelection(
__namedParameters):BlockSelection
Defined in: packages/framework/store/dist/extension/selection/base.d.ts:11
Parameters
__namedParameters
Returns
BlockSelection
Inherited from
Properties
blockId
readonlyblockId:string
Defined in: packages/framework/store/dist/extension/selection/base.d.ts:8
Inherited from
group
staticgroup:string='note'
Defined in: packages/framework/block-std/src/selection/variants/block.ts:9
Overrides
type
statictype:string='block'
Defined in: packages/framework/block-std/src/selection/variants/block.ts:11
Overrides
Accessors
group
Get Signature
get group():
string
Defined in: packages/framework/store/dist/extension/selection/base.d.ts:9
Returns
string
Inherited from
type
Get Signature
get type():
string
Defined in: packages/framework/store/dist/extension/selection/base.d.ts:10
Returns
string
Inherited from
Methods
equals()
equals(
other):boolean
Defined in: packages/framework/block-std/src/selection/variants/block.ts:18
Parameters
other
Returns
boolean
Overrides
is()
is<
T>(type):this is T extends SelectionConstructor<U> ? U : never
Defined in: packages/framework/store/dist/extension/selection/base.d.ts:14
Type Parameters
T
T extends SelectionConstructor<BaseSelection>
Parameters
type
T
Returns
this is T extends SelectionConstructor<U> ? U : never
Inherited from
toJSON()
toJSON():
Record<string,unknown>
Defined in: packages/framework/block-std/src/selection/variants/block.ts:25
Returns
Record<string, unknown>
Overrides
fromJSON()
staticfromJSON(json):BlockSelection
Defined in: packages/framework/block-std/src/selection/variants/block.ts:13
Parameters
json
Record<string, unknown>
Returns
BlockSelection