Input:
- SVG path, may consist of Lines and Curves.
- percentage length of this path (say 50% of the path)
Output:
- svg path that is part of this path from beginning to a given point at length.
There is a nice method on path
getPointAtLength
and also getPathSegAtLength
so we can get the segment at the given length, but still not clear how to "split" this segment and the path that is needed.
I wonder is there some unified solution for the problem.