MCPcopy
hub / github.com/razorjack/quicksand / toArray

Function toArray

jquery.transform2d.js:541–545  ·  view source on GitHub ↗
(matrix)

Source from the content-addressed store, hash-verified

539
540// Converts "matrix(A,B,C,D,X,Y)" to [A,B,C,D,X,Y]
541function toArray(matrix) {
542 // remove the unit of X and Y for Firefox
543 matrix = /([^,]*),([^,]*),([^,]*),([^,]*),([^,p]*)(?:px)?,([^)p]*)(?:px)?/.exec(matrix);
544 return [matrix[1], matrix[2], matrix[3], matrix[4], matrix[5], matrix[6]];
545}
546
547$.transform = {
548 centerOrigin: "margin"

Callers 2

interpolationListFunction · 0.85
parseFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…