Add constructors for typed arrays in DOMMatrix and DOMMatrixReadOnly

This commit is contained in:
Christian Poveda 2018-03-23 14:26:42 -05:00
parent 18ef5874dd
commit 6d08027890
7 changed files with 328 additions and 431 deletions

View file

@ -17,8 +17,8 @@
interface DOMMatrix : DOMMatrixReadOnly {
[NewObject, Throws] static DOMMatrix fromMatrix(optional DOMMatrixInit other);
// [NewObject] static DOMMatrix fromFloat32Array(Float32Array array32);
// [NewObject] static DOMMatrix fromFloat64Array(Float64Array array64);
[NewObject, Throws] static DOMMatrix fromFloat32Array(Float32Array array32);
[NewObject, Throws] static DOMMatrix fromFloat64Array(Float64Array array64);
// These attributes are simple aliases for certain elements of the 4x4 matrix
inherit attribute unrestricted double a;