Gets the bounding box of an array of PathInstructions that form a path. For performance reasons, this algorithm will only use the path endpoints and will not account for any curves that might go outside of the bounding box.
An array containing SVG Path instructions
The bounding rect of the instruction set
Converts separate path instructions (as returned by parsePathData()) back to a single path data string that can be applied as an svg 'd' attribute
Inverts the Y-axis of an array of PathInstructions. Useful for SVG Fonts, where the Y-axis is in the opposite direction as an HTML SVG document. note: mutates the array in-place
The original array with mutated y params
Parses an SVG Path data string into an array of separate instructions. For more info on Path Data see: http://www.w3.org/TR/SVG/paths.html#PathData
The data string to parse.
If true, will invert all y coordinates. Defaults to false
An array of instructions, containing a single letter as command and an array of integers for parameters.
Generated using TypeDoc