getTransformList = elem => {
  if (elem.transform?.baseVal) {
    return elem.transform.baseVal
  }
  if (elem.gradientTransform?.baseVal) {
    return elem.gradientTransform.baseVal
  }
  if (elem.patternTransform?.baseVal) {
    return elem.patternTransform.baseVal
  }
  console.warn('No transform list found. Check browser compatibility.', elem)
}
Gets the transform list (baseVal) from an element if it exists.
@function getTransformList
@param {Element} elem - An SVG element or element with a transform list
@returns {SVGTransformList|undefined} The transform list, if any