SVG.js
2.7
3.0
3.1
3.2
svg.topoly.js
svg.topoly.js
to convert a path to polygon or polyline.