D3vugu-components/icons/l-cancel_vgen.go
David Vogel e9c2353da3 Add utils package
- Add AttributesAppend type
- Add icon class and add styles to icons
- Change elements to use AttributesAppend in vg-attr
- Move example icons into their own component
2023-05-15 08:58:12 +02:00

52 lines
2.4 KiB
Go

package icons
// Code generated by vugu via vugugen. Please regenerate instead of editing or add additional code in a separate file. DO NOT EDIT.
import "fmt"
import "reflect"
import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LCancel struct {
AttrMap vugu.AttrMap
}
func (c *LCancel) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgout = &vugu.BuildOut{}
var vgiterkey interface{}
_ = vgiterkey
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "svg", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "viewBox", Val: "0 0 16 16"}}}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"})
{
vgparent := vgn
_ = vgparent
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t"}
vgparent.AppendChild(vgn)
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "path", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "class", Val: "d3c-icon-stroke"}, vugu.VGAttribute{Namespace: "", Key: "d", Val: "M1.5 2.5l12 12m-12 0l12 -12"}, vugu.VGAttribute{Namespace: "", Key: "stroke", Val: "black"}, vugu.VGAttribute{Namespace: "", Key: "stroke-width", Val: "1"}, vugu.VGAttribute{Namespace: "", Key: "stroke-linejoin", Val: "round"}, vugu.VGAttribute{Namespace: "", Key: "stroke-linecap", Val: "round"}, vugu.VGAttribute{Namespace: "", Key: "fill", Val: "none"}}}
vgparent.AppendChild(vgn)
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n"}
vgparent.AppendChild(vgn)
}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
{
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-icon {\n\t\t/*margin: 10px;*/\n\t\theight: 16px;\n\t}\n\n\t.d3c-size-tiny .d3c-icon {\n\t\theight: 8px !important;\n\t}\n\t.d3c-size-small .d3c-icon {\n\t\theight: 12px !important;\n\t}\n\t.d3c-size-large .d3c-icon {\n\t\theight: 24px !important;\n\t}\n\t.d3c-size-xlarge .d3c-icon {\n\t\theight: 32px !important;\n\t}\n\t.d3c-size-xxlarge .d3c-icon {\n\t\theight: 48px !important;\n\t}\n\t.d3c-size-xxxlarge .d3c-icon {\n\t\theight: 64px !important;\n\t}\n", Attr: []vugu.VGAttribute(nil)})
}
vgout.AppendCSS(vgn)
return vgout
}
// 'fix' unused imports
var _ fmt.Stringer
var _ reflect.Type
var _ vjson.RawMessage
var _ js.Value