Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/index.ts>dom.CanvasRenderingContext2D

💧EventEmitter's typesafe replacement
Go to Latest
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/types/index.ts";
const { CanvasRenderingContext2D } = dom;

The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a element. It is used for drawing shapes, text, images, and other objects.