svg

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 1 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      int
	Y      int
	Radius int
	Fill   string
	Attr   map[string]string
}

type Line

type Line struct {
	XStart int
	YStart int
	XEnd   int
	YEnd   int
	Width  int
	Stroke string
	Attr   map[string]string
}

type Path

type Path struct {
	X        int
	Y        int
	Commands []interface{}
	Fill     string
	Attr     map[string]string
}

type PathArc

type PathArc struct {
	RadiusX  int
	RadiusY  int
	LargeArc int
	Sweep    int
	X        int
	Y        int

	CenterX int
	CenterY int
}

type PathLine

type PathLine struct {
	X int
	Y int
}

type Rectangle

type Rectangle struct {
	X        int
	Y        int
	Width    int
	Height   int
	XCenter  int // rotation center
	YCenter  int
	Rotation float64
	RX       int
	RY       int
	Fill     string
	Attr     map[string]string
}

Jump to

Keyboard shortcuts

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