svg

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	*ujs.Element
	// contains filtered or unexported fields
}

func ElementFromElement

func ElementFromElement(element *ujs.Element) *Element

func NewGroup added in v0.1.3

func NewGroup() *Element

func NewRootElement

func NewRootElement() *Element

func (*Element) Presentation

func (e *Element) Presentation() *PresentationAttributes

func (*Element) SetPresentation

func (e *Element) SetPresentation(value *PresentationAttributes)

func (*Element) UpdatePresentation

func (e *Element) UpdatePresentation()

type GeometricElement added in v0.1.3

type GeometricElement struct {
	*GraphicsElement
}

func NewCirlce added in v0.1.3

func NewCirlce() *GeometricElement

func NewLine added in v0.1.3

func NewLine() *GeometricElement

func NewPath added in v0.1.3

func NewPath() *GeometricElement

func (*GeometricElement) IsPointInFill added in v0.1.3

func (e *GeometricElement) IsPointInFill(point Point) bool

func (*GeometricElement) IsPointInStroke added in v0.1.3

func (e *GeometricElement) IsPointInStroke(point Point) bool

type GraphicsElement added in v0.1.3

type GraphicsElement struct {
	*Element
}

type Point added in v0.1.3

type Point [3]float64

func (*Point) JSValue added in v0.1.3

func (p *Point) JSValue() js.Value

type PresentationAttributes

type PresentationAttributes struct {
	Color        string `ujs-attr:"color"`
	Fill         string `ujs-attr:"fill"`
	Stroke       string `ujs-attr:"stroke"`
	StrokeWidth  string `ujs-attr:"stroke-width"`
	VectorEffect string `ujs-attr:"vector-effect"`
}

Jump to

Keyboard shortcuts

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