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 ​
Methods ​
render ​
abstract
render(ctx
,rc
):void
Parameters ​
Parameter | Type |
---|---|
ctx | CanvasRenderingContext2D |
rc | RoughCanvas |
Returns ​
void
Defined In ​
packages/blocks/src/surface-block/renderer.ts:57