getRotationAngleFromTransformList = (tlist, toRad) => {
  if (!tlist) {
    return 0
  } // <svg> element have no tlist
  for (let i = 0; i < tlist.numberOfItems; ++i) {
    const xform = tlist.getItem(i)
    if (xform.type === 4) {
      return toRad ? (xform.angle * Math.PI) / 180.0 : xform.angle
    }
  }
  return 0.0
}
Get the rotation angle of the given transform list.
@function module:utilities.getRotationAngleFromTransformList
@param {SVGTransformList} tlist - List of transforms
@param {boolean} toRad - When true returns the value in radians rather than degrees
@returns {Float} The angle in degrees or radians