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:48
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:60
highlight()
highlight(
frame
,highlightElementsInBound
,highlightOutline
):void
Parameters
• frame: FrameBlockModel
• highlightElementsInBound: boolean
= false
• highlightOutline: boolean
= true
Returns
void
Defined in
packages/blocks/src/root-block/edgeless/frame-manager.ts:66
render()
render(
ctx
):void
Parameters
• ctx: CanvasRenderingContext2D
Returns
void
Overrides
Defined in
packages/blocks/src/root-block/edgeless/frame-manager.ts:109
setRenderer()
setRenderer(
renderer
):void
Parameters
• renderer: null
| CanvasRenderer
Returns
void
Inherited from
Defined in
packages/affine/block-surface/dist/renderer/overlay.d.ts:18
setup()
static
setup(di
):void
Parameters
• di: Container
Returns
void
Inherited from
Defined in
packages/affine/block-surface/dist/renderer/overlay.d.ts:15