API > @blocksuite/block-std > BaseSelection
Class: BaseSelection ​
Extended By ​
Constructors ​
constructor ​
new BaseSelection(
__namedParameters
):BaseSelection
Parameters ​
Parameter | Type |
---|---|
__namedParameters | BaseSelectionOptions |
Returns ​
Defined In ​
block-std/src/selection/base.ts:18
Properties ​
path ​
readonly
path:string
[]
Defined In ​
block-std/src/selection/base.ts:16
group ​
static
readonly
group:string
Defined In ​
block-std/src/selection/base.ts:15
type ​
static
readonly
type:string
Defined In ​
block-std/src/selection/base.ts:14
Accessors ​
blockId ​
get
blockId():string
Defined In ​
block-std/src/selection/base.ts:22
group ​
get
group():string
Defined In ​
block-std/src/selection/base.ts:37
type ​
get
type(): keyofSelection
Defined In ​
block-std/src/selection/base.ts:32
Methods ​
equals ​
abstract
equals(other
):boolean
Parameters ​
Parameter | Type |
---|---|
other | BaseSelection |
Returns ​
boolean
Defined In ​
block-std/src/selection/base.ts:41
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]
Defined In ​
block-std/src/selection/base.ts:26
toJSON ​
abstract
toJSON():Record
<string
,unknown
>
Returns ​
Record
< string
, unknown
>
Defined In ​
block-std/src/selection/base.ts:43
fromJSON ​
static
fromJSON(_
):BaseSelection
Parameters ​
Parameter | Type |
---|---|
_ | Record < string , unknown > |
Returns ​
Defined In ​
block-std/src/selection/base.ts:45