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
readonlyblockId:string
Inherited from
Source
packages/framework/block-std/dist/selection/base.d.ts:7
group
staticgroup:string='note'
Overrides
Source
packages/blocks/src/image-block/image-selection.ts:10
type
statictype:string='image'
Overrides
Source
packages/blocks/src/image-block/image-selection.ts:9
Accessors
group
getgroup():string
Returns
string
Source
packages/framework/block-std/dist/selection/base.d.ts:11
type
gettype(): 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()
staticfromJSON(json):ImageSelection
Parameters
• json: Record<string, unknown>
Returns
Overrides
Source
packages/blocks/src/image-block/image-selection.ts:26