API > @blocksuite/blocks > ImageBlockModel
Class: ImageBlockModel ​
Extends ​
Implements ​
Constructors ​
constructor ​
new ImageBlockModel():
ImageBlockModel
Returns ​
Overrides ​
Defined In ​
packages/blocks/src/image-block/image-model.ts:57
Properties ​
boxSelect ​
boxSelect:
function
Parameters ​
Parameter | Type |
---|---|
bound | Bound |
Returns ​
boolean
Defined In ​
packages/blocks/src/image-block/image-model.ts:111
Implementation of ​
caption ​
optional
caption:string
Defined In ​
packages/blocks/src/image-block/image-model.ts:16
Inherited from ​
BaseBlockModel.caption
childMap ​
childMap:
Map
<string
,number
>
Defined In ​
packages/store/dist/schema/base.d.ts:116
Inherited from ​
children ​
children:
BaseBlockModel
<object
>[]
Defined In ​
packages/store/dist/schema/base.d.ts:117
Inherited from ​
childrenUpdated ​
childrenUpdated:
Slot
<void
>
Defined In ​
packages/store/dist/schema/base.d.ts:115
Inherited from ​
BaseBlockModel
.childrenUpdated
containedByBounds ​
containedByBounds:
function
Parameters ​
Parameter | Type |
---|---|
_ | Bound |
Returns ​
boolean
Defined In ​
packages/blocks/src/image-block/image-model.ts:107
Implementation of ​
IEdgelessElement
.containedByBounds
created ​
created:
Slot
<void
>
Defined In ​
packages/store/dist/schema/base.d.ts:109
Inherited from ​
deleted ​
deleted:
Slot
<void
>
Defined In ​
packages/store/dist/schema/base.d.ts:110
Inherited from ​
flavour ​
flavour:
IMAGE
Defined In ​
packages/blocks/src/image-block/image-model.ts:55
Overrides ​
getNearestPoint ​
getNearestPoint:
function
Parameters ​
Parameter | Type |
---|---|
_ | IVec |
Returns ​
Defined In ​
packages/blocks/src/image-block/image-model.ts:108
Implementation of ​
IEdgelessElement
.getNearestPoint
getRelativePointLocation ​
getRelativePointLocation:
function
Parameters ​
Parameter | Type |
---|---|
_ | IVec |
Returns ​
Defined In ​
packages/blocks/src/image-block/image-model.ts:110
Implementation of ​
IEdgelessElement
.getRelativePointLocation
gridBound ​
gridBound:
Bound
Defined In ​
packages/blocks/src/image-block/image-model.ts:53
Implementation of ​
height ​
optional
height:number
Defined In ​
packages/blocks/src/image-block/image-model.ts:19
Inherited from ​
BaseBlockModel.height
id ​
id:
string
Defined In ​
packages/store/dist/schema/base.d.ts:105
Inherited from ​
index ​
index:
string
Defined In ​
packages/blocks/src/image-block/image-model.ts:20
Implementation of ​
Inherited from ​
BaseBlockModel.index
intersectWithLine ​
intersectWithLine:
function
Parameters ​
Parameter | Type |
---|---|
_ | IVec |
_1 | IVec |
Returns ​
null
| PointLocation
[]
Defined In ​
packages/blocks/src/image-block/image-model.ts:109
Implementation of ​
IEdgelessElement
.intersectWithLine
keys ​
keys:
string
[]
Defined In ​
packages/store/dist/schema/base.d.ts:107
Inherited from ​
page ​
page:
Page
Defined In ​
packages/store/dist/schema/base.d.ts:104
Inherited from ​
propsUpdated ​
propsUpdated:
Slot
< {newProps
:unknown
;oldProps
:unknown
;} >
Defined In ​
packages/store/dist/schema/base.d.ts:111
Inherited from ​
role ​
role:
"root"
|"hub"
|"content"
Defined In ​
packages/store/dist/schema/base.d.ts:103
Inherited from ​
rotate ​
rotate:
number
Defined In ​
packages/blocks/src/image-block/image-model.ts:22
Implementation of ​
Inherited from ​
BaseBlockModel.rotate
sourceId ​
sourceId:
string
Defined In ​
packages/blocks/src/image-block/image-model.ts:17
Inherited from ​
BaseBlockModel.sourceId
text ​
optional
text:Text
Defined In ​
packages/store/dist/schema/base.d.ts:108
Inherited from ​
width ​
optional
width:number
Defined In ​
packages/blocks/src/image-block/image-model.ts:18
Inherited from ​
BaseBlockModel.width
xywh ​
xywh: `[${number},${number},${number},${number}]`
Defined In ​
packages/blocks/src/image-block/image-model.ts:54
Implementation of ​
Overrides ​
BaseBlockModel.xywh
yBlock ​
yBlock:
YBlock
Defined In ​
packages/store/dist/schema/base.d.ts:106
Inherited from ​
Accessors ​
batch ​
get
batch():string
Defined In ​
packages/blocks/src/image-block/image-model.ts:100
Implementation of ​
connectable ​
get
connectable():boolean
Defined In ​
packages/blocks/src/image-block/image-model.ts:104
Implementation of ​
Methods ​
clone ​
clone():
ImageBlockModel
Returns ​
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:124
dispose ​
dispose():
void
Returns ​
void
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:123
firstChild ​
firstChild():
null
|BaseBlockModel
<object
>
Returns ​
null
| BaseBlockModel
< object
>
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:119
firstItem ​
firstItem():
null
|BaseBlockModel
<object
>
Returns ​
null
| BaseBlockModel
< object
>
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:121
hitTest ​
hitTest(
x
,y
):boolean
Parameters ​
Parameter | Type |
---|---|
x | number |
y | number |
Returns ​
boolean
Implementation of ​
Defined In ​
packages/blocks/src/image-block/image-model.ts:113
isEmpty ​
isEmpty():
boolean
Returns ​
boolean
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:118
lastChild ​
lastChild():
null
|BaseBlockModel
<object
>
Returns ​
null
| BaseBlockModel
< object
>
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:120
lastItem ​
lastItem():
null
|BaseBlockModel
<object
>
Returns ​
null
| BaseBlockModel
< object
>
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:122