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

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

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

Methods

getTransform(): DOMMatrix
resetTransform(): void
rotate(angle: number): void
scale(x: number, y: number): void
setTransform(
a: number,
b: number,
c: number,
d: number,
e: number,
f: number,
): void
setTransform(transform?: DOMMatrix2DInit): void
transform(
a: number,
b: number,
c: number,
d: number,
e: number,
f: number,
): void
translate(x: number, y: number): void