UNPKG

typography-canvas-renderer

Version:

A lightweight npm package for rendering typographic content (text and images) on HTML5 Canvas with full CSS styling support including borders, border-radius, multiple border styles, inline text rendering, auto height calculation, and image support

6 lines 277 B
import type { RenderElement } from './types.js'; /** * Renders elements on a canvas context */ export declare const renderElements: (ctx: CanvasRenderingContext2D, elements: RenderElement[], scaleFactor: number) => Promise<void>; //# sourceMappingURL=canvas-renderer.d.ts.map