Overview of supported SVG features
mastersvgelements provides high-fidelity parsing and geometric rendering for a wide range of SVG and CSS elements. Key supported features include:
- Parsing & Writing: Robust SVG parsing and basic SVG writing.
- Lengths: Supports
px,pt,pc,cm,mm,in, and%. - Colors: Supports keywords,
#rrggbb,#rgb,rgb(r,g,b),rgb(r%,g%,b%),rgba(r,g,b,a), andhsl(hue, s, l). - Matrices: Full matrix support; all objects have a
.transformobject for cascading matrix operations (including viewport). - Angles: Supports
deg,rad,grad, andturn(e.g., withinrotate()commands). - Shapes:
Rect,Circle,Ellipse,Polygon,Polyline,Line(internallySimpleLine).Path: Perfectpath_dparsing (Relative/Absolute, Smooth BezierCurve) while preserving segment forms.- Shapes can be deconstructed into Paths using
Path(shape)orshape.d().
- Geometric Functions: Advanced functions for
PathSegmentssuch aspoint(),npoint(),bbox(), andreverse(). - Styling: Supports
.stroke,.fill, and.stroke_widthfor all shapes. - Structure: Supports
Groupobjects,clipPath,<defs>,<use>, and ShadowDOM referencing.