BlockSuite API Documentation / @blocksuite/blocks / FrameOverlay
Class: FrameOverlay
An overlay is a layer covered on top of elements, can be used for rendering non-CRDT state indicators.
Extends
Constructors
new FrameOverlay()
new FrameOverlay(
gfx
):FrameOverlay
Parameters
gfx
GfxController
Returns
Overrides
Defined in
packages/blocks/src/root-block/edgeless/frame-manager.ts:50
Properties
_renderer
protected
_renderer:null
|CanvasRenderer
Inherited from
Defined in
packages/affine/block-surface/dist/renderer/overlay.d.ts:13
gfx
protected
gfx:GfxController
Inherited from
Defined in
packages/affine/block-surface/dist/renderer/overlay.d.ts:11
overlayName
static
overlayName:string
='frame'
Overrides
Defined in
packages/blocks/src/root-block/edgeless/frame-manager.ts:34
Methods
clear()
clear():
void
Returns
void
Overrides
Defined in
packages/blocks/src/root-block/edgeless/frame-manager.ts:62
highlight()
highlight(
frame
,highlightElementsInBound
,highlightOutline
):void
Parameters
frame
highlightElementsInBound
boolean
= false
highlightOutline
boolean
= true
Returns
void
Defined in
packages/blocks/src/root-block/edgeless/frame-manager.ts:68
refresh()
refresh():
void
Returns
void
Inherited from
Defined in
packages/affine/block-surface/dist/renderer/overlay.d.ts:17
render()
render(
ctx
):void
Parameters
ctx
CanvasRenderingContext2D
Returns
void
Overrides
Defined in
packages/blocks/src/root-block/edgeless/frame-manager.ts:111
setRenderer()
setRenderer(
renderer
):void
Parameters
renderer
null
| CanvasRenderer
Returns
void
Inherited from
Defined in
packages/affine/block-surface/dist/renderer/overlay.d.ts:19
setup()
static
setup(di
):void
Parameters
di
Container
Returns
void
Inherited from
Defined in
packages/affine/block-surface/dist/renderer/overlay.d.ts:15