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
readonly
blockId:string
Inherited from
Defined in
packages/framework/block-std/dist/selection/base.d.ts:7
group
static
group:string
Overrides
Defined in
packages/affine/shared/dist/selection/image.d.ts:3
type
static
type:string
Overrides
Defined in
packages/affine/shared/dist/selection/image.d.ts:4
Accessors
group
get
group():string
Returns
string
Inherited from
Defined in
packages/framework/block-std/dist/selection/base.d.ts:8
type
get
type(): 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()
static
fromJSON(json
):ImageSelection
Parameters
• json: Record
<string
, unknown
>
Returns
Overrides
Defined in
packages/affine/shared/dist/selection/image.d.ts:5