BlockSuite API Documentation / @blocksuite/presets / AIChatBlockModel
Class: AIChatBlockModel
Extends
EdgelessBlockModel
<AIChatProps
,this
>
Constructors
new AIChatBlockModel()
new AIChatBlockModel():
AIChatBlockModel
Returns
Inherited from
GfxCompatible<AIChatProps>(BlockModel).constructor
Defined in
packages/framework/store/dist/schema/base.d.ts:134
Properties
[modelLabel]
[modelLabel]:
AIChatProps
Inherited from
GfxCompatible<AIChatProps>(BlockModel).[modelLabel]
Defined in
packages/framework/store/dist/schema/base.d.ts:116
childMap
childMap:
ReadonlySignal
<Map
<string
,number
>>
Inherited from
GfxCompatible<AIChatProps>(BlockModel).childMap
Defined in
packages/framework/store/dist/schema/base.d.ts:109
connectable
connectable:
boolean
Inherited from
GfxCompatible<AIChatProps>(BlockModel).connectable
Defined in
packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:8
created
created:
Slot
<void
>
Inherited from
GfxCompatible<AIChatProps>(BlockModel).created
Defined in
packages/framework/store/dist/schema/base.d.ts:110
deleted
deleted:
Slot
<void
>
Inherited from
GfxCompatible<AIChatProps>(BlockModel).deleted
Defined in
packages/framework/store/dist/schema/base.d.ts:111
flavour
flavour:
string
Inherited from
GfxCompatible<AIChatProps>(BlockModel).flavour
Defined in
packages/framework/store/dist/schema/base.d.ts:112
id
id:
string
Inherited from
GfxCompatible<AIChatProps>(BlockModel).id
Defined in
packages/framework/store/dist/schema/base.d.ts:113
index
index:
string
Inherited from
GfxCompatible<AIChatProps>(BlockModel).index
Defined in
packages/presets/src/blocks/ai-chat-block/ai-chat-model.ts:8
index$
index$:
Signal
<string
>
Inherited from
GfxCompatible<AIChatProps>(BlockModel).index$
isEmpty
isEmpty:
ReadonlySignal
<boolean
>
Inherited from
GfxCompatible<AIChatProps>(BlockModel).isEmpty
Defined in
packages/framework/store/dist/schema/base.d.ts:114
keys
keys:
string
[]
Inherited from
GfxCompatible<AIChatProps>(BlockModel).keys
Defined in
packages/framework/store/dist/schema/base.d.ts:115
messages
messages:
string
Inherited from
GfxCompatible<AIChatProps>(BlockModel).messages
Defined in
packages/presets/src/blocks/ai-chat-block/ai-chat-model.ts:10
messages$
messages$:
Signal
<string
>
Inherited from
GfxCompatible<AIChatProps>(BlockModel).messages$
page
page:
Doc
Deprecated
use doc instead
Inherited from
GfxCompatible<AIChatProps>(BlockModel).page
Defined in
packages/framework/store/dist/schema/base.d.ts:120
pop()
pop: (
prop
) =>void
Parameters
• prop: "messages"
| "xywh"
| "index"
| "scale"
| "sessionId"
| "rootWorkspaceId"
| "rootDocId"
Returns
void
Inherited from
GfxCompatible<AIChatProps>(BlockModel).pop
Defined in
packages/framework/store/dist/schema/base.d.ts:121
propsUpdated
propsUpdated:
Slot
<object
>
Type declaration
key
key:
string
Inherited from
GfxCompatible<AIChatProps>(BlockModel).propsUpdated
Defined in
packages/framework/store/dist/schema/base.d.ts:122
role
role:
"content"
|"root"
|"hub"
Inherited from
GfxCompatible<AIChatProps>(BlockModel).role
Defined in
packages/framework/store/dist/schema/base.d.ts:125
rootDocId
rootDocId:
string
Inherited from
GfxCompatible<AIChatProps>(BlockModel).rootDocId
Defined in
packages/presets/src/blocks/ai-chat-block/ai-chat-model.ts:13
rootDocId$
rootDocId$:
Signal
<string
>
Inherited from
GfxCompatible<AIChatProps>(BlockModel).rootDocId$
rootWorkspaceId
rootWorkspaceId:
string
Inherited from
GfxCompatible<AIChatProps>(BlockModel).rootWorkspaceId
Defined in
packages/presets/src/blocks/ai-chat-block/ai-chat-model.ts:12
rootWorkspaceId$
rootWorkspaceId$:
Signal
<string
>
Inherited from
GfxCompatible<AIChatProps>(BlockModel).rootWorkspaceId$
rotate
rotate:
number
Inherited from
GfxCompatible<AIChatProps>(BlockModel).rotate
Defined in
packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:9
scale
scale:
number
Inherited from
GfxCompatible<AIChatProps>(BlockModel).scale
Defined in
packages/presets/src/blocks/ai-chat-block/ai-chat-model.ts:9
scale$
scale$:
Signal
<number
>
Inherited from
GfxCompatible<AIChatProps>(BlockModel).scale$
sessionId
sessionId:
string
Inherited from
GfxCompatible<AIChatProps>(BlockModel).sessionId
Defined in
packages/presets/src/blocks/ai-chat-block/ai-chat-model.ts:11
sessionId$
sessionId$:
Signal
<string
>
Inherited from
GfxCompatible<AIChatProps>(BlockModel).sessionId$
stash()
stash: (
prop
) =>void
Parameters
• prop: "messages"
| "xywh"
| "index"
| "scale"
| "sessionId"
| "rootWorkspaceId"
| "rootDocId"
Returns
void
Inherited from
GfxCompatible<AIChatProps>(BlockModel).stash
Defined in
packages/framework/store/dist/schema/base.d.ts:126
text?
optional
text:Text
Inherited from
GfxCompatible<AIChatProps>(BlockModel).text
Defined in
packages/framework/store/dist/schema/base.d.ts:127
version
version:
number
Inherited from
GfxCompatible<AIChatProps>(BlockModel).version
Defined in
packages/framework/store/dist/schema/base.d.ts:128
xywh
xywh: `[${number},${number},${number},${number}]`
Inherited from
GfxCompatible<AIChatProps>(BlockModel).xywh
Defined in
packages/presets/src/blocks/ai-chat-block/ai-chat-model.ts:7
xywh$
xywh$:
Signal
<`[${number},${number},${number},${number}]`>
Inherited from
GfxCompatible<AIChatProps>(BlockModel).xywh$
yBlock
yBlock:
YBlock
Inherited from
GfxCompatible<AIChatProps>(BlockModel).yBlock
Defined in
packages/framework/store/dist/schema/base.d.ts:129
Accessors
children
get
children():BlockModel
<object
,SignaledProps
<object
>>[]
Returns
BlockModel
<object
, SignaledProps
<object
>>[]
Inherited from
GfxCompatible<AIChatProps>(BlockModel).children
Defined in
packages/framework/store/dist/schema/base.d.ts:130
doc
get
doc():Doc
set
doc(doc
):void
Parameters
• doc: Doc
Returns
Inherited from
GfxCompatible<AIChatProps>(BlockModel).doc
Defined in
packages/framework/store/dist/schema/base.d.ts:131
elementBound
get
elementBound():Bound
Returns
Bound
Inherited from
GfxCompatible<AIChatProps>(BlockModel).elementBound
Defined in
packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:10
externalBound
get
externalBound():null
|Bound
Returns
null
| Bound
Inherited from
GfxCompatible<AIChatProps>(BlockModel).externalBound
Defined in
packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:11
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}]`
Inherited from
GfxCompatible<AIChatProps>(BlockModel).externalXYWH
Defined in
packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:12
group
get
group():null
|SurfaceGroupLikeModel
<BaseElementProps
>
Returns
null
| SurfaceGroupLikeModel
<BaseElementProps
>
Inherited from
GfxCompatible<AIChatProps>(BlockModel).group
Defined in
packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:14
groups
get
groups():SurfaceGroupLikeModel
<BaseElementProps
>[]
Returns
SurfaceGroupLikeModel
<BaseElementProps
>[]
Inherited from
GfxCompatible<AIChatProps>(BlockModel).groups
Defined in
packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:15
parent
get
parent():null
|BlockModel
<object
,SignaledProps
<object
>>
Returns
null
| BlockModel
<object
, SignaledProps
<object
>>
Inherited from
GfxCompatible<AIChatProps>(BlockModel).parent
Defined in
packages/framework/store/dist/schema/base.d.ts:133
Methods
[dispose]()
[dispose]():
void
Returns
void
Inherited from
GfxCompatible<AIChatProps>(BlockModel).[dispose]
Defined in
packages/framework/store/dist/schema/base.d.ts:138
containsBound()
containsBound(
bounds
):boolean
Parameters
• bounds: Bound
Returns
boolean
Inherited from
GfxCompatible<AIChatProps>(BlockModel).containsBound
Defined in
packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:16
dispose()
dispose():
void
Returns
void
Inherited from
GfxCompatible<AIChatProps>(BlockModel).dispose
Defined in
packages/framework/store/dist/schema/base.d.ts:135
firstChild()
firstChild():
null
|BlockModel
<object
,SignaledProps
<object
>>
Returns
null
| BlockModel
<object
, SignaledProps
<object
>>
Inherited from
GfxCompatible<AIChatProps>(BlockModel).firstChild
Defined in
packages/framework/store/dist/schema/base.d.ts:136
getLineIntersections()
getLineIntersections(
start
,end
):null
|PointLocation
[]
Parameters
• start: IVec
• end: IVec
Returns
null
| PointLocation
[]
Inherited from
GfxCompatible<AIChatProps>(BlockModel).getLineIntersections
Defined in
packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:17
getNearestPoint()
getNearestPoint(
point
):IVec
Parameters
• point: IVec
Returns
IVec
Inherited from
GfxCompatible<AIChatProps>(BlockModel).getNearestPoint
Defined in
packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:18
getRelativePointLocation()
getRelativePointLocation(
relativePoint
):PointLocation
Parameters
• relativePoint: IVec
Returns
PointLocation
Inherited from
GfxCompatible<AIChatProps>(BlockModel).getRelativePointLocation
Defined in
packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:19
includesPoint()
includesPoint(
x
,y
,_
,__
):boolean
Parameters
• x: number
• y: number
• _: PointTestOptions
• __: EditorHost
Returns
boolean
Inherited from
GfxCompatible<AIChatProps>(BlockModel).includesPoint
Defined in
packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:20
intersectsBound()
intersectsBound(
bound
):boolean
Parameters
• bound: Bound
Returns
boolean
Inherited from
GfxCompatible<AIChatProps>(BlockModel).intersectsBound
Defined in
packages/framework/block-std/dist/gfx/gfx-block-model.d.ts:21
lastChild()
lastChild():
null
|BlockModel
<object
,SignaledProps
<object
>>
Returns
null
| BlockModel
<object
, SignaledProps
<object
>>
Inherited from
GfxCompatible<AIChatProps>(BlockModel).lastChild
Defined in
packages/framework/store/dist/schema/base.d.ts:137