simplifiedPaths = {
let clone = svg.cloneNode(true);
let v2children = Array.from(clone.children)
for (let i=0; i < v2children.length; i++) {
let bbox = Array.from(svg.children)[i].getBBox()
let path1 = v2children[i].getAttribute('d')
let path2 = await simplifyPath(path1)
v2children[i].setAttribute("d", path2 )
v2children[i].setAttribute('transform',`translate(${bbox.x}, ${bbox.y})`)
}
return clone
}