Expand description
SVG d="" path data parser.
SVG d="" path data parser.
Parses the d attribute of SVG <path> elements into SvgMultiPolygon
geometry, supporting all 14 SVG path commands (M/m, L/l, H/h, V/v,
C/c, S/s, Q/q, T/t, A/a, Z/z).
Enums§
- SvgPath
Parse Error - Errors that can occur during SVG path parsing.
Functions§
- parse_
svg_ path_ d - Parse an SVG path
dattribute string into aSvgMultiPolygon. - svg_
circle_ to_ paths - Approximate a circle with 4 cubic bezier curves.
- svg_
rect_ to_ path - Convert an SVG
<rect>to a path with optional rounded corners.