BlockSuite API Documentation / @blocksuite/blocks / SurfaceContext
Interface: SurfaceContext
Properties
elementRenderers
elementRenderers:
Record
<string
,ElementRenderer
>
Defined in
packages/affine/block-surface/dist/surface-block.d.ts:16
host
host:
EditorHost
Defined in
packages/affine/block-surface/dist/surface-block.d.ts:14
overlays
overlays:
Record
<string
,Overlay
>
Defined in
packages/affine/block-surface/dist/surface-block.d.ts:15
selection
selection:
object
selectedIds
selectedIds:
string
[]
slots
slots:
object
slots.updated
slots.updated:
Slot
<SurfaceSelection
[]>
Defined in
packages/affine/block-surface/dist/surface-block.d.ts:17
viewport
viewport:
Viewport
Defined in
packages/affine/block-surface/dist/surface-block.d.ts:13