Skip to content

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


host

host: EditorHost

Defined in

packages/affine/block-surface/dist/surface-block.d.ts:13


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


viewport

viewport: Viewport

Defined in

packages/affine/block-surface/dist/surface-block.d.ts:12