1.0.6 • Published 11 years ago
sstp v1.0.6
svgShapeToPath
Convert rect/circle/ellipse/polygon elements to path element.
Install
git clone git@github.com:mailzwj/sstp.git
# or
npm install sstpUse
First
npm installThen
var convertToPath = require("./svg-shape-to-path").convertToPath;
convertToPath("./shape-to-path.svg", "./converted.svg");Function
Convert rect/circle/ellipse/polygon elements to path element. Don't contain line and polyline element. if need, please use rect instead.