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 Summary)
Index
Methods
getTransform
resetTransform
rotate
scale
setTransform
- setTransform(
a: number,
b: number,
c: number,
d: number,
e: number,
f: number,
): void Parameters
- a: number
- b: number
- c: number
- d: number
- e: number
- f: number
Returns void
- setTransform(transform?: DOMMatrix2DInit): void
Parameters
Optional
transform: DOMMatrix2DInit
Returns void
MDN Reference