Non-standard This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
The DOMMatrixReadOnly
constructor creates a new DOMMatrixReadOnly
object which represents 4x4 matrices, suitable for 2D and 3D operations.
Syntax
var domMatrixReadOnly = new DOMMatrixReadOnly([init])
Parameters
- init Optional
- Either a string containing a sequence of numbers or an array of integers specifying the matrix you want to create.
Specifications
Specification | Status | Comment |
Geometry Interfaces Module Level 1The definition of 'DOMMatrixReadOnly' in that specification. | Candidate Recommendation | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
DOMMatrixReadOnly() constructor
|
Chrome
Full support 61 |
Edge
Full support 79 |
Firefox
Full support 62 |
IE
No support No |
Opera
Full support 48 |
Safari
Full support 11 |
WebView Android
Full support 61 |
Chrome Android
Full support 61 |
Firefox Android
Full support 62 |
Opera Android
Full support 45 |
Safari iOS
Full support 11 |
Samsung Internet Android
Full support 8.0 |
Legend
- Full support
- Full support
- No support
- No support
DOMMatrixReadOnly() by Mozilla Contributors is licensed under CC-BY-SA 2.5.