cleanupSVGRoot

external fun cleanupSVGRoot(svg: SVG)

Clean up the root <svg> element.

Removes junk, namespace and editor-specific attributes, strips px from dimensions and class. Presentational attributes that belong on child shapes (such as fill, stroke and opacity) are moved to a wrapper <g>; <style>, <title>, definitions and masks are not wrapped. Unknown attributes are removed with a warning.