BlockSuite API Documentation / @blocksuite/blocks / 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
rc
viewportBound
IBound
Returns
void
Defined in
packages/affine/block-surface/dist/renderer/elements/index.d.ts:5