Skip to content

BlockSuite API Documentation / @blocksuite/blocks / EmbedYoutubeModel

Class: EmbedYoutubeModel

Extends

Contents

Constructors

new EmbedYoutubeModel(args)

new EmbedYoutubeModel(...args): EmbedYoutubeModel

Parameters

• ...args: any[]

Returns

EmbedYoutubeModel

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).constructor

Source

packages/global/dist/utils/types.d.ts:1

Properties

batch

batch: null | string

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).batch

Source

packages/blocks/src/surface-block/elements/edgeless-element.ts:37


caption

caption: null | string

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).caption

Source

packages/blocks/src/embed-youtube-block/embed-youtube-model.ts:24


childrenUpdated

childrenUpdated: Slot<void>

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).childrenUpdated

Source

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


connectable

connectable: boolean

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).connectable

Source

packages/blocks/src/surface-block/elements/edgeless-element.ts:35


created

created: Slot<void>

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).created

Source

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


creator

creator: null | string

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).creator

Source

packages/blocks/src/embed-youtube-block/embed-youtube-model.ts:14


creatorImage

creatorImage: null | string

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).creatorImage

Source

packages/blocks/src/embed-youtube-block/embed-youtube-model.ts:16


creatorUrl

creatorUrl: null | string

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).creatorUrl

Source

packages/blocks/src/embed-youtube-block/embed-youtube-model.ts:15


deleted

deleted: Slot<void>

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).deleted

Source

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


description

description: null | string

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).description

Source

packages/blocks/src/embed-youtube-block/embed-youtube-model.ts:13


elementBound

elementBound: Bound

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).elementBound

Source

packages/blocks/src/surface-block/elements/edgeless-element.ts:38


flavour

flavour: string

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).flavour

Source

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


id

id: string

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).id

Source

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


image

image: null | string

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).image

Source

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


index

index: string

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).index

Source

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


keys

keys: string[]

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).keys

Source

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


page

page: Page

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).page

Source

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


pop

pop: (prop) => void

Parameters

prop: "image" | "description" | "title" | "index" | "xywh" | "rotate" | "style" | "caption" | "url" | "videoId" | "creator" | "creatorUrl" | "creatorImage"

Returns

void

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).pop

Source

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


propsUpdated

propsUpdated: Slot<Object>

Type declaration

key

key: string

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).propsUpdated

Source

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


role

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

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).role

Source

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


rotate

rotate: number

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).rotate

Source

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


stash

stash: (prop) => void

Parameters

prop: "image" | "description" | "title" | "index" | "xywh" | "rotate" | "style" | "caption" | "url" | "videoId" | "creator" | "creatorUrl" | "creatorImage"

Returns

void

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).stash

Source

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


style

style: EmbedCardStyle

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).style

Source

packages/blocks/src/embed-youtube-block/embed-youtube-model.ts:22


text?

text?: Text

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).text

Source

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


title

title: null | string

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).title

Source

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


url

url: string

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).url

Source

packages/blocks/src/embed-youtube-block/embed-youtube-model.ts:23


videoId

videoId: null | string

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).videoId

Source

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


xywh

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

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).xywh

Source

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


yBlock

yBlock: YBlock

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( 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

boxSelect()

boxSelect(bound): boolean

Parameters

bound: Bound

Returns

boolean

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).boxSelect

Source

packages/blocks/src/surface-block/elements/edgeless-element.ts:50


clone()

clone(): this

Returns

this

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).clone

Source

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


containedByBounds()

containedByBounds(bounds): boolean

Parameters

bounds: Bound

Returns

boolean

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).containedByBounds

Source

packages/blocks/src/surface-block/elements/edgeless-element.ts:39


dispose()

dispose(): void

Returns

void

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).dispose

Source

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


firstChild()

firstChild(): null | BlockModel<object>

Returns

null | BlockModel<object>

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).firstChild

Source

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


getNearestPoint()

getNearestPoint(point): IVec

Parameters

point: IVec

Returns

IVec

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).getNearestPoint

Source

packages/blocks/src/surface-block/elements/edgeless-element.ts:40


getRelativePointLocation()

getRelativePointLocation(point): PointLocation

Parameters

point: IVec

Returns

PointLocation

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).getRelativePointLocation

Source

packages/blocks/src/surface-block/elements/edgeless-element.ts:42


hitTest()

hitTest(x, y, options, editorHost, surface?): boolean

Parameters

x: number

y: number

options: HitTestOptions

editorHost: EditorHost

surface?: SurfaceBlockComponent

Returns

boolean

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).hitTest

Source

packages/blocks/src/surface-block/elements/edgeless-element.ts:43


intersectWithLine()

intersectWithLine(start, end): null | PointLocation[]

Parameters

start: IVec

end: IVec

Returns

null | PointLocation[]

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).intersectWithLine

Source

packages/blocks/src/surface-block/elements/edgeless-element.ts:41


isEmpty()

isEmpty(): boolean

Returns

boolean

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).isEmpty

Source

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


lastChild()

lastChild(): null | BlockModel<object>

Returns

null | BlockModel<object>

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).lastChild

Source

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


lastItem()

lastItem(): null | BlockModel<object>

Returns

null | BlockModel<object>

Inherited from

defineEmbedModel<EmbedYoutubeBlockProps>( BlockModel ).lastItem

Source

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


Generated using typedoc-plugin-markdown and TypeDoc