function readTransformMatrix(elem) {
  var ts = (window.getComputedStyle ?
      window.getComputedStyle(elem)[transform] :
      $.css(elem, 'transform'));
  if (!ts || ts === 'none') {
    return null;
  }
  // Quick exit on the explicit matrix() case:
  var e =/^matrix\(([\-+.\de]+),\s*([\-+.\de]+),\s*([\-+.\de]+),\s*([\-+.\de]+),\s*([\-+.\de]+)(?:px)?,\s*([\-+.\de]+)(?:px)?\)$/.exec(ts);
  if (e) {
    return [parseFloat(e[1]), parseFloat(e[2]), parseFloat(e[3]),
            parseFloat(e[4]), parseFloat(e[5]), parseFloat(e[6])];
  }
  // Interpret the transform string.
  return transformStyleAsMatrix(ts);
}
// Reads out the 2x3 transform matrix of the given element.
Reads out the 2x3 transform matrix of the given element.
Reads out the 2x3 transform matrix of the given element .
function readTransformMatrix(elem) {
  var ts = (window.getComputedStyle ?
      window.getComputedStyle(elem)[transform] :
      $.css(elem, 'transform'));
  if (!ts || ts === 'none') {
    return null;
  }
  var e =/^matrix\(([\-+.\de]+),\s*([\-+.\de]+),\s*([\-+.\de]+),\s*([\-+.\de]+),\s*([\-+.\de]+)(?:px)?,\s*([\-+.\de]+)(?:px)?\)$/.exec(ts);
  if (e) {
    return [parseFloat(e[1]), parseFloat(e[2]), parseFloat(e[3]),
            parseFloat(e[4]), parseFloat(e[5]), parseFloat(e[6])];
  }
  return transformStyleAsMatrix(ts);
}
function readTransformMatrix ( elem ) { var ts = ( window . getComputedStyle ? window . getComputedStyle ( elem ) [ transform ] : $ . css ( elem , 'transform' ) ) ; if ( ! ts || ts === 'none' ) { return null ; } var e = / ^matrix\(([\-+.\de]+),\s*([\-+.\de]+),\s*([\-+.\de]+),\s*([\-+.\de]+),\s*([\-+.\de]+)(?:px)?,\s*([\-+.\de]+)(?:px)?\)$ / . exec ( ts ) ; if ( e ) { return [ parseFloat ( e [ 1 ] ) , parseFloat ( e [ 2 ] ) , parseFloat ( e [ 3 ] ) , parseFloat ( e [ 4 ] ) , parseFloat ( e [ 5 ] ) , parseFloat ( e [ 6 ] ) ] ; } return transformStyleAsMatrix ( ts ) ; }
Reads out the 2x3 transform matrix of the given element.
Reads out the 2x3 transform matrix of the given element .
// Quick exit on the explicit matrix() case: // Interpret the transform string.