BlockSuite API Documentation / @blocksuite/blocks / ImageSelection
Class: ImageSelection
Extends
Constructors
new ImageSelection()
new ImageSelection(
__namedParameters
):ImageSelection
Parameters
• __namedParameters: BaseSelectionOptions
Returns
Inherited from
Source
packages/framework/block-std/dist/selection/base.d.ts:8
Properties
blockId
readonly
blockId:string
Inherited from
Source
packages/framework/block-std/dist/selection/base.d.ts:7
group
static
group:string
='note'
Overrides
Source
packages/blocks/src/image-block/image-selection.ts:10
type
static
type:string
='image'
Overrides
Source
packages/blocks/src/image-block/image-selection.ts:9
Accessors
group
get
group():string
Returns
string
Source
packages/framework/block-std/dist/selection/base.d.ts:11
type
get
type(): keyofSelection
Returns
keyof Selection
Source
packages/framework/block-std/dist/selection/base.d.ts:10
Methods
equals()
equals(
other
):boolean
Parameters
• other: BaseSelection
Returns
boolean
Overrides
Source
packages/blocks/src/image-block/image-selection.ts:12
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/dist/selection/base.d.ts:9
toJSON()
toJSON():
Record
<string
,unknown
>
Returns
Record
<string
, unknown
>
Overrides
Source
packages/blocks/src/image-block/image-selection.ts:19
fromJSON()
static
fromJSON(json
):ImageSelection
Parameters
• json: Record
<string
, unknown
>
Returns
Overrides
Source
packages/blocks/src/image-block/image-selection.ts:26