SVG path segments parser and optimiser used at aydos.com/svgedit
Import SVG Path string. SVGPath works with only one "path".
Export final SVG Path string.
Export final SVG Path as segments array. You can work with this array.
Do some optimization on path. Remove consequtive Ms, remove points on the same line. Detect and mark (not delete) segment too close each other.
Make all segments absolute.
Make all segmets relative.
Round decimal points.
Move the path with given dx, dy.
Flip the path with given point or given axis.
Centralize the path to given point x, y.
Scale the path.
Rotate the path wrt point x, y with angle d.