In this release we have a couple of fixes
- fixed removing transform-origin attribute (680e143)
- fixed applying transform to path arc with zero radius (ac8edba)
Visitor api now get parentNode in enter and exit callback
return {
element: {
enter: (node, parentNode) => {
},
exit: (node, parentNode) => {
}
}
}
And a lot of plugins are migrated to visitor api and covered them with tsdoc
- addAttributesToSVGElement
- addClassesToSVGElement
- cleanupAttrs
- cleanupEnableBackground
- cleanupListOfValues
- cleanupNumericValues
- convertColors
- convertEllipseToCircle
- convertShapeToPath
- convertTransform
- mergePaths
- removeAttributesBySelector
- removeAttrs
- removeComments
- removeDesc
- removeDoctype
- removeElementsByAttr
- removeEmptyText
- removeMetadata
- removeRasterImages
- removeScriptElement
- removeStyleElement
- removeTitle
- removeXMLProcInst
- removeHiddenElems
- removeViewBox
- removeUselessDefs
- removeOffCanvasPaths
- removeUnknownsAndDefaults
- sortDefsChildren
Thanks to @XhmikosR, @morganney, @oBusk, @matheus1lva and @TrySound