BlockSuite API Documentation / @blocksuite/blocks / EmbedGithubModel
Class: EmbedGithubModel
Extends
BlockModel
<Object
&EmbedGithubBlockUrlData
&EdgelessSelectableProps
,this
> &IEdgelessElement
Contents
Constructors
new EmbedGithubModel(args)
new EmbedGithubModel(...
args
):EmbedGithubModel
Parameters
• ...args: any
[]
Returns
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).constructor
Source
packages/global/dist/utils/types.d.ts:1
Properties
assignees
assignees:
null
|string
[]
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).assignees
Source
packages/blocks/src/embed-github-block/embed-github-model.ts:16
batch
batch:
null
|string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).batch
Source
packages/blocks/src/surface-block/elements/edgeless-element.ts:37
caption
caption:
null
|string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).caption
Source
packages/blocks/src/embed-github-block/embed-github-model.ts:33
childrenUpdated
childrenUpdated:
Slot
<void
>
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).childrenUpdated
Source
packages/store/dist/schema/base.d.ts:116
connectable
connectable:
boolean
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).connectable
Source
packages/blocks/src/surface-block/elements/edgeless-element.ts:35
created
created:
Slot
<void
>
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).created
Source
packages/store/dist/schema/base.d.ts:111
createdAt
createdAt:
null
|string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).createdAt
Source
packages/blocks/src/embed-github-block/embed-github-model.ts:15
deleted
deleted:
Slot
<void
>
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).deleted
Source
packages/store/dist/schema/base.d.ts:112
description
description:
null
|string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).description
Source
packages/blocks/src/embed-github-block/embed-github-model.ts:14
elementBound
elementBound:
Bound
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).elementBound
Source
packages/blocks/src/surface-block/elements/edgeless-element.ts:38
flavour
flavour:
string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).flavour
Source
packages/store/dist/schema/base.d.ts:102
githubId
githubId:
string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).githubId
Source
packages/blocks/src/embed-github-block/embed-github-model.ts:31
githubType
githubType:
"issue"
|"pr"
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).githubType
Source
packages/blocks/src/embed-github-block/embed-github-model.ts:30
id
id:
string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).id
Source
packages/store/dist/schema/base.d.ts:105
image
image:
null
|string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).image
Source
packages/blocks/src/embed-github-block/embed-github-model.ts:10
index
index:
string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).index
Source
packages/blocks/src/_common/edgeless/mixin/edgeless-selectable.ts:22
keys
keys:
string
[]
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).keys
Source
packages/store/dist/schema/base.d.ts:107
owner
owner:
string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).owner
Source
packages/blocks/src/embed-github-block/embed-github-model.ts:28
page
page:
Page
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).page
Source
packages/store/dist/schema/base.d.ts:104
pop
pop: (
prop
) =>void
Parameters
• prop: "status"
| "image"
| "description"
| "title"
| "index"
| "xywh"
| "rotate"
| "style"
| "caption"
| "url"
| "owner"
| "repo"
| "githubType"
| "githubId"
| "statusReason"
| "createdAt"
| "assignees"
Returns
void
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).pop
Source
packages/store/dist/schema/base.d.ts:109
propsUpdated
propsUpdated:
Slot
<Object
>
Type declaration
key
key:
string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).propsUpdated
Source
packages/store/dist/schema/base.d.ts:113
repo
repo:
string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).repo
Source
packages/blocks/src/embed-github-block/embed-github-model.ts:29
role
role:
"root"
|"hub"
|"content"
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).role
Source
packages/store/dist/schema/base.d.ts:103
rotate
rotate:
number
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).rotate
Source
packages/blocks/src/_common/edgeless/mixin/edgeless-selectable.ts:23
stash
stash: (
prop
) =>void
Parameters
• prop: "status"
| "image"
| "description"
| "title"
| "index"
| "xywh"
| "rotate"
| "style"
| "caption"
| "url"
| "owner"
| "repo"
| "githubType"
| "githubId"
| "statusReason"
| "createdAt"
| "assignees"
Returns
void
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).stash
Source
packages/store/dist/schema/base.d.ts:108
status
status:
null
|string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).status
Source
packages/blocks/src/embed-github-block/embed-github-model.ts:11
statusReason
statusReason:
null
|string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).statusReason
Source
packages/blocks/src/embed-github-block/embed-github-model.ts:12
style
style:
EmbedCardStyle
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).style
Source
packages/blocks/src/embed-github-block/embed-github-model.ts:27
text?
text?:
Text
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).text
Source
packages/store/dist/schema/base.d.ts:110
title
title:
null
|string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).title
Source
packages/blocks/src/embed-github-block/embed-github-model.ts:13
url
url:
string
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).url
Source
packages/blocks/src/embed-github-block/embed-github-model.ts:32
xywh
xywh: `[${number},${number},${number},${number}]`
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).xywh
Source
packages/blocks/src/_common/edgeless/mixin/edgeless-selectable.ts:21
yBlock
yBlock:
YBlock
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( 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<EmbedGithubBlockProps>( BlockModel ).boxSelect
Source
packages/blocks/src/surface-block/elements/edgeless-element.ts:50
clone()
clone():
this
Returns
this
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).clone
Source
packages/store/dist/schema/base.d.ts:124
containedByBounds()
containedByBounds(
bounds
):boolean
Parameters
• bounds: Bound
Returns
boolean
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).containedByBounds
Source
packages/blocks/src/surface-block/elements/edgeless-element.ts:39
dispose()
dispose():
void
Returns
void
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).dispose
Source
packages/store/dist/schema/base.d.ts:123
firstChild()
firstChild():
null
|BlockModel
<object
>
Returns
null
| BlockModel
<object
>
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).firstChild
Source
packages/store/dist/schema/base.d.ts:120
getNearestPoint()
getNearestPoint(
point
):IVec
Parameters
• point: IVec
Returns
IVec
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( 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<EmbedGithubBlockProps>( 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<EmbedGithubBlockProps>( 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<EmbedGithubBlockProps>( BlockModel ).intersectWithLine
Source
packages/blocks/src/surface-block/elements/edgeless-element.ts:41
isEmpty()
isEmpty():
boolean
Returns
boolean
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).isEmpty
Source
packages/store/dist/schema/base.d.ts:119
lastChild()
lastChild():
null
|BlockModel
<object
>
Returns
null
| BlockModel
<object
>
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).lastChild
Source
packages/store/dist/schema/base.d.ts:121
lastItem()
lastItem():
null
|BlockModel
<object
>
Returns
null
| BlockModel
<object
>
Inherited from
defineEmbedModel<EmbedGithubBlockProps>( BlockModel ).lastItem
Source
packages/store/dist/schema/base.d.ts:122
Generated using typedoc-plugin-markdown and TypeDoc