Skip to content

Documentation / @finchart/core / index / createCanvasRenderer

Function: createCanvasRenderer() ​

createCanvasRenderer(surface, options?): Renderer

Defined in: packages/core/src/render/canvas-renderer.ts:452

The default wiring. Plot only needs to pass a surface.

If a renderer that knows an extension's primitive is needed, pass a painter along with it — it still drops straight into the RendererFactory slot.

Parameters ​

surface ​

DrawSurface

options? ​

CanvasRendererOptions

Returns ​

Renderer