Skip to content

BlockSuite API Documentation / @blocksuite/blocks / EmbedSyncedDocModel

Class: EmbedSyncedDocModel

Extends

Constructors

new EmbedSyncedDocModel(undefined)

new EmbedSyncedDocModel(): EmbedSyncedDocModel

Returns

EmbedSyncedDocModel

Inherited from

EdgelessBlock.constructor

Source

packages/framework/store/dist/schema/base.d.ts:99

Properties

[modelLabel]

[modelLabel]: EmbedSyncedDocBlockProps & EdgelessSelectableProps

Inherited from

EdgelessBlock.[modelLabel]

Source

packages/framework/store/dist/schema/base.d.ts:101


caption?

optional caption: null | string

Inherited from

defineEmbedModel<EmbedSyncedDocBlockProps>( BlockModel ).caption

Source

packages/blocks/src/embed-synced-doc-block/embed-synced-doc-model.ts:11


childrenUpdated

childrenUpdated: Slot<void>

Inherited from

EdgelessBlock.childrenUpdated

Source

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


connectable

connectable: boolean = true

Inherited from

EdgelessBlock.connectable

Source

packages/blocks/src/root-block/edgeless/type.ts:77


created

created: Slot<void>

Inherited from

EdgelessBlock.created

Source

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


deleted

deleted: Slot<void>

Inherited from

EdgelessBlock.deleted

Source

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


flavour

flavour: string

Inherited from

EdgelessBlock.flavour

Source

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


id

id: string

Inherited from

EdgelessBlock.id

Source

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


index

index: string

Inherited from

EdgelessBlock.index

Source

packages/blocks/src/_common/edgeless/mixin/edgeless-selectable.ts:9


keys

keys: string[]

Inherited from

EdgelessBlock.keys

Source

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


page

page: Doc

Deprecated

use doc instead

Inherited from

EdgelessBlock.page

Source

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


pageId

pageId: string

Inherited from

defineEmbedModel<EmbedSyncedDocBlockProps>( BlockModel ).pageId

Source

packages/blocks/src/embed-synced-doc-block/embed-synced-doc-model.ts:9


pop()

pop: (prop) => void

Parameters

prop: "style" | "xywh" | "index" | "caption" | "pageId" | "scale"

Returns

void

Inherited from

EdgelessBlock.pop

Source

packages/framework/store/dist/schema/base.d.ts:113


propsUpdated

propsUpdated: Slot<object>

Type declaration

key

key: string

Inherited from

EdgelessBlock.propsUpdated

Source

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


role

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

Inherited from

EdgelessBlock.role

Source

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


rotate

rotate: number = 0

Inherited from

EdgelessBlock.rotate

Source

packages/blocks/src/root-block/edgeless/type.ts:78


scale?

optional scale: number

Inherited from

defineEmbedModel<EmbedSyncedDocBlockProps>( BlockModel ).scale

Source

packages/blocks/src/embed-synced-doc-block/embed-synced-doc-model.ts:12


stash()

stash: (prop) => void

Parameters

prop: "style" | "xywh" | "index" | "caption" | "pageId" | "scale"

Returns

void

Inherited from

EdgelessBlock.stash

Source

packages/framework/store/dist/schema/base.d.ts:112


style

style: EmbedCardStyle

Inherited from

defineEmbedModel<EmbedSyncedDocBlockProps>( BlockModel ).style

Source

packages/blocks/src/embed-synced-doc-block/embed-synced-doc-model.ts:10


text?

optional text: Text

Inherited from

EdgelessBlock.text

Source

packages/framework/store/dist/schema/base.d.ts:114


version

version: number

Inherited from

EdgelessBlock.version

Source

packages/framework/store/dist/schema/base.d.ts:102


xywh

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

Inherited from

EdgelessBlock.xywh

Source

packages/blocks/src/_common/edgeless/mixin/edgeless-selectable.ts:8


yBlock

yBlock: YBlock

Inherited from

EdgelessBlock.yBlock

Source

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

Accessors

childMap

get childMap(): Map<string, number>

Returns

Map<string, number>

Source

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


children

get children(): BlockModel<object>[]

Returns

BlockModel<object>[]

Source

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


doc

get doc(): Doc

set doc(doc): void

Parameters

doc: Doc

Returns

Doc

Source

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


elementBound

get elementBound(): Bound

Returns

Bound

Source

packages/blocks/src/root-block/edgeless/type.ts:94


externalBound

get externalBound(): null | Bound

Returns

null | Bound

Source

packages/blocks/src/root-block/edgeless/type.ts:90


externalXYWH

get externalXYWH(): undefined | [${number},${number},${number},${number}]

set externalXYWH(xywh): void

Parameters

xywh: undefined | [${number},${number},${number},${number}]

Returns

undefined | [${number},${number},${number},${number}]

Source

packages/blocks/src/root-block/edgeless/type.ts:82


group

get group(): null | GroupLikeModel<BaseProps>

Returns

null | GroupLikeModel<BaseProps>

Source

packages/blocks/src/root-block/edgeless/type.ts:156


groups

get groups(): GroupLikeModel<BaseProps>[]

Returns

GroupLikeModel<BaseProps>[]

Source

packages/blocks/src/root-block/edgeless/type.ts:164

Methods

boxSelect()

boxSelect(bound): boolean

Parameters

bound: Bound

Returns

boolean

Inherited from

EdgelessBlock.boxSelect

Source

packages/blocks/src/root-block/edgeless/type.ts:147


containedByBounds()

containedByBounds(bounds): boolean

Parameters

bounds: Bound

Returns

boolean

Inherited from

EdgelessBlock.containedByBounds

Source

packages/blocks/src/root-block/edgeless/type.ts:104


dispose()

dispose(): void

Returns

void

Inherited from

EdgelessBlock.dispose

Source

packages/framework/store/dist/schema/base.d.ts:128


firstChild()

firstChild(): null | BlockModel<object>

Returns

null | BlockModel<object>

Inherited from

EdgelessBlock.firstChild

Source

packages/framework/store/dist/schema/base.d.ts:126


getNearestPoint()

getNearestPoint(point): IVec

Parameters

point: IVec

Returns

IVec

Inherited from

EdgelessBlock.getNearestPoint

Source

packages/blocks/src/root-block/edgeless/type.ts:116


getRelativePointLocation()

getRelativePointLocation(relativePoint): PointLocation

Parameters

relativePoint: IVec

Returns

PointLocation

Inherited from

EdgelessBlock.getRelativePointLocation

Source

packages/blocks/src/root-block/edgeless/type.ts:133


hitTest()

hitTest(x, y, _, __): boolean

Parameters

x: number

y: number

_: HitTestOptions

__: EditorHost

Returns

boolean

Inherited from

EdgelessBlock.hitTest

Source

packages/blocks/src/root-block/edgeless/type.ts:99


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:124


isEmpty()

isEmpty(): boolean

Returns

boolean

Inherited from

EdgelessBlock.isEmpty

Source

packages/framework/store/dist/schema/base.d.ts:125


lastChild()

lastChild(): null | BlockModel<object>

Returns

null | BlockModel<object>

Inherited from

EdgelessBlock.lastChild

Source

packages/framework/store/dist/schema/base.d.ts:127