Construct a subpath
An empty subpath
Parse a single subpath
This parser will fail if there are multiple subpaths, use the parser in Path instead if multiple subpaths in your input are possible.
Construct an svg path element from a Path with the given attributes
Convert a subpath into SVG path notation
Parse a single subpath
This parser will fail if there are multiple subpaths, use the parser in Path instead if multiple subpaths in your input are possible.
deconstruct a subpath into its components
Start the second subpath where the first one ends
Join two subpaths, connecting them with a straight line
Start the second subpath where the first one ends, and rotate it to continue smoothly
Append a ClosePath at the end of the subpath (if none is present)
Translate the subpath by a vector
Rotate a subpath around its starting point by an angle (in radians).
Scale the subpath in the x and y direction
For more complex scaling operations, define a transformation matrix and use mapCoordinate.
Map over all the 2D coordinates in a subpath
Map over each drawto with the CursorState available.
The CursorState contains the subpath start position and the current cursor position at the current DrawTo
Type representing a subpath
A subpath is one moveto command followed by an arbitrary number of drawto commands.