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

x/canvas/src/canvaskit.ts>CanvasTransform

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
interface CanvasTransform
import { type CanvasTransform } from "https://deno.land/x/canvas@v1.3.0/src/canvaskit.ts";

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