Skip to content

API > @blocksuite/blocks > NoteBlockModel

Class: NoteBlockModel ​

Extends ​

Implements ​

Constructors ​

constructor ​

new NoteBlockModel(): NoteBlockModel

Returns ​

NoteBlockModel

Inherited from ​

BaseBlockModel.constructor

Defined In ​

packages/store/dist/schema/base.d.ts:100

Properties ​

background ​

background: string

Defined In ​

packages/blocks/src/note-block/note-model.ts:63

Inherited from ​

BaseBlockModel.background


boxSelect ​

boxSelect: function

Parameters ​

ParameterType
boundBound

Returns ​

boolean

Defined In ​

packages/blocks/src/note-block/note-model.ts:92

Implementation of ​

IEdgelessElement.boxSelect


childMap ​

childMap: Map< string, number >

Defined In ​

packages/store/dist/schema/base.d.ts:116

Inherited from ​

BaseBlockModel.childMap


children ​

children: BaseBlockModel< object >[]

Defined In ​

packages/store/dist/schema/base.d.ts:117

Inherited from ​

BaseBlockModel.children


childrenUpdated ​

childrenUpdated: Slot< void >

Defined In ​

packages/store/dist/schema/base.d.ts:115

Inherited from ​

BaseBlockModel.childrenUpdated


containedByBounds ​

containedByBounds: function

Parameters ​

ParameterType
_Bound

Returns ​

boolean

Defined In ​

packages/blocks/src/note-block/note-model.ts:88

Implementation of ​

IEdgelessElement.containedByBounds


created ​

created: Slot< void >

Defined In ​

packages/store/dist/schema/base.d.ts:109

Inherited from ​

BaseBlockModel.created


deleted ​

deleted: Slot< void >

Defined In ​

packages/store/dist/schema/base.d.ts:110

Inherited from ​

BaseBlockModel.deleted


flavour ​

flavour: NOTE

Defined In ​

packages/blocks/src/note-block/note-model.ts:73

Overrides ​

BaseBlockModel.flavour


getNearestPoint ​

getNearestPoint: function

Parameters ​

ParameterType
_IVec

Returns ​

IVec

Defined In ​

packages/blocks/src/note-block/note-model.ts:89

Implementation of ​

IEdgelessElement.getNearestPoint


getRelativePointLocation ​

getRelativePointLocation: function

Parameters ​

ParameterType
_IVec

Returns ​

PointLocation

Defined In ​

packages/blocks/src/note-block/note-model.ts:91

Implementation of ​

IEdgelessElement.getRelativePointLocation


gridBound ​

gridBound: Bound

Defined In ​

packages/blocks/src/note-block/note-model.ts:74

Implementation of ​

IEdgelessElement.gridBound


hidden ​

hidden: boolean

Defined In ​

packages/blocks/src/note-block/note-model.ts:65

Inherited from ​

BaseBlockModel.hidden


id ​

id: string

Defined In ​

packages/store/dist/schema/base.d.ts:105

Inherited from ​

BaseBlockModel.id


index ​

index: string

Defined In ​

packages/blocks/src/note-block/note-model.ts:64

Implementation of ​

IEdgelessElement.index

Inherited from ​

BaseBlockModel.index


intersectWithLine ​

intersectWithLine: function

Parameters ​

ParameterType
_IVec
_1IVec

Returns ​

null | PointLocation[]

Defined In ​

packages/blocks/src/note-block/note-model.ts:90

Implementation of ​

IEdgelessElement.intersectWithLine


keys ​

keys: string[]

Defined In ​

packages/store/dist/schema/base.d.ts:107

Inherited from ​

BaseBlockModel.keys


page ​

page: Page

Defined In ​

packages/store/dist/schema/base.d.ts:104

Inherited from ​

BaseBlockModel.page


propsUpdated ​

propsUpdated: Slot< {newProps: unknown; oldProps: unknown;} >

Defined In ​

packages/store/dist/schema/base.d.ts:111

Inherited from ​

BaseBlockModel.propsUpdated


role ​

role: "root" | "hub" | "content"

Defined In ​

packages/store/dist/schema/base.d.ts:103

Inherited from ​

BaseBlockModel.role


text ​

optional text: Text

Defined In ​

packages/store/dist/schema/base.d.ts:108

Inherited from ​

BaseBlockModel.text


xywh ​

xywh: `[${number},${number},${number},${number}]`

Defined In ​

packages/blocks/src/note-block/note-model.ts:62

Implementation of ​

IEdgelessElement.xywh

Inherited from ​

BaseBlockModel.xywh


yBlock ​

yBlock: YBlock

Defined In ​

packages/store/dist/schema/base.d.ts:106

Inherited from ​

BaseBlockModel.yBlock

Accessors ​

batch ​

get batch(): string

Defined In ​

packages/blocks/src/note-block/note-model.ts:80

Implementation of ​

IEdgelessElement.batch


connectable ​

get connectable(): boolean

Defined In ​

packages/blocks/src/note-block/note-model.ts:76

Implementation of ​

IEdgelessElement.connectable


rotate ​

get rotate(): number

Defined In ​

packages/blocks/src/note-block/note-model.ts:84

Implementation of ​

IEdgelessElement.rotate

Methods ​

clone ​

clone(): NoteBlockModel

Returns ​

NoteBlockModel

Inherited from ​

BaseBlockModel.clone

Defined In ​

packages/store/dist/schema/base.d.ts:124


dispose ​

dispose(): void

Returns ​

void

Inherited from ​

BaseBlockModel.dispose

Defined In ​

packages/store/dist/schema/base.d.ts:123


firstChild ​

firstChild(): null | BaseBlockModel< object >

Returns ​

null | BaseBlockModel< object >

Inherited from ​

BaseBlockModel.firstChild

Defined In ​

packages/store/dist/schema/base.d.ts:119


firstItem ​

firstItem(): null | BaseBlockModel< object >

Returns ​

null | BaseBlockModel< object >

Inherited from ​

BaseBlockModel.firstItem

Defined In ​

packages/store/dist/schema/base.d.ts:121


hitTest ​

hitTest( x, y, _): boolean

Parameters ​

ParameterType
xnumber
ynumber
_HitTestOptions

Returns ​

boolean

Implementation of ​

IEdgelessElement.hitTest

Defined In ​

packages/blocks/src/note-block/note-model.ts:94


isEmpty ​

isEmpty(): boolean

Returns ​

boolean

Inherited from ​

BaseBlockModel.isEmpty

Defined In ​

packages/store/dist/schema/base.d.ts:118


lastChild ​

lastChild(): null | BaseBlockModel< object >

Returns ​

null | BaseBlockModel< object >

Inherited from ​

BaseBlockModel.lastChild

Defined In ​

packages/store/dist/schema/base.d.ts:120


lastItem ​

lastItem(): null | BaseBlockModel< object >

Returns ​

null | BaseBlockModel< object >

Inherited from ​

BaseBlockModel.lastItem

Defined In ​

packages/store/dist/schema/base.d.ts:122