function totalTransform2x2(elem) {
  var result = [1, 0, 0, 1], t;
  while (elem !== null) {
    t = readTransformMatrix(elem);
    if (t && !isone2x2(t)) {
      result = matrixProduct(t, result);
    }
    elem = elem.parentElement;
  }
  return result.slice(0, 4);
}
// Composes all the 2x2 transforms up to the top.
Composes all the 2x2 transforms up to the top.
Composes all the 2x2 transforms up to the top .
function totalTransform2x2(elem) {
  var result = [1, 0, 0, 1], t;
  while (elem !== null) {
    t = readTransformMatrix(elem);
    if (t && !isone2x2(t)) {
      result = matrixProduct(t, result);
    }
    elem = elem.parentElement;
  }
  return result.slice(0, 4);
}
function totalTransform2x2 ( elem ) { var result = [ 1 , 0 , 0 , 1 ] , t ; while ( elem !== null ) { t = readTransformMatrix ( elem ) ; if ( t && ! isone2x2 ( t ) ) { result = matrixProduct ( t , result ) ; } elem = elem . parentElement ; } return result . slice ( 0 , 4 ) ; }
Composes all the 2x2 transforms up to the top.
Composes all the 2x2 transforms up to the top .