BlockSuite API Documentation / @blocksuite/blocks / NoteBlockModel
Class: NoteBlockModel
Extends
BlockModel
<NoteProps
,this
> &IEdgelessElement
Contents
Constructors
new NoteBlockModel(args)
new NoteBlockModel(...
args
):NoteBlockModel
Parameters
• ...args: any
[]
Returns
Inherited from
selectable<NoteProps>(BlockModel).constructor
Source
packages/global/dist/utils/types.d.ts:1
Properties
background
background:
string
Inherited from
selectable<NoteProps>(BlockModel).background
Source
packages/blocks/src/note-block/note-model.ts:59
batch
batch:
null
|string
Inherited from
selectable<NoteProps>(BlockModel).batch
Source
packages/blocks/src/surface-block/elements/edgeless-element.ts:37
childrenUpdated
childrenUpdated:
Slot
<void
>
Inherited from
selectable<NoteProps>(BlockModel).childrenUpdated
Source
packages/store/dist/schema/base.d.ts:116
connectable
connectable:
boolean
Inherited from
selectable<NoteProps>(BlockModel).connectable
Source
packages/blocks/src/surface-block/elements/edgeless-element.ts:35
created
created:
Slot
<void
>
Inherited from
selectable<NoteProps>(BlockModel).created
Source
packages/store/dist/schema/base.d.ts:111
deleted
deleted:
Slot
<void
>
Inherited from
selectable<NoteProps>(BlockModel).deleted
Source
packages/store/dist/schema/base.d.ts:112
displayMode
displayMode:
NoteDisplayMode
Inherited from
selectable<NoteProps>(BlockModel).displayMode
Source
packages/blocks/src/note-block/note-model.ts:61
edgeless
edgeless:
NoteEdgelessProps
Inherited from
selectable<NoteProps>(BlockModel).edgeless
Source
packages/blocks/src/note-block/note-model.ts:62
elementBound
elementBound:
Bound
Inherited from
selectable<NoteProps>(BlockModel).elementBound
Source
packages/blocks/src/surface-block/elements/edgeless-element.ts:38
flavour
flavour:
string
Inherited from
selectable<NoteProps>(BlockModel).flavour
Source
packages/store/dist/schema/base.d.ts:102
hidden
hidden:
boolean
Deprecated
use displayMode
instead hidden:true -> displayMode:NoteDisplayMode.EdgelessOnly: means the note is visible only in the edgeless mode hidden:false -> displayMode:NoteDisplayMode.DocAndEdgeless: means the note is visible in the doc and edgeless mode
Inherited from
selectable<NoteProps>(BlockModel).hidden
Source
packages/blocks/src/note-block/note-model.ts:71
id
id:
string
Inherited from
selectable<NoteProps>(BlockModel).id
Source
packages/store/dist/schema/base.d.ts:105
index
index:
string
Inherited from
selectable<NoteProps>(BlockModel).index
Source
packages/blocks/src/note-block/note-model.ts:60
keys
keys:
string
[]
Inherited from
selectable<NoteProps>(BlockModel).keys
Source
packages/store/dist/schema/base.d.ts:107
page
page:
Page
Inherited from
selectable<NoteProps>(BlockModel).page
Source
packages/store/dist/schema/base.d.ts:104
pop
pop: (
prop
) =>void
Parameters
• prop: "index"
| "xywh"
| "hidden"
| "background"
| "displayMode"
| "edgeless"
Returns
void
Inherited from
selectable<NoteProps>(BlockModel).pop
Source
packages/store/dist/schema/base.d.ts:109
propsUpdated
propsUpdated:
Slot
<Object
>
Type declaration
key
key:
string
Inherited from
selectable<NoteProps>(BlockModel).propsUpdated
Source
packages/store/dist/schema/base.d.ts:113
role
role:
"root"
|"hub"
|"content"
Inherited from
selectable<NoteProps>(BlockModel).role
Source
packages/store/dist/schema/base.d.ts:103
rotate
rotate:
number
Inherited from
selectable<NoteProps>(BlockModel).rotate
Source
packages/blocks/src/surface-block/elements/edgeless-element.ts:34
stash
stash: (
prop
) =>void
Parameters
• prop: "index"
| "xywh"
| "hidden"
| "background"
| "displayMode"
| "edgeless"
Returns
void
Inherited from
selectable<NoteProps>(BlockModel).stash
Source
packages/store/dist/schema/base.d.ts:108
text?
text?:
Text
Inherited from
selectable<NoteProps>(BlockModel).text
Source
packages/store/dist/schema/base.d.ts:110
xywh
xywh: `[${number},${number},${number},${number}]`
Inherited from
selectable<NoteProps>(BlockModel).xywh
Source
packages/blocks/src/note-block/note-model.ts:58
yBlock
yBlock:
YBlock
Inherited from
selectable<NoteProps>(BlockModel).yBlock
Source
packages/store/dist/schema/base.d.ts:106
Accessors
childMap
get
childMap():Map
<string
,number
>
Returns
Map
<string
, number
>
Source
packages/store/dist/schema/base.d.ts:117
children
get
children():BlockModel
<object
>[]
Returns
BlockModel
<object
>[]
Source
packages/store/dist/schema/base.d.ts:118
Methods
_isSelectable()
private
_isSelectable():boolean
Returns
boolean
Source
packages/blocks/src/note-block/note-model.ts:87
boxSelect()
boxSelect(
bound
):boolean
Parameters
• bound: Bound
Returns
boolean
Overrides
selectable<NoteProps>(BlockModel).boxSelect
Source
packages/blocks/src/note-block/note-model.ts:103
clone()
clone():
this
Returns
this
Inherited from
selectable<NoteProps>(BlockModel).clone
Source
packages/store/dist/schema/base.d.ts:124
containedByBounds()
containedByBounds(
bounds
):boolean
Parameters
• bounds: Bound
Returns
boolean
Overrides
selectable<NoteProps>(BlockModel).containedByBounds
Source
packages/blocks/src/note-block/note-model.ts:98
dispose()
dispose():
void
Returns
void
Inherited from
selectable<NoteProps>(BlockModel).dispose
Source
packages/store/dist/schema/base.d.ts:123
firstChild()
firstChild():
null
|BlockModel
<object
>
Returns
null
| BlockModel
<object
>
Inherited from
selectable<NoteProps>(BlockModel).firstChild
Source
packages/store/dist/schema/base.d.ts:120
getNearestPoint()
getNearestPoint(
point
):IVec
Parameters
• point: IVec
Returns
IVec
Inherited from
selectable<NoteProps>(BlockModel).getNearestPoint
Source
packages/blocks/src/surface-block/elements/edgeless-element.ts:40
getRelativePointLocation()
getRelativePointLocation(
point
):PointLocation
Parameters
• point: IVec
Returns
PointLocation
Inherited from
selectable<NoteProps>(BlockModel).getRelativePointLocation
Source
packages/blocks/src/surface-block/elements/edgeless-element.ts:42
hitTest()
hitTest(
x
,y
):boolean
Parameters
• x: number
• y: number
Returns
boolean
Overrides
selectable<NoteProps>(BlockModel).hitTest
Source
packages/blocks/src/note-block/note-model.ts:91
intersectWithLine()
intersectWithLine(
start
,end
):null
|PointLocation
[]
Parameters
• start: IVec
• end: IVec
Returns
null
| PointLocation
[]
Inherited from
selectable<NoteProps>(BlockModel).intersectWithLine
Source
packages/blocks/src/surface-block/elements/edgeless-element.ts:41
isEmpty()
isEmpty():
boolean
Returns
boolean
Inherited from
selectable<NoteProps>(BlockModel).isEmpty
Source
packages/store/dist/schema/base.d.ts:119
lastChild()
lastChild():
null
|BlockModel
<object
>
Returns
null
| BlockModel
<object
>
Inherited from
selectable<NoteProps>(BlockModel).lastChild
Source
packages/store/dist/schema/base.d.ts:121
lastItem()
lastItem():
null
|BlockModel
<object
>
Returns
null
| BlockModel
<object
>
Inherited from
selectable<NoteProps>(BlockModel).lastItem
Source
packages/store/dist/schema/base.d.ts:122
Generated using typedoc-plugin-markdown and TypeDoc