Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Path2D

This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.

interface Path2D extends CanvasPath {
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
var Path2D: {
prototype: Path2D;
new (path?: Path2D | string): Path2D;
}
;

§Extends

§Methods

§
addPath(path: Path2D, transform?: DOMMatrix2DInit): void
[src]

Adds to the path the path given by the argument.