svg

package
v3.0.0-...-55e877b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2023 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Symbol string
	Params []float64
}

type GraphicSVG

type GraphicSVG struct {
	ViewBox    struct{ X, Y, W, H float64 }
	Name       string
	Attributes map[string]string
	Children   []*GraphicSVG
	Content    string
	Style      *GraphicSVGStyle
	Width      float64
	Height     float64
	// contains filtered or unexported fields
}

func ParseFromFile

func ParseFromFile(path string) (*GraphicSVG, error)

func ParseFromStream

func ParseFromStream(source _e.Reader) (*GraphicSVG, error)

func ParseFromString

func ParseFromString(svgStr string) (*GraphicSVG, error)

func (*GraphicSVG) Decode

func (_aeb *GraphicSVG) Decode(decoder *_cd.Decoder) error

func (*GraphicSVG) SetScaling

func (_acge *GraphicSVG) SetScaling(xFactor, yFactor float64)

func (*GraphicSVG) ToContentCreator

func (_gae *GraphicSVG) ToContentCreator(cc *_f.ContentCreator, scaleX, scaleY, translateX, translateY float64) *_f.ContentCreator

type GraphicSVGStyle

type GraphicSVGStyle struct {
	FillColor   string
	StrokeColor string
	StrokeWidth float64
}

type Path

type Path struct{ Subpaths []*Subpath }

type Subpath

type Subpath struct{ Commands []*Command }

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL