2D component; the same value as m11. MDN Reference
2D component; the same value as m12. MDN Reference
2D component; the same value as m21. MDN Reference
2D component; the same value as m22. MDN Reference
2D component; the same value as m41. MDN Reference
2D component; the same value as m42. MDN Reference
Readonlyis2Readonlyis4x4 component; the same value as a. MDN Reference
4x4 component; the same value as b. MDN Reference
4x4 component, row 1 column 3. MDN Reference
4x4 component, row 1 column 4. MDN Reference
4x4 component; the same value as c. MDN Reference
4x4 component; the same value as d. MDN Reference
4x4 component, row 2 column 3. MDN Reference
4x4 component, row 2 column 4. MDN Reference
4x4 component, row 3 column 1. MDN Reference
4x4 component, row 3 column 2. MDN Reference
4x4 component, row 3 column 3. MDN Reference
4x4 component, row 3 column 4. MDN Reference
4x4 component; the same value as e. MDN Reference
4x4 component; the same value as f. MDN Reference
4x4 component, row 4 column 3. MDN Reference
4x4 component, row 4 column 4. MDN Reference
A copy that can be mutated without touching this one.
🧪 Not in the HTML Canvas standard. DOMMatrix.fromMatrix(m) is the
standard spelling and does the same thing.
OptionalrotX: numberOptionalrotY: numberOptionalrotZ: numberOptionalx: numberOptionaly: numberOptionalz: numberOptionalangle: numberOptionalx: numberOptionaly: numberOptionalz: numberOptionalangle: numberOptionalrotX: numberOptionalrotY: numberOptionalrotZ: numberOptionalscale: numberOptionaloriginX: numberOptionaloriginY: numberOptionaloriginZ: numberOptionalscale: numberOptionaloriginX: numberOptionaloriginY: numberOptionaloriginZ: numberSkew on both axes at once, equivalent to skewX(sx).skewY(sy).
🧪 Not in the HTML Canvas standard.
Optionalsx: numberOptionalsy: numberSkew this matrix on both axes at once, in place.
🧪 Not in the HTML Canvas standard.
Optionalsx: numberOptionalsy: numberA plain object carrying the same fields, for JSON.stringify.
A 2D or 3D transformation matrix, with the CSS
a-fnames and the matrix-cellmRCnames addressing the same values.