D3vugu-components/icons/l-document-rich-text_vgen.go

52 lines
2.3 KiB
Go
Raw Normal View History

2023-05-08 18:43:07 +00:00
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"
)
2023-05-10 10:45:04 +00:00
type LDocumentRichText struct {
2023-05-08 18:43:07 +00:00
AttrMap vugu.AttrMap
}
2023-05-10 10:45:04 +00:00
func (c *LDocumentRichText) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
2023-05-08 18:43:07 +00:00
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"})
2023-05-08 18:43:07 +00:00
{
vgparent := vgn
_ = vgparent
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t"}
vgparent.AppendChild(vgn)
2023-05-10 10:45:04 +00:00
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: "M3.5 0.5l9 0c0.55,0 1,0.45 1,1l0 13c0,0.55 -0.45,1 -1,1l-9 0c-0.55,0 -1,-0.45 -1,-1l0 -13c0,-0.55 0.45,-1 1,-1zm7.25 5l-1.5 0c-0.41,0 -0.75,-0.34 -0.75,-0.75l0 -1.5c0,-0.41 0.34,-0.75 0.75,-0.75l1.5 0c0.41,0 0.75,0.34 0.75,0.75l0 1.5c0,0.41 -0.34,0.75 -0.75,0.75zm-6.25 0l2 0m-2 3l7 0m-7 3l7 0"}, 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"}}}
2023-05-08 18:43:07 +00:00
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\theight: 1em;\n\t}\n", Attr: []vugu.VGAttribute(nil)})
}
vgout.AppendCSS(vgn)
2023-05-08 18:43:07 +00:00
return vgout
}
// 'fix' unused imports
var _ fmt.Stringer
var _ reflect.Type
var _ vjson.RawMessage
var _ js.Value