In my svg, the path produces points at some places. But it looks like pixelated. I need to make curves smooth. How can achieve this in js.
I found text svgo library which reduces no. of points in the path. But I am not sure how to make curves smooth.
import { optimize } from 'svgo';
const optimizeSvg = (svgString) => {
return optimize(svgString, {
multipass: true,
}).data;
}