svg

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddClipPath

func AddClipPath(element *etree.Element, id string, x, y, w, h float64)

AddClipPath adds a definition of a clip path to the <defs> with the given id.

func AddCornerRadius

func AddCornerRadius(e *etree.Element, radius float64)

AddCornerRadius adds corner radius to an element.

func AddOutline

func AddOutline(e *etree.Element, width float64, color string)

AddOutline adds an outline to the given element.

func AddShadow

func AddShadow(element *etree.Element, id string, x, y, blur float64)

AddShadow adds a definition of a shadow to the <defs> with the given id.

func GetDimensions

func GetDimensions(element *etree.Element) (int, int)

GetDimensions returns the width and height of the element.

func Move

func Move(e *etree.Element, x, y float64)

Move moves the given element to the (x, y) position

func NewWindowControls

func NewWindowControls(r float64, x, y float64) *etree.Element

NewWindowControls returns a colorful window bar element.

func SetDimensions

func SetDimensions(element *etree.Element, width, height float64)

SetDimensions sets the width and height of the given element.

Types

This section is empty.

Jump to

Keyboard shortcuts

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