normalize-svg-path1.0.1 • Public • Published
Convert all segments in a path to curves. Usefull if you intend to animate one shape to another. By defining all segments with curves instead of a mix of lines, arcs, and curves tweening becomes much simpler. It could also help you rewrite your SVG code according to the principles of narcissistic design.
var parse =var abs =var normalize =var segments =
Translate each segment in
path to an equivalent cubic bézier curve. The input
path must be absolute.
// => [['C',0,0,1,2,1,2]]