API > @blocksuite/blocks > FrameBlockModel
Class: FrameBlockModel ​
Extends ​
BaseBlockModel
<Props
>
Implements ​
Constructors ​
constructor ​
new FrameBlockModel():
FrameBlockModel
Returns ​
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:100
Properties ​
background ​
background:
string
Defined In ​
packages/blocks/src/frame-block/frame-model.ts:43
Inherited from ​
BaseBlockModel.background
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
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:
FRAME
Defined In ​
packages/blocks/src/frame-block/frame-model.ts:53
Overrides ​
getRelativePointLocation ​
getRelativePointLocation:
function
Parameters ​
Parameter | Type |
---|---|
_ | IVec |
Returns ​
Defined In ​
packages/blocks/src/frame-block/frame-model.ts:84
Implementation of ​
IEdgelessElement
.getRelativePointLocation
id ​
id:
string
Defined In ​
packages/store/dist/schema/base.d.ts:105
Inherited from ​
index ​
index:
string
Defined In ​
packages/blocks/src/frame-block/frame-model.ts:45
Implementation of ​
Inherited from ​
BaseBlockModel.index
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 ​
text ​
optional
text:Text
Defined In ​
packages/store/dist/schema/base.d.ts:108
Inherited from ​
title ​
title:
Text
Defined In ​
packages/blocks/src/frame-block/frame-model.ts:42
Inherited from ​
BaseBlockModel.title
xywh ​
xywh: `[${number},${number},${number},${number}]`
Defined In ​
packages/blocks/src/frame-block/frame-model.ts:44
Implementation of ​
Inherited from ​
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/frame-block/frame-model.ts:59
Implementation of ​
connectable ​
get
connectable():boolean
Defined In ​
packages/blocks/src/frame-block/frame-model.ts:55
Implementation of ​
gridBound ​
get
gridBound():Bound
Defined In ​
packages/blocks/src/frame-block/frame-model.ts:67
Implementation of ​
rotate ​
get
rotate():number
Defined In ​
packages/blocks/src/frame-block/frame-model.ts:63
Implementation of ​
Methods ​
boxSelect ​
boxSelect(
bound
):boolean
Parameters ​
Parameter | Type |
---|---|
bound | Bound |
Returns ​
boolean
Implementation of ​
Defined In ​
packages/blocks/src/frame-block/frame-model.ts:99
clone ​
clone():
FrameBlockModel
Returns ​
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:124
containedByBounds ​
containedByBounds(
bound
):boolean
Parameters ​
Parameter | Type |
---|---|
bound | Bound |
Returns ​
boolean
Implementation of ​
IEdgelessElement
.containedByBounds
Defined In ​
packages/blocks/src/frame-block/frame-model.ts:71
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
getNearestPoint ​
getNearestPoint(
_
):IVec
Parameters ​
Parameter | Type |
---|---|
_ | IVec |
Returns ​
Implementation of ​
IEdgelessElement
.getNearestPoint
Defined In ​
packages/blocks/src/frame-block/frame-model.ts:74
hitTest ​
hitTest(
x
,y
,_
):boolean
Parameters ​
Parameter | Type |
---|---|
x | number |
y | number |
_ | HitTestOptions |
Returns ​
boolean
Implementation of ​
Defined In ​
packages/blocks/src/frame-block/frame-model.ts:85
intersectWithLine ​
intersectWithLine(
start
,end
):null
|PointLocation
[]
Parameters ​
Parameter | Type |
---|---|
start | IVec |
end | IVec |
Returns ​
null
| PointLocation
[]
Implementation of ​
IEdgelessElement
.intersectWithLine
Defined In ​
packages/blocks/src/frame-block/frame-model.ts:77
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