matrix/js/Matrix.js:1
Matrix is a class that allows for the manipulation of a transform matrix. This class is a work in progress.
applyCSSTextval
Defined in
matrix/js/Matrix.js:51
Parses a string and updates the matrix.
val
String
A css transform string
decompose
Defined in
matrix/js/Matrix.js:442
Returns an array of transform commands that represent the matrix.
Array
deg2raddeg
Defined in
matrix/js/Matrix.js:251
Converts a degree value to a radian.
deg
Number
Degree value to be converted to radian.
Number
getContentRectwidth
height
x
y
Defined in
matrix/js/Matrix.js:366
Returns the left, top, right and bottom coordinates for a transformed item.
Object
getDeterminant
Defined in
matrix/js/Matrix.js:409
Returns the determinant of the matrix.
Number
getMatrixArray
Defined in
matrix/js/Matrix.js:343
Returns a 3x3 Matrix array
/ \ | matrix[0][0] matrix[1][0] matrix[2][0] | | matrix[0][1] matrix[1][1] matrix[2][1] | | matrix[0][2] matrix[1][2] matrix[2][2] | \ /
Array
getTransformArrayval
Defined in
matrix/js/Matrix.js:71
Parses a string and returns an array of transform arrays.
val
String
A css transform string
Array
initconfig
Defined in
matrix/js/Matrix.js:121
Initializes a matrix.
config
Object
Specified key value pairs for matrix properties. If a property is not explicitly defined in the config argument, the default value will be used.
inverse
Defined in
matrix/js/Matrix.js:420
Returns the inverse (in array form) of the matrix.
Array
rad2degrad
Defined in
matrix/js/Matrix.js:239
Converts a radian value to a degree.
rad
Number
Radian value to be converted.
Number
rotatedeg
Defined in
matrix/js/Matrix.js:273
Applies a rotate transform.
deg
Number
The degree of the rotation.
skewXx
Defined in
matrix/js/Matrix.js:179
Applies a skew to the x-coordinate
x
Number
x-coordinate
skewYy
Defined in
matrix/js/Matrix.js:190
Applies a skew to the y-coordinate
y
Number
y-coordinate
toCSSText
Defined in
matrix/js/Matrix.js:201
Returns a string of text that can be used to populate a the css transform property of an element.
String
toFilterText
Defined in
matrix/js/Matrix.js:219
Returns a string that can be used to populate the css filter property of an element.
String
translateXx
Defined in
matrix/js/Matrix.js:301
Applies a translate to the x-coordinate
x
Number
x-coordinate
translateYy
Defined in
matrix/js/Matrix.js:312
Applies a translate to the y-coordinate
y
Number
y-coordinate