MM.SVGPath provides utils functions for manipulating a SVG path.
Parse a path string and returns an array with objects that contain a command letter and the parameters that come with.
Returns the angle for a point that follows the path
. That point is defined by the parameter ratio
that depends on the path total length (the distance).
Creates a SVGPath instance from a path string. It automatically parses the string and store the commands.
Clones commands that are passed in parameters
Scales a path by calculating the new coordinates of each command. The scaleOrigin
parameter is used as the pivot point for the scale transformation.
Returns the commands as a string. It is used for reinjecting it into the path d
attribute.
Draws path from MM.SVGPath object into a PIXI.Graphics object.
It has been tested on latest browsers and IE >= 9.
- Create utils for pixi.js, canvas...