Skip to content

BlockSuite API Documentation / @blocksuite/affine-block-surface / SurfaceContext

Interface: SurfaceContext

Properties

elementRenderers

elementRenderers: Record<string, ElementRenderer>

Defined in

packages/affine/block-surface/src/surface-block.ts:26


host

host: EditorHost

Defined in

packages/affine/block-surface/src/surface-block.ts:25


selection

selection: object

selectedIds

selectedIds: string[]

slots

slots: object

slots.updated

slots.updated: Slot<SurfaceSelection[]>

Defined in

packages/affine/block-surface/src/surface-block.ts:27


viewport

viewport: Viewport

Defined in

packages/affine/block-surface/src/surface-block.ts:24