BlockSuite API Documentation / @blocksuite/block-std / CursorSelection
Class: CursorSelection
Extends
Constructors
new CursorSelection()
new CursorSelection(
x
,y
):CursorSelection
Parameters
• x: number
• y: number
Returns
Overrides
Source
packages/framework/block-std/src/selection/variants/cursor.ts:17
Properties
blockId
readonly
blockId:string
Inherited from
Source
packages/framework/block-std/src/selection/base.ts:14
x
readonly
x:number
Source
packages/framework/block-std/src/selection/variants/cursor.ts:14
y
readonly
y:number
Source
packages/framework/block-std/src/selection/variants/cursor.ts:15
group
static
group:string
='edgeless'
Overrides
Source
packages/framework/block-std/src/selection/variants/cursor.ts:12
type
static
type:string
='cursor'
Overrides
Source
packages/framework/block-std/src/selection/variants/cursor.ts:11
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/cursor.ts:23
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/cursor.ts:31
fromJSON()
static
fromJSON(json
):CursorSelection
Parameters
• json: Record
<string
, unknown
>
Returns
Overrides
Source
packages/framework/block-std/src/selection/variants/cursor.ts:39