Versions in this module Expand all Collapse all v0 v0.0.9 Apr 30, 2024 v0.0.8 Oct 30, 2023 v0.0.7 Oct 28, 2023 v0.0.6 Oct 27, 2023 v0.0.5 Jun 9, 2023 v0.0.4 Jun 7, 2023 v0.0.3 May 6, 2023 Changes in this version type Unit + const Rem v0.0.2 Feb 7, 2022 Changes in this version + type GradientSpread uint8 + const NoRepeat + const Reflect + const Repeat + func (spread GradientSpread) LinearGradient(positions []Fl, colors []parser.RGBA, x1, y1, dx, dy, vectorLength Fl) backend.GradientLayout + func (spread GradientSpread) RadialGradient(positions []Fl, colors []parser.RGBA, fx, fy, fr, cx, cy, r, width, height Fl) backend.GradientLayout type SVGImage + func ParseNode(root *html.Node, baseURL string, imageLoader ImageLoader, ...) (*SVGImage, error) type Unit + func (u Unit) String() string v0.0.1 Dec 29, 2021 Changes in this version + type Fl = utils.Fl + type ImageLoader = func(url string) (backend.Image, error) + type Rectangle struct + Height Fl + Width Fl + X Fl + Y Fl + type SVGImage struct + ViewBox *Rectangle + func Parse(svg io.Reader, baseURL string, imageLoader ImageLoader) (*SVGImage, error) + func (svg *SVGImage) DisplayedSize() (width, height Value) + func (svg *SVGImage) Draw(dst backend.Canvas, width, height Fl) + type Unit uint8 + const Cm + const Em + const Ex + const In + const Mm + const Pc + const Perc + const Pt + const Px + const Q + type Value struct + U Unit + V Fl + func (v Value) Resolve(fontSize, percentageReference Fl) Fl