Interface CanvasTransform
interface CanvasTransform {
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;
}
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;
}
Hierarchy
- CanvasTransform (view full)
Index
Methods
getTransform
resetTransform
rotate
scale
setTransform
- set
Transform (a, b, c, d, e, f): void Parameters
- a: number
- b: number
- c: number
- d: number
- e: number
- f: number
Returns void
- set
Transform (transform?): void Parameters
Optional
transform: DOMMatrix2DInit
Returns void
MDN Reference