API > @blocksuite/block-std > CursorSelection
Class: CursorSelection ​
Extends ​
Constructors ​
constructor ​
new CursorSelection(
x
,y
):CursorSelection
Parameters ​
Parameter | Type |
---|---|
x | number |
y | number |
Returns ​
Overrides ​
Defined In ​
block-std/src/selection/variants/cursor.ts:17
Properties ​
path ​
readonly
path:string
[]
Defined In ​
block-std/src/selection/base.ts:16
Inherited from ​
x ​
readonly
x:number
Defined In ​
block-std/src/selection/variants/cursor.ts:14
y ​
readonly
y:number
Defined In ​
block-std/src/selection/variants/cursor.ts:15
group ​
static
group:string
='edgeless'
Defined In ​
block-std/src/selection/variants/cursor.ts:12
Overrides ​
type ​
static
type:string
='cursor'
Defined In ​
block-std/src/selection/variants/cursor.ts:11
Overrides ​
Accessors ​
blockId ​
get
blockId():string
Defined In ​
block-std/src/selection/base.ts:22
Inherited from ​
group ​
get
group():string
Defined In ​
block-std/src/selection/base.ts:37
Inherited from ​
type ​
get
type(): keyofSelection
Defined In ​
block-std/src/selection/base.ts:32
Inherited from ​
Methods ​
equals ​
equals(
other
):boolean
Parameters ​
Parameter | Type |
---|---|
other | BaseSelection |
Returns ​
boolean
Overrides ​
Defined In ​
block-std/src/selection/variants/cursor.ts:23
is ​
is<
T
>(type
):this is SelectionInstance[T]
Type parameters ​
Parameter |
---|
T extends keyof Selection |
Parameters ​
Parameter | Type |
---|---|
type | T |
Returns ​
this is SelectionInstance[T]
Inherited from ​
Defined In ​
block-std/src/selection/base.ts:26
toJSON ​
toJSON():
Record
<string
,unknown
>
Returns ​
Record
< string
, unknown
>
Overrides ​
Defined In ​
block-std/src/selection/variants/cursor.ts:31
fromJSON ​
static
fromJSON(json
):CursorSelection
Parameters ​
Parameter | Type |
---|---|
json | Record < string , unknown > |
Returns ​
Overrides ​
Defined In ​
block-std/src/selection/variants/cursor.ts:39