BlockSuite API Documentation / @blocksuite/affine-block-surface / Overlay
Class: abstract
Overlay
An overlay is a layer covered on top of elements, can be used for rendering non-CRDT state indicators.
Extends
Extended by
Constructors
new Overlay()
new Overlay(
gfx
):Overlay
Parameters
gfx
GfxController
Returns
Overrides
Defined in
packages/affine/block-surface/src/renderer/overlay.ts:21
Properties
_renderer
protected
_renderer:null
|CanvasRenderer
=null
Defined in
packages/affine/block-surface/src/renderer/overlay.ts:19
gfx
protected
gfx:GfxController
Defined in
packages/affine/block-surface/src/renderer/overlay.ts:21
overlayName
static
overlayName:string
=''
Defined in
packages/affine/block-surface/src/renderer/overlay.ts:17
Methods
clear()
clear():
void
Returns
void
Defined in
packages/affine/block-surface/src/renderer/overlay.ts:38
render()
abstract
render(ctx
,rc
):void
Parameters
ctx
CanvasRenderingContext2D
rc
Returns
void
Defined in
packages/affine/block-surface/src/renderer/overlay.ts:40
setRenderer()
setRenderer(
renderer
):void
Parameters
renderer
null
| CanvasRenderer
Returns
void
Defined in
packages/affine/block-surface/src/renderer/overlay.ts:42
setup()
static
setup(di
):void
Parameters
di
Container
Returns
void
Overrides
Defined in
packages/affine/block-surface/src/renderer/overlay.ts:25