updateClipPath = (attr, tx, ty) => {
  const clipPath = getRefElem(attr)
  if (!clipPath) return
  const path = clipPath.firstChild
  const cpXform = getTransformList(path)
  const newTranslate = svgCanvas.getSvgRoot().createSVGTransform()
  newTranslate.setTranslate(tx, ty)

  cpXform.appendItem(newTranslate)

  // Update clipPath's dimensions
  recalculateDimensions(path)
}
Updates a `<clipPath>` element's values based on the given translation.
@function module:recalculate.updateClipPath
@param {string} attr - The clip-path attribute value containing the clipPath's ID
@param {number} tx - The translation's x value
@param {number} ty - The translation's y value
@returns {void}