Interface CanvasTransform
interface CanvasTransform { getTransform(): DOMMatrix; resetTransform(): void; rotate(angle): void; scale(x,
y): void; setTransform(a,
b,
c,
d,
e,
f): void; setTransform(transform?): void; transform(a,
b,
c,
d,
e,
f): void; translate(x,
y): void; } Methods
getTransform
- getTransform(): DOMMatrix
resetTransform
- resetTransform(): void
Returns void
rotate
- rotate(angle): void
Returns void
scale
- scale(x, y): void
Returns void
setTransform
- setTransform(a, b, c, d, e, f): void
Parameters
- a: number
- b: number
- c: number
- d: number
- e: number
- f: number
Returns void
- setTransform(transform?): void
Returns void
transform
- transform(a, b, c, d, e, f): void
Parameters
- a: number
- b: number
- c: number
- d: number
- e: number
- f: number
Returns void
translate
- translate(x, y): void
Returns void
MDN Reference