BlockSuite API Documentation / @blocksuite/blocks / ImageSelection
Class: ImageSelection 
Extends 
Constructors 
new ImageSelection() 
new ImageSelection(
__namedParameters):ImageSelection
Parameters 
• __namedParameters: BaseSelectionOptions
Returns 
Inherited from 
Defined in 
packages/framework/block-std/dist/selection/base.d.ts:10
Properties 
blockId 
readonlyblockId:string
Inherited from 
Defined in 
packages/framework/block-std/dist/selection/base.d.ts:7
group 
staticgroup:string
Overrides 
Defined in 
packages/affine/shared/dist/selection/image.d.ts:3
type 
statictype:string
Overrides 
Defined in 
packages/affine/shared/dist/selection/image.d.ts:4
Accessors 
group 
getgroup():string
Returns 
string
Inherited from 
Defined in 
packages/framework/block-std/dist/selection/base.d.ts:8
type 
gettype(): keyofSelection
Returns 
keyof Selection
Inherited from 
Defined in 
packages/framework/block-std/dist/selection/base.d.ts:9
Methods 
equals() 
equals(
other):boolean
Parameters 
• other: BaseSelection
Returns 
boolean
Overrides 
Defined in 
packages/affine/shared/dist/selection/image.d.ts:6
is() 
is<
T>(type):this is SelectionInstance[T]
Type Parameters 
• T extends keyof Selection
Parameters 
• type: T
Returns 
this is SelectionInstance[T]
Inherited from 
Defined in 
packages/framework/block-std/dist/selection/base.d.ts:13
toJSON() 
toJSON():
Record<string,unknown>
Returns 
Record<string, unknown>
Overrides 
Defined in 
packages/affine/shared/dist/selection/image.d.ts:7
fromJSON() 
staticfromJSON(json):ImageSelection
Parameters 
• json: Record<string, unknown>
Returns 
Overrides 
Defined in 
packages/affine/shared/dist/selection/image.d.ts:5