BlockSuite API Documentation / @blocksuite/affine-block-surface / ElementRenderer
Type Alias: ElementRenderer()<T>
ElementRenderer<
T
>: (model
,ctx
,matrix
,renderer
,rc
,viewportBound
) =>void
Type Parameters
• T extends BlockSuite.SurfaceElementModel
= SurfaceElementModel
Parameters
• model: T
• ctx: CanvasRenderingContext2D
• matrix: DOMMatrix
• renderer: CanvasRenderer
• rc: RoughCanvas
• viewportBound: IBound
Returns
void
Defined in
packages/affine/block-surface/src/renderer/elements/index.ts:14