Currently path method accepts data as a string. In the internals it is being parse twice once in pointsOnPath and another time in svgPath. In my case I want to do some preprocessing to the path data before applying roughness. Currently I am basically forced to:
- Parse string to segments.
- Apply my own transformations to path data.
- Convert transformed data back to string.
- This string will be parsed twice inside RoughJS library.