getRotationAngle = (elem, toRad) => {
  const selected = elem || svgCanvas.getSelectedElements()[0]
  // find the rotation transform (if any) and set it
  const tlist = getTransformList(selected)
  return getRotationAngleFromTransformList(tlist, toRad)
}
Get the rotation angle of the given/selected DOM element.
@function module:utilities.getRotationAngle
@param {Element} [elem] - DOM element to get the angle for. Default to first of selected elements.
@param {boolean} [toRad=false] - When true returns the value in radians rather than degrees
@returns {Float} The angle in degrees or radians