BlockSuite API Documentation / @blocksuite/block-std / CursorSelection
Class: CursorSelection
Defined in: packages/framework/block-std/src/selection/variants/cursor.ts:9
Extends
Constructors
new CursorSelection()
new CursorSelection(
x,y):CursorSelection
Defined in: packages/framework/block-std/src/selection/variants/cursor.ts:18
Parameters
x
number
y
number
Returns
CursorSelection
Overrides
Properties
blockId
readonlyblockId:string
Defined in: packages/framework/store/dist/extension/selection/base.d.ts:8
Inherited from
x
readonlyx:number
Defined in: packages/framework/block-std/src/selection/variants/cursor.ts:14
y
readonlyy:number
Defined in: packages/framework/block-std/src/selection/variants/cursor.ts:16
group
staticgroup:string='gfx'
Defined in: packages/framework/block-std/src/selection/variants/cursor.ts:10
Overrides
type
statictype:string='cursor'
Defined in: packages/framework/block-std/src/selection/variants/cursor.ts:12
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/cursor.ts:29
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/cursor.ts:36
Returns
Record<string, unknown>
Overrides
fromJSON()
staticfromJSON(json):CursorSelection
Defined in: packages/framework/block-std/src/selection/variants/cursor.ts:24
Parameters
json
Record<string, unknown>
Returns
CursorSelection