CanvasRenderOptions
Defined in: src/driver/web/canvas-renderer.ts:100
Options for renderBufferToCanvas.
Properties
Section titled “Properties”defaultBg?
Section titled “defaultBg?”
optionaldefaultBg?:string
Defined in: src/driver/web/canvas-renderer.ts:108
Default background when a cell doesn’t override it.
defaultFg?
Section titled “defaultFg?”
optionaldefaultFg?:string
Defined in: src/driver/web/canvas-renderer.ts:106
Default foreground when a cell doesn’t override it.
optionaldpr?:number
Defined in: src/driver/web/canvas-renderer.ts:110
Device pixel ratio the context is already scaled by (for crisp strokes).
fontFamily
Section titled “fontFamily”fontFamily:
string
Defined in: src/driver/web/canvas-renderer.ts:104
CSS font-family stack.
fontSize
Section titled “fontSize”fontSize:
number
Defined in: src/driver/web/canvas-renderer.ts:102
Font size in px (glyphs are drawn at this size, centered in the cell).
requestRepaint?
Section titled “requestRepaint?”
optionalrequestRepaint?: () =>void
Defined in: src/driver/web/canvas-renderer.ts:116
Called when an async-loaded vector icon finishes decoding, so the caller can repaint the last frame (the SVG wasn’t ready on the first draw). Omit on non-browser callers (tests) — SVG cells are simply skipped there.
Returns
Section titled “Returns”void