prepareSvg = (newDoc) => {
  svgCanvas.sanitizeSvg(newDoc.documentElement)

  // convert paths into absolute commands
  const paths = [...newDoc.getElementsByTagNameNS(NS.SVG, 'path')]
  paths.forEach((path) => {
    const convertedPath = svgCanvas.pathActions.convertPath(path)
    path.setAttribute('d', convertedPath)
    svgCanvas.pathActions.fixEnd(path)
  })
}
Runs the SVG Document through the sanitizer and then updates its paths.
@function module:svgcanvas.SvgCanvas#prepareSvg
@param {XMLDocument} newDoc - The SVG DOM document
@returns {void}