svg

package module
v0.0.0-...-192c519 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 2 Imported by: 1

README

svg

An initial attempt at a SVG helper library used with vecty.

For examples see examples directory

Deps

Golang 1.14+

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Namespace = "http://www.w3.org/2000/svg"

Functions

func Percent

func Percent(number Number) interface{}

func Render

func Render(svg Root) vecty.ComponentOrHTML

Types

type Attribute

type Attribute interface {
	Component
	vecty.Applyer
}

type Component

type Component interface {
	// contains filtered or unexported methods
}

type Core

type Core struct {
	vecty.Core
}

type Element

type Element interface {
	Component
	Tag() string
	Attributes() []Attribute
	Elements() []Element
	Inner() string
}

type Length

type Length interface{}

type LengthOrPercent

type LengthOrPercent interface{}

type Number

type Number interface{}

type NumberOrPercent

type NumberOrPercent interface{}

type Root

type Root interface {
	Element
}

func SVG

func SVG(elementsOrComponents ...Component) Root

Jump to

Keyboard shortcuts

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