Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dwm/ext/canvas.ts>SvgCanvas

Deno Window Manager: Cross-platform window creation and management
Go to Latest
class SvgCanvas
import { SvgCanvas } from "https://deno.land/x/dwm@0.2.0/ext/canvas.ts";

A canvas that can be used to render SVG.

Constructors

new
SvgCanvas(
width: number,
height: number,
options?: SvgCanvasOptions,
)

Methods

Encode and return buffer containing SVG data

Obtain 2D context for drawing on SVG

save(path: string)

Save SVG on file system

Convert to SVG string