aykutkardas / svgps.app

SVGPS converts your icons into a single JSON file that is ready to use in your frontend or mobile projects.
https://svgps.app
MIT License
292 stars 22 forks source link

add xmlns attribute for downloaded SVG #283

Closed zehraworks closed 1 year ago

zehraworks commented 1 year ago

Fix #262

aykutkardas commented 1 year ago

Adding a new method increases code duplication.

You can add a new parameter for the existing method instead.

If this parameter exists, attributes that should be in SVG files are added.

export const convertToSVG = ({ icon }: IconSetItem, size = 32, isFile = false) => {...}

// ...

convertToSVG(icon, size, true)