Skip to content

API > @blocksuite/blocks > Overlay

Class: Overlay ​

An overlay is a layer covered on top of elements, can be used for rendering non-CRDT state indicators.

Constructors ​

constructor ​

new Overlay(): Overlay

Returns ​

Overlay

Methods ​

render ​

abstract render(ctx, rc): void

Parameters ​

ParameterType
ctxCanvasRenderingContext2D
rcRoughCanvas

Returns ​

void

Defined In ​

packages/blocks/src/surface-block/renderer.ts:57