Versions in this module Expand all Collapse all v1 v1.0.1 May 7, 2026 v1.0.0 May 7, 2026 Changes in this version + var DefaultStyle = PathStyle + func ParseSVGColor(colorStr string) (color.Color, error) + func ParseSVGColorNum(colorStr string) (r, g, b uint8, err error) + type ErrorMode uint8 + const IgnoreErrorMode + const StrictErrorMode + const WarnErrorMode + type IconCursor struct + StyleStack []PathStyle + func (c *IconCursor) PushStyle(attrs []xml.Attr) error + func (c *IconCursor) ReadGradAttr(attr xml.Attr) (err error) + func (c *IconCursor) ReadGradURL(v string, defaultColor interface{}) (grad rasterx.Gradient, ok bool) + type PathCursor struct + ErrorMode ErrorMode + func (c *PathCursor) AddArcFromA(points []float64) + func (c *PathCursor) CompilePath(svgPath string) error + func (c *PathCursor) EllipseAt(cx, cy, rx, ry float64) + func (c *PathCursor) GetPoints(dataPoints string) error + func (c *PathCursor) ReadFloat(numStr string) error + type PathStyle struct + Dash []float64 + DashOffset float64 + FillOpacity float64 + LeadLineCap rasterx.CapFunc + LineCap rasterx.CapFunc + LineGap rasterx.GapFunc + LineJoin rasterx.JoinMode + LineOpacity float64 + LineWidth float64 + MiterLimit float64 + UseNonZeroWinding bool + type SvgIcon struct + Defs map[string][]definition + Descriptions []string + Grads map[string]*rasterx.Gradient + SVGPaths []SvgPath + Titles []string + Transform rasterx.Matrix2D + ViewBox struct{ ... } + func ReadIcon(iconFile string, errMode ...ErrorMode) (*SvgIcon, error) + func ReadIconStream(stream io.Reader, errMode ...ErrorMode) (*SvgIcon, error) + func ReadReplacingCurrentColor(stream io.Reader, currentColor string, errMode ...ErrorMode) (icon *SvgIcon, err error) + func (s *SvgIcon) Draw(r *rasterx.Dasher, opacity float64) + func (s *SvgIcon) SetTarget(x, y, w, h float64) + type SvgPath struct + Path rasterx.Path + func (svgp *SvgPath) Draw(r *rasterx.Dasher, opacity float64) + func (svgp *SvgPath) DrawTransformed(r *rasterx.Dasher, opacity float64, t rasterx.Matrix2D) + func (svgp *SvgPath) GetFillColor() color.Color + func (svgp *SvgPath) GetLineColor() color.Color + func (svgp *SvgPath) SetFillColor(clr color.Color) + func (svgp *SvgPath) SetLineColor(clr color.Color)