svg

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAttr

func FormatAttr(m map[string]string) string

Types

type Circle

type Circle struct {
	X           float64
	Y           float64
	Radius      float64
	StrokeWidth float64
	Stroke      string
	Fill        string
	Attr        map[string]string
}

func (*Circle) String added in v0.3.4

func (r *Circle) String() string

type Ellipse added in v0.3.4

type Ellipse struct {
	X           float64
	Y           float64
	XRadius     float64
	YRadius     float64
	StrokeWidth float64
	Stroke      string
	Fill        string
	Attr        map[string]string
}

func (*Ellipse) String added in v0.3.4

func (r *Ellipse) String() string

type Line

type Line struct {
	StartX      float64
	StartY      float64
	EndX        float64
	EndY        float64
	StrokeWidth float64
	Stroke      string
	Attr        map[string]string
}

func (*Line) String added in v0.3.4

func (r *Line) String() string

type Path

type Path struct {
	X        float64
	Y        float64
	Commands []fmt.Stringer
	Stroke   string
	Fill     string
	Attr     map[string]string
}

func (*Path) String added in v0.3.4

func (r *Path) String() string

type PathArcA added in v0.3.4

type PathArcA struct {
	XRadius  float64 // x轴半径
	YRadius  float64 // y轴半径
	Angle    float64
	LargeArc float64
	Sweep    float64
	X        float64
	Y        float64
}

func (*PathArcA) String added in v0.3.4

func (r *PathArcA) String() string

type PathArcC added in v0.3.4

type PathArcC struct {
	X1 float64
	Y1 float64
	X2 float64
	Y2 float64
	X  float64
	Y  float64
}

func (*PathArcC) String added in v0.3.4

func (r *PathArcC) String() string

type PathArcQ added in v0.3.4

type PathArcQ struct {
	X1 float64
	Y1 float64
	X  float64
	Y  float64
}

func (*PathArcQ) String added in v0.3.4

func (r *PathArcQ) String() string

type PathArcS added in v0.3.4

type PathArcS struct {
	X1 float64
	Y1 float64
	X  float64
	Y  float64
}

func (*PathArcS) String added in v0.3.4

func (r *PathArcS) String() string

type PathArcT added in v0.3.4

type PathArcT struct {
	X float64
	Y float64
}

func (*PathArcT) String added in v0.3.4

func (r *PathArcT) String() string

type PathL added in v0.3.4

type PathL struct {
	X float64
	Y float64
}

func (*PathL) String added in v0.3.4

func (r *PathL) String() string

type PathZ added in v0.3.4

type PathZ struct {
}

func (*PathZ) String added in v0.3.4

func (r *PathZ) String() string

type Polygon added in v0.3.4

type Polygon struct {
	Points      []float64
	StrokeWidth float64
	Stroke      string
	Fill        string
	Attr        map[string]string
}

func (*Polygon) String added in v0.3.4

func (r *Polygon) String() string

type Polyline added in v0.3.4

type Polyline struct {
	Points      []float64
	StrokeWidth float64
	Stroke      string
	Fill        string
	Attr        map[string]string
}

func (*Polyline) String added in v0.3.4

func (r *Polyline) String() string

type Rectangle

type Rectangle struct {
	X      float64
	Y      float64
	Width  float64
	Height float64
	RX     float64
	RY     float64
	Angle  float64
	Fill   string
	Attr   map[string]string
}

func (*Rectangle) String added in v0.3.4

func (r *Rectangle) String() string

Jump to

Keyboard shortcuts

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