BlockSuite API Documentation / @blocksuite/blocks / BookmarkBlockModel
Class: BookmarkBlockModel
Extends
EdgelessBlock<BookmarkBlockProps,this>
Constructors
new BookmarkBlockModel(undefined)
new BookmarkBlockModel():
BookmarkBlockModel
Returns
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:99
Properties
[modelLabel]
[modelLabel]:
BookmarkBlockProps
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:101
caption
caption:
null|string
Inherited from
selectable<BookmarkBlockProps>( BlockModel ).caption
Source
packages/blocks/src/bookmark-block/bookmark-model.ts:24
childrenUpdated
childrenUpdated:
Slot<void>
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:120
connectable
connectable:
boolean=true
Inherited from
Source
packages/blocks/src/root-block/edgeless/type.ts:74
created
created:
Slot<void>
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:115
deleted
deleted:
Slot<void>
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:116
description
description:
null|string
Inherited from
selectable<BookmarkBlockProps>( BlockModel ).description
Source
packages/blocks/src/_common/embed-block-helper/types.ts:33
flavour
flavour:
string
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:103
icon
icon:
null|string
Inherited from
selectable<BookmarkBlockProps>( BlockModel ).icon
Source
packages/blocks/src/_common/embed-block-helper/types.ts:34
id
id:
string
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:109
image
image:
null|string
Inherited from
selectable<BookmarkBlockProps>( BlockModel ).image
Source
packages/blocks/src/_common/embed-block-helper/types.ts:35
index
index:
string
Inherited from
Source
packages/blocks/src/bookmark-block/bookmark-model.ts:9
keys
keys:
string[]
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:111
page
page:
Doc
Deprecated
use doc instead
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:108
pop
pop: (
prop) =>void
Parameters
• prop: "image" | "url" | "style" | "rotate" | "xywh" | "index" | "title" | "description" | "caption" | "icon"
Returns
void
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:113
propsUpdated
propsUpdated:
Slot<Object>
Type declaration
key
key:
string
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:117
role
role:
"root"|"hub"|"content"
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:104
rotate
rotate:
number=0
Inherited from
Source
packages/blocks/src/root-block/edgeless/type.ts:75
stash
stash: (
prop) =>void
Parameters
• prop: "image" | "url" | "style" | "rotate" | "xywh" | "index" | "title" | "description" | "caption" | "icon"
Returns
void
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:112
style
style:
EmbedCardStyle
Inherited from
selectable<BookmarkBlockProps>( BlockModel ).style
Source
packages/blocks/src/bookmark-block/bookmark-model.ts:22
text?
optionaltext:Text
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:114
title
title:
null|string
Inherited from
selectable<BookmarkBlockProps>( BlockModel ).title
Source
packages/blocks/src/_common/embed-block-helper/types.ts:36
url
url:
string
Inherited from
selectable<BookmarkBlockProps>( BlockModel ).url
Source
packages/blocks/src/bookmark-block/bookmark-model.ts:23
version
version:
number
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:102
xywh
xywh: `[${number},${number},${number},${number}]`
Inherited from
Source
packages/blocks/src/bookmark-block/bookmark-model.ts:10
yBlock
yBlock:
YBlock
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:110
Accessors
childMap
getchildMap():Map<string,number>
Returns
Map<string, number>
Source
packages/framework/store/dist/schema/base.d.ts:123
children
getchildren():BlockModel<object>[]
Returns
BlockModel<object>[]
Source
packages/framework/store/dist/schema/base.d.ts:124
doc
getdoc():Doc
setdoc(doc):void
Parameters
• doc: Doc
Returns
Source
packages/framework/store/dist/schema/base.d.ts:121
elementBound
getelementBound():Bound
Returns
Source
packages/blocks/src/root-block/edgeless/type.ts:91
externalBound
getexternalBound():null|Bound
Returns
null | Bound
Source
packages/blocks/src/root-block/edgeless/type.ts:87
externalXYWH
getexternalXYWH():undefined| `[${number},${number},${number},${number}]`
setexternalXYWH(xywh):void
Parameters
• xywh: undefined | `[${number},${number},${number},${number}]`
Returns
undefined | `[${number},${number},${number},${number}]`
Source
packages/blocks/src/root-block/edgeless/type.ts:79
group
getgroup():null|GroupElementModel
Returns
null | GroupElementModel
Source
packages/blocks/src/root-block/edgeless/type.ts:153
groups
getgroups():GroupElementModel[]
Returns
Source
packages/blocks/src/root-block/edgeless/type.ts:161
Methods
boxSelect()
boxSelect(
bound):boolean
Parameters
• bound: Bound
Returns
boolean
Inherited from
Source
packages/blocks/src/root-block/edgeless/type.ts:144
containedByBounds()
containedByBounds(
bounds):boolean
Parameters
• bounds: Bound
Returns
boolean
Inherited from
EdgelessBlock.containedByBounds
Source
packages/blocks/src/root-block/edgeless/type.ts:101
dispose()
dispose():
void
Returns
void
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:129
firstChild()
firstChild():
null|BlockModel<object>
Returns
null | BlockModel<object>
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:126
getNearestPoint()
getNearestPoint(
point):IVec
Parameters
• point: IVec
Returns
IVec
Inherited from
Source
packages/blocks/src/root-block/edgeless/type.ts:113
getRelativePointLocation()
getRelativePointLocation(
relativePoint):PointLocation
Parameters
• relativePoint: IVec
Returns
PointLocation
Inherited from
EdgelessBlock.getRelativePointLocation
Source
packages/blocks/src/root-block/edgeless/type.ts:130
hitTest()
hitTest(
x,y,_,__):boolean
Parameters
• x: number
• y: number
• _: HitTestOptions
• __: EditorHost
Returns
boolean
Inherited from
Source
packages/blocks/src/root-block/edgeless/type.ts:96
intersectWithLine()
intersectWithLine(
start,end):null|PointLocation[]
Parameters
• start: IVec
• end: IVec
Returns
null | PointLocation[]
Inherited from
EdgelessBlock.intersectWithLine
Source
packages/blocks/src/root-block/edgeless/type.ts:121
isEmpty()
isEmpty():
boolean
Returns
boolean
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:125
lastChild()
lastChild():
null|BlockModel<object>
Returns
null | BlockModel<object>
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:127
lastItem()
lastItem():
null|BlockModel<object>
Returns
null | BlockModel<object>
Inherited from
Source
packages/framework/store/dist/schema/base.d.ts:128